(Qns_parse_geometry): New var.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
01623ee7
CY
12008-08-13 Chong Yidong <cyd@stupidchicken.com>
2
3 * frame.c (Qns_parse_geometry): New var.
4 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
5
f00f8cb7
CY
62008-08-11 Chong Yidong <cyd@stupidchicken.com>
7
8 * xdisp.c (x_produce_glyphs): Handle the case when font has no
9 space character in calculating tabs.
10
11d8ec4a
DN
112008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
12
13 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
14
27bef0c8
GM
152008-08-10 Glenn Morris <rgm@gnu.org>
16
17 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
18 silence gcc "limited range of data type" warnings in some
19 make_fixnum_or_float calls.
20
8f8b082a
EZ
212008-08-09 Eli Zaretskii <eliz@gnu.org>
22
754a2d13
EZ
23 * w32.c (w32_system_process_attributes): If the process does not
24 exist, return nil.
25
8f8b082a
EZ
26 * w32.c: Include thelp32.h, psapi.h and coding.h.
27 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
28 declarations.
29 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
30 (Process32Next_Proc): New typedefs.
31 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
32 (g_b_init_process32_next, g_b_init_open_thread_token)
33 (g_b_init_impersonate_self, g_b_init_revert_to_self)
34 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
35 (g_b_init_get_process_working_set_size)
36 (g_b_init_global_memory_status_ex): New static variables.
37 (globals_of_w32): Initialize them.
38 (create_toolhelp32_snapshot, process32_first, process32_next)
39 (open_thread_token, impersonate_self, revert_to_self)
40 (get_process_memory_info, get_process_working_set_size)
41 (global_memory_status, global_memory_status_ex): New wrapper
42 functions.
43 (w32_list_system_processes, w32_system_process_attributes)
44 (enable_privilege, restore_privilege, ltime, process_times): New
45 functions.
46 (convert_time_raw): New function.
47 (convert_time): Remove conversion of FILETIME into time in 100
48 nsec units, call convert_time_raw instead.
49
50 * process.h (w32_list_system_processes, w32_system_process_attributes):
51 Add prototypes.
52 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
53 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
54 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
55 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
56
57 * process.c (Fsystem_process_attributes): Doc fix.
58
97c98587
CY
592008-08-08 Chong Yidong <cyd@stupidchicken.com>
60
61 * xdisp.c (move_it_to): When stopping at a charpos, check if
62 that's a continued multi-char glyph; if so, advance to the actual
63 glyph.
64
48fad8e8
DN
652008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
66
67 * s/darwin.h (OTHER_FILES): Do not define here, defined in
68 config.in.
69
70 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
71 (.m.o): Use it.
72 * config.in: Regenerate.
73
709fc721
CY
742008-08-07 Chong Yidong <cyd@stupidchicken.com>
75
76 * xdisp.c (redisplay_window): Revert last change.
77 (try_window): Check bottom scroll margin too.
78
b330336c
AR
792008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
80
81 * config.in: Regenerate.
82
83 * Makefile.in (emacs): Remove ndef NS conditional for 'emacs
84 -list-load-path-shadows'.
85 (nsgui.h): Reduce number of things depending on it.
86
b2c5015c
CY
872008-08-06 Chong Yidong <cyd@stupidchicken.com>
88
89 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
90 instead of window-end which does the wrong thing at eob.
91 (try_cursor_movement): Minor optimization.
92 (redisplay_window): If scroll margin is defined, don't assume
93 window doesn't need scrolling.
94
55737942
AR
952008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
96
97 * config.in: Regenerate.
98
99 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
100 (mostlyclean): Don't delete *.d under NS.
101
102 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
103
29428bb8
KH
1042008-08-06 Kenichi Handa <handa@m17n.org>
105
106 * xfont.c (xfont_list_family): Return a list of symbols, not
107 strings.
108
5c17fc1d
AS
1092008-08-06 Andreas Schwab <schwab@suse.de>
110
111 * config.in: Regenerate.
112
cd7f53ca
CY
1132008-08-05 Chong Yidong <cyd@stupidchicken.com>
114
012fd6f4
CY
115 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
116 forcing a window start.
117
cd7f53ca
CY
118 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
119 (auto_save_1): Update modtime when auto-save-list-file-name is on.
120
3d0a4431
AR
1212008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
122
95889848 123 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
3d0a4431
AR
124 argument.
125
d765e3a3
JB
1262008-08-05 Juanma Barranquero <lekktu@gmail.com>
127
128 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
129 <scroll-down-aggressively, before-change-functions>:
130 <after-change-functions>: Reflow docstrings.
131
4e622592 1322008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8df8bcc9 133 Ken Raeburn <raeburn@gnu.org>
4e622592
AR
134
135 Dock menu customization, based on a patch by Ken Raeburn, plus some
136 other fixes.
137 * nsmenu.m (dockMenu): New variable.
138 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
139
140 * nsterm.h (dockMenu): Declare.
141
142 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
143 (ns_term_init): Initialize dockMenu.
144 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
145 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
146 left.
147
148 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
149
108a6883
CY
1502008-08-04 Chong Yidong <cyd@stupidchicken.com>
151
152 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
153
154 * config.in: Regenerate.
155
ae10f60c
SZ
1562008-08-04 Seiji Zenitani <zenitani@mac.com>
157
d765e3a3 158 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
ae10f60c 159
b537b75b
CY
1602008-08-04 Chong Yidong <cyd@stupidchicken.com>
161
162 * nsterm.h (find_and_call_menu_selection): Fix prototype.
163
14145fa3
AR
1642008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
165
166 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
167
168 * keyboard.h: Comment an #endif.
169
07b87a10
AR
170 * lisp.h (have_menus_p): Adjust comment.
171
172 * menu.c (find_and_return_menu_selection): Fix comparison with
173 client_data.
174
175 * nsmenu.m (popup_activated_flag): New variable.
176 (popup_activated): New function.
177 (menu-or-popup-active-p): New exported lisp definition.
178 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
179 when popup done.
180 (ns_popup_dialog): Set popup_activated_flag.
181
4e622592 182 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
14145fa3
AR
183 version for GNUstep (handled by conditional typedef in nsterm.m).
184 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
185 in rgb.txt).
186
187 * process.c (init_process): Use DARWIN_OS, not DARWIN.
188
189 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
190
07b87a10
AR
191 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
192
193 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
194 shortcircuit if popup_activated like GTK and X toolkit.
195
14145fa3
AR
196 * m/inter386.h: Change DARWIN to DARWIN_OS.
197
198 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
199 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
07b87a10
AR
200 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
201 comment on NO_SOCK_SIGIO.
14145fa3 202
6e09bde1
CY
2032008-08-03 Chong Yidong <cyd@stupidchicken.com>
204
14145fa3 205 * nsterm.m (windowDidResize): Remove stopModal call.
6e09bde1 206
a023b559
AS
2072008-08-03 Andreas Schwab <schwab@suse.de>
208
51757187
AS
209 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
210 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
a023b559 211
a2dec0e5
CY
2122008-08-02 Chong Yidong <cyd@stupidchicken.com>
213
214 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
215 Don't use uninitialized pointer variable when using getrlimit.
216
4ff1bf17
JR
2172008-08-02 Jason Rumney <jasonr@gnu.org>
218
4342f814 219 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
4ff1bf17 220
934e2a68
EZ
2212008-08-02 Eli Zaretskii <eliz@gnu.org>
222
0078170f
EZ
223 * alloc.c (NSTATICS): Bump to 0x640.
224
934e2a68
EZ
225 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
226
227 * lisp.h: Add prototype for directory_files_internal.
228
229 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
230 New functions.
231 (syms_of_process): Defsubr them. Add initializations for various
232 Q* symbols used in procfs_system_process_attributes.
233 (procfs_list_system_processes, procfs_system_process_attributes)
234 [HAVE_PROCFS]: New functions.
235 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
236 (procfs_get_total_memory): New functions.
237
dee8cd43
JB
2382008-08-01 Juanma Barranquero <lekktu@gmail.com>
239
240 * xfaces.c (Fx_load_color_file): Fix previous change;
241 it is #ifdef WINDOWSNT, not WINDOWS_NT.
242
367ea173
MA
2432008-08-01 Michael Albinus <michael.albinus@gmx.de>
244
245 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
246
04f33e11
AR
2472008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
248
249 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
250
73592876
CY
2512008-08-01 Chong Yidong <cyd@stupidchicken.com>
252
dee8cd43 253 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
6fcb12fd
CY
254
255 * nsterm.m (EmacsApp -application:openFiles:): GNUStep does not
256 define NSApplicationDelegateReplySuccess.
257 (EmacsView -converstationIdentifier): Use long instead of
258 NSInteger for GNUStep, since it doesn't have NSInteger.
259
61bf63e2
CY
260 * xmenu.c: Revert last change.
261
73592876
CY
262 * keyboard.h: Fix last change.
263
ebadbfa6
AR
2642008-08-01 Juanma Barranquero <lekktu@gmail.com>
265
266 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
267 on Windows.
268
15034960 2692008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
f78c2c97 270
15034960 271 Warning clearing and clean-up in NS port.
dee8cd43
JB
272 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
273 Add prototypes.
15034960
AR
274 * nsgui.h (FACE_DEFAULT): Remove, unused.
275 (XGCValues): Change colors to unsigned long.
276 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
277 nsterm.m.
278 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
279 (ns_list_fonts): Remove, unused.
280 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
281 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
282 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
283 (nsfont_draw): Compare face colors to 0, not nil.
284 * nsmenu.m (struct widget_value): Drop unneeded declaration.
285 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
286 (-addSubmenuWithTitle:): Use NSMenuItem class.
287 (ns_popup_menu): Use NO, not NULL, for enabled setting.
288 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
289 (ns_clip_to_row): Make gc arg a BOOL.
290 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
291 ns_clip_to_row() call.
292 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
293 used). Cast FRAME_FONT assignments.
294 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
295 (ns_string_to_lispmod): Change arg to const char.
296 (ns_term_init): Use NSMenuItem class.
297 (EmacsApp -openFile:): Move to different section of file.
298 (EmacsApp -application:openFiles:): Don't return a value, call
299 -replyToOpenOrPrint:.
300 (EmacsView -keyDown:): Fix up cast.
301 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
302 (EmacsView -menuDown:): Cast tag in call to
303 find_and_call_menu_selection().
304 (ns_list_fonts): Remove, unused.
305 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
306 (ns_fontname_to_xlfd): Make static.
dee8cd43
JB
307 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
308 Remove prototypes (now in keyboard.h).
15034960 309 (next_menubar_widget_id): Remove, unused.
dee8cd43
JB
310 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
311 Remove prototypes (now in keyboard.h).
15034960
AR
312 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
313
27ec92c9
DN
3142008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
315
f78c2c97
DN
316 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
317 (floatfns.o): Depend on syssignal.h.
318 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
319
dee8cd43
JB
320 * systty.h: Fix previous change that removed BSD_TERMIOS.
321 Add comments to #ifdefs.
27ec92c9 322
7ded3383
AR
3232008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
324
325 * w32fns.c (w32-load-color-file): Remove.
326 (x-open-connection): Use renamed Fx_load_color_file.
327 * xfaces.c (x-load-color-file): Add.
328 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
329 Emacs.clr.
7ded3383
AR
330 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
331
13ecc6dc
MA
3322008-07-31 Michael Albinus <michael.albinus@gmx.de>
333
334 * dbusbind.c (Fdbus_call_method_asynchronously)
335 (Fdbus_method_error_internal): New defuns.
336 (xd_read_message): Handle also reply messages.
337 (Vdbus_registered_functions_table): Extend docstring.
338
12063bc5
JB
3392008-07-31 Juanma Barranquero <lekktu@gmail.com>
340
341 * keyboard.c (gobble_input): Fix previous change.
342
7c2fb837
DN
3432008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
344
345 * bitmaps/README:
346 * xfns.c:
347 * termcap.c:
348 * term.c:
349 * syswait.h:
350 * systty.h:
351 * systime.h:
352 * syssignal.h:
353 * sysdep.c:
354 * process.h:
355 * process.c:
356 * print.c:
357 * ndir.h:
358 * lread.c:
359 * keyboard.c:
360 * getpagesize.h:
361 * floatfns.c:
362 * fileio.c:
363 * emacs.c:
364 * doc.c:
365 * dispnew.c:
366 * dired.c:
367 * data.c:
368 * callproc.c:
369 * buffer.c:
370 * README:
371 * Makefile.in:
372 * s/template.h:
373 * s/msdos.h:
374 * m/vax.h: Remove VMS support.
375 * s/vms.h:
376 * vlimit.h:
377 * uaf.h:
378 * temacs.opt:
379 * param.h:
380 * ioctl.h: Remove file.
381
69ab3201
DN
3822008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
383
384 * s/ms-w32.h (MULTI_KBOARD): Remove.
385 * xterm.c:
386 * xselect.c:
387 * xfns.c:
388 * window.c:
389 * w32term.c:
390 * w32fns.c:
391 * terminal.c:
392 * termhooks.h:
393 * term.c:
394 * sysdep.c:
395 * keyboard.h:
396 * keyboard.c:
397 * frame.h:
398 * frame.c:
d765e3a3 399 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
69ab3201
DN
400 * config.in: Regenerate.
401
bd187c49
JR
4022008-07-30 Jason Rumney <jasonr@gnu.org>
403
12063bc5 404 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
bd187c49 405
12063bc5
JB
406 * w32font.c (w32font_encode_char): Leave as unicode if in range.
407 (w32font_open_internal): Get unicode version of textmetrics.
408 Don't enable or disable glyph indices here.
409 (w32font_open): Disable use of glyph indices.
bd187c49 410
12063bc5 411 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
bd187c49 412
e3072df2
CY
4132008-07-30 Chong Yidong <cyd@stupidchicken.com>
414
39dde873 415 * minibuf.c (Vread_buffer_function): Doc fix.
e3072df2 416
bc850333
CY
4172008-07-30 John Paul Wallington <jpw@pobox.com>
418
419 * minibuf.c (read_buffer_completion_ignore_case): New var.
420 (Fread_buffer): Use it.
421
9d9a7716
DN
4222008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
423
424 * systty.h (sensemode): Remove empty #if. Remove reference to
425 BSD_TERMIOS, unused.
426
427 * sysdep.c: Remove reference to DGUX.
428 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
429
430 * config.in: Regenerate.
431
0c34f98e
JR
4322008-07-30 Jason Rumney <jasonr@gnu.org>
433
12063bc5 434 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
0c34f98e 435
c320e90a
JR
4362008-07-29 Jason Rumney <jasonr@gnu.org>
437
12063bc5
JB
438 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
439 is populated.
440 (uniscribe_encode_char): Always use uniscribe.
441 Avoid using context if cache is populated.
c320e90a 442
3f7ead30
JD
4432008-07-29 Jan Djärv <jan.h.d@swipnet.se>
444
445 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
446 open menu.
447
448 * gtkutil.c (menu_nav_ended): Remove.
449 (create_menus): Remove signal connect for menu_nav_ended.
450
639eebe2
CY
4512008-07-28 Chong Yidong <cyd@stupidchicken.com>
452
453 * xdisp.c (redisplay_window): Check return value of
454 compute_window_start_on_continuation_line before forcing a window
455 start.
456
d1f535d2
JR
4572008-07-28 Jason Rumney <jasonr@gnu.org>
458
0e134ea0 459 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
9cac6313 460
0e134ea0
JB
461 * w32term.c (w32_enable_unicode_output, cleartype_active):
462 Remove obsolete display options.
463 (x_draw_glyph_string_background): Don't use old cleartype_active
464 workaround.
465 (w32_initialize): Remove cleartype_active initialization.
466 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
d1f535d2 467
ddaa36e1
AS
4682008-07-28 Andreas Schwab <schwab@suse.de>
469
470 * lisp.h (init_weak_hash_tables, syms_of_font)
471 (xd_read_queued_messages, syms_of_dbusbind): Declare.
472 (remove_hash_entry): Don't declare.
473 * eval.c (maybe_call_debugger): Make static and move before use.
474 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
475 * xdisp.c: Include "gtkutil.h" if USE_GTK.
476 * xterm.h (x_set_frame_alpha): Declare.
477
42ffd097
JD
4782008-07-28 Jan Djärv <jan.h.d@swipnet.se>
479
480 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
481 (create_menus): Connect selection-done to menu_nav_ended.
482
bd6ce2ba
AR
4832008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
484
485 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
486 Set Vx_resource_name to a fallback. Replace read of 'buffered'
487 parameter with read of 'alpha' one.
488 (Qns_frame_parameter): Remove.
489 * nsselection.m (selection-coding-system)
490 (next-selection-coding-system, Vselection_coding_system)
491 (Vnext_selection_coding_system): Drop.
492
583ff3c3
AR
4932008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
494
495 * nsfns.m (do-applescript, do_applescript): Rename to
496 ns-do-applescript, ns_do_applescript, and move within file.
497
9e2a2647
DN
4982008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
499
500 Remove support for Mac Carbon.
501 * mactoolbox.c:
502 * macterm.h:
503 * macterm.c:
504 * macselect.c:
505 * macmenu.c:
506 * macgui.h:
507 * macfns.c:
508 * mac.c: Remove file.
509 * s/darwin.h:
510 * m/intel386.h:
511 * xfaces.c:
512 * xdisp.c:
513 * window.c:
514 * tparam.c:
515 * termhooks.h:
516 * termcap.c:
517 * term.c:
518 * syssignal.h:
519 * sysselect.h:
520 * sysdep.c:
521 * process.c:
522 * lread.c:
523 * lisp.h:
524 * keyboard.c:
525 * image.c:
526 * fringe.c:
527 * frame.h:
528 * frame.c:
529 * fontset.c:
530 * font.h:
531 * font.c:
532 * fns.c:
533 * fileio.c:
534 * emacs.c:
535 * dispnew.c:
536 * dispextern.h:
537 * config.in:
538 * atimer.c:
539 * Makefile.in: Remove code for Carbon
540
7ad8fe5e 5412008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4874e088 542
7ad8fe5e 543 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
69eff41f 544
7ad8fe5e 5452008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
69eff41f 546
7ad8fe5e
MB
547 * macterm.h (kCGBitmapByteOrder32Host): New define for
548 non-universal SDKs.
69eff41f 549
7ad8fe5e
MB
550 * image.c (mac_create_cg_image_from_image, image_load_image_io)
551 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
dcdbbb5d 552
7ad8fe5e
MB
553 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
554 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
dcdbbb5d 555
7ad8fe5e 5562008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
09721b31 557
0e134ea0 558 * w32inevt.c: Include dispextern.h.
09721b31 559
51dc79f8
AS
5602008-07-26 Andreas Schwab <schwab@suse.de>
561
562 * print.c (print_object): Fix off-by-one in last change.
563
dea101f6
JB
5642008-07-25 Juanma Barranquero <lekktu@gmail.com>
565
566 * term.c (syms_of_term): Don't initialize default_orig_pair,
567 default_set_foreground and default_set_background on Windows.
568
11856d4d
JR
5692008-07-25 Jason Rumney <jasonr@gnu.org>
570
0e134ea0
JB
571 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
572 ScriptItemize. Clean up return value checking. Remove unused
573 variables.
574 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
575 shaping engine.
11856d4d 576
0e134ea0
JB
577 * w32font.c (w32font_has_char): Handle the case where we can't
578 determine the script for a character.
11856d4d 579
7bfc0e9e
CY
5802008-07-25 Chong Yidong <cyd@stupidchicken.com>
581
acdadb15
CY
582 * term.c (syms_of_term): Initialize default_orig_pair,
583 default_set_foreground, and default_set_background.
584
5efc6200
CY
585 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
586 clash (bug#86).
587 (getloadavg): Callers changed.
588
7bfc0e9e 589 * image.c (svg_load_image): Fix last change.
c01c4e35
CY
590 (svg_load_image): Use rsvg_handle_get_dimensions to check that
591 image size is valid. Use g_object_unref instead of deprecated
592 rsvg_handle_free to free rsvg handle.
9d7112ed 593 (x_from_xcolors): Don't initialize pixmap (silence compiler).
7bfc0e9e 594
f31cf550
JR
5952008-07-25 Jason Rumney <jasonr@gnu.org>
596
0e134ea0
JB
597 * w32font.c (w32font_encode_char): Encode characters outside BMP as
598 surrogates before looking up glyph index.
599 (w32font_text_extents): Encode as surrogates if falling back to
600 functions that need UTF-16 wide chars.
f31cf550 601
0e134ea0
JB
602 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
603 BMP as surrogates before looking up glyph index.
f31cf550 604
b293d659
CY
6052008-07-25 Chong Yidong <cyd@stupidchicken.com>
606
607 * image.c (svg_load_image): Check for failure in return value of
608 rsvg_handle_get_pixbuf. Free rsvg handle when done.
609
1ada3dab
JR
6102008-07-25 Jason Rumney <jasonr@gnu.org>
611
0e134ea0 612 * w32font.c (Fx_select_font): Reverse sense of second arg.
1ada3dab 613
dbc812e0
SM
6142008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
615
6449674e
SM
616 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
617 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
618
dbc812e0
SM
619 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
620 (PURESIZE): Use it.
621
67725bd8
DN
6222008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
623
340074e9
DN
624 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
625 * m/alpha.h (TEXT_END):
626 * m/ibmrs6000.h (TEXT_END):
627 * m/macppc.h (TEXT_END):
628 * s/darwin.h (TEXT_END):
629 * s/msdos.h (TEXT_END): Remove, unused.
630 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
631 * s/cygwin.h: Remove comment.
632
a11af7f8
DN
633 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
634 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
635 * m/intel386.h (DOT_GLOBAL_START):
636 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
637 (USG): Remove, file not used on USG platforms.
638
67725bd8
DN
639 * Makefile.in (HAVE_X11): Remove empty #else.
640
6420e80c
AS
6412008-07-24 Andreas Schwab <schwab@suse.de>
642
643 * fileio.c (Finsert_file_contents): Properly adjust undo list
644 after format conversion.
645
d1c38b57
JD
6462008-07-24 Jan Djärv <jan.h.d@swipnet.se>
647
648 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
649 (menu_nav_ended): Remove.
650 (create_menus): Remove signal connect for menu_nav_ended.
651 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
652 create_menus.
653 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
654
597634cb
JR
6552008-07-23 Jason Rumney <jasonr@gnu.org>
656
dbc812e0
SM
657 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
658 with opened font.
659 (w32font_open): Set font type to gdi.
4b135503 660
dbc812e0 661 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
597634cb 662
7c799cf5
DN
6632008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
664
7a14f2a0
DN
665 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
666 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
667 defines it.
668 * unexec.c (ADDR_CORRECT): Define unconditionally.
669
670 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
671
f914a6bf
DN
672 * unexec.c: Remove code depending on !COFF and USG, the file is
673 not used for such systems.
674
268b24ee
DN
675 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
676 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
677 (LD_SWITCH_SYSTEM_1): Remove, update users.
678
911109b1
DN
679 * s/darwin.h (DATA_END):
680 * m/intel386.h (DATA_END):
681 * m/ibmrs6000.h (DATA_END):
682 * m/alpha.h (DATA_END): Remove, unused.
911109b1 683
77ccee09
DN
684 * config.in: Regenerate.
685 * s/ms-w32.h (subprocesses): Define unconditionally.
686 * s/template.h (subprocesses): Update comment.
687 * s/vms.h (subprocesses):
688 * s/usg5-4.h (subprocesses):
689 * s/hpux10-20.h (subprocesses):
690 * s/gnu-linux.h (subprocesses):
691 * s/cygwin.h (subprocesses):
692 * s/bsd-common.h (subprocesses):
693 * s/aix4-2.h (subprocesses):
694 * s/darwin.h (subprocesses): Do not define, defined by default now.
695
696 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
697 Remove all references.
698 (temacs): Add GNUStep specific ld flags.
699
7c799cf5
DN
700 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
701 similarly to what X does.
702
712b2de1
AR
7032008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
704
705 * nsfns.m (x-list-fonts): Remove.
706 (syms_of_nsfns): Drop the x-list-fonts declaration.
707 * nsterm.m: Get rid of remaining "//" comments.
708
0d4e1b5f
CY
7092008-07-22 Chong Yidong <cyd@stupidchicken.com>
710
711 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
712
713 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
714 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
715 (Fns_own_selection_internal, Fx_disown_selection_internal)
716 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
717
718 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
719 ... */' style of docstrings. Doc fixes.
720
952913d4
DN
7212008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
722
0ecc3474 723 * terminfo.c (UP, BC, PC): Undo previous change.
0d4e1b5f 724
952913d4
DN
725 * nsfns.m: Rename ns prefixed functions/variables to the
726 corresponding x versions. Update references.
727
02d8b017
SM
7282008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
729
730 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
731
11b8fe14
DN
7322008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
733
02d8b017
SM
734 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
735 Remove forwarding functions.
cc98b6a0
DN
736 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
737 non-static.
738 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
739 non-static.
740 (ns_frame_parm_handlers): Use the new names.
741 (syms_of_nsfns): Move to the end of file.
742
1baa6236
DN
743 * nsterm.m (syms_of_nsterm): Move to the end of file.
744
11b8fe14
DN
745 * dispnew.c (init_display): Remove code for X10.
746
8dcaeba2
JR
7472008-07-22 Jason Rumney <jasonr@gnu.org>
748
02d8b017
SM
749 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
750 bare drive.
8dcaeba2 751
365bac35
AR
7522008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
753
754 * nsterm.m (syms_of_nsterm): Remove debugging println.
755
6a0f0f86
DR
7562008-07-22 David Reitter <david.reitter@gmail.com>
757
a3c83618 758 * nsfns.m (do_applescript, F_do_applescript): NS version of the
6a0f0f86
DR
759 Carbon implementation of the same functionality: execute arbitrary
760 AppleScript code.
761
51d5ef9f
AR
7622008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
763
a3c83618 764 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
51d5ef9f
AR
765 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
766 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
767 (Fx_display_mm_height, Fx_display_mm_width)
768 (Fx_display_backing_store, Fx_display_visual_class)
769 (Fx_display_save_under, Fx_open_connection)
770 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
771 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
772 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
773 (Fx_display_pixel_width, Fx_display_pixel_height)
774 (Fx_display_usable_bounds, Fx_display_planes)
775 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
776 ... */' style of docstrings.
777
6efac844
DN
7782008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
779
b8ff87cc
DN
780 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
781 on this platform.
782 (mips):
783 * m/iris4d.h (mips): Do not define.
784 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
785
92d1a7a3
DN
786 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
787
de08d1be
CY
788 * image.c:
789 * nsfns.m:
790 * nsselect.m:
791 * nsterm.h:
9e50ff0c
DN
792 * nsterm.m: Rename ns prefixed functions/variables to the
793 corresponding x versions. Update references.
794
ff486501
DN
795 * m/ibms390x.h (NO_REMAP): Do not undefine.
796
6efac844
DN
797 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
798
ea9de876
CY
7992008-07-21 Chong Yidong <cyd@stupidchicken.com>
800
801 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
802 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
803 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
804 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
805 (Fns_display_mm_height, Fns_display_mm_width)
806 (Fns_display_backing_store, Fns_display_visual_class)
807 (Fns_display_save_under, Fns_open_connection)
808 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
809 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
810 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
811 (Fns_display_pixel_width, Fns_display_pixel_height)
812 (Fns_display_usable_bounds, Fx_display_planes)
813 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
814
b42f4115 8152008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
3965adab
CY
816
817 * print.c (print_object): Check print_depth before searching for
818 circularities.
819
c0894fb9
MA
8202008-07-21 Michael Albinus <michael.albinus@gmx.de>
821
822 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
823 only sprintf.
824
d90bfd1c
KH
8252008-07-21 Kenichi Handa <handa@m17n.org>
826
827 * ftfont.c (adjust_anchor): Check if DetalValue is not NULL.
828
8e2911c2
AS
8292008-07-20 Andreas Schwab <schwab@suse.de>
830
831 * syntax.c (find_start_pos, find_start_value)
832 (find_start_value_byte, find_start_begv, find_defun_start)
dbc812e0 833 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
8e2911c2 834
98a01702
DN
8352008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
836
837 * s/sol2-3.h: Insert contents of s/sol2.h.
838 (LD_SWITCH_SYSTEM): Remove redundant definition.
839 * s/sol2.h: Remove, unused.
840
704a3a2d
AR
8412008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
842
dbc812e0 843 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
704a3a2d
AR
844
8452008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
e5e2baab
AR
846
847 * Makefile.in (ns_appdir): Fix typo in find command.
848
89f1e540
DN
8492008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
850
c788afce
DN
851 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
852
89f1e540
DN
853 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
854 added not supported anymore.
855
e5e2baab 856 * s/usg5-4-2.h (LIBS_SYSTEM):
89f1e540
DN
857 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
858
859 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
860 * s/lynxos.h (GETPGRP_NO_ARG):
861 * s/hpux10-20.h (NO_SIOCTL_H):
862 * s/gnu.h (GETPGRP_NO_ARG):
863 * s/gnu-linux.h (NO_SIOCTL_H):
864 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
865 * s/cygwin.h (GETPGRP_NO_ARG):
866 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
867 (C_DEBUG_SWITCH): Remove duplicate definition.
868
869 * m/ibms390.h: Remove boilerplate comments.
870
871 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
872
873 * process.c (HAVE_SERIAL): Consolidate ifdefs.
874 (wait_reading_process_output): Remove code for SunOS, platform not
875 supported anymore. Use SOLARIS2 instead of sun.
876
ed96cde8
AR
8772008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
878
879 * font.c (font_open_by_name): Under NS, default lface height to zero.
880 (font_open_for_lface): Under NS, set size based on frame fontsize.
881 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
882 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
883
8842008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
885
886 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
887 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
888 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
889 YES/NO.
890 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
891 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
892 * Makefile.in (clean): Clear out build destination dir.
893
5a2d7ab6
AR
8942008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
895
896 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
897 xterm, xselect.
898 * lisp.h: Remove declaration of hash_remove.
899 * nsgui.h: Remove redefinitions of hash_remove.
900 * fns.c (hash_remove): Rename to hash_remove_from_table.
901
8df8bcc9 9022008-07-19 Seiji Zenitani <zenitani@mac.com>
c0230162
AR
903
904 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
8df8bcc9 905 strdup() the family UTF8String before modifying it.
c0230162 906
45d325c4
AR
9072008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
908
45d325c4
AR
909 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
910 NS_FACE_BACKGROUND with 0 instead of nil.
911 * nsfont.m (nsfont_draw): Same.
912
8df8bcc9
GM
9132008-07-19 Chong Yidong <cyd@stupidchicken.com>
914
915 * nsfns.m (ns_set_background_color): Fix crash.
916
b83f1cd0
CY
9172008-07-18 Chong Yidong <cyd@stupidchicken.com>
918
919 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
920
add4eecc
DN
9212008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
922
923 * puresize.h (BASE_PURESIZE): Increase to 1240000.
924
69955d31
YM
9252008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
926
927 * gtkutil.c: Include <config.h> instead of "config.h".
928
929 * lisp.h (Foverlay_buffer): Add EXFUN.
930
931 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
932 child process to complete child_setup. Undo 2005-09-21 change.
933
934 * s/darwin.h: Mention setsid after vfork.
935
08b3caa9 9362008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2d64e9bb
YM
937
938 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
939 Depend on macgui.h.
940
941 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
942 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
943
944 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
945 and f19.
946 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
947
948 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
949 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
950 Remove enumerators.
951
952 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
953 Check if FACE_FROM_ID returns NULL.
954
8d59c5ed
JR
9552008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
956
ba60bd44
JB
957 * w32inevt.c (change_frame_size): Remove extern declaration.
958 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
959 change_frame_size.
8d59c5ed 960
ba60bd44 9612008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
db94bf9c
AR
962
963 * getloadavg.c: Revert last change (2008-07-15).
964
ba60bd44 9652008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
06b62770
AR
966
967 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
968 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc) set
969 from configure.
970
2749d28e
DN
9712008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
972
35ad0545
DN
973 * s/sol2.h:
974 * s/sol2-4.h: Reorganize conditionals.
975
2749d28e
DN
976 * ecrt0.c: Remove code depending on m68000, not used anymore.
977
978 * fns.c (hash_remove): Make static.
979 * lisp.h (hash_remove): Don't prototype.
980
981 * m/ibmrs6000.h:
982 * m/ibms390x.h:
983 * m/macppc.h: Remove boilerplate comments.
984
985 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
986 Solaris, which does not need them.
987
988 * m/vax.h: Remove comments about unsupported systems.
989
990 * s/darwin.h: Reorganize ifdefs.
991
32cc3925
AS
9922008-07-17 Andreas Schwab <schwab@suse.de>
993
994 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
995
facfbbbd
SM
9962008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
997
998 Use SDATA. Follow coding convention of placing operators at
999 beginning of next line rather than end of previous line, and placing
1000 spaces around infix operators.
1001
1002 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
1003 in case it was defined already.
1004 USE @GNUSTEP_MAKEFILES@ rather than envvars.
1005 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
1006 ns_default.
1007 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
1008 Lisp_Objects.
1009 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
1010 (ns_defined_color, ns_color_to_lisp): Declare.
1011 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
1012 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
1013 it's accepted even with USE_LISP_UNION_TYPE.
1014 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
1015 (update_frame_tool_bar): Remove apparently obsolete tests for
1016 non-integerness of f->tool_bar_lines.
1017 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
1018 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
1019 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
1020 (nsfont_open): Don't confuse NULL for Qnil.
1021 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
1022 * menu.h (find_and_call_menu_selection):
1023 * menu.c (find_and_call_menu_selection): Use just int for vector size.
1024 (find_and_return_menu_selection): Always return something.
1025 * frame.h: Include dispextern.h for Display_Info.
1026 (display_x_get_resource): Declare.
1027
ba60bd44 10282008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
122e9f8f
AR
1029
1030 * syntax.c: Remove stdio.h include accidentally introduced in
1031 Emacs.app commit.
1032 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
1033 NS_IMPL_COCOA.
1034 * keyboard.c (handle_async_input, input_available_signal): Remove
1035 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
1036
0bcfd7d7
SM
10372008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
1038
6882361b
SM
1039 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
1040 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
1041 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
1042 Use SDATA.
1043
0bcfd7d7
SM
1044 * keymap.c: Remove all NS-specific code.
1045 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
1046 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
1047 where_is_preferred_modifier, return a different value depending on how
1048 preferred is the binding.
1049 (where_is_internal): Adjust accordingly.
1050 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
1051 Adjust to new preferred_sequence_p.
1052 (syms_of_keymap): Declare `where-is-preferred-modifier'.
1053 * keyboard.c (parse_solitary_modifier): Not static any more.
1054 * keyboard.h (parse_solitary_modifier): Declare.
1055
720f3147
AS
10562008-07-16 Andreas Schwab <schwab@suse.de>
1057
1058 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
1059 of easymenu.
1060
01e19fea
CY
10612008-07-16 Chong Yidong <cyd@stupidchicken.com>
1062
1063 * xdisp.c (move_it_in_display_line): Account for word wrap, so
1064 that we don't move off the line.
1065
4c89a3e0
SM
10662008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
1067
1068 * keyboard.c (Qsuper): Remove.
1069 (parse_menu_item): Don't call where_is_internal specially for NS.
1070
586b975c
DN
10712008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
1072
3ec8ef33
DN
1073 * s/gnu-linux.h: Remove boilerplate comments.
1074
d4d080b6
DN
1075 * m/alpha.h (__ELF__): Consolidate conditions.
1076
7ab56cc4
DN
1077 * m/m68k.h (linux): Use GNU_LINUX instead.
1078 Remove boilerplate comments.
1079
586b975c 1080 * m/intel386.h: Undo reactoring from previous change.
7ab56cc4
DN
1081 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
1082 too, remove dead code.
1083 (linux): Use GNU_LINUX instead.
586b975c 1084
5cc9d48a
JR
10852008-07-16 Jason Rumney <jasonr@gnu.org>
1086
4c89a3e0 1087 * w32gui.h: Repeat 26 June changes lost by last change.
5cc9d48a 1088
6b0273cd
DN
10892008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
1090
132d0475
DN
1091 * systty.h: Remove code for Aix on 386, unsupported platform.
1092
1093 * s/ms-w32.h: Remove boilerplate comments.
1094 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
1095
1096 * s/gnu-linux.h (TERM): Remove support.
1097 (HAVE_SYSVIPC): Remove, unused.
1098 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
1099 for this system.
1100
1101 * process.c: Remove support for IRIS, unused.
1102 Remove support for TERM, not relevant anymore.
1103
1104 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
1105 used with the definition.
1106
1107 * s/aix4-2.h (static): Do not undef.
1108
1109 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
1110 only used on Aix.
1111 (HAVE_SYSVIPC): Remove, unused.
1112
1113 * m/hp800.h (CANNOT_DUMP): Do not undef.
1114
1115 * m/alpha.h: Fix comment.
1116
8111c2d8
DN
1117 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
1118 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
1119 used by this configuration.
1120 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
1121 * unexec.c: Remove code depending on HPUX and
1122 USG_SHARED_LIBRARIES, not used with this file. Remove code
1123 depending on IRIS, unused. Remove if 0-ed code.
1124
e9a57a88
DN
1125 * s/template.h: Remove comments about static.
1126
4c89a3e0
SM
1127 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
1128 Remove if 0-ed code.
c7607b94
DN
1129 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
1130 were the same as the default.
1131 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
1132 Remove boilerplate comments.
1133 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
1134 (HAVE_SYSVIPC): Remove, unused.
1135 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
1136
ff841b30
DN
1137 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
1138 Remove boilerplate comments.
1139 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
1140 Remove boilerplate comments.
1141 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
1142 Remove boilerplate comments.
1143 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
1144
586b975c
DN
1145 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
1146 USG systems which do not use DATA_SEG_BITS.
1147 Refactor code. Remove boilerplate comments.
1148
dc89925b 1149 * m/ibms390.h:
dc89925b
DN
1150 * m/m68k.h:
1151 * s/bsd-common.h:
1152 * s/cygwin.h:
1153 * s/darwin.h:
1154 * s/freebsd.h:
1155 * s/gnu.h:
1156 * s/msdos.h: Remove boilerplate comments.
1157
96b72211
DN
1158 * m/iris4d.h: Remove boilerplate comments and code for systems that
1159 do not use this file.
1160 (IRIS_4D): Remove, unused.
1161
c3b5f109
DN
1162 * m/mips.h: Remove boilerplate comments and code for systems that
1163 do not use this file.
96b72211 1164 (SIGN_EXTEND_CHAR):
c3b5f109
DN
1165 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
1166 * unexmips.c: Remove file, unused.
1167
6b0273cd
DN
1168 * editfns.c (Fuser_full_name): Replace the only use of
1169 USER_FULL_NAME with its value.
1170 * config.in: Regenerate.
1171
ba60bd44 11722008-07-16 David Reitter <david.reitter@gmail.com>
6fbcfb6f 1173
ba60bd44
JB
1174 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
1175 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
6fbcfb6f 1176
44ac2d3e
GM
11772008-07-16 Glenn Morris <rgm@gnu.org>
1178
1179 * emacs.c (system-type): Doc fix.
1180
0a170079
SM
11812008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
1182
1183 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
1184 If the cache doesn't work, let's fix it, rather than work around it.
1185
ba60bd44 11862008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
a68fda4a
AR
1187
1188 * Makefile.in: Correct additions for nsfont.o in last commit.
1189 * nsfont.m: New file (forgot last commit).
1190
8df8bcc9
GM
11912008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
1192
1193 * callproc.c (set_initial_environment): Initialize
1194 Vprocess_environment under CANNOT_DUMP (fixes crash when
1195 batch-compiling for bootstrap).
1196
11972008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
1198 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1199
1200 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
1201 fix crash due to different init order.
1202
ba60bd44 12032008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
edfda783
AR
1204
1205 Changes and additions for NeXTstep windowing system (Cocoa and
1206 GNUstep) support.
1207
ba60bd44 1208 * Makefile.in:
edfda783
AR
1209 * config.in: Support defines and build commands for NS port.
1210 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
1211 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
edfda783
AR
1212 * dispextern.h: Include nsgui.h and add needed typedefs under NS
1213 windowing.
1214 (struct face): Add synth_ital field.
1215 * dispnew.c: Include nsterm.h when compiling under NS windowing.
1216 (init_display): Initialize Vinitial_window_system to "ns" when so
1217 compiled.
1218 * emacs.c: Include GSConfig.h when compiling under GNUstep.
1219 (display_arg): Use under NS.
1220 (main): Under NS, allocate autorelease pool and handle command line
1221 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
1222 (standard_args): Add NS-specific args.
1223 (shut_down_emacs): Shut down NS terminal if compiled under NS.
1224 * font.c (DEFAULT_ENCODING): New variable.
1225 (font_find_for_lface): Use it.
1226 (syms_of_font): Load syms_of_nsfont under NS.
1227 * font.h: Declare nsfont_driver when compiled under NS.
1228 * fontset.c: When compiling under NS, include nsterm.h.
1229 (fontset_from_font): Autoconstruct fontset under NS.
1230 * frame.c (various): Under NS, include nsterm.h, add Qns window system
1231 symbol, document and use it.
edfda783
AR
1232 (do_switch_frame): When for_deletion under Cocoa, add
1233 Fraise_frame(Qnil).
1234 (x_set_frame_parameters): Ensure font attribute changes are picked up.
1235 (x_get_arg): Allow "yes" and "no" as boolean values.
1236 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
1237 Qright under Cocoa.
1238 (focus-follows-mouse): Default to 0 under NS.
1239 * frame.h (enum output_method): Add output_ns.
1240 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
1241 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
1242 (FRAME_WINDOW_P): NS-specific definition.
1243 * fringe.c (max_used_fringe_bitmap): Make public.
1244 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
1245 (getloadavg): Use NeXT code under descendant OS's.
1246 * image.c (includes and header section, x_create_bitmap_from_data)
1247 (x_create_bitmap_from_file, free_bitmap_record, image_background)
1248 (image_background_transparent, x_clear_image_1)
1249 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
1250 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
1251 (x_to_xcolors, x_from_xcolors, x_disable_image)
1252 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
1253 other GUIs, including XPM support using code originally written for
1254 Carbon GUI.
0a170079 1255 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
edfda783
AR
1256 using NS API.
1257 (image_ascent): Use font metrics macros instead of direct struct field
1258 access.
1259 * keyboard.c (includes): Add nsterm.h when compiling under NS.
1260 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
1261 Also, handle NS as GTK for menu bar purposes.
1262 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
1263 toolkit where they differ.
1264 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
1265 use cachelist, still needed under NS.
6ddc6cca 1266 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
edfda783
AR
1267 (struct widget_value): Define it here for menu.c.
1268 * keymap.c (includes): Include modifier internals.
1269 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
1270 NS.
1271 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
1272 support for preferring sequences using certain modifiers, specified by
1273 the FIRSTONLY argument.
1274 * lisp.h (hash_remove): Rename to avoid name clash when compiling
1275 under NS GNUstep implementation.
1276 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
1277 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
1278 * menu.c: Include nsterm.h under NS.
1279 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
1280 (free_menubar_widget_tree_value, update_submenu_strings)
1281 (find_and_call_menu_selection): Treat NS as X and NT.
1282 (find_and_return_menu_selection): New function, used for popup menus.
ba60bd44
JB
1283 * nsgui.h:
1284 * nsterm.h:
1285 * nsfns.m:
1286 * nsimage.m:
1287 * nsmenu.m:
1288 * nsselect.m:
edfda783
AR
1289 * nsterm.m: New files.
1290 * process.c (wait_reading_process_output): Under NS, call ns_select()
1291 instead of plain select().
1292 * syntax.c (char_quoted): Under NS, avoid a crash when called near
1293 beginning of buffer.
1294 * sysselect.h (init_process): Rename when compiling under Cocoa to
1295 avoid name conflict.
1296 * termhooks.h (display_info): Add ns_display_info to union.
1297 * terminal.c (Fterminal_live_p): Add ns to terminal types.
1298 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
1299 COCOA environment.
1300 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
1301 unexec() signature. (Note, this will dump, but the resulting file
1302 crashes; unexosx is used instead; keeping around for reference and
1303 possible aid in getting dump working under GNUstep.)
1304 * w32gui.h (button_type, widget_value): Remove definitions (now in
1305 keyboard.h).
1306 * window.c: Include nsterm.h when compiling under NS.
1307 * xdisp.c (includes): Include nsterm.h when compiling under NS.
1308 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
1309 other GUI windowing systems.
1310 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
1311 GTK.
1312 (x_consider_frame_title): Under NS, set icon type and frame
1313 modified-state indicator; use ns_set_name_as_filename() when using
1314 formatted title.
1315 (update_window_cursor): Make public when compiling under NS.
1316 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
1317 (hourglass_atimer, Vhourglass_delay
1318 * xfaces.c (header section, init_frame_faces, clear_font_table)
1319 (defined_color, unload_color, x_face_list_fonts)
6ddc6cca
SM
1320 (prepare_face_for_display): Add NS support parallel to other GUIs.
1321 Emulate GCs like other non-X GUIs.
edfda783
AR
1322 (split_font_name): Don't lowercase font name under NS.
1323 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
1324 under NS.
1325 * s/darwin.h: Add support for compilation under NS.
1326
1391cd54
JR
13272008-07-15 Jason Rumney <jasonr@gnu.org>
1328
6ddc6cca
SM
1329 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
1330 (w32_show_hourglass): Rename from show_hourglass.
1331 (w32_hide_hourglass): Rename from hide_hourglass.
1332 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
1333 (Vhourglass_delay): Declare extern.
1334 (hourglass_started): Remove.
1391cd54 1335
6ddc6cca
SM
1336 * xdisp.c (Vhourglass_delay): Remove static.
1337 (hourglass_started, start_hourglass, cancel_hourglass):
1338 Don't include these versions on WINDOWSNT.
1391cd54 1339
1885ab29
AR
13402008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
1341
6ddc6cca 1342 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
20d6dc02 1343 variables (formerly in xfns.c).
1885ab29
AR
1344 (show_hourglass, hide_hourglass): New prototypes (same).
1345 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
1346 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
20d6dc02 1347 in xfns.c).
1885ab29
AR
1348 (syms_of_xdisp): Declare/initialize display-hourglass,
1349 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
1350 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
20d6dc02 1351 formerly in xfns.c.
1885ab29
AR
1352 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
1353 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
1354 (start_hourglass, cancel_hourglass): Remove.
1355 (show_hourglass, hide_hourglass): Remove prototypes and static
1356 modifiers.
1357 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
1358 hourglass_atimer, hourglass_shown_p declaration/initialization.
1359 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
1360 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
1361 (start_hourglass, cancel_hourglass): Remove.
1362 (show_hourglass, hide_hourglass): Remove prototypes and static
1363 modifiers.
1364 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
1365 hourglass_atimer, hourglass_shown_p declaration/initialization.
1366 * w32fns.c (display_hourglass_p, Vhourglass_delay)
1367 (DEFAULT_HOURGLASS_DELAY): Remove.
1368 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
1369 hourglass_shown_p declaration/initialization.
1370
3faa984f
JR
13712008-07-14 Jason Rumney <jasonr@gnu.org>
1372
6ddc6cca
SM
1373 * w32fns.c (w32_get_arg): Remove wrapper function.
1374 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
1375 directly.
1376 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
3faa984f 1377
2f73901f
KH
13782008-07-14 Kenichi Handa <handa@m17n.org>
1379
1380 * xfont.c (xfont_open): Add workaround for X's bug.
1381
11da284d
KH
13822008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
1383
1384 * fontset.c: Include <stdio.h> unconditionally.
1385
944cc4a8
MA
13862008-07-13 Michael Albinus <michael.albinus@gmx.de>
1387
1388 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
1389 for filtering.
1390
bdee2ef3
DN
13912008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
1392
1393 * s/vms.h: Use __GNUC__ instead of _GNUC_.
1394
1395 * m/macppc.h:
1396 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
1397
1398 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
944cc4a8
MA
1399 (SPECIAL_EMACS_INT):
1400 * m/ia64.h (SPECIAL_EMACS_INT):
bdee2ef3
DN
1401 * m/amdx86-64.h (SPECIAL_EMACS_INT):
1402 * s/gnu.h (NLIST_STRUCT):
4342f814 1403 * s/aix4-2.h (X11R5_INHIBIT_I18N):
bdee2ef3
DN
1404 * s/gnu-linux.h (LINUX):
1405 * s/msdos.h (HAVE_FACES):
1406 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
1407
944cc4a8 1408 * systty.h:
bdee2ef3
DN
1409 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
1410 anymore.
1411
bba104c1
DN
14122008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1413
1414 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
1415 always defined as int.
1416
1417 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
1418 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
1419 * s/gnu-linux.h (HAVE_WAIT_HEADER):
1420 * s/freebsd.h (HAVE_WAIT_HEADER):
1421 * s/bsd-common.h (HAVE_UNION_WAIT):
1422 * s/aix4-2.h (HAVE_WAIT_HEADER):
1423 * m/mips.h (HAVE_UNION_WAIT):
1424 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
1425 (COFF, static): Do not define, they are undefined later in the file.
1426
1427 * process.c (update_status): Don't use a union.
1428 (status_convert):
1429 (sigchld_handler): Use int instead of WAITTYPE.
1430
e433031a
CY
14312008-07-12 Chong Yidong <cyd@stupidchicken.com>
1432
1433 * indent.c (Fvertical_motion): Restore hscroll before moving to
1434 goal column.
1435
3bfb4d48
DN
14362008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
1437
1438 * lisp.h: Remove left over code.
1439
e7c9048f
AS
14402008-07-11 Andreas Schwab <schwab@suse.de>
1441
7e770c85
AS
1442 * lisp.h: Fix logic in last change.
1443
e7c9048f
AS
1444 * menu.h: New file.
1445 * menu.c: Include it.
1446 * xmenu.c: Likewise.
1447 * Makefile.in: Update dependencies.
1448
38aaf336
KH
14492008-07-11 Kenichi Handa <handa@m17n.org>
1450
1451 * fontset.c (fontset_from_font): Cancel the previous change.
1452
6e5cb96f
DN
14532008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
1454
1455 * lisp.h:
1456 * w32heap.c:
1457 * emacs.c:
1458 * alloc.c: Replace all references of NO_UNION_TYPE with
1459 USE_LISP_UNION_TYPE.
1460
1461 * m/xtensa.h (NO_UNION_TYPE):
1462 * m/vax.h (NO_UNION_TYPE):
1463 * m/template.h (NO_UNION_TYPE):
1464 * m/sparc.h (NO_UNION_TYPE):
1465 * m/mips.h (NO_UNION_TYPE):
1466 * m/macppc.h (NO_UNION_TYPE):
1467 * m/m68k.h (NO_UNION_TYPE):
1468 * m/iris4d.h (NO_UNION_TYPE):
1469 * m/intel386.h (NO_UNION_TYPE):
1470 * m/ibms390x.h (NO_UNION_TYPE):
1471 * m/ibms390.h (NO_UNION_TYPE):
1472 * m/ibmrs6000.h (NO_UNION_TYPE):
1473 * m/ia64.h (NO_UNION_TYPE):
1474 * m/hp800.h (NO_UNION_TYPE):
1475 * m/arm.h (NO_UNION_TYPE):
1476 * m/amdx86-64.h (NO_UNION_TYPE):
1477 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
1478 defining it the same.
1479
e0f47a68
CY
14802008-07-10 Chong Yidong <cyd@stupidchicken.com>
1481
ba60bd44 1482 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
e0f47a68 1483
c5e7567d
DN
14842008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
1485
4342f814
JB
1486 * fileio.c:
1487 * sysdep.c
1488 * systty.h:
1489 * m/ibmrs6000.h:
1490 * m/iris4d.h:
1491 * s/aix4-2.h:
1492 * s/freebsd.h:
1493 * s/gnu-linux.h:
1494 * s/hpux10-20.h:
1495 * s/hpux11.h:
1496 * s/netbsd.h:
1497 * s/sol2-3.h:
1498 * s/sol2-4.h:
1499 * s/sol2.h:
1500 * s/usg5-4.h:
1501 * s/vms.h: Remove references to unused variables.
c5e7567d 1502
bb658864
AS
15032008-07-10 Andreas Schwab <schwab@suse.de>
1504
1505 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
1506 pattern before matching the generic family.
1507
3d3db608
DN
15082008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
1509
a0ce9ab7 1510 * unexec.c:
3460e0b9
DN
1511 * s/vms.h:
1512 * s/usg5-4-2.h:
1513 * s/sol2-5.h:
1514 * s/freebsd.h:
1515 * s/darwin.h: Remove dead code.
1516
ad76189a
DN
1517 * m/template.h:
1518 * m/sparc.h:
1519 * m/mips.h:
1520 * m/m68k.h:
1521 * m/iris4d.h:
1522 * m/intel386.h:
1523 * m/ibms390x.h:
1524 * m/ibms390.h:
1525 * m/ia64.h:
1526 * m/hp800.h:
1527 * m/arm.h:
1528 * m/amdx86-64.h: Remove dead code and references to unused
1529 and compiler defined symbols.
1530
d2b5bbda
DN
1531 * unexmips.c:
1532 * unexelf.c: Remove references to desupported systems.
1533
40dde9d1
DN
1534 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
1535
21133394
DN
1536 * m/powermac.h: Remove boilerplate comments.
1537 (NO_REMAP): Remove unused definition.
1538
3d3db608
DN
1539 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
1540 define them.
1541
c8e0e16d
KH
15422008-07-10 Kenichi Handa <handa@m17n.org>
1543
1544 * xfont.c (xfont_open): Log the reason of failure.
1545
3cba9369
SM
15462008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
1547
1548 * fontset.c (fontset_get_font_group):
1549 * font.c (font_check_otf): Specify argument types.
1550
73353585
KH
15512008-07-09 Kenichi Handa <handa@m17n.org>
1552
0e17387a
KH
1553 * coding.c (detect_coding_utf_8): Set detect_info->found only when
1554 non-ASCII char is found.
1555
73353585
KH
1556 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
1557 (reorder_font_vector): Change the arg preferred_family to font.
1558 Prefer the spec matching with font.
1559 (fontset_get_font_group): New function.
1560 (fontset_find_font): Change the format of an element of a realized
1561 fontset. Use fontset_get_font_group.
1562 (fontset_font): Try the current fontset, the default fontset, the
1563 fallbacks of the current fonset, and the fallbacks of the default
1564 fontset in this order.
1565 (face_for_char): Delete the shortcut to use the current font.
1566 (fontset_from_font): Don't set fonts for Latin in the fontset.
1567
1568 * font.h (font_make_object, font_match_p): Adjust prototypes.
1569
1570 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
1571
1572 * font.c (font_make_object): New arg entity and pixelsize.
1573 (font_check_otf_features, font_check_otf): New functions.
1574 (font_match_p): Check :lang, :script, and :otf properties.
1575
1576 * xfont.c (xfont_open): Adjust it for the change of
1577 font_make_object.
e5d05978 1578 (xfont_text_extents): Fix initial setting of metrics.
73353585
KH
1579
1580 * ftfont.c (struct ftfont_info): New member index, delete member
1581 fc_charset_idx. Make the member order compatible with struct
1582 xftfont_info.
1583 (fc_charset_table): Change charset names to registry names.
1584 (ftfont_pattern_entity): Delete the args registry and
1585 fc_charset_idx. Change the value of :font-entity property
1586 to (FONTNAME . INDEX). Always set :registry property to
1587 `iso10646-1'.
1588 (struct ftfont_cache_data): New struct.
1589 (ftfont_lookup_cache): New arg for_face.
1590 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
1591 (ftfont_driver): Set the member otf_capability.
1592 (ftfont_get_charset): Adjust it for the change of
1593 fc_charset_table.
1594 (OTF_TAG_SYM): New macro.
1595 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
1596 for the change of fc_charset_table.
1597 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
1598 ftfont_pattern_entity. Add FC_INDEX to objset.
1599 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
1600 and ftfont_pattern_entity.
1601 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
1602 font_make_object, struct ftfont_info.
1603 (ftfont_has_char): Use ftfont_get_fc_charset.
1604 (ftfont_otf_features, ftfont_otf_capability): New functions.
1605 (ftfont_shape): Use ftfont_get_otf.
e5d05978 1606 (ftfont_text_extents): Fix initial setting of metrics.
73353585
KH
1607
1608 * xftfont.c (struct xftfont_info): New member ft_size. Make the
1609 member order compatible with struct ftfont_info.
1610 (xftfont_open): Add FC_CHARSET to the pattern. Set
1611 xftfont_info->ft_size. Don't unlock the face. Check BDF
1612 properties if appropriate.
1613 (xftfont_close): Unlock the face.
1614 (xftfont_anchor_point, xftfont_shape): Deleted.
1615 (syms_of_xftfont): Don't set members anchor_point and shape of
1616 xftfont_driver.
1617
1618 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
1619 font_make_object.
1620
1621 * w32font.c (w32font_open): Adjust it for the change of
1622 font_make_object.
1623 (w32font_open_internal): Don't set properties of font_object here.
1624
7f000038
CY
16252008-07-08 Chong Yidong <cyd@stupidchicken.com>
1626
830aab93
CY
1627 * macfns.c (x_create_tip_frame):
1628 * w32fns.c (x_create_tip_frame):
1629 * xfns.c (x_create_tip_frame): Pass parameter argument to
1630 face-set-after-frame-default.
1631
7f000038
CY
1632 * xfaces.c (Finternal_merge_in_global_face): Save merged
1633 attributes for the default face back into the face vector.
1634
85cf8992
AS
16352008-07-08 Andreas Schwab <schwab@suse.de>
1636
1637 * fontset.h: Declare fontset_from_font. Don't declare
1638 new_fontset_from_font and fontset_from_font_name.
1639 * xterm.c: Include "fontset.h".
1640 * Makefile.in (xterm.o): Update dependencies.
1641
4a00783e
GM
16422008-07-08 Glenn Morris <rgm@gnu.org>
1643
1644 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
1645 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
1646
4d2d5f5f
CY
16472008-07-07 Chong Yidong <cyd@stupidchicken.com>
1648
1649 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
1650 (x_set_frame_parameters): Don't bind it.
1651
dfe66c5b
JB
16522008-07-07 Juanma Barranquero <lekktu@gmail.com>
1653
1654 * w32fns.c (map_w32_filename): Declare extern.
1655
ec7e221c
JR
16562008-07-07 Jason Rumney <jasonr@gnu.org>
1657
dfe66c5b 1658 * w32term.c (WS_EX_LAYERED): Define if not already.
ec7e221c 1659
fe5d61c4
CY
16602008-07-06 Chong Yidong <cyd@stupidchicken.com>
1661
1662 * xfaces.c (set_font_frame_param): Don't try to set the font
1663 parameter if it is still unspecified in the lface.
1664
9204cb8b
CY
16652008-07-05 Chong Yidong <cyd@stupidchicken.com>
1666
0a143d3a
CY
1667 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
1668 face if it didn't already exist.
1669
9204cb8b
CY
1670 * xdisp.c (try_window_id): Give up if word-wrapping is on.
1671
6c95e70d
AS
16722008-07-05 Andreas Schwab <schwab@suse.de>
1673
dfe66c5b 1674 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
6c95e70d 1675
59230395
CY
16762008-07-05 Chong Yidong <cyd@stupidchicken.com>
1677
1678 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
1679 word-wrapping.
1680 (IT_DISPLAYING_WHITESPACE): New macro.
1681 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
1682 when word-wrapping. Simplify word-wrapping logic. Use correct
1683 pixel positions when saving copies of the iterator.
1684 (display_line): Use proper wrap point if the last character on a
1685 line was preceded by whitespace.
1686
d7c664f3
SM
16872008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
1688
1689 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
1690
9ffc8a3a
KH
16912008-07-04 Kenichi Handa <handa@m17n.org>
1692
1693 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
1694
1695 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
1696
946598bf
JR
16972008-07-02 Jason Rumney <jasonr@gnu.org>
1698
d7c664f3
SM
1699 * xfns.c (syms_of_xfns): Only define x-select-font when both
1700 HAVE_FREETYPE and USE_GTK
946598bf 1701
d7c664f3
SM
1702 * xdisp.c (next_element_from_display_vector): Move assignment out
1703 of if statement.
946598bf 1704
6cf29fe8
JR
17052008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
1706
d7c664f3 1707 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
6cf29fe8 1708
d7c664f3
SM
1709 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
1710 (syms_of_fileio): Initialize and export them.
1711 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
6cf29fe8 1712
d7c664f3
SM
1713 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
1714 (Fsystem_move_file_to_trash): New function.
1715 (syms_of_w32fns): Export it to lisp.
6cf29fe8 1716
79ca7db1
JR
17172008-07-01 Jason Rumney <jasonr@gnu.org>
1718
d7c664f3
SM
1719 * w32font.c (w32font_text_extents): Don't count overhang as part
1720 of width.
79ca7db1 1721
c2786a3d 17222008-06-30 Miles Bader <miles@gnu.org>
c4f4682b
MB
1723
1724 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
1725 Add `avoid_cursor_p' field.
1726
1727 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
1728 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
1729 (append_glyph, append_composite_glyph, produce_image_glyph)
c2786a3d
JB
1730 (append_stretch_glyph): Initialize avoid_cursor_p.
1731 (get_it_property): Rename from `get_line_height_property'.
c4f4682b
MB
1732 (x_produce_glyphs): Use get_it_property.
1733 (handle_line_prefix, push_display_prop): New functions.
1734 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
c2786a3d
JB
1735 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
1736 New variables.
c4f4682b
MB
1737 (syms_of_xdisp): Initialize them.
1738
7d7ad10e
KH
17392008-06-30 Kenichi Handa <handa@m17n.org>
1740
1741 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
1742 XftDefaultSubstitute (they are called in XftFontMatch).
1743 (xftfont_open): Fix args to ftfont_font_format.
1744
1745 * ftfont.c (fc_charset_table): New member lang.
1746 (ftfont_resolve_generic_family): New arg pattern.
1747 (ftfont_spec_pattern): Check fc_cahrset_table[]->lang.
1748 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
1749 (ftfont_open): Fix args to ftfont_font_format.
1750 (ftfont_font_format): New arg filename.
1751
44b754c7
CY
17522008-06-30 Chong Yidong <cyd@stupidchicken.com>
1753
1754 * xfaces.c (Finternal_merge_in_global_face): If default face was
1755 modified, realize it again. Update the font face attribute.
1756
a4521b03
JR
17572008-06-29 Jason Rumney <jasonr@gnu.org>
1758
c2786a3d 1759 * w32term.c (x_set_frame_alpha): Fix logic.
a4521b03 1760
fe44f009
KH
17612008-06-29 Kenichi Handa <handa@m17n.org>
1762
1763 * fontset.c (Finternal_char_font): Return font-object instead of
1764 font-name.
1765
c2786a3d 1766 * composite.c (get_composition_id): Fix the width calculation for TAB.
fe44f009 1767
baed8445
SM
17682008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
1769
1770 * indent.c (Fvertical_motion): Properly handle float column arg.
1771
8b61a891
JR
17722008-06-28 Jason Rumney <jasonr@gnu.org>
1773
baed8445
SM
1774 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
1775 (pfnSetLayeredWindowAttributes): New function pointer.
1776 (w32_initialize): Initialize it when supported.
1777 (x_set_frame_alpha): New function.
8b61a891 1778
baed8445
SM
1779 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
1780 (w32_frame_parm_handlers): Set alpha handler.
8b61a891 1781
baed8445 1782 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
8b61a891 1783
57016d37
JR
17842008-06-27 Jason Rumney <jasonr@gnu.org>
1785
baed8445
SM
1786 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
1787 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
1788 (w32_to_x_charset, x_to_w32_charset)
1789 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
1790 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
1791 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
1792 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
1793 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
1794 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
1795 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
1796 (Qw32_charset_unicode): Remove.
1797 (syms_of_w32fns): Update for above changes.
1798
1799 * w32font.c (w32_to_x_charset, x_to_w32_charset)
1800 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
1801 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
1802 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
1803 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
1804 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
1805 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
1806 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
1807 (syms_of_w32font): Update for above changes.
57016d37 1808
d6bf1bdb
DN
18092008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
1810
1811 * s/usg5-4.h: Fix previous change: keep the correct branch of a
1812 removed #if.
9fa1c445 1813 (USG_SHARED_LIBRARIES): Remove duplicate definition.
d6bf1bdb 1814
43db14bb
JB
18152008-06-26 Juanma Barranquero <lekktu@gmail.com>
1816 Eli Zaretskii <eliz@gnu.org>
1817
1818 * makefile.w32-in (LOCAL_FLAGS):
1819 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
1820
1821 * sysdep.c (_spawnlp, _getpid):
1822 Declare with explicit _cdecl instead of _CRTAPI1.
1823
1824 * editfns.c (Fget_internal_run_time):
1825 Check for WINDOWSNT with #ifdef, not #if.
1826
c35f9821
JR
18272008-06-26 Jason Rumney <jasonr@gnu.org>
1828
43db14bb 1829 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
c35f9821 1830
57016d37 1831 * w32term.c (x_draw_glyph_string_foreground)
43db14bb
JB
1832 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
1833 Use FONT_HANDLE macro.
1834 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
c35f9821 1835
57016d37 1836 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
43db14bb 1837 (uniscribe_encode_char): Use FONT_HANDLE macro.
c35f9821 1838
43db14bb
JB
1839 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
1840 (w32font_text_extents): Use precast w32_font.
1841 (w32font_close): Free cached metrics.
1842 (w32font_open_internal): Allocate space for name on stack.
c35f9821 1843
1f8ad719
CY
18442008-06-26 Chong Yidong <cyd@stupidchicken.com>
1845
1846 * xdisp.c (extend_face_to_end_of_line): Fix last change.
1847
97e71655
JR
18482008-06-26 Jason Rumney <jasonr@gnu.org>
1849
43db14bb
JB
1850 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
1851 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
97e71655 1852
c9fc02c7
JB
18532008-06-26 Juanma Barranquero <lekktu@gmail.com>
1854
1855 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
1856
1b5defe6
JR
18572008-06-26 Jason Rumney <jasonr@gnu.org>
1858
c9fc02c7 1859 * w32bdf.c, w32bdf.h: Remove obsolete files.
1b5defe6 1860
c9fc02c7 1861 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
1b5defe6 1862
c9fc02c7
JB
1863 * w32gui.h: Don't include w32bdf.h.
1864 (XCharStruct, enum w32_char_font_type, W32FontStruct):
1865 Remove obsolete font support.
1b5defe6 1866
c9fc02c7
JB
1867 * w32font.h (struct w32font_info): Remove compat_w32_font.
1868 Add hfont member.
1869 (FONT_COMPAT): Remove obsolete macro.
1b5defe6 1870
ba60bd44 1871 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
c9fc02c7 1872 (w32font_encode_char, w32font_text_extents): Use new hfont member.
ba60bd44 1873 (w32font_open_internal): Remove compat code. Set new hfont member.
c9fc02c7 1874 (Fx_select_font): Use new hfont member.
1b5defe6 1875
57016d37 1876 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
c9fc02c7 1877 (uniscribe_encode_char): Use new hfont member.
1b5defe6 1878
57016d37 1879 * w32term.c (x_draw_glyph_string_foreground)
c9fc02c7
JB
1880 (x_draw_composite_glyph_string_foreground): Use new hfont member.
1881 (x_draw_glyph_string): Use metrics in w32font_info.
1b5defe6 1882
1fc66bca
KH
18832008-06-26 Kenichi Handa <handa@m17n.org>
1884
1885 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
1886
f2a77c3a
DN
18872008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
1888
1889 * unexnext.c:
1890 * m/ews4800.h:
1891 * m/hp9000s300.h:
1892 * m/ibm370aix.h:
1893 * m/mips-siemens.h:
1894 * m/ncr386.h:
1895 * m/next.h:
1896 * m/pmax.h:
1897 * m/powerpcle.h:
1898 * m/tandem-s2.h:
1899 * s/386bsd.h:
1900 * s/bsd386.h:
1901 * s/bsd4-1.h:
1902 * s/bsd4-2.h:
1903 * s/bsdos2-1.h:
1904 * s/bsdos2.h:
1905 * s/bsdos3.h:
1906 * s/bsdos4.h:
1907 * s/nextstep.h:
1908 * s/ultrix4-3.h:
1909 * s/usg5-0.h:
1910 * s/usg5-2-2.h:
1911 * s/usg5-2.h:
1912 * s/usg5-4-3.h:
1913 * s/ux4800.h:
1914 * s/uxpds.h:
1915 * s/uxpv.h: Remove support for obsolete systems.
1916 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
4342f814 1917 Remove, insert contents in s/hpux-10.20.h.
f2a77c3a 1918 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
4342f814 1919 Remove, insert contents in s/aix4-2.h.
f2a77c3a 1920 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
4342f814 1921 * s/bsd4-3.h: Rename to ...
f2a77c3a 1922 * s/bsd-common.h: ... this.
4342f814
JB
1923 * data.c:
1924 * doc.c:
1925 * ecrt0.c:
1926 * emacs.c:
1927 * fileio.c:
1928 * floatfns.c:
1929 * keyboard.c:
1930 * mem-limits.h:
1931 * print.c:
1932 * process.c:
1933 * sysdep.c:
1934 * syssignal.h:
1935 * systty.h:
1936 * syswait.h:
1937 * term.c:
1938 * unexec.c:
1939 * unexelf.c:
1940 * unexhp9k800.c:
1941 * m/hp800.h:
1942 * m/ibmrs6000.h:
1943 * m/mips.h:
1944 * m/vax.h:
1945 * s/darwin.h:
1946 * s/freebsd.h:
1947 * s/gnu.h:
1948 * s/ms-w32.h:
1949 * s/msdos.h:
1950 * s/netbsd.h:
1951 * s/template.h: Remove references to obsolete variables.
f2a77c3a
DN
1952
1953 * Makefile.in: Add dependencies for all unexec files.
1954 (admindir): Remove unused variable.
1955 (UNEXEC_SRC): Remove references.
1956
bd02793a
CY
19572008-06-25 Chong Yidong <cyd@stupidchicken.com>
1958
1959 * xfns.c (x_default_font_parameter): If Xft is available, first
1960 try Monospace-12 for the default font.
1961
ccedd259
JR
19622008-06-25 Jason Rumney <jasonr@gnu.org>
1963
c9fc02c7 1964 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
ccedd259 1965
fbe062b7
SM
19662008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
1967
603a0937
SM
1968 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
1969
fbe062b7
SM
1970 * buffer.c (syms_of_buffer): Remove default-word-wrap.
1971
69785ad0
JB
19722008-06-25 Juanma Barranquero <lekktu@gmail.com>
1973
1974 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
1975 <scroll-conservatively>: Fix typo in docstring.
1976
1977 * xselect.c (Fx_send_client_event): Doc fix.
1978
249e6f76
KH
19792008-06-25 Kenichi Handa <handa@m17n.org>
1980
34e97272
KH
1981 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
1982
1983 * font.c (font_parse_fcname): Remove unused variables.
69785ad0
JB
1984 (font_sort_entites): Delete the arg SPEC. Caller changed.
1985 Fix for the case of ! best_only.
34e97272
KH
1986 (font_delete_unmatched): Check DPI and AVGWIDTH too.
1987
249e6f76
KH
1988 * lisp.h (Fstring_to_unibyte): EXFUN it.
1989
69785ad0 1990 * character.h (str_to_unibyte): Extern it.
249e6f76
KH
1991
1992 * character.c (str_to_unibyte): New function.
1993
1994 * fns.c (Fstring_to_unibyte): New function.
1995 (syms_of_fns): Defsubr it.
1996
65c108e4
KH
19972008-06-24 Kenichi Handa <handa@m17n.org>
1998
1999 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
2000 DPI too.
2001 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
2002
4c3f18fe
AS
20032008-06-24 Andreas Schwab <schwab@suse.de>
2004
69785ad0 2005 * Makefile.in (${lispsource}loaddefs.el): Rename from
4c3f18fe 2006 ../lisp/loaddefs.el.
fd13748d
AS
2007 (bootstrap-clean): Do what distclean does but don't remove
2008 Makefile.
2009 (distclean): Depend on bootstrap-clean and remove Makefile.
4c3f18fe 2010
faa6190f
CY
20112008-06-24 Chong Yidong <cyd@stupidchicken.com>
2012
2013 * buffer.h (struct buffer): New member word_wrap.
2014
2015 * buffer.c (syms_of_buffer): New variables default-word-wrap and
2016 word-wrap.
2017 (init_buffer_once): Initialize them.
2018
2019 * dispextern.h (struct it): Replace bool truncate_lines_p with a
2020 line_wrap enum possessing three possible values.
2021
2022 * termopts.h: Replace truncate_partial_width_windows with
2023 Vtruncate_partial_width_windows.
2024
2025 * dispnew.c (direct_output_for_insert): Avoid direct output when
2026 inserting a space with word wrap on.
2027
2028 * indent.c (compute_motion): Obey integer values of
2029 truncate-partial-width-windows.
2030
2031 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
2032 replacing truncate_partial_width_windows.
2033 (init_iterator): If Vtruncate_partial_width_windows is an integer,
2034 truncate only if the window width is below that integer.
ba60bd44 2035 (start_display, resize_mini_window, produce_stretch_glyph)
faa6190f
CY
2036 (display_string, move_it_in_display_line_to): Use line_wrap.
2037 (back_to_previous_visible_line_start, reseat_1): Reset
2038 string_from_display_prop_p.
2039 (display_line): Extend default face to end of line when wrapping.
2040
20412008-06-24 Kim F. Storm <storm@cua.dk>
2042
2043 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
2044 to wrap continued lines at word boundaries.
2045
c3bb5465
JR
20462008-06-24 Jason Rumney <jasonr@gnu.org>
2047
69785ad0
JB
2048 * font.c (Ffont_face_attributes): Multiply pixel size before point
2049 conversion to avoid multiplying rounding error.
c3bb5465 2050
0b07ad98
JR
20512008-06-23 Jason Rumney <jasonr@gnu.org>
2052
f245f2c6
JB
2053 * w32term.c (x_draw_glyph_string_background)
2054 (x_draw_glyph_string): Remove old bdf font code.
0b07ad98 2055
69785ad0 2056 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
0b07ad98 2057
22459668
KH
20582008-06-22 Kenichi Handa <handa@m17n.org>
2059
2060 * font.c (font_find_for_lface): Try the adstyle specified in
2061 the property of LFACE_FONT of LFACE (if any).
2062
d925a426 20632008-06-21 Seiji Zenitani <zenitani@mac.com>
f245f2c6 2064 Ryo Yoshitake <ryo@shiftmode.net>
d925a426
SM
2065
2066 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
2067
b4945b95
SM
20682008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
2069
2070 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
2071 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
2072 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
2073 (witness-emacs): Remove.
2074 (lisp, shortlisp): Move loaddefs.el earlier.
2075 (mostlyclean): Forget about witness-emacs.
2076
64124279
GM
20772008-06-22 Glenn Morris <rgm@gnu.org>
2078
2079 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
36565815 2080 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
64124279 2081
768efd84
SM
20822008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
2083
2084 * Makefile.in (PRECOMP): Remove.
2085 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
2086 (witness-emacs): Run `compile-first'.
2087 (.el.elc): Use the new compile-onefile target.
2088
808dd567
KH
20892008-06-21 Kenichi Handa <handa@m17n.org>
2090
2091 * xftfont.c (xftfont_open): Handle QCembolden only when
2092 FC_EMBOLDEN is defined.
2093
0de59eae
AS
20942008-06-21 Andreas Schwab <schwab@suse.de>
2095
2096 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
58e8833b 2097 (.el.elc): Likewise.
0de59eae 2098
fb38e9c9
MB
20992008-06-21 Miles Bader <miles@gnu.org>
2100
2101 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
2102 build dir, not the lisp source dir.
2103
fc46d219
SM
21042008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
2105
2106 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
2107 (bootstrapclean): Remove.
2108 (.el.elc): New rule.
2109 (PRECOMP): New var.
2110 (../lisp/subdirs.el): Remove.
2111 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
2112 (witness-emacs): New target.
2113 (mostlyclean): Remove witness-emacs as well.
2114 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
2115 Add witness-emacs dependency.
2116
eaf1f6e7
CY
21172008-06-20 Chong Yidong <cyd@stupidchicken.com>
2118
2119 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
2120 defined by the font.
2121
49f6eb95
SM
21222008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
2123
2124 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
2125 (bootstrap-clean): New target that keeps TAGS around.
2126 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
2127 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
2128
4c100a01
JR
21292008-06-20 Jason Rumney <jasonr@gnu.org>
2130
49f6eb95
SM
2131 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
2132 Remove obsolete font code.
db61a7f8 2133
49f6eb95
SM
2134 * w32font.c (font_matches_spec): Use csb bitfield from font signature
2135 to determine language support.
4c100a01 2136
759d3f32
SM
21372008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
2138
2139 * sysdep.c (cfsetspeed): New fun extracted from the code.
2140 (cfmakeraw): Move before first use.
2141
25241b4d
SM
21422008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
2143
2144 * sysdep.c (cfmakeraw): Provide fallback implementation.
2145 (serial_configure): Provide fallback implementation of cfsetspeed.
2146
d7afccca
KH
21472008-06-20 Kenichi Handa <handa@m17n.org>
2148
dc2226d0
KH
2149 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
2150 the pattern.
2151
9b9cd864
KH
2152 * fontset.c (fontset_from_font): Copy font_spec before changing
2153 the elements.
2154
d7afccca
KH
2155 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
2156
770e2e6e
SM
21572008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
2158
2159 * w32fns.c, xfnc.c (x_default_font_parameter): Only set `font-param'
2160 for explicit `font' parameters.
2161
2162 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
2163
22e64f7c
KH
21642008-06-19 Kenichi Handa <handa@m17n.org>
2165
2166 * frame.c: Include <ctype.h>.
2167 (x_set_font_backend): Allow spacing characters in the X resource
2168 for FontBackend.
2169
27129af9
SM
21702008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
2171
2172 * w32fns.c, xfns.c (Qfont_param): New var.
2173 (syms_of_w32fns): Initialize it.
22e64f7c
KH
2174 (x_default_font_parameter): Record explicit `font' into
2175 `font-parameter'.
27129af9 2176
d26424c5
KH
21772008-06-18 Kenichi Handa <handa@m17n.org>
2178
2179 * font.c (font_parse_xlfd): Fix previous change.
2180 (font_parse_fcname): Don't use :fc-unknown-spec.
2181 (FRAME_X_DISPLAY_INFO): Besure to have at least 1 pixel height.
2182 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
2183 (font_add_log): Prepend the driver name to the resulting fonts.
2184
2185 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
2186 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
2187 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
2188
2189 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
2190 (QCembolden): New variables.
2191 (syms_of_xftfont): DEFSYM them.
2192 (xftfont_open): Call XftFontMatch. Don't trust the result of
2193 XftTextExtents8 if the pixel_size is less than 5.
2194
51cf11be
AS
21952008-06-18 Andreas Schwab <schwab@suse.de>
2196
f245f2c6 2197 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
51cf11be
AS
2198 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
2199
07d9ba9b
JR
22002008-06-18 Jason Rumney <jasonr@gnu.org>
2201
27129af9 2202 * w32font.c (w32font_list, w32font_match): Add logging.
07d9ba9b 2203
4342f814 2204 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
07d9ba9b 2205
0c36bc4e
CY
22062008-06-17 Chong Yidong <cyd@stupidchicken.com>
2207
2208 * font.c (font_parse_fcname): Store divider characters for
1578da31
CY
2209 unknown-spec list. For known key symbols, intern using correct
2210 symbol name.
0c36bc4e 2211
70d6ecc6
KH
22122008-06-17 Kenichi Handa <handa@m17n.org>
2213
2214 * xfaces.c (realize_default_face): If the frame is not on window
2215 system, set the fontset of face to nil.
2216
821bc4db
KH
22172008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
2218
f245f2c6 2219 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
821bc4db 2220
3554e566
JB
22212008-06-16 Juanma Barranquero <lekktu@gmail.com>
2222
2223 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
2224 (build_font_name_from_vector): Delete externs.
2225
2226 * xfaces.c (struct font_name): Don't declare.
2227
93eed26b
SM
22282008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
2229
2230 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
2231
d756bcd0
CY
22322008-06-16 Chong Yidong <cyd@stupidchicken.com>
2233
2234 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
2235
7a18a178
JB
22362008-06-16 Juanma Barranquero <lekktu@gmail.com>
2237
2238 * font.c (Ffont_spec): Fix usage in docstring.
48105a6a 2239 (Ffont_face_attributes): Doc fix.
7a18a178 2240
6f568955
AS
22412008-06-16 Andreas Schwab <schwab@suse.de>
2242
2243 * font.c (Ffont_face_attributes): Fix definition.
2244
3ef8c1b4
JR
22452008-06-16 Jason Rumney <jasonr@gnu.org>
2246
93eed26b 2247 * font.h (font_style_symbolic_from_value): Remove.
3ef8c1b4 2248
93eed26b
SM
2249 * font.c (font_style_symbolic_from_value): Remove.
2250 (font_style_symbolic): Revert to pre 2008-06-13 version.
3ef8c1b4 2251
93eed26b
SM
2252 * w32font.c (w32_to_fc_weight): New function.
2253 (w32font_full_name, logfont_to_fcname): Use it.
3ef8c1b4 2254
5e634ec9
KH
22552008-06-16 Kenichi Handa <handa@m17n.org>
2256
2257 * font.c (font_check_object): Delete it.
2258 (font_clear_cache): Check if a font-object is alive.
2259 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
2260 font-object to nil.
2261 (font_close_object): Don't check FONT_CLOSE_OBJECT.
2262 (font_at): Don't call font_check_object.
2babb359 2263 (Ffont_get): Return a symbol for :weight, :slant, and :width.
5e634ec9 2264
6409a955
KY
22652008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
2266
2267 * puresize.h (BASE_PURESIZE): Increase to 1230000.
2268
ce4eaddb
CY
22692008-06-16 Chong Yidong <cyd@stupidchicken.com>
2270
2271 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
2272
523dbe64
CY
22732008-06-15 Chong Yidong <cyd@stupidchicken.com>
2274
54b2ab27 2275 * font.c (font_parse_fcname): Only one decimal point.
523dbe64
CY
2276 (font_unparse_fcname): Handle data in family and foundry indices
2277 as symbols, not strings.
2278 (font_unparse_gtkname, Ffont_face_attributes): New functions.
2279
54b2ab27 2280 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
523dbe64
CY
2281
2282 * font.h (font_unparse_gtkname): Add prototype.
2283
9f296082
KH
22842008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
2285
54b2ab27 2286 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
9f296082 2287
3306c6dc
AS
22882008-06-15 Andreas Schwab <schwab@suse.de>
2289
2290 * font.c (font_update_drivers): Fix crash when no drivers match.
2291
a099c27a
SM
22922008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
2293
2294 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
2295 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
2296
a8aa344d
SM
22972008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
2298
2299 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
2300
a879ee6f
SM
23012008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
2302
2303 * process.c (Fserial_process_configure, Fprocess_send_eof):
2304 Use EQ to compare Lisp_Objects.
2305
6fe9826d
JR
23062008-06-13 Jason Rumney <jasonr@gnu.org>
2307
a879ee6f 2308 * w32fns.c (Fw32_select_font): Remove old font API function.
6fe9826d 2309
a879ee6f
SM
2310 * w32font.c (logfont_to_fcname): New function.
2311 (Fx_select_font): New font dialog function compatible with
2312 GTK/fontconfig version.
6fe9826d 2313
a879ee6f
SM
2314 * font.c (font_style_symbolic_from_value): New function.
2315 (font_style_symbolic): Use it.
6fe9826d 2316
a879ee6f 2317 * font.h (font_style_symbolic_from_value): Declare new function.
6fe9826d 2318
17ab8f5d
JB
23192008-06-13 Juanma Barranquero <lekktu@gmail.com>
2320
2321 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
2322 <font-width-table>: Fix typos in docstrings.
2323
d888760c
GM
23242008-06-13 Daniel Engeler <engeler@gmail.com>
2325
2326 These changes add serial port access.
2327 * process.c: Add HAVE_SERIAL.
2328 (Fdelete_process, Fprocess_status, Fset_process_buffer)
2329 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
2330 (list_processes_1, select_wrapper, Fstop_process)
2331 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
2332 (status_notify): Modify to handle serial processes.
2333 [HAVE_SERIAL] (Fserial_process_configure)
2334 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
2335 New functions.
2336 * process.h (struct Lisp_Process): Add `type'.
2337 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
2338 New functions.
2339 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
2340 serial ports.
2341 (serial_open, serial_configure) New functions.
2342 * w32.h: Add FILE_SERIAL.
2343 (struct _child_process): Add ovl_read, ovl_write.
2344
f4cc0153
KH
23452008-06-13 Kenichi Handa <handa@m17n.org>
2346
2347 * dispextern.h (enum lface_attribute_index): New member
2348 LFACE_FOUNDRY_INDEX.
2349
2350 * font.c (font_score): Delete arg alternate_families. Check only
7a18e381 2351 weight, slant, width, and size. Ignore the difference of alias
f4cc0153 2352 style symbols.
7a18e381 2353 (font_sort_entites): Adjust for the above change. Reflect the
f4cc0153
KH
2354 order of font-driver to scores.
2355 (font_list_entities): Don't check alternate_familes here.
2356 (font_clear_prop): Handle foundry.
2357 (font_update_lface): Don't parse "foundry-family" form here.
2358 Handle FONT_FOUNDRY_INDEX.
2359 (font_find_for_lface): Likewise. Handle alternate families here.
a879ee6f 2360 If registry is nil, try iso8859-1 and ascii-0.
f4cc0153 2361 (font_open_for_lface): Pay attention to size in ENTITY.
7a18e381 2362 (font_open_by_name): Simplify by calling font_load_for_lface.
f4cc0153
KH
2363 (free_font_driver_list): Delete it.
2364 (font_update_drivers): Preserve the order of backends.
2365 (syms_of_font): Setting of sort_shift_bits adjusted for the change
2366 of font_score and font_sort_entites.
2367 (font_update_sort_order): Likewise.
2368
2369 * xfaces.c (LFACE_FOUNDRY): New macro.
2370 (check_lface_attrs): Check foundry.
7a18e381 2371 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
f4cc0153
KH
2372 (merge_face_vectors): Check foundry.
2373 (merge_face_ref): Likewise.
2374 (Finternal_set_lisp_face_attribute): Likewise.
2375 (x_update_menu_appearance): Likewise.
2376 (Finternal_get_lisp_face_attribute): Likewise.
2377 (lface_hash): Likewise.
2378 (lface_same_font_attributes_p): Likewise.
2379 (x_supports_face_attributes_p): Likewise.
2380 (tty_supports_face_attributes_p): Likewise.
2381 (Finternal_set_alternative_font_family_alist): Intern strings.
2382 (Finternal_set_alternative_font_registry_alist): Downcase strings.
2383 (realize_default_face): Set LFACE_FOUNDRY (lface).
2384
2385 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
2386 font-driver at first.
2387
2388 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
2389
d434fef5 23902008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
97dead2d
JM
2391
2392 * lread.c (Fload): Use xfree, not free on saved_doc_string.
2393
9c5e177e
JM
23942008-06-12 Jim Meyering <meyering@redhat.com>
2395
d434fef5 2396 Make unexec_free handle NULL the same way free does.
9c5e177e
JM
2397 * unexmacosx.c (unexec_free): Ignore a NULL argument.
2398
2afc21f5
SM
23992008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
2400
2401 * character.h (CHAR_TO_BYTE_SAFE): New macro.
2402 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
2403 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
2404 (WEAK_ALIAS): Simplify.
2405 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
2406 when searching a unibyte buffer.
2407
76c0de62
CY
24082008-06-12 Chong Yidong <cyd@stupidchicken.com>
2409
2410 * xfns.c (Fx_select_font): Rename from x-font-dialog.
2411
0500dcc9
JB
24122008-06-12 Juanma Barranquero <lekktu@gmail.com>
2413
2414 * w32font.c: Include ctype.h.
2415
f42adef6
JR
24162008-06-11 Jason Rumney <jasonr@gnu.org>
2417
2afc21f5
SM
2418 * w32font.c (w32font_encode_char): Detect missing glyphs that are
2419 misreported as space.
2420 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
2421 as aliases for registry iso10646-1.
f42adef6 2422
4b7cdc0e
SM
24232008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
2424
2425 * buffer.c (clone_per_buffer_values): Skip `name'.
2426
cc02ebe1
CY
24272008-06-11 Chong Yidong <cyd@stupidchicken.com>
2428
2429 * font.c (font_parse_fcname): Fix last change; accept decimal
2430 points in font size.
2431
351ccb76
JR
24322008-06-10 Jason Rumney <jasonr@gnu.org>
2433
0500dcc9
JB
2434 * w32uniscribe.c (add_opentype_font_name_to_list):
2435 Skip non unicode fonts.
351ccb76 2436
f473ed6f
CY
24372008-06-10 Chong Yidong <cyd@stupidchicken.com>
2438
2439 * xfns.c (Fx_font_dialog): New function.
2440
5d6333d5 2441 * gtkutil.c (xg_dialog_response_cb): Rename from
f473ed6f
CY
2442 xg_file_response_callback.
2443 (pop_down_dialog): Rename from pop_down_file_dialog.
2444 (xg_get_file_name): Callers changed.
2445 (xg_get_font_name): New function.
2446
5d6333d5 2447 * gtkutil.h (xg_get_font_name): Insert prototype.
f473ed6f 2448
2a3bd2e1
SM
24492008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
2450
2451 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
2452 x_underline_minimum_display_offset.
2453 (syms_of_xdisp): Declare it here rather than in xterm.c.
2454 * dispextern.h (underline_minimum_offset): Declare it.
2455 * w32term.c (x_draw_glyph_string): Use it.
2456 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
2457 (syms_of_xterm): Don't declare it any more.
2458 (x_draw_glyph_string): Adjust to the new name.
2459
d5dc6163
SM
24602008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
2461
2462 * xterm.c (x_underline_minimum_display_offset): New var.
2463 (x_draw_glyph_string): Use it.
2464 (syms_of_xterm): Declare it.
2465
0abdd197
CY
24662008-06-10 Chong Yidong <cyd@stupidchicken.com>
2467
2468 * font.c (font_parse_fcname): Accept GTK-style font names too.
2469
a1562258
SM
24702008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
2471
928b5acc
SM
2472 * dired.c (file_name_completion): Don't return t if the match is exact
2473 but with different capitalization.
2474 * minibuf.c (Ftry_completion): Simplify.
2475
a1562258
SM
2476 * window.c (Vwindow_point_insertion_type): New var.
2477 (set_window_buffer): Use it.
2478 (syms_of_window): Init and export it to Lisp.
2479
9552dbd1
KH
24802008-06-10 Kenichi Handa <handa@m17n.org>
2481
2482 * font.h (font_intern_prop): Prototype adjusted.
2483
2484 * font.c (font_intern_prop): New arg force_symbol.
a1562258
SM
2485 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
2486 Adjust for the change of font_intern_prop.
9552dbd1 2487
a1562258
SM
2488 * ftfont.c (ftfont_pattern_entity):
2489 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
2490 (w32_registry):
2491 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
9552dbd1
KH
2492 the change of font_intern_prop.
2493
8993ad2e
JB
24942008-06-09 Juanma Barranquero <lekktu@gmail.com>
2495
2496 * w32menu.c (digest_single_submenu): Declare extern.
2497
0c2258fc
JR
24982008-06-09 Jason Rumney <jasonr@gnu.org>
2499
a1562258 2500 * w32term.c (x_make_frame_visible): Use alternate restore flags.
12f71857 2501
a1562258
SM
2502 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
2503 (parse_single_submenu): Remove.
2504 (digest_single_submenu): Remove.
2505 (syms_of_w32menu): Don't initialise variables that have moved
2506 to menu.c.
2507 (set_frame_menubar): Sync with version in xmenu.c.
2508 (w32_menu_show): Sync with xmenu_show in xmenu.c.
593c843c 2509
8993ad2e
JB
2510 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
2511 Make static again.
0c2258fc 2512
02246cb8
JR
25132008-06-09 Jason Rumney <jasonr@gnu.org>
2514
8993ad2e
JB
2515 Changes to w32 files related to the move of common menu code
2516 to menu.c on 2008-06-08 by Chong Yidong.
2517
2518 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
2519 defs to w32gui.h.
2520 (single_keymap_panes, push_menu_item, push_menu_pane):
2521 Make globally visible.
2522
d434fef5
JB
2523 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
2524 (local_free, malloc_widget_value, free_widget_value)
2525 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
2526 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
2527 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
8993ad2e 2528 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
d434fef5 2529 (menu_items, menu_items_allocated, menu_items_used)
8993ad2e
JB
2530 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
2531 (init_menu_items, finish_menu_items, discard_menu_items)
2532 (grow_menu_items, push_submenu_start, push_submenu_end)
2533 (push_left_right_boundary, push_menu_pane, push_menu_item)
2534 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
d434fef5 2535 (free_menubar_widget_tree_value, parse_single_submenu)
8993ad2e
JB
2536 (update_submenu_strings): Remove functions.
2537 (xmalloc_widget_value): Remove and declare extern.
2538
2539 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
2540 (OBJ1): Build it.
2541
2542 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
2543 (local_heap, local_alloc, local_free, malloc_widget_value)
2544 (free_widget_value): Define here.
02246cb8 2545
9e1bb909
KH
25462008-06-09 Kenichi Handa <handa@m17n.org>
2547
366664ad
KH
2548 * font.h (Qascii_0): Extern it.
2549
9e1bb909
KH
2550 * font.c (Qascii_0): New variable.
2551 (syms_of_font): DEFSYM it.
2552 (font_open_by_name): If the registry "iso8859-1" fails, try also
2553 "ascii-0".
2554
2555 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
2556
b2ee479e
KH
25572008-06-08 Kenichi Handa <handa@m17n.org>
2558
8f440b79 2559 * .gdbinit (xfont): New command.
b2ee479e 2560
01ef9d36
AS
25612008-06-08 Andreas Schwab <schwab@suse.de>
2562
a4240420
AS
2563 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
2564 * Makefile.in (menu.o): Update dependencies.
2565
0181bf66 2566 * Makefile.in (obj): Always add menu.o.
01ef9d36
AS
2567 * emacs.c (main): Always call syms_of_menu.
2568 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
2569
c07cbae6
CY
25702008-06-08 Chong Yidong <cyd@stupidchicken.com>
2571
2572 * Makefile.in: Compile menu.c.
2573
2574 * lisp.h: Declare syms_of_menu.
2575
2576 * emacs.c (main): Call syms_of_menu.
2577
2578 * keyboard.h: Relocate platform-independent menu definitions from
2579 xmenu.c.
2580
2581 * menu.c: New file. Relocate platform-independent menu
904d8c69 2582 definitions from xmenu.c. Suggested by Adrian Robert.
c07cbae6
CY
2583
2584 * xmenu.c: Remove platform-independent menu definitions.
2585 (menu_items menu_items_inuse, menu_items_allocated)
2586 (menu_items_used, menu_items_n_panes)
2587 (menu_items_submenu_depth): Move to keyboard.h.
2588 (init_menu_items, finish_menu_items, unuse_menu_items)
2589 (discard_menu_items, restore_menu_items, save_menu_items)
2590 (grow_menu_items, push_submenu_start, push_submenu_end)
2591 (push_left_right_boundary, push_menu_pane, push_menu_item)
2592 (keymap_panes, single_keymap_panes, single_menu_item)
2593 (list_of_panes, list_of_items, find_and_call_menu_selection)
2594 (xmalloc_widget_value, free_menubar_widget_value_tree)
2595 (parse_single_submenu, digest_single_submenu)
2596 (update_submenu_strings): Move to menu.c.
2597
4958ed94
SM
25982008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
2599
2600 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
2601
408b8ab4
MB
26022008-06-06 Miles Bader <miles@gnu.org>
2603
2604 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
2605 face, not frame default.
2606
87478b52
SM
26072008-06-05 Martin Rudalics <rudalics@gmx.at>
2608
2609 * window.c (pop_up_windows, pop_up_frames)
2610 (display_buffer_reuse_frames, Vpop_up_frame_function)
2611 (Vdisplay_buffer_function, Veven_window_heights)
2612 (Vspecial_display_buffer_names, Vspecial_display_regexps)
2613 (Vspecial_display_function, Vsame_window_buffer_names)
2614 (Vsame_window_regexps, split_height_threshold)
2615 (Vsplit_window_preferred_function): Move those vars to window.el.
2616 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
2617 (Fdisplay_buffer): Move those functions to window.el.
2618 (syms_of_window): Remove corresponding declarations.
2619 (display_buffer): New function.
2620 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
2621 * dispnew.c (Flast_nonminibuf_frame): New function.
2622 * buffer.c (Fpop_to_buffer): Move to window.el.
2623
9e0e0d77
SM
26242008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
2625
2626 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
2627
4a485df8
KH
26282008-06-05 Kenichi Handa <handa@m17n.org>
2629
2630 * coding.c (detect_coding): Fix previous change.
2631 (detect_coding_system): Likewise.
2632
8ba31f36
SM
26332008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
2634
c0dc8f64
SM
2635 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
2636
8ba31f36
SM
2637 * keymap.c (Vminibuffer_local_filename_must_match_map):
2638 Rename from Vminibuffer_local_must_match_filename_map.
2639 (syms_of_keymap):
2640 * minibuf.c (Fcompleting_read): Adjust accordingly.
2641 * commands.h: Rename declaration as well.
2642
7740d2c7
KH
26432008-06-05 Kenichi Handa <handa@m17n.org>
2644
e7438ece
KH
2645 * font.c (Ffont_spec): Don't use font_parse_family_registry for
2646 family name.
2647 (Ffont_put): Likewise.
2648
2649 * fontset.c (fontset_find_font): Call font_open_for_lface with the
2650 current font-spec.
2651
7740d2c7
KH
2652 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
2653 is unspecified.
2654
2655 * xfaces.c (realize_x_face): If the font-related face attributes
e7438ece
KH
2656 are the same as those of default face, realize a new fontset from
2657 default->fontset.
9e0e0d77 2658 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
7740d2c7 2659
c876b227
SM
26602008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
2661
2662 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
2663 (move_it_in_display_line): New wrapper.
2664
2665 * window.c (window_scroll_pixel_based_preserve_x)
2666 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
2667 (window_scroll_pixel_based, window_scroll_line_based):
2668 Use them to preserve column positions.
2669 (syms_of_window): Initialize them.
2670
2671 * indent.c (Fvertical_motion): Extend first arg to allow passing an
2672 (HPOS . VPOS) pair.
2673
2674 * dispextern.h (move_it_in_display_line): Declare.
2675
927abf37
JB
26762008-06-05 Juanma Barranquero <lekktu@gmail.com>
2677
2678 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
2679 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
2680 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
2681
9d14503e
JB
26822008-06-04 Juanma Barranquero <lekktu@gmail.com>
2683
2684 * window.c (Fset_window_parameter): Doc fix.
2685 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
2686
e6841c3b
JB
26872008-06-04 Joakim Verona <joakim@verona.se>
2688
2689 * window.h (struct window): Add new member window_parameters.
2690
2691 * window.c (Fwindow_parameters, Fwindow_parameter)
2692 (Fset_window_parameter): New defuns.
2693 (syms_of_window): Defsubr the new defuns.
2694 (make_window): Initialize window_parameters to nil.
2695
4ba50634
JPW
26962008-06-04 John Paul Wallington <jpw@pobox.com>
2697
2698 * eval.c (Fdefmacro): Doc fix.
2699
c0e16b14
KH
27002008-06-04 Kenichi Handa <handa@m17n.org>
2701
2702 * coding.c (detect_coding): Fix handling of coding->head_ascii.
9e0e0d77 2703 Be sure to call setup_coding_system when we find a proper coding system.
c0e16b14
KH
2704 (detect_coding_system): Fix handling of coding->head_ascii.
2705
0615d903
AS
27062008-06-03 Andreas Schwab <schwab@suse.de>
2707
2708 * font.c (font_prop_validate_spacing): Fix last change.
2709
8a1816bb
KH
27102008-06-03 Kenichi Handa <handa@m17n.org>
2711
eea9c5c4
KH
2712 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
2713 (font_parse_fcname): Fix handling of unknown key.
2714
2715 * xfont.c (xfont_list): Try an alias.
2716
8a1816bb
KH
2717 * charset.c (char_charset): Return NULL if the arg charset_list is
2718 specified and C doesn't belong to any of them.
2719
2f593f4c 27202008-06-02 Chip Coldwell <coldwell@redhat.com>
6c5e8775
CY
2721
2722 * font.c (font_pixel_size): Don't take cdr of an integer.
2723
c2cd06e6
JM
27242008-06-02 Jim Meyering <meyering@redhat.com>
2725
70fdbb46
JM
2726 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
2727 * alloc.c (xfree): Return right away for a NULL arg.
2728 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
2729 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
2730 * mac.c (create_apple_event_from_event_ref): Likewise.
2f593f4c
JB
2731 (create_apple_event_from_drag_ref, cfstring_create_normalized):
2732 Likewise.
70fdbb46
JM
2733 * doprnt.c (doprnt1): Likewise.
2734 * frame.c (frame): Likewise.
2735 * keyboard.c (wipe_kboard): Likewise.
1f204af3 2736 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
70fdbb46
JM
2737 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
2738 * term.c (tty_default_color_capabilities, maybe_fatal)
2739 (delete_tty): Likewise.
2740 * w16select.c (string): Likewise.
2741 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
2742 * w32bdf.c (w32_free_bdf_font): Likewise.
2743 * w32fns.c (w32_unload_font): Likewise.
2744 * w32font.c (w32font_close): Likewise.
2745 * window.c (size_window): Likewise.
2746 * xselect.c (receive_incremental_selection): Likewise.
2747 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
2748 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
2749 * w32.c (stat): Likewise.
2750
2f593f4c 2751 Remove useless if-before-free tests.
70fdbb46
JM
2752 * editfns.c (Fset_time_zone_rule): Likewise.
2753 * lread.c (nosuffix): Likewise.
2754 * ralloc.c (get_bloc): Likewise.
2755 * regex.c (reg_free): Likewise.
2756 * xftfont.c (xftfont_open, xftfont_close): Likewise.
2757 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
2758 * xsmfns.c (smc_save_yourself_CB): Likewise.
c2cd06e6 2759
4fc1984a
KH
27602008-06-02 Kenichi Handa <handa@m17n.org>
2761
1d1e1245
KH
2762 * font.c (font_find_for_lface): Handle float font size.
2763 (font_open_for_lface): Likewise.
2764
4fc1984a
KH
2765 * xfaces.c (x_supports_face_attributes_p): Check face->font before
2766 comparing the properties.
2767
aee986fd
JR
27682008-06-01 Jason Rumney <jasonr@gnu.org>
2769
e6841c3b
JB
2770 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
2771 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
2772 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
2773 Don't add empty script list.
2774 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
aee986fd 2775
60a3d7ee
DN
27762008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
2777
aee986fd 2778 * Makefile.in (dot, dotdot): Remove, update users.
60a3d7ee
DN
2779 ".." has been used elsewhere in the file for a long time.
2780 (LIBXT_STATIC): Remove conditional based on unused variable.
2781
f2cec7a9
MB
27822008-06-01 Miles Bader <miles@gnu.org>
2783
2784 * xfaces.c (Vface_remapping_alist): New variable.
2785 (syms_of_xfaces): Initialize it.
2786 (enum named_merge_point_kind): New type.
2787 (struct named_merge_point): Add `named_merge_point_kind' field.
2788 (push_named_merge_point): Make cycle detection respect different
2789 named-merge-point kinds.
c876b227 2790 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
f2cec7a9
MB
2791 Remove face-name alias resolution.
2792 (lface_from_face_name): New definition using
2793 `lface_from_face_name_no_resolve'.
c876b227 2794 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
f2cec7a9
MB
2795 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
2796 (get_lface_attributes): New definition that layers face-remapping on
2797 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
2798 (lookup_basic_face): New function.
2799 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
2800 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
2801 `get_lface_attributes'.
2802 (face_at_buffer_position): Use `lookup_basic_face' to lookup
2803 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
2804 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
2805
2806 * xdisp.c (init_iterator): Pass base_face_id through
2807 `lookup_basic_face' when we actually use it as a face-id.
2808 (handle_single_display_prop): Use `lookup_basic_face' to lookup
2809 DEFAULT_FACE_ID.
2810
2811 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
2812 lookup the initial face-id.
2813
2814 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
2815
518c0b83
JB
28162008-06-01 Juanma Barranquero <lekktu@gmail.com>
2817
2818 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
2819 (Fremove_text_properties): Fix typos in docstrings.
2820
719b3d63
KH
28212008-05-31 Kenichi Handa <handa@m17n.org>
2822
e4c93315
KH
2823 * font.c (font_list_entities): Fix the car part of data to be
2824 stored in the cache.
2825
719b3d63
KH
2826 * ftfont.c (ftfont_font_format): Don't use strcasestr.
2827
d0827857
SM
28282008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
2829
2830 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
2831 Add a `test' argument so another predicate than `equal' can be used.
2832 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
2833 (map_char_table): Remove unused vars `c' and `i'.
2834 * lisp.h (Foptimize_char_table): Adjust declaration.
2835 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
2836
a266686a
KH
28372008-05-30 Kenichi Handa <handa@m17n.org>
2838
d0827857 2839 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
a266686a
KH
2840 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
2841 defined.
2842
fd9440c5
SM
28432008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
2844
2845 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
2846 (Fmake_variable_frame_local): Disallow mixing buffer-local and
2847 frame-local settings for the same variable.
2848
fd2ae9b2
KH
28492008-05-30 Kenichi Handa <handa@m17n.org>
2850
9e0e0d77 2851 * fontset.c (Ffont_info): Move to font.c.
fd2ae9b2
KH
2852 (syms_of_fontset): Delete defsubr of Sfont_info.
2853
2854 * font.c (font_style_to_value, font_score): Delete casting of the
2855 args to xstcasecmp.
2856 (register_font_driver): Increment num_font_drivers only when
2857 registering the driver globally.
9e0e0d77 2858 (Ffont_info): Move from fontset.c. Handle a font object too.
fd2ae9b2
KH
2859 (syms_of_font): Defsubr Sfont_info.
2860
eaf11618
KH
28612008-05-29 Kenichi Handa <handa@m17n.org>
2862
2863 * coding.h (enum define_coding_utf8_arg_index): New enum.
2864 (enum coding_attr_index): Change coding_attr_utf_16_bom to
2865 coding_attr_utf_bom.
fd9440c5
SM
2866 (enum utf_bom_type): Rename from utf_16_bom_type.
2867 (struct utf_16_spec): Adjust for the above change.
eaf11618
KH
2868 (struct coding_system): Add utf_8_bom in `spec' union.
2869
2870 * coding.c (CODING_UTF_8_BOM): New macro.
2871 (enum coding_category): Delete coding_category_utf_8, add
2872 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
2873 coding_category_utf_8_sig.
2874 (CATEGORY_MASK_UTF_8): Delete it.
2875 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
2876 (CATEGORY_MASK_UTF_8_SIG): New macros.
2877 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
2878 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
2879 CATEGORY_MASK_UTF_8_SIG.
2880 (CATEGORY_MASK_UTF_8): New macro.
2881 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
2882 (detect_coding_utf_8): Check BOM.
2883 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
fd9440c5 2884 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
eaf11618
KH
2885 (encode_coding_utf_16): Likewise.
2886 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
2887 (detect_coding, detect_coding_system): Handle utf-8-auto.
2888 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
2889 (syms_of_coding): Fix setting up of Vcoding_category_table.
2890
891bd142
SM
28912008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
2892
2893 * process.c (Faccept_process_output): If `millisec' is non-nil,
2894 `seconds' default to 0.
2895 (wait_reading_process_output): Also return non-nil if we read output
2896 from a non-running process.
2897
1519d52e
JR
28982008-05-29 Jason Rumney <jasonr@gnu.org>
2899
fd9440c5
SM
2900 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
2901 `raster' specified.
2902 (add_font_entity_to_list): Allow non-opentype truetype fonts back
2903 in the uniscribe backend, but disallow any font that has no
2904 unicode subrange support.
1519d52e 2905
d5ab09cd
JB
29062008-05-29 Juanma Barranquero <lekktu@gmail.com>
2907
2908 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
2909 Fix typos in docstrings.
2910
a4eec626
KH
29112008-05-29 Kenichi Handa <handa@m17n.org>
2912
2913 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
e887f2ac 2914 (Fx_family_fonts): Set frame correctly.
a4eec626 2915
a6e0b7e5
JR
29162008-05-28 Jason Rumney <jasonr@gnu.org>
2917
d5ab09cd 2918 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
a6e0b7e5 2919
6b3d752c
SM
29202008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
2921
2922 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
2923 calling build_annotations.
2924
c3f9fba8
JB
29252008-05-28 Juanma Barranquero <lekktu@gmail.com>
2926
2927 * coding.c (Fdecode_coding_region, Fencode_coding_region)
2928 (Fencode_coding_string):
2929 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
2930 <latin-extra-code-table>: Fix typos in docstrings.
2931 (syms_of_coding) <coding-system-alist>: Doc fix.
2932 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
2933
00c670e1
KH
29342008-05-28 Kenichi Handa <handa@m17n.org>
2935
b75d7f28
KH
2936 * fontset.c (Ffont_info): Don't call font_close_object.
2937
2938 * font.c (font_parse_family_registry): Use Ffont_put to validate
2939 foundry and family.
2940 (font_delete_unmatched): Don't check spacing.
2941 (font_list_entities): Add spacing to the spec to list fonts.
2942
2943 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
d5ab09cd 2944 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
b75d7f28 2945
00c670e1
KH
2946 * coding.c (encode_coding_raw_text): Fix previous change.
2947 (encode_coding_object): When the dst_object is a buffer and is
2948 different from src_object, move gap to PT.
2949
45feca91
CY
29502008-05-27 Chong Yidong <cyd@stupidchicken.com>
2951
c3f9fba8 2952 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
45feca91 2953
5dd5d9eb
SM
29542008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
2955
01d45367
SM
2956 * coding.c (encode_coding_raw_text): Set coding->produced_char for
2957 all branches. Compute it differently.
2958
5dd5d9eb
SM
2959 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
2960
9c623c85
JB
29612008-05-27 Juanma Barranquero <lekktu@gmail.com>
2962
2963 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
2964 into "else if () ... else ...".
2965
943f2093
JR
29662008-05-27 Jason Rumney <jasonr@gnu.org>
2967
5dd5d9eb
SM
2968 * w32font.c (w32font_open_internal): Determine if glyph indices
2969 are likely to work here.
943f2093 2970
7385fe74
CY
29712008-05-27 Chong Yidong <cyd@stupidchicken.com>
2972
2973 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
2974 draw overlap glyphs with appropriate highlighting.
2975
4f64a164
KH
29762008-05-27 Kenichi Handa <handa@m17n.org>
2977
2978 * xfont.c (xfont_open): Fix calculation of font->average_width.
2979
1fb5aad7
SM
29802008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
2981
2982 * casefiddle.c (casify_object): Try to guess better whether the
2983 argument is a byte or a char.
2984
f8eb1603
AS
29852008-05-26 Andreas Schwab <schwab@suse.de>
2986
1fb5aad7
SM
2987 * xselect.c (x_reply_selection_request): Properly handle format == 32.
2988 Always send multiples of format size.
5a9c35e5 2989
f8eb1603
AS
2990 * xterm.c (x_set_frame_alpha): Fix type mismatch.
2991
ba93d684
JR
29922008-05-26 Jason Rumney <jasonr@gnu.org>
2993
1fb5aad7
SM
2994 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
2995 (compute_metrics): Don't set failure if we just cleared the cache.
2996 (w32_weight_table): Remove unused variable.
2997 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
2998 backwards compatibility.
ba93d684 2999
505ecc49
KH
30002008-05-25 Kenichi Handa <handa@m17n.org>
3001
1fb5aad7
SM
3002 * w32term.c (x_draw_glyph_string):
3003 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
505ecc49
KH
3004
3005 * xfaces.c: Delete unused function prototypes.
3006 (xstrlwr, font_frame): Delete them.
3007 (clear_face_cache): Delete unused variable.
3008
1fb5aad7
SM
3009 * xftfont.c (xftfont_open): Delete unused variable.
3010 If underline_thickness is not 1, adjust underline_position.
505ecc49
KH
3011
3012 * ftxfont.c (ftxfont_open): Delete unused variable.
3013
3014 * fontset.c (face_for_char): Optimize for the case of no charset
3015 property.
3016
3017 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
3018 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
3019 (otf_open, font_otf_capability, generate_otf_features)
3020 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
1fb5aad7 3021 Comment out by surrounding "#if 0" and "#endif" for the moment.
505ecc49
KH
3022 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
3023 (syms_of_font): Codes for accessing above commented out.
3024
f481eb31
EZ
30252008-05-24 Eli Zaretskii <eliz@gnu.org>
3026
3027 * w32proc.c: Include dispextern.h.
3028
3029 * w32.c: Include dispextern.h.
3030
20746fe4
JB
30312008-05-23 Juanma Barranquero <lekktu@gmail.com>
3032
3033 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
3034 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
3035 Fix typos in docstrings.
3036
e7150846
JR
30372008-05-23 Jason Rumney <jasonr@gnu.org>
3038
20746fe4 3039 * xsmfns.c: Remove includes that are already included by config.h.
e7150846 3040
dbf46ba6
KH
30412008-05-23 Kenichi Handa <handa@m17n.org>
3042
6c652beb
KH
3043 * charset.c (Qemacs, charset_emacs): New variables.
3044 (char_charset): Fix for non-Unicode characters.
3045 (syms_of_charset): Define charset_emacs.
3046
baf4d3b3 3047 * w32term.c (x_draw_glyph_string): Be sure to update
328fab2a
KH
3048 s->underline_thickness and s->underline_position. Be sure to draw
3049 underline within the current line area.
baf4d3b3
KH
3050
3051 * xterm.c (x_draw_glyph_string): Be sure to update
328fab2a 3052 s->underline_thickness and s->underline_position. Be sure to draw
90dc78a3 3053 underline within the current line area.
baf4d3b3 3054
dbf46ba6
KH
3055 * fontset.c: Delete unused variables and add casting for char *
3056 throughout the file.
3057 (fontset_font): Try the fallback fonts of the current fontset
3058 before consulting the default fontset.
3059
3060 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
3061
9e0e0d77 3062 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
dbf46ba6 3063
3b780338
JR
30642008-05-22 Jason Rumney <jasonr@gnu.org>
3065
20746fe4 3066 * font.c: Don't include strings.h.
577eba22 3067
9e0e0d77 3068 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
05131107 3069
20746fe4
JB
3070 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
3071 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
b1722a46
EZ
3072 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
3073 to call xstrcasecmp.
05131107 3074
b1722a46 3075 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
3b780338 3076
b1722a46 3077 * fontset.c (fs_query_fontset): Use xstrcasecmp.
3b780338 3078
b1722a46 3079 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
3b780338 3080
b1722a46 3081 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
3b780338 3082
a30e1957
KH
30832008-05-22 Kenichi Handa <handa@m17n.org>
3084
20746fe4 3085 * puresize.h (BASE_PURESIZE): Increase to 1220000.
955b979c 3086
20746fe4 3087 * font.c (font_prop_validate_style): Adjust for the format
64b900e3
KH
3088 change of font_style_table.
3089
a30e1957
KH
3090 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
3091 two args.
3092
3093 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
3094 two args.
3095
631248e5
SM
30962008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
3097
3098 * minibuf.c (keys_of_minibuf): Delete.
3099 * lisp.h (keys_of_minibuf): Delete.
3100 * emacs.c (main): Don't call keys_of_minibuf.
3101
318548be
KH
31022008-05-22 Kenichi Handa <handa@m17n.org>
3103
631248e5 3104 * ftfont.c (ftfont_resolve_generic_family): Rename from
318548be
KH
3105 ftfont_list_generic_family. Return a single family for each
3106 generic family.
3107 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
20746fe4
JB
3108 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
3109 Call font_add_log.
318548be
KH
3110 (ftfont_match): Call font_add_log.
3111
3112 * font.h (Ffont_xlfd_name): EXFUN adjusted.
3113 (FONT_DEBUG): Define it.
3114 (font_add_log): Extern it.
631248e5 3115 (font_assert): Rename from xassert.
318548be
KH
3116
3117 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
3118 (xfont_list_family): Call font_add_log.
3119 (xfont_match): Likewise.
631248e5 3120 (memq_no_quit): Delete.
318548be
KH
3121
3122 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
3123 call of Ffont_xlfd_name.
3124
3125 * xfaces.c (struct table_entry, slant_table, weight_table)
631248e5 3126 (swidth_table): Move to font.c.
318548be
KH
3127
3128 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
631248e5 3129 xassert are changed to font_assert. Delete many unused variables.
20746fe4
JB
3130 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
3131 New variables.
631248e5
SM
3132 (struct table_entry): Move from xfaces.c and modified.
3133 (weight_table, slant_table, width_table): Move from xfaces.c and
318548be 3134 contents adjusted for the change of struct table_entry.
20746fe4 3135 (font_style_to_value, font_style_symbolic): Adjust for the
64b900e3 3136 format change of font_style_table.
318548be
KH
3137 (font_parse_family_registry): Don't overwrite existing foundry and
3138 family of font_spec.
3139 (font_score): Fix calculation of diff for sizes.
3140 (font_sort_entites): Call font_add_log.
3141 (font_delete_unmatched): Return a newly created list.
3142 (font_list_entities): Fix previous change. Call font_add_log.
20746fe4
JB
3143 (font_matching_entity, font_open_entity, font_close_entity):
3144 Call font_add_log.
318548be 3145 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
631248e5 3146 (Finternal_set_font_style_table): Delete.
318548be
KH
3147 (BUILD_STYLE_TABLE): New macro.
3148 (build_style_table): New function.
3149 (Vfont_log, font_log_env_checked): New variables.
3150 (font_add_log): New function.
3151 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
3152 Declare Lisp variables "font-weight-table", "font-slant-table",
3153 "font-width-table", and "font-log". Initialize font_style_table.
3154
6aac1c03
DN
31552008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
3156
bcc850aa 3157 * xterm.c (x_set_frame_alpha): Move declarations before statements.
6aac1c03 3158
7950790f
GM
31592008-05-21 Seiji Zenitani <zenitani@mac.com>
3160 Ryo Yoshitake <ryo@shiftmode.net>
a2979e8e 3161
7950790f 3162 * frame.c (Qalpha): Add a new frame parameter `alpha'.
bcc850aa 3163 (Vframe_alpha_lower_limit): New variable.
b9fb2c45 3164 (x_set_alpha): New function.
a2979e8e 3165
7950790f 3166 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
a2979e8e 3167
7950790f
GM
3168 * xfns.c (x-create-frame, Qalpha):
3169 Initialize the frame parameter `alpha'.
b9fb2c45
GM
3170 * xterm.c (OPAQUE, OPACITY): New.
3171 (x_set_frame_alpha): New function.
3172 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
a2979e8e 3173
7950790f
GM
3174 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
3175 * w32fns.c (w32_frame_parm_handlers): Likewise.
a2979e8e 3176
5c2a72d9
JR
31772008-05-20 Jason Rumney <jasonr@gnu.org>
3178
20746fe4
JB
3179 * w32font.c (add_font_entity_to_list): Don't add non-opentype
3180 truetype fonts to opentype list.
5c2a72d9 3181
eb152aa9
JB
31822008-05-20 Juanma Barranquero <lekktu@gmail.com>
3183
3184 * fontset.c (Ffontset_info): Doc fix.
3185 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
3186 <ignore-relative-composition>: Fix typos in docstrings.
3187
3188 * font.c (syms-of-font) <font-encoding-alist>:
3189 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
3190 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
3191 (Ffont_otf_alternates): Doc fixes.
3192
ad00e1a3
KH
31932008-05-20 Kenichi Handa <handa@m17n.org>
3194
3195 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
3196 font.h through out the file.
9e0e0d77 3197 (FONT_DRIVERS): Rename from FONTOBJ.
12855572 3198 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
ad00e1a3
KH
3199 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
3200
3201 * emacs.c (main): Call syms_of_font unconditionally.
3202
3203 * font.h (find_font_encoding): Extern it.
3204
9e0e0d77 3205 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
ad00e1a3
KH
3206 fontset.c.
3207 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
3208 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
3209 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
3210 only when HAVE_WINDOW_SYSTEM is defined.
3211 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
3212 when HAVE_WINDOW_SYSTEM is defined.
3213
9e0e0d77
SM
3214 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
3215 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
ad00e1a3
KH
3216
3217 * xfaces.c: Include font.h unconditionally.
3218 (merge_face_ref, merge_face_vectors)
3219 (Finternal_set_lisp_face_attribute): Cancel the previous change.
3220
40a69fac
SM
32212008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
3222
3223 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
3224 indirect_variable.
3225 * eval.c (lisp_indirect_variable): New fun.
3226 (Fuser_variable_p): Use it.
3227
8c2dccbf
SM
32282008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
3229
ad97b375
SM
3230 * lisp.h (indirect_variable):
3231 * data.c (indirect_variable, let_shadows_buffer_binding_p):
3232 Use Lisp_Symbol pointers rather than Lisp_Object.
3233 Adjust callers.
3234 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
3235 To this end, change calling-convention.
3236
8c2dccbf
SM
3237 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
3238 if some non-hidden buffers are selected by string&pred.
3239
ad97b375
SM
32402008-05-19 Chong Yidong <cyd@stupidchicken.com>
3241
3242 * process.c (wait_reading_process_output): Always check status
3243 when in batch mode.
3244
25b81df4
KH
32452008-05-19 Kenichi Handa <handa@m17n.org>
3246
3247 * font.c (font_list_entities): Fix handling of cache.
3248 (font_matching_entity): Likewise.
3249
8c2dccbf 3250 * ftfont.c (cs_iso8859_1): Delete.
25b81df4 3251 (ft_face_cache): New variable.
1f204af3 3252 (struct ftfont_info): New member fc_charset_idx.
8c2dccbf 3253 (ftfont_build_basic_charsets): Delete.
25b81df4
KH
3254 (fc_charset_table): New variable.
3255 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
3256 . FC_CHARSET_IDX) as :font-entity property in the font entity.
3257 Callers changed.
dde8403f 3258 (ftfont_lookup_cache, ftfont_get_charset): New functions.
8c2dccbf
SM
3259 (ftfont_spec_pattern): New argument fc_charset_idx.
3260 Check registry more rigidly. Change callers.
a2979e8e 3261 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
25b81df4
KH
3262 change of :font-entity property of the font.
3263
a2979e8e 3264 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
25b81df4
KH
3265 property of the font.
3266
d4a1d553
JB
32672008-05-18 Juanma Barranquero <lekktu@gmail.com>
3268
3269 * coding.c (Fcoding_system_p): Rename argument to match docstring.
3270 (Funencodable_char_position, Fcheck_coding_systems_region)
3271 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
3272 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
3273 (Ffind_operation_coding_system, Fset_coding_system_priority)
3274 (Fcoding_system_eol_type): Doc fixes.
3275
07cfc4e7
GM
32762008-05-17 Glenn Morris <rgm@gnu.org>
3277
3278 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
3279
1cab27d2
EZ
32802008-05-16 Eli Zaretskii <eliz@gnu.org>
3281
3282 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
3283 and st_gid.
3284
dde8403f 3285 * frame.c (Fdelete_frame): Don't call font_update_drivers if
1cab27d2
EZ
3286 HAVE_WINDOW_SYSTEM is not defined.
3287
3288 * xfaces.c (merge_face_ref, merge_face_vectors)
3289 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
3290 HAVE_WINDOW_SYSTEM is defined.
3291 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
3292
86b89713
SM
32932008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
3294
3295 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
3296
6750bd93
YM
32972008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3298
62867b11 3299 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
6750bd93 3300
79f105c9
KH
33012008-05-15 Kenichi Handa <handa@m17n.org>
3302
3303 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
3304 preference.
3305
6b33da9f
GM
33062008-05-15 Glenn Morris <rgm@gnu.org>
3307
3308 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
3309
d0e4433b
CY
33102008-05-15 Chong Yidong <cyd@stupidchicken.com>
3311
3312 * fns.c (init_fns): Don't initialize weak_hash_tables here.
3313 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
3314
3315 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
3316
5f2d79e0
KH
33172008-05-15 Kenichi Handa <handa@m17n.org>
3318
fd8a1cae
KH
3319 * ftfont.c (ftfont_list): Downcase family name to check generic
3320 families.
3321
3322 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
3323 font-spec for QCfont value.
3324
5f2d79e0
KH
3325 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
3326 buffer. Check the return value of it.
3327
e5e29349
JR
33282008-05-14 Jason Rumney <jasonr@gnu.org>
3329
3330 * w32term.c (w32_get_glyph_overhangs): Remove.
3331 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
3332
1f09f444
KH
33332008-05-14 Kenichi Handa <handa@m17n.org>
3334
3335 * font.c (font_prop_validate): Make nil a valid value.
be9442ad
KH
3336 (font_clear_cache): Check if the cached vector of entities is nil
3337 or not.
1f09f444 3338
ecae6af9 33392008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
f8240abd
YM
3340
3341 * emacs.c (main_thread): Conditionalize on
3342 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
3343 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
3344
3345 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
3346 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
3347 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
3348
c6b278e7
KH
33492008-05-14 Kenichi Handa <handa@m17n.org>
3350
3351 * coding.c (detect_coding_iso_2022): Ignore a coding category that
3352 has no corresponding coding system.
3353
33542008-05-14 Jason Rumney <jasonr@gnu.org>
3355
3356 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
3357
3358 * w32font.h (w32font_open_internal): Update declaration.
3359
3360 * w32font.c (w32font_open_internal): Change last argument from
3361 w32font_info struct to font object. Fill in font object from
3362 font_entity. Get Outline metrics if possible. Use them to
3363 calculate underline position and thickness. Use xlfd name as name
3364 property. Don't set codepage.
3365 (w32font_open): Pass font_object to w32font_open_internal. Don't
a879ee6f 3366 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
c6b278e7
KH
3367 (w32font_draw): Use s->font.
3368 (clear_cached_metrics): Don't clear non-existent blocks.
3369
3370 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
3371 font was not found.
a879ee6f 3372 (x_draw_glyph_string): Use underline position and thickness from font.
c6b278e7
KH
3373
3374 * w32uniscribe.c (uniscribe_open): Pass font_object to
3375 w32font_open_internal.
3376
33772008-05-14 Kenichi Handa <handa@m17n.org>
3378
3379 These changes are to delete all legacy font-handling codes, and
3380 make Emacs use only font-backends.
3381
3382 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
3383 (frame.o, image.o, print.o): Depend on $(FONTSRC).
3384
3385 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
3386
3387 * charset.h (Vcharset_non_preferred_head)
3388 (Vcurrent_iso639_language): Extern them.
3389
3390 * charset.c (Vcharset_non_preferred_head): New variable.
3391 (Vcurrent_iso639_language): New variable.
3392 (syms_of_charset): Declare it as a Lisp variable.
3393 (char_charset): Don't check non preferred charsets. As a last
3394 resort, return charset_unicode.
3395 (Fset_charset_priority): Update Vcharset_non_preferred_head.
3396
3397 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
3398 conditionals. Don't check enable_font_backend. Delete all codes
3399 used only when USE_FONT_BACKEND is not defined.
3400
3401 * dispextern.h (struct glyph_string): Change type of `font' to
3402 `struct font *'.
3403 (struct glyph_string): New member underline_position and
3404 underline_thickness.
3405 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
3406 (struct face): Change type of `font' to `struct font *'. Remove
3407 members `font_name', `font_info_id'.
3408 (per_char_metric, encode_char): Delete externs.
3409 (calc_pixel_width_or_height): Adjust the prototype.
3410
3411 * emacs.c (enable_font_backend): Delete extern.
3412 (main): Don't set enable_font_backend. Don't check the command
3413 line argument "-disable-font-backend".
3414
3415 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
3416 (enum font_property_index): New members FONT_DPI_INDEX,
3417 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
3418 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
3419 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
3420 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
3421 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
3422 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
3423 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
3424 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
3425 (struct font_spec, struct font_entity): New structs.
3426 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
3427 (struct font): Many members from old "struct font_info" moved to
3428 here. Members font and entity deleted.
3429 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
3430 the new font-related objects.
3431 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
3432 (CHECK_FONT_GET_OBJECT): Likewise.
3433 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
3434 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
3435 (struct font_driver): New members case_sensitive anc check. Type
3436 of the member list and open changed.
3437 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
3438 (font_symbolic_width, font_find_object, font_get_spec)
3439 (font_set_lface_from_name): Delete extern.
20746fe4 3440 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
c6b278e7
KH
3441
3442 * font.c: Include <strings.h>.
3443 (enable_font_backend): Delete it.
3444 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
3445 (CHECK_VALIDATE_FONT_SPEC): Delete it.
3446 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
3447 (null_string): Delete it.
3448 (null_vector): Make it static.
3449 (font_family_alist): Delete it.
3450 (Qnormal): Extern it.
3451 (QCextra, QClanguage): Delete it.
1f204af3 3452 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
c6b278e7
KH
3453 (font_make_spec, font_make_entity, font_make_object)
3454 (font_intern_prop): Renamed from intern_downcase. Don't downcase
3455 the string. Callers changed.
3456 (font_pixel_size): Adjusted for the format change of font-related
3457 objects.
3458 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
3459 (font_style_to_value, font_style_symbolic): New function.
3460 (build_font_family_alist): Delete it.
3461 (font_registry_charsets): Use Fassoc_string instead of
3462 assq_no_quit.
3463 (font_prop_validate_symbol): Don't return null_string.
3464 (font_prop_validate_style): Adjusted for the change of
3465 style-related values in a font vector.
20746fe4 3466 (font_property_table): Delete entries for QClanguage and
c6b278e7
KH
3467 QCantialias, add entries for QCavgwidth.
3468 (get_font_prop_index): Delete the 2nd argument FROM.
3469 (font_prop_validate): Arguments changed.
3470 (font_put_extra): Adjusted for the change of font-related objects.
3471 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
3472 (font_parse_fcname, font_unparse_fcname)
3473 (font_prepare_composition): Likewise.
3474 (font_parse_family_registry): Renamed from font_merge_old_spec.
3475 (otf_open): Delete the 1st arg entity.
3476 (font_otf_capability): Adjusted for the above change.
3477 (font_score): New arg alternate_families. Adjusted for the change
3478 of font-related objects.
3479 (font_sort_entites): New arg best_only.
3480 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
3481 Delete them.
3482 (font_match_p): Check alternate families.
3483 (font_find_object): Delete it.
3484 (font_check_object): New function.
c3f9fba8 3485 (font_clear_cache): Adjusted for the change of font-related objects.
c6b278e7
KH
3486 (font_delete_unmatched): New arg.
3487 (font_list_entities): Call font_driver->list with a spec that
3488 doesn't specify style-related properties.
3489 (font_matching_entity): Arguments changed. Caller changed.
c3f9fba8 3490 (font_open_entity): Adjusted for the change of font-related objects.
c6b278e7
KH
3491 (font_close_object, font_has_char, font_encode_char)
3492 (font_get_name, font_get_spec): Likewise.
c3f9fba8
JB
3493 (font_spec_from_name, font_clear_prop, font_update_lface):
3494 New functions.
3495 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
c6b278e7
KH
3496 (font_prepare_for_face, font_done_for_face, font_open_by_name)
3497 (font_at): Adjusted for the change of font-related objects.
3498 (font_range): New function.
3499 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
c3f9fba8 3500 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
c6b278e7
KH
3501 (Fcopy_font_spec, Fmerge_font_spec): New function.
3502 (Ffont_family_list): Renamed from list-families.
3503 (Finternal_set_font_style_table): Arguments changed.
3504 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
3505 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
3506 change of font-related objects.
c3f9fba8 3507 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
c6b278e7 3508
3554e566 3509 * fontset.h (struct font_info): Delete it. Most members go to
c6b278e7
KH
3510 struct font.
3511 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
3512 (enum FONT_SPEC_INDEX): Delete it.
3513 (font_info, list_fonts_func, load_font_func, query_font_func)
3514 (set_frame_fontset_func, find_ccl_program_func)
3515 (get_font_repertory_func, new_fontset_from_font_name): Delete
3516 externs.
3517 (fontset_from_font_name): Extern it.
3518 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
3519 (FONT_INFO_FROM_FACE): Deleted.
3520 (face_for_font): Adjust prototype.
3521
3522 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
3523 conditionals. Don't check enable_font_backend. Delete all codes
3524 used only when USE_FONT_BACKEND is not defined.
3525 (get_font_info_func, list_font_func, load_font_func)
3526 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
3527 (get_font_repertory_func): Delete them.
3528 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
3529 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
3530 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
3531 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
3532 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
3533 (fontset_compare_rfontdef): New function.
3534 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
3535 ront-defs by qsort. Adjusted for the change of font-group vector.
3536 (load_font_get_repertory): Deleted.
3537 (fontset_find_font): Use new macros to ref/set elements of
3538 font-def and rfont-def.
3539 (fontset_font): Fix the timing of remembering that no font for C.
3540 (free_face_fontset): Do nothing if the face has no fontset.
3541 (face_suitable_for_char_p): Use new macros to ref/set elements of
3542 rfont-def.
3543 (face_for_char): Likewise. Call face_for_char with font_object.
3544 (fs_load_font): Delete. Delete #pragma surrounding it.
3545 (fs_query_fontset): Use strcasecmp instead of strcmp.
3546 (generate_ascii_font_name): Adjusted for the format change of
3547 font-spec.
3548 (Fset_fontset_font): Likewise. Use new macros to set elements of
3549 font-def.
3550 (Fnew_fontset): Use font_unparse_xlfd to generate
3551 FONTSET_ASCII (fontset).
3552 (new_fontset_from_font_name): Deleted.
3553 (fontset_from_font): Renamed from new_fontset_from_font. Check if
3554 a fontset is already created for the font. FIx updating of
3555 Vfontset_alias_alist.
3556 (fontset_ascii_font): Deleted.
3557 (Ffont_info): Adjusted for the format change of font-spec.
3558 (Finternal_char_font): Likewise.
3559 (Ffontset_info): Likewise.
3560 (syms_of_fontset): Don't check load_font_func.
3561
3562 * fns.c (internal_equal): Handle PREV_FONT.
3563
3564 * frame.h: Delete USE_FONT_BACKEND conditional.
3565
3566 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
3567 conditionals. Don't check enable_font_backend. Delete all codes
3568 used only when USE_FONT_BACKEND is not defined.
3569 (x_set_font): Call x_new_font, not x_new_fontset2.
3570 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
3571 already set for the frame.
3572
3573 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
3574 a font-entity by font_make_entity. Use font_intern_prop instead
3575 of intern_downcase. Use FONT_SET_STYLE to set a style-related
3576 font property. If a font is scalable, set avgwidth property to 0.
3577 Set font-entity property by font_put_extra.
3578 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
3579 (ffont_driver): Adjusted for the change of struct font_driver.
3580 (ftfont_spec_pattern): New function.
3581 (ftfont_list): Return a list, not vector.
3582 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
3583 (ftfont_list_family): Don't downcase names.
3584 (ftfont_free_entity): Deleted.
3585 (ftfont_open): Return a font-ojbect. Adjusted for the change of
3586 struct font. Get underline_thickness and underline_position from
3587 font property. Don't update dpyinfo->smallest_font_height and
3588 dpyinfo->smallest_char_width.
3589 (ftfont_close): Don't free `struct font'.
3590 (ftfont_has_char): Adjusted for the format change of font-entity.
3591 (ftfont_encode_char, ftfont_text_extents): Likewise.
3592
3593 * ftxfont.c (ftxfont_list): Return a list, not vector.
3594 (ftxfont_open): Return a font-ojbect. Adjusted for the change of
3595 struct font. Get underline_thickness and underline_position from
3596 font property. Don't update dpyinfo->smallest_font_height and
3597 dpyinfo->smallest_char_width.
3598 (ftxfont_close): Don't decrese FRAME_X_DISPLAY_INFO (f)->n_fonts.
3599 (ftxfont_draw): Adjusted for the change of struct font.
3600
3601 * image.c (image_ascent): Don't include "charset.h". Include
3602 "character.h" and "font.h".
3603
3604 * lisp.h (enum pvec_type): New member PREV_FONT.
3605 (Fassoc_string): EXFUN it.
3606
3607 * print.c: Include font.h.
3608 (print_object): Handle font-related objects.
3609
3610 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
3611 conditionals. Don't check enable_font_backend. Delete all codes
3612 used only when USE_FONT_BACKEND is not defined.
3613 (handle_auto_composed_prop): Do nothing if it->f is not on a
3614 window system. Check how many following characters can be
3615 displayed by the same font.
3616 (calc_pixel_width_or_height): Type of the 4th arg is changed to
3617 'struct font *'.
3618 (get_char_face_and_encoding): Assign the whole encoding task to
3619 the `encode-char' method of a font driver.
3620 (fill_composite_glyph_string): Adjusted for the change of `struct
3621 face' and `struct glyph_string'.
3622 (fill_glyph_string): Likewise.
3623 (get_per_char_metric): Arguments changed.
3624 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
3625 and `struct glyph_string'.
3626 (produce_stretch_glyph, calc_line_height_property)
3627 (x_produce_glyphs): Likewise.
3628
3629 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
3630 conditionals. Don't check enable_font_backend. Delete all codes
3631 used only when USE_FONT_BACKEND is not defined. Use
3632 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
3633 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
3634 (Qp): Extern them.
3635 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
3636 Deleted.
3637 (struct font_name): Deleted.
3638 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
3639 (compare_fonts_by_sort_order): New function.
3640 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
3641 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
3642 Deleted.
3643 (Fx_family_fonts): Use font_list_entities, and sort fonts by
3644 compare_fonts_by_sort_order.
3645 (Fx_font_family_list): Call Ffont_family_list.
3646 (face_numeric_value, face_numeric_weight, face_numeric_slant)
3647 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
3648 (face_symbolic_slant, face_symbolic_swidth)
3649 (split_font_name_into_vector, build_font_name_from_vector)
3650 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
3651 (font_rescale_ratio, split_font_name, build_font_name)
3652 (free_font_names, sort_fonts, x_face_list_fonts)
3653 (face_font_available_p, sorted_font_list, cmp_font_names)
3654 (font_list_1, concat_font_list, font_list, remove_duplicates):
3655 Deleted.
3656 (Fx_list_fonts): Use Ffont_list.
3657 (LFACE_AVGWIDTH): Deleted.
3658 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
3659 by FONTP.
3660 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
3661 (set_lface_from_font_name): Delete it.
3662 (set_lface_from_font): Renamed from
3663 set_lface_from_font_and_fontset. Caller changed. Don't set
3664 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
3665 for face.
c3f9fba8
JB
3666 (merge_face_vectors): Copy font-spec if necessary.
3667 Clear properties of the font-spec if necessary.
c6b278e7
KH
3668 (merge_face_ref): Clear properties of the font-spec if necessary.
3669 (Finternal_set_lisp_face_attribute): Likewise.
3670 (set_font_frame_param): Use font_load_for_lface to load a
3671 font-object, and call Fmodify_frame_parameters with it.
3672 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
3673 font name by Ffont_xlfd_name.
3674 (Finternal_lisp_face_attribute_values): Don't check QCweight,
3675 QCslant, and QCwidth.
3676 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
3677 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
3678 Compare fonts by EQ.
3679 (lookup_non_ascii_face): Deleted.
3680 (face_for_font): The 2nd argument changed.
c3f9fba8
JB
3681 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
3682 Check atomic font properties by case insensitive.
c6b278e7
KH
3683 (realize_non_ascii_face): Set face->overstrike correctly.
3684 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
3685 (dump_realized_face): Get font name from
3686 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
3687
3688 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
3689 conditionals. Don't check enable_font_backend. Delete all codes
3690 used only when USE_FONT_BACKEND is not defined.
3691 (xic_create_xfontset): Original code deleted and renamed from
3692 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
3693 (x_make_gc): Don't set GCFont in GCs.
3694 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
3695 opened by "fixed".
3696 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
3697 find_ccl_program_func, query_font_func, set_frame_fontset_func,
3698 get_font_repertory_func.
3699
3700 * xfont.c: Include <stdlib.h> and "ccl.h".
3701 (struct xfont_info): New structure.
3702 (xfont_query_font): Deleted.
3703 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
3704 moved from xterm.c.
3705 (xfont_driver): Adjusted for the change of struct font_driver.
3706 (compare_font_names): New function.
3707 (xfont_list_pattern): Sort font names case insensitively. Make
3708 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
3709 (xfont_list): Return a list, not vector.
3710 (xfont_match): If the font doesn't have QCname property, generate
3711 a name from the other font properties.
3712 (xfont_open): Return a font-ojbect. Adjusted for the change of
3713 struct font. Get underline_thickness and underline_position from
3714 font property. Don't update dpyinfo->smallest_font_height and
3715 dpyinfo->smallest_char_width.
3716 (xfont_close): Don't free struct font.
3717 (xfont_prepare_face): Adjusted for the change of struct font.
3718 (xfont_done_face): Deleted.
3719 (xfont_has_char): Adjusted for the change of struct font.
3720 (xfont_encode_char, xfont_draw): Likewise.
3721 (xfont_check): New function.
3722
3723 * xftfont.c (xftfont_list): Adjusted for the change of `list'
3724 callback function.
3725 (xftfont_match): Adjusted for the fontmat change of font-entity.
3726 (xftfont_open): Adjusted for the format change of font-entity and
3727 font-object. Adjusted for the change of struct font. Return a
3728 font-object. Don't update dpyinfo->smallest_font_height and
3729 dpyinfo->smallest_char_width.
3730 (xftfont_close): Block input while calling XftFontClose.
3731 (xftfont_prepare_face): Don't block input while calling
3732 xftfont_get_colors. Adjusted for the change of struct font.
3733 (xftfont_shape): Return value of error case fixed.
3734
3735 * xrdb.c (x_load_resources): Don't setup a fontset resource.
3736
3737 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
3738 conditionals.
3739 (FONT_WIDTH): Return (f)->max_width.
3740 (struct x_display_info): Delete member `font'.
3741 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
3742 (x_find_ccl_program, x_get_font_repertory): Delete externs.
3743 (struct x_output): Change type of `font' to `struct font *'.
3744
3745 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
3746 conditionals. Don't check enable_font_backend. Delete all codes
c3f9fba8 3747 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
c6b278e7
KH
3748 (x_per_char_metric, x_encode_char): Deleted.
3749 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
3750 (x_compute_glyph_string_overhangs): Adjusted for the change of
c3f9fba8 3751 `struct face'.
c6b278e7
KH
3752 (x_draw_glyph_string_foreground)
3753 (x_draw_composite_glyph_string_foreground): Likewise.
3754 (x_draw_glyph_string): Likewise. Use font->underline_position and
3755 font->underline_thickness.
3756 (x_new_font): Renamed from x_new_fontset2.
3757 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
3758 (x_check_font): Call `check' method of a font driver.
3759 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
3760 (x_query_font, x_get_font_repertory): Deleted.
3761 (x_find_ccl_program): Renamed and moved to xfont.c.
3762 (x_redisplay_interface): Adjusted for the change of `struct
3763 redisplay_interface'.
3764
3765 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
3766 conditionals. Don't check enable_font_backend. Delete all codes
3767 used only when USE_FONT_BACKEND is not defined. Surround non-used
3768 code by "#ifdef OLD_FONT" and "endif".
3769 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
3770
3771 * w32font.h (struct w32font_info): New member.
3772 (FONT_COMPAT): New macro.
3773 (w32font_open_internal): Prototype adjusted.
3774
3775 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
3776 OLD_FONT" and "endif".
3777
3778 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
3779 conditionals. Don't check enable_font_backend. Delete all codes
3780 used only when USE_FONT_BACKEND is not defined.
3781 (w32font_open): Return a font-object. Make a font-object by
3782 font_make_object. Adjusted for the change of struct w32font_info.
3783 (w32font_close): Don't free struct font. Adjusted for the change
3784 of struct w32font_info.
3785 (w32font_encode_char, w32font_text_extents, w32font_draw):
3786 Adjusted for the change of struct w32font_info.
3787 (w32font_draw): Likewise.
3788 (w32font_list_internal): Return a list, not vector.
3789 (w32font_open_internal): Change the 4th arg to font-object.
c3f9fba8 3790 Adjusted for the change of struct w32font_info and font-object format.
c6b278e7
KH
3791 (add_font_name_to_list): Don't downcase names.
3792 (w32_enumfont_pattern_entity): Make a font-entity by
3793 font_make_entity. Adjusted for the format change of font-entity.
3794 Use FONT_SET_STYLE to set a style-related font property. If a
3795 font is scalable, set avgwidth property to 0. Set font-entity
3796 property by font_put_extra.
c3f9fba8 3797 (font_matches_spec): Adjusted for the format change of font-entity.
c6b278e7
KH
3798 (w32_weight_table, w32_decode_weight): New variables.
3799 (w32_encode_weight): New function.
3800 (fill_in_logfont): Adjusted for the format change of font-spec.
3801 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
3802 weight value.
3803 (w32font_driver): Adjusted for the change of struct font_driver.
3804
3805 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
f245f2c6 3806 conditionals. Don't check enable_font_backend. Surround non-used
c6b278e7
KH
3807 code by "#ifdef OLD_FONT" and "endif".
3808 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
3809 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
3810
3811 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
3812 conditionals. Don't check enable_font_backend. Delete all codes
3813 used only when USE_FONT_BACKEND is not defined. Surround non-used
3814 code by "#ifdef OLD_FONT" and "endif".
3815
3816 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
c3f9fba8
JB
3817 (uniscribe_open): Return value changed to font-object.
3818 Adjusted for the format change of font-object.
3819 (uniscribe_otf_capability): Adjusted for the change of struct font.
c6b278e7
KH
3820 (add_opentype_font_name_to_list): Don't downcase names.
3821 (uniscribe_font_driver): Adjusted for the change of struct
3822 font_driver.
3823
f9d4c199
CY
38242008-05-13 Chong Yidong <cyd@stupidchicken.com>
3825
3826 * dispnew.c (update_frame_1): Check if tty output is still valid
3827 before flushing it.
3828
44f249c0
JD
38292008-05-13 Jan Djärv <jan.h.d@swipnet.se>
3830
3831 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
3832 to Gtk+ menus.
3833
01bb4018
SM
38342008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
3835
3271a8f5
SM
3836 * dired.c (file_name_completion): Tweak the code so as to always do it
3837 in a single pass. Tighten the scope of some variables.
3838
01bb4018
SM
3839 * dired.c (Qdefault_directory): New var.
3840 (file_name_completion): Use it instead of Fexpand_file_name.
3841 (syms_of_dired): Initialize it.
3842
728bb8e0
SM
38432008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
3844
3845 * fileio.c (double_dollars): Remove dead code.
3846
ed4c17bb
EZ
38472008-05-10 Eli Zaretskii <eliz@gnu.org>
3848
6c5665e9
EZ
3849 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
3850 Mention w32-get-true-file-attributes in doc string.
3851
ed4c17bb
EZ
3852 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
3853
71e1f69d
GM
38542008-05-09 Glenn Morris <rgm@gnu.org>
3855
3856 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
3857 2008-04-23.
3858
ee7a2e7a
EZ
38592008-05-09 Eli Zaretskii <eliz@gnu.org>
3860
8aaaec6b
EZ
3861 Support for reporting owner and group of each file on MS-Windows:
3862 * dired.c (stat_uname, stat_gname): New functions, with special
3863 implementation for w32.
3864 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
3865
ee7a2e7a
EZ
3866 * w32.c: Rename the_passwd_* to dflt_passwd_*.
3867 (dflt_group_name): New static variable.
728bb8e0 3868 (dflt_group): Rename from the_group.
ee7a2e7a
EZ
3869 (init_user_info): Init dflt_group fields. Get user's group name
3870 from LookupAccountSid.
8aaaec6b
EZ
3871 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
3872 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
3873 New initialization states.
3874 (globals_of_w32): Initialize them to zero. Initialize the default
3875 group name to "None".
3876 (GetFileSecurity_Name): New global var, the name of the function
3877 to call for GetFileSecurity.
3878 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
3879 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
3880 (get_file_security, get_security_descriptor_owner)
3881 (get_security_descriptor_group, is_valid_sid)
3882 (get_file_security_desc, get_rid, get_name_and_id)
3883 (get_file_owner_and_group): New functions.
3884 (stat): Use get_file_security_desc and get_file_owner_and_group to
3885 report the owner and primary group of each file. Don't ignore the
728bb8e0
SM
3886 high 32 bits of file's size, now that st_size is 64-bit wide.
3887 Fix test when to get true file attributes.
8aaaec6b
EZ
3888 (init_user_info): Use get_rid instead of equivalent inline code.
3889 (fstat): Don't ignore the high 32 bits of file's size.
ee7a2e7a 3890
b199c436
CY
38912008-05-09 Chong Yidong <cyd@stupidchicken.com>
3892
3893 * image.c (png_load): Use correct bit-depth for setting background
3894 color.
3895
86914123
EZ
38962008-05-08 Eli Zaretskii <eliz@gnu.org>
3897
3898 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
3899 epa-hook.elc.
3900
67b5d7de
JB
39012008-05-08 Juanma Barranquero <lekktu@gmail.com>
3902
3903 * font.c (Ffont_match_p): Don't use `iff' in docstring.
3904
1a111394
DN
39052008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
3906
3907 * macfns.c (Fx_create_frame): Make a copy of frame parameters
3908 because the original parameters are in pure storage now.
3909 (mac_window): Remove unused params. Update callers.
3910
6d77fa95
SM
39112008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3912
7a3d90dc
SM
3913 * lread.c (substitute_object_recurse): Use lower-level primitives.
3914 Don't signal errors when traversing sub-char-tables.
3915 Don't loop over all the possible characters when traversing char-tables.
3916
6d77fa95
SM
3917 * print.c (print_preprocess): Add sub-char-tables to the print-table,
3918 just like we do in print.c.
3919
140eb764
SM
39202008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
3921
3922 * minibuf.c (Ftry_completion): Remove code left over from when we used
3923 scmp instead of Fcompare_strings.
3924
e9184ccb
JB
39252008-05-04 Juanma Barranquero <lekktu@gmail.com>
3926
3927 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
3928
0e9378b3
YM
39292008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3930
3931 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
3932 Create bitmap context in native byte order.
3933
f67e15be
MB
3934 * macterm.c (XDrawLine)
3935 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
3936 context in native byte order.
064032d0 3937
f67e15be 39382008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
50eff40f
YM
3939
3940 * config.in: Regenerate.
3941
3942 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
3943 New definitions for Image I/O support.
3944 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
3945 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
3946 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
3947 (mac_data_provider_release_data, image_load_image_io)
3948 [USE_MAC_IMAGE_IO]: New functions.
3949 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
3950 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
3951 (init_image_func_pointer) [MAC_OSX]: Remove function.
3952 (image_load_quartz2d) [MAC_OSX]: Check availability of
3953 CGImageCreateWithPNGDataProvider at compile time.
3954 Use lowercase `false' for boolean constant.
3955 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
3956 Use image_load_image_io.
3957 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
3958 Don't check MyCGImageCreateWithPNGDataProvider.
3959 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
3960 Don't call init_image_func_pointer.
3961
3962 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
3963
3964 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
3965 Make variable non-static.
3966 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
3967 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
3968
3969 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
3970 (RED_FROM_ULONG): Mask off higher bits.
3971 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
3972
3973 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
3974 Include AvailabilityMacros.h.
3975 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
3976 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
3977
c6bff69e
SM
39782008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
3979
3980 * chartab.c (Fset_char_table_range): If range is t, really set all
3981 chars to that value.
3982
7412d429
EZ
39832008-05-03 Eli Zaretskii <eliz@gnu.org>
3984
3985 * dired.c (Ffile_attributes): Don't allow the device number become
3986 negative.
3987
f83bbfac
DU
39882008-05-02 Daiki Ueno <ueno@unixuser.org>
3989
5a81d3d7 3990 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
f83bbfac 3991
2e3148e2
JL
39922008-05-02 Juri Linkov <juri@jurta.org>
3993
3994 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
728bb8e0
SM
3995 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
3996 DEFAULT argument as a list of default values in docstrings.
2e3148e2 3997
923fb88c
CY
39982008-05-01 Chong Yidong <cyd@stupidchicken.com>
3999
4000 * puresize.h (BASE_PURESIZE): Increase to 1210000.
4001
047aaeb9
MR
40022008-05-01 Martin Rudalics <rudalics@gmx.at>
4003
4004 * dispnew.c (change_frame_size_1): Preserve small windows when
4005 shrinking frames by calling set_window_height|width with third
4006 arg 2.
4007
4008 * window.h (struct window): Replace field too_small_ok by field
4009 resize_proportionally.
4010
4011 * window.c (make_window): Initialize resize_proportionally.
4012 (enlarge_window): Temporarily set resize_proportionally to make
4013 sure that shrink_windows does scale the window proportionally.
4014 (shrink_windows): When window has resize_proportionally set try
4015 to shrink it proportionally by stealing from other windows.
4016 (struct saved_window, Fset_window_configuration)
4017 (compare_window_configurations): Handle resize_proportionally.
4018 (WINDOW_TOTAL_SIZE): New macro.
4019 (window_min_size, shrink_windows, size_window): Use it.
c6bff69e 4020 (check_min_window_sizes): Remove. Invalid values of
047aaeb9
MR
4021 window-min-height|width are handled by window_min_size_2 now.
4022 (size_window, Fsplit_window, enlarge_window)
4023 (adjust_window_trailing_edge, grow_mini_window): Don't call
4024 check_min_window_sizes.
c6bff69e
SM
4025 (window_min_size_2, window_min_size_1, window_min_size):
4026 New argument safe_p for retrieving "safe" minimum sizes.
c3f9fba8 4027 (Fdisplay_buffer, Fsplit_window, enlarge_window)
c6bff69e
SM
4028 (adjust_window_trailing_edge, grow_mini_window):
4029 Adjust arguments of window_min_size... functions.
047aaeb9
MR
4030 (shrink_windows): Argument min_size removed. New argument
4031 safe_p allows shrinking windows to their safe minimum sizes.
4032 Calculate minimum size and decide whether a window shall be
4033 deleted for each window individually.
4034 (size_window): When nodelete_p equals 2, tell shrink_windows to
4035 delete windows only if their new minimum size is no more safe.
4036 (shrink_window_lowest_first): Call window_min_size_1 to make
4037 sure to preserve modeline of bottom-most window when resizing
4038 the minibuffer.
4039 (Fset_window_configuration, Fcurrent_window_configuration)
4040 (compare_window_configurations): Do not handle
4041 window-min-height|width any more.
4042 (syms_of_window): Clarify window-min-height|width doc-strings.
4043
2a54a229
SM
40442008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
4045
4046 * dired.c (file_name_completion): Fix up the encoding/decoding issue
4047 some more. Copy some of the code from Ftry_completions.
4048 Remove special case code that dates back to initial revision when the
4049 slash was only added when necessary and that can't trigger nowadays.
4050
384bc634
KH
40512008-04-27 Kenichi Handa <handa@m17n.org>
4052
4053 * font.c (font_prop_validate): Signal `error' instead of `font'.
4054
2c2279c6
JR
40552008-04-29 Jason Rumney <jasonr@gnu.org>
4056
4057 * w32fns.c (Fw32_battery_status): New defun.
4058 (syms_of_w32fns): Defsubr it.
4059
fb4a622a
AS
40602008-04-28 Andreas Schwab <schwab@suse.de>
4061
4062 * dired.c (file_name_completion): Fix another mixing of encoded
4063 and decoded names.
4064
23f250f4
JB
40652008-04-28 Juanma Barranquero <lekktu@gmail.com>
4066
4067 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
4068
d8d30dff
JB
40692008-04-27 Juanma Barranquero <lekktu@gmail.com>
4070
4071 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
4072
ea6104a8
AS
40732008-04-27 Andreas Schwab <schwab@suse.de>
4074
9c691c00
AS
4075 * dired.c (file_name_completion): Fix inappropriate mixing of
4076 encoded and decoded names.
4077
ec1bf773
AS
4078 * xterm.c (XTread_socket): Fix use of uninitialized variable.
4079
ea6104a8
AS
4080 * puresize.h (BASE_PURESIZE): Increase to 1200000.
4081
01388a3d
EZ
40822008-04-26 Eli Zaretskii <eliz@gnu.org>
4083
4084 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
4085 2008-03-31, it's not needed anymore with `struct stat' definition
4086 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
4087 for the same reasons.
4088
175aea10 40892008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
27af566c
CY
4090
4091 * m/sparc.h: Additional redefinitions for GNU/Linux.
4092
1289aeb8
YM
40932008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4094
4095 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
4096 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
4097 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
4098 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
4099 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
4100 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
4101 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
4102 Likewise.
4103
4104 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
c3f9fba8 4105 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
1289aeb8
YM
4106 (mac_ax_number_of_characters): Add externs.
4107 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
4108 [USE_MAC_TSM]: Likewise.
4109 (mac_handle_text_input_event) [MAC_OSX]:
4110 Handle kEventTextInputOffsetToPos for no active input area case.
4111 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
4112 (mac_handle_document_access_event)
4113 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
4114 (install_application_handler) [MAC_OSX]: Register handlers for
4115 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
4116 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
4117 Register mac_handle_document_access_event.
4118
4119 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
4120 Make functions non-static.
4121
dbd50d4b
SM
41222008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
4123
4124 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
4125 (read_file_name_completion_ignore_case, insert_default_directory)
4126 (Qdefault_directory): Move to minibuffer.el.
4127 (Fread_file_name): Call the new `read-file-name' instead.
4128
9ea37b9d 41292008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
81fe843b
YM
4130
4131 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
4132 Make function non-static.
4133 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
4134 Remove function.
4135 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
4136 Move to mactoolbox.c.
4137 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
4138
4139 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
4140 (mac_rect_make): New macro.
4141
4142 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
4143 instead of float.
4144 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
4145 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
4146 (XSetBackground) [USE_CG_DRAWING]: Likewise.
4147 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
4148 CGRectMake.
4149 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
4150 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
4151 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
4152 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
4153 instead of WindowRef in argument type.
4154 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
4155 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
4156 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
4157 instead of DISPLAY. All uses changed.
4158 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
4159 (x_calc_absolute_position): Simplify so as not to use
4160 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
81fe843b
YM
4161
4162 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
4163 instead of WindowRef in argument type.
4164 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
4165 [TARGET_API_MAC_CARBON]: Remove externs.
4166 (create_apple_event, mac_event_parameters_to_lisp)
4167 [TARGET_API_MAC_CARBON]: Add externs.
4168
d8d30dff 4169 * mactoolbox.c (Vmac_ts_script_language_on_focus)
81fe843b
YM
4170 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
4171 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
4172 is clicked.
4173 (x_activate_menubar): Remove extern for saved_menu_event_location.
4174 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
4175 Move from mac.c.
4176
9ea37b9d 41772008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
a1b41389
YM
4178
4179 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
4180 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
4181
9ea37b9d 41822008-04-23 Jason Rumney <jasonr@gnu.org>
bd735631
JR
4183
4184 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
4185 attributes only for local files.
4186
4187 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
e9184ccb 4188 default to Qlocal.
bd735631 4189
88970542
JL
41902008-04-22 Juri Linkov <juri@jurta.org>
4191
4192 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
4193 read-buffer-to-switch instead of using the letter "B".
4194
92ec67e3
SM
41952008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
4196
4197 * fileio.c (Qdefault_directory): New variable.
4198 (Fread_file_name): Use it to pass `dir' to the completion functions.
4199
a32b2382
CY
42002008-04-20 Chong Yidong <cyd@stupidchicken.com>
4201
2a2e8de7 4202 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
a32b2382 4203
6c8b4f07
SM
42042008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
4205
ece5f847
SM
4206 * keyboard.c (Vpre_help_message): Remove.
4207 (show_help_echo): Remove default C code.
4208
6c8b4f07
SM
4209 * dired.c (directory_files_internal, file_name_completion):
4210 Only call ENCODE_FILE if the string is indeed decoded.
4211
73d798d5
SM
42122008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
4213
4214 * Makefile.in (TOOLKIT_DEFINES): Remove.
4215 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
4216
d8d30dff 42172008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9e13f0c3
YM
4218
4219 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
4220 (mactoolbox.o): New target.
4221
4222 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
4223 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
4224
4225 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
4226 Use mac_set_frame_window_background instead of XSetWindowBackground.
4227 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
4228 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
4229 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
4230 instead of SetWindowTitleWithCFString.
4231 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
4232 Move function to mactoolbox.c.
4233 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
4234 Use mac_set_window_modified instead of SetWindowModified.
4235 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
4236 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
4237 (Fx_focus_frame): Use mac_front_non_floating_window instead of
4238 FrontNonFloatingWindow. Use mac_activate_window instead of
4239 ActivateWindow. Use mac_active_non_floating_window instead of
4240 ActiveNonFloatingWindow.
4241 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
4242 Use mac_show_hourglass and mac_hide_hourglass.
4243 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
4244 instead of GetGlobalMouse.
4245 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
4246 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
4247 Use mac_bring_window_to_front instead of BringToFront.
4248 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
4249 mactoolbox.c.
4250 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
4251 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
4252 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
4253 mactoolbox.c.
4254
4255 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
4256 (XtPointer): Move typedef from macmenu.c.
4257 (enum button_type): Move enum from macmenu.c.
4258 (widget_value): Move typedef from macmenu.c.
4259 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
4260 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
4261 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
4262 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
4263 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
4264 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
4265 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
4266 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
4267 (Selection): Move typedef from macselect.c.
4268 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
4269 macterm.c.
4270 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
4271 (mac_is_window_collapsed, mac_bring_window_to_front)
4272 (mac_send_window_behind, mac_hide_window, mac_show_window)
4273 (mac_collapse_window, mac_front_non_floating_window)
4274 (mac_active_non_floating_window, mac_activate_window)
4275 (mac_move_window_structure, mac_move_window, mac_size_window)
4276 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
4277
4278 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
4279 (enum mac_menu_kind): Move enum to mactoolbox.c.
4280 (min_menu_id): Move variable to mactoolbox.c.
4281 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
4282 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
4283 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
4284 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
4285 [TARGET_API_MAC_CARBON]: Likewise.
4286 (XtPointer): Move typedef to macgui.h.
4287 (enum button_type): Move enum to macgui.h.
d02fe47d
MB
4288 (widget_value): Move typedef to macgui.h.
4289 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
4290 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
4291 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
4292 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
4293 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
4294 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
4295 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
4296 (popup_activated_flag): Make variable non-static.
4297 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
4298 (add_menu_item, fill_menu, dispose_menus):
4299 Move functions to mactoolbox.c.
4300 (restore_show_help_function, menu_target_item_handler)
4301 (install_menu_target_item_handler, mac_handle_dialog_event)
4302 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
4303 [TARGET_API_MAC_CARBON]: Likewise.
4304 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
4305 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
4306 (find_and_call_menu_selection, name_is_separator): Make function
4307 non-static.
4308 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
4309 to mactoolbox.c.
4310 (set_frame_menubar): Don't call install_menu_quit_handler.
4311 (menu_item_selection): New variable.
4312 (mac_menu_show): Use create_and_show_popup_menu.
4313 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
4314 selection but set variable menu_item_selection. All uses changed.
4315 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
4316 Call install_menu_quit_handler. Move to mactoolbox.c.
edd3ff1d 4317
d02fe47d
MB
4318 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
4319 (Selection): Move typedef to macgui.h.
4320 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
4321 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
4322 Make variables non-static.
4323 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
4324 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
4325 Make functions non-static.
4326 (Vmac_service_selection) [MAC_OSX]: Likewise.
4327 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
4328 (mac_valid_selection_target_p, mac_clear_selection)
4329 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
4330 (mac_put_selection_value, mac_selection_has_target_p)
4331 (mac_get_selection_value, mac_get_selection_target_list)
4332 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
4333 Move functions to mactoolbox.c.
4334 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
4335 Likewise.
4336 (copy_scrap_flavor_data, mac_handle_service_event)
4337 (install_service_handler) [MAC_OSX]: Likewise.
4338 (syms_of_macselect) <Vmac_dnd_known_types>:
4339 Use mac_dnd_default_known_types.
463f55ee 4340
d02fe47d
MB
4341 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
4342 Move to mactoolbox.c.
4343 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
4344 (Fx_selection_owner_p): Add EXFUN.
4345 (install_window_handler, remove_window_handler, XSetWindowBackground):
4346 Remove externs.
4347 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
4348 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
4349 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
4350 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
4351 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
4352 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
4353 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
4354 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
4355 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
4356 (create_and_show_popup_menu, mac_get_selection_from_symbol)
4357 (mac_valid_selection_target_p, mac_clear_selection)
4358 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
4359 (mac_put_selection_value, mac_selection_has_target_p)
4360 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
4361 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
4362 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
4363 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
4364 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
4365 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
4366 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
4367 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
4368 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
463f55ee 4369
d02fe47d 4370 * mactoolbox.c: New file.
af253914 4371
d8d30dff 43722008-04-18 Jason Rumney <jasonr@gnu.org>
af253914 4373
d02fe47d 4374 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
af253914 4375
8ee085a4
SM
43762008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
4377
73d798d5
SM
4378 * character.c (Fmultibyte_char_to_unibyte):
4379 Return latin1 chars unchanged.
5556875b 4380
8ee085a4
SM
4381 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
4382 relocated if it points to `name'.
4383
5dff5999
KH
43842008-04-17 Kenichi Handa <handa@m17n.org>
4385
4386 * data.c (Faset): Allow setting a multibyte character in an
4387 ASCII-only unibyte string.
4388
4389 * lisp.h (STRING_SET_MULTIBYTE): New macro.
4390
a51f4969
SM
43912008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
4392
4393 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
4394 done in config.h.
4395
add553ac
JB
43962008-04-16 Juanma Barranquero <lekktu@gmail.com>
4397
4398 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
4399 (Fchar_direction): Add usage in the docstring.
4400
8ad7b280
CY
44012008-04-15 Chong Yidong <cyd@stupidchicken.com>
4402
4403 * keyboard.c (read_key_sequence): Remove always-true checks.
4404
e157d7ba
JR
44052008-04-14 Jason Rumney <jasonr@gnu.org>
4406
4407 * w32font.c (w32font_open_internal): Set max_bounds.descent in
4408 compatibility struct, for better underline positioning.
4409
9ec3aaef 44102008-04-13 David Hansen <david.hansen@gmx.net>
48f7d213
MA
4411
4412 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
4413 string.
4414
36c08864
DN
44152008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
4416
4417 * m/hp800.h (XUINT, XSET): Remove.
4418
f5acc071
JB
44192008-04-12 Juanma Barranquero <lekktu@gmail.com>
4420
4421 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
4422 previous change.
4423
5b5a2ea1
SM
44242008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
4425
4426 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
4427 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
4428
492d9fd6
SM
44292008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
4430
4431 * keymap.h (map_keymap_canonical): Declare.
4432 * xmenu.c (single_keymap_panes): Use it.
4433
dd60787c
GM
44342008-04-11 Glenn Morris <rgm@gnu.org>
4435
4436 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
4437 set the target's value to that of the alias.
4438
c23b5410
SM
44392008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
4440
4441 * term.c (set_tty_color_mode): Left over typo.
4442
e89b536d
MA
44432008-04-10 Michael Albinus <michael.albinus@gmx.de>
4444
4445 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
f5acc071 4446 only after check for file name handler functions. Signal, when
e89b536d
MA
4447 native functionality is not supported.
4448 (syms_of_fileio): Declare it unconditionally.
4449
40a339c8
JR
44502008-04-10 Jason Rumney <jasonr@gnu.org>
4451
31403b24
JR
4452 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
4453 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
4454
40a339c8
JR
4455 * w32.c (logon_network_drive): Also logon to remote drives that
4456 are mapped to drive letters.
4457
96a7394f
GM
44582008-04-10 Glenn Morris <rgm@gnu.org>
4459
4460 * xdisp.c (truncate-partial-width-windows): Doc fix.
4461
34b67b0f
SM
44622008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
4463
4464 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
4465 Move functions to minibuffer.el.
4466 (syms_of_fileio): Don't declare them.
4467
c025fb0a
SM
44682008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
4469
ba5ff07b
SM
4470 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
4471 (syms_of_minibuf): Remove its initialization.
4472
c025fb0a
SM
4473 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
4474
7a6a86ad
JB
44752008-04-09 Juanma Barranquero <lekktu@gmail.com>
4476
4477 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
4478
cf907d69
JR
44792008-04-09 Jason Rumney <jasonr@gnu.org>
4480
3dc94c30
JR
4481 * makefile.w32-in (distclean): Delete makefile too.
4482 (maintainer-clean): New target.
4483
8d28646b
JR
4484 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
4485
cf907d69
JR
4486 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
4487 for new font backend and composite cases.
4488
ef5eb925
JD
44892008-04-09 Jan Djärv <jan.h.d@swipnet.se>
4490
4491 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
4492 Most of the code moved to run_timers.
4493 (do_pending_atimers): Call run_timers.
4494 (run_timers): New function.
4495
cf907d69
JR
4496 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
4497 run atimers.
ef5eb925
JD
4498
4499 * process.c (wait_reading_process_output): The same as above.
4500
9b2cd403
SM
45012008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
4502
32bae13c
SM
4503 * minibuf.c (last_exact_completion): Remove variable.
4504 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
4505 (complete_and_exit_1, complete_and_exit_2)
4506 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
4507 (Fdisplay_completion_list, display_completion_list_1)
4508 (Fminibuffer_completion_help, Fself_insert_and_exit)
8d28646b
JR
4509 (Fexit_minibuffer, Fminibuffer_message): Move functions to
4510 minibuffer.el.
32bae13c
SM
4511 (syms_of_minibuf): Remove corresponding initializations.
4512
5c4cc82a
SM
4513 * keyboard.c (Qdeactivate_mark): New var.
4514 (command_loop_1): Use it to call `deactivate-mark'.
4515 (syms_of_keyboard): Initialize it.
4516
9b2cd403
SM
4517 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
4518 to another frame.
4519 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
4520 Don't call set_tty_color_mode.
4521 (store_frame_param): Reset previous_frame rather than call
4522 set_tty_color_mode.
4523 * term.c (set_tty_color_mode): Rewrite.
4524 * dispextern.h (set_tty_color_mode): New type.
4525 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
4526
84cb7b45
SM
45272008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
4528
4529 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
4530 for generic chars, which do not exist any more in emacs-unicode.
4531
3ed051d4
MA
45322008-04-08 Michael Albinus <michael.albinus@gmx.de>
4533
4534 * coding.c (detect_coding_emacs_mule)
4535 (Ffind_operation_coding_system): Fix typo.
4536
58c3ea42
JR
45372008-04-08 Jason Rumney <jasonr@gnu.org>
4538
3bf8d230
JR
4539 * w32uniscribe.c (SNAME): Extract only symbol name.
4540
56a70cca
JR
4541 * w32font.h (struct w32_metric_cache): New struct.
4542 (w32font_info): Use it.
4543 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
4544 (CACHE_BLOCKSIZE): New constants.
3ed051d4 4545
58c3ea42
JR
4546 * w32font.c (Qja, Qko, Qzh): New symbols.
4547 (syms_of_w32font): Initialise them.
4548 (font_matches_spec): Use them to filter by language.
4549 (recompute_cached_metrics): Remove function.
4550 (compute_metrics, clear_cached_metrics): New functions.
4551 (w32font_encode_char): Use them to manage metric cache.
4552 (w32font_text_extents): Cache metrics for all glyphs on demand.
4553 Delay converting glyph indices to WORD until needed.
4554 (w32font_open_internal): Initialize metric cache to empty.
4555 (registry_to_w32_charset): Charset should always be a symbol.
4556 (fill_in_logfont, list_all_matching_fonts): Family should
4557 always be a symbol.
4558
0ce24b2d
JR
45592008-04-06 Jason Rumney <jasonr@gnu.org>
4560
4561 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
4562 Give up if glyph indices not supported. Use uniscribe obtained
4563 ABC widths for individual metrics. Map glyph clusters back to
4564 characters using fClusterStart flag. Return number of glyphs
4565 produced, not chars processed.
b7655e0c 4566 (uniscribe_shape): Map char at FROM to current glyph.
0ce24b2d 4567
5bc6ddff 45682008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
56613f06 4569
fbf57abb
JB
4570 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
4571 Use SetMenuItemHierarchicalMenu.
56613f06 4572
5bc6ddff 45732008-04-05 Jason Rumney <jasonr@gnu.org>
93421a1f 4574
5bc6ddff
MB
4575 * image.c (pbm_load): Allow color values up to 65535.
4576 Throw an error if max_color_idx is outside the supported range.
4577 Report an error when image size is invalid.
4578 Read two bytes at a time when raw images have max_color_idx above 255.
1f816871 4579
5bc6ddff 45802008-04-05 Eli Zaretskii <eliz@gnu.org>
5ed6ba5b 4581
5bc6ddff
MB
4582 * w32.c (readdir): If FindFirstFile/FindNextFile return in
4583 cFileName a file name that includes `?' characters, use the 8+3
4584 alias in cAlternateFileName instead.
5ed6ba5b 4585
5bc6ddff 45862008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
32c06229 4587
5bc6ddff
MB
4588 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
4589 append "CCL: Quitted" when the CCL program is quitted.
4590 (setup_ccl_program): Initialize ccl->quit_silently to zero.
32c06229 4591
5bc6ddff 4592 * ccl.h (struct ccl_program): New member quit_silently.
32c06229 4593
c36e15db
CY
45942008-04-05 Chong Yidong <cyd@stupidchicken.com>
4595
9605d567
CY
4596 * search.c (compile_pattern_1): Treat non-nil and non-string of
4597 search-spaces-regexp as nil.
4598
c36e15db
CY
4599 * minibuf.c (Fassoc_string): Tweak docstring.
4600
40beb147
EZ
46012008-04-05 Eli Zaretskii <eliz@gnu.org>
4602
4603 * dired.c (Ffile_attributes): Support inode numbers wider than 32
4604 bits. Remove ugly WINDOWSNT-specific kludge introduced on
4605 2008-03-14 to force inode be positive.
4606
4607 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
4608 _S_* ones, since we now use our own sys/stat.h.
4609 (stat, fstat): Don't mangle the inode number.
aa08d1ff 4610 (init_user_info): Don't restrict UID and GID to 0-60000 range.
40beb147 4611
4591d6cb
SM
46122008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
4613
d4417eb0
SM
4614 * frame.h (struct frame): Give one more bit to `visible' since we use
4615 values larger than 1 to indicate obscured frames on ttys.
4616
00f7c5ed
SM
4617 * keymap.c (Qkeymap_canonicalize): New var.
4618 (Fmap_keymap_internal): New fun.
4619 (describe_map): Use keymap-canonicalize.
4620
4591d6cb
SM
4621 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
4622 (Fundo_boundary): Set them.
4623 (syms_of_undo): Initialize them.
4624 (record_point): Use them instead of last_point_position*.
4625 (last_undo_buffer): Change type.
4626
3187540e
JR
46272008-04-04 Jason Rumney <jasonr@gnu.org>
4628
0ce24b2d
JR
4629 * w32font.c (w32font_text_extents): Use font's ascent and descent.
4630 (recompute_cached_metrics): Don't set ascent and descent per char.
4631
3187540e 4632 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
4591d6cb 4633 (uniscribe_check_otf): Add GC protection before consing.
d0bfec76 4634 Rearrange loop for counting features.
3187540e 4635
f1a6b216
SM
46362008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
4637
4638 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
4639 buffer with byte-size of source buffer.
4640
1d8dcf63
CY
46412008-04-03 Chong Yidong <cyd@stupidchicken.com>
4642
4643 * callint.c (Fcall_interactively): Handle temporary region even
4644 when shift-select-mode is off.
4645
6b8aa22a
JR
46462008-04-03 Jason Rumney <jasonr@gnu.org>
4647
4648 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
4649
2f3cbb32
KH
46502008-04-03 Kenichi Handa <handa@m17n.org>
4651
4652 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
4653 (CATEGORY_MASK_UTF_16): Likewise.
4654 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
4655 binary file.
4656 (detect_coding): Add null-byte detection for a binary file.
4657 (detect_coding_system): Likewise.
4658
43f4f91c
JR
46592008-04-03 Jason Rumney <jasonr@gnu.org>
4660
0c1b4ae2
JR
4661 * w32uniscribe.c: New file.
4662
4663 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
4664
4665 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
4666
4667 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
4668 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
4669 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
4670 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
4671 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
4672 (Qphonetic): New symbols.
4673 (syms_of_w32font): Initialize them.
4674 (font_supported_scripts): Use them.
4675 (w32font_list_family): List all charsets.
4676 (w32font_text_extents, recompute_cached_metrics): Fix metric
4677 calculations.
4678 (w32_enumfont_pattern_entity): Make full_type a DWORD.
4679 Give opentype fonts their own format.
4680 (font_matches_spec): New arguments backend and logfont.
4681 Handle :otf spec for uniscribe backend.
4682 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
4683 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
4591d6cb 4684
0c1b4ae2
JR
4685 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
4686 font backend.
4687 (globals_of_w32fns): Initialize uniscribe font backend.
4688
fbf57abb 4689 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
0c1b4ae2
JR
4690 dependencies.
4691 (w32uniscribe.$(O)): New file to build.
4692 (FONT_OBJ): Include w32uniscribe.$(O).
4693 (LIBS): Add uniscribe libraries.
4694
43f4f91c
JR
4695 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
4696
75043a7d
CY
46972008-04-02 Chong Yidong <cyd@stupidchicken.com>
4698
4699 * callint.c (Vshift_select_mode): New var.
4700 (Finteractive): Document new ^ spec.
4701 (Fcall_interactively): Call handle-shift-selection if the ^ spec
4702 is present.
4703
4704 * keyboard.c (Vthis_command_keys_shift_translated): New var.
4705 (command_loop_1): Avoid running the direct display versions of
4706 forward-char and backward-char if shift-selection may occur.
75043a7d
CY
4707 (read_key_sequence): Set Vthis_command_keys_shift_translated if
4708 shift-translation takes place.
4709
4710 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
4711 avoid clobbering by define-minor-mode.
4712
4713 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
4714 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
4715
4716 * syntax.c (Fforward_word): Add ^ interactive spec.
4717
4718 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
4719 (Fscroll_right): Add ^ interactive spec.
4720
b2b7f29e
SM
47212008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
4722
a432c0a6
SM
4723 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
4724
994b75e0
SM
4725 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
4726
b2b7f29e
SM
4727 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
4728
e99c7806
JL
47292008-03-31 Juri Linkov <juri@jurta.org>
4730
4731 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
4732
1c9c1270
JD
47332008-03-30 Jan Djärv <jan.h.d@swipnet.se>
4734
4735 * gtkutil.c (xg_set_geometry): Fix indentation.
994b75e0 4736 (xg_resize_outer_widget): Remove.
1c9c1270
JD
4737 (x_wm_size_hint_off): Fix indentation.
4738 (xg_frame_set_char_size): Call flush_and_sync after
4739 gtk_window_resize.
4740 (x_wm_set_size_hint): Pass NULL as geometry window to
4741 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
4742 Add menu bar and tool bar height to base height.
4743 (xg_update_frame_menubar, free_frame_menubar)
4744 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
994b75e0
SM
4745 (update_frame_tool_bar, free_frame_tool_bar):
4746 Change xg_resize_outer_widget to xg_frame_set_char_size.
1c9c1270 4747
90b3fc84
MA
47482008-03-30 Michael Albinus <michael.albinus@gmx.de>
4749
4750 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
4751 (Fdbus_call_method): New parameter TIMEOUT.
4752 (dbus-send-signal): Optimize UNGCPRO call.
4753
7ae6d1d1
JL
47542008-03-29 Juri Linkov <juri@jurta.org>
4755
4756 * window.c (Fdisplay_buffer): Move call to
4757 Vsplit_window_preferred_function out of conditions that check
4758 if window is eligible for vertical splitting.
4759 When Vsplit_window_preferred_function is non-nil, call it and use
4760 its non-nil return value as window. Otherwise, continue doing
4761 vertical splitting using Fsplit_window with arg horflag=nil.
4762 (syms_of_window) <Vsplit_window_preferred_function>: Change the
4763 default value from `split-window' to nil.
4764
f03f8f2c
JL
47652008-03-29 Juri Linkov <juri@jurta.org>
4766
4767 * callint.c (Fcall_interactively): Revert 2008-03-16 change
4768 for interactive code letters 'b' and 'B'.
4769
6d557778
EZ
47702008-03-29 Eli Zaretskii <eliz@gnu.org>
4771
4772 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
4773 multibyte string.
4774
58555d81
SM
47752008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
4776
4777 * keyboard.c (pending_funcalls): New var.
4778 (timer_check): Run it.
4779 (syms_of_keyboard): Initialize it.
4780 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
4781 (Vdelete_terminal_functions): New vars.
4782 (syms_of_terminal): Initialize them.
4783 (Fdelete_terminal): Run delete-terminal-functions.
4784 * xdisp.c (safe_eval): Rewrite.
4785 (safe_call2): New fun.
4786 * frame.c (Qdelete_frame_functions): New var.
4787 (syms_of_frame): Initialize it.
4788 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
4789 * lisp.h (safe_call2, pending_funcalls): Declare.
4790
4c92f429
AS
47912008-03-28 Andreas Schwab <schwab@suse.de>
4792
4793 * indent.c (Fmove_to_column): Move declaration before statements.
4794
a1567c45
SM
47952008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
4796
2806a183
SM
4797 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
4798 (struct frame): Use bit fields for boolean vars.
4799
eef60308
SM
4800 * process.c (server_accept_connection): Simplify naming.
4801 (emacs_get_tty_pgrp): Use SDATA.
4802
a1567c45
SM
4803 * coding.c (decode_coding_object): Fix last change.
4804
30076589
JR
48052008-03-27 Jason Rumney <jasonr@gnu.org>
4806
4807 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
4808
880820fe
KH
48092008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
4810
4811 * charset.c (Fdefine_charset_internal): Change the way of
4812 registering charsets in Vcharset_order_list.
4813 (syms_of_charset): Make the charset `eight-bit' supplementary.
4814
3cf8cdfb
CY
48152008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
4816
4817 * regex.c (EXTEND_BUFFER): Change order of pointer addition
4818 operations, to avoid having the difference between pointers
4819 overflow.
4820
ef6f5c0e
SM
48212008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
4822
80e3db56
SM
4823 * indent.c (check_display_width): New fun.
4824 (scan_for_column): Use it.
4825
c397dc7a
SM
4826 * data.c (syms_of_data): Mark most-positive-fixnum and
4827 most-negative-fixnum as constants.
4828
bf6b4d58
SM
4829 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
4830
ef6f5c0e
SM
4831 * indent.c (scan_for_column): Extract from current_column_1.
4832 Merge with the same code from Fmove_to_column.
4833 (current_column_1, Fmove_to_column): Use it.
4834
72d5003d
SM
48352008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
4836
12270607
SM
4837 * keymap.c (map_keymap_internal): New fun.
4838 (map_keymap): Use it.
4839 (Fmap_keymap_internal): New fun.
4840 (Fmap_keymap): Remove left-out test from before make_save_value.
4841
a10cca6c
SM
4842 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
4843
d7b10f4c
SM
4844 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
4845 Use XCAR/XCDR.
4846
5431bd6a
SM
4847 * process.h (struct Lisp_Process): Remove filter_multibyte.
4848 * process.c (QCfilter_multibyte): Remove.
4849 (setup_process_coding_systems): Don't use filter_multibyte.
4850 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
4851 (read_process_output): Don't adjust multibyteness to filter_multibyte.
4852 (Fset_process_filter_multibyte): Change the coding-system to
4853 approximate the previous behavior.
4854 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
4855 coding-system.
4856
72d5003d
SM
4857 * coding.c (decode_coding_object): When not decoding into a buffer,
4858 obey the coding system's preference of (uni|multi)byte.
4859
438eba3c
SM
48602008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
4861
4862 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
4863 every char is changed and has a different byte-length.
4864 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
4865 Fix int -> EMACS_INT.
4866
9ec3aaef 48672008-03-23 David Hansen <david.hansen@gmx.net>
a8e72f4f 4868
438eba3c 4869 * dbusbind.c (xd_read_message): Remove extra copying of message
a8e72f4f
MA
4870 strings. Check for NULL `interface' or `member'.
4871
b07103dc
EZ
48722008-03-22 Eli Zaretskii <eliz@gnu.org>
4873
4874 * w32.c (readdir): If FindFirstFile/FindNextFile return in
4875 cFileName a file name that includes `?' characters, use the 8+3
4876 alias in cAlternateFileName instead.
4877
5371d722
SM
48782008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
4879
4880 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
4881
6ba7f443
SM
48822008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
4883
4884 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
4885 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
4886 work on current_buffer only instead (that was already the case
4887 for some of the code anyway).
4888 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
4889 (temp_set_point, temp_set_point_both): Use EMACS_INT.
4890 (SET_PT, SET_PT_BOTH): Adjust.
4891 * intervals.h (set_point, temp_set_point, set_point_both)
4892 (temp_set_point_both): Remove redundant declarations.
4893
bf1c0f27
SM
48942008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
4895
4896 * fileio.c (Finsert_file_contents):
4897 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
4898 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
4899 when buffer != current_buffer anyway.
4900
acab783e
AS
49012008-03-20 Andreas Schwab <schwab@suse.de>
4902
4903 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
4904 as default.
4905
d148e14d
JR
49062008-03-19 Jason Rumney <jasonr@gnu.org>
4907
4908 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
4909 (syms_of_w32fns): Initialize them.
4910 (HOURGLASS_ID): New constant.
4911 (x_window_to_frame): Don't check hourglass_window.
4912 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
4913 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
4914 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
4915 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
4916 Only change the cursor if hourglass is not active.
4917 (Fx_create_frame): Initialize frame's current_cursor.
4918 (hourglass_atimer): Remove.
4919 (hourglass_started): New function.
4920 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
4921 (show_hourglass): Adapt to w32, changing argument to frame.
4922
4923 * w32term.h (struct w32_output): Remove hourglass_window.
4924 Add current_cursor.
4925
4926 * eval.c (call_debugger, Fsignal):
4927 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
4928 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
4929 (Fexecute_extended_command, cancel_hourglass_unwind):
4930 * minibuf.c (read_minibuf):
4931 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
63558020 4932
a5c54077
JB
49332008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
4934
4935 * window.c (run_funs): New fun.
4936 (run_window_configuration_change_hook): Use it to run the buffer-local
4937 and the global part of the hook.
4938
4939 * xdisp.c (format_mode_line_unwind_data): Add window argument.
4940 (unwind_format_mode_line): Restore selected window.
4941 (x_consider_frame_title, Fformat_mode_line): Set selected window.
4942
f9f3238f
SM
49432008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4944
253c3c82
SM
4945 * editfns.c (Fchar_equal): Check they are valid characters.
4946
f9f3238f
SM
4947 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
4948
065a118d
AS
49492008-03-17 Andreas Schwab <schwab@suse.de>
4950
0b8be006
AS
4951 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
4952 against a charset.
4953
065a118d
AS
4954 * lisp.h (Fbuffer_list): Declare.
4955
880820fe 49562008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d3b2a6da
JD
4957
4958 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
4959 handlebox_widget is != 0.
4960
6206d6c2
JL
49612008-03-16 Juri Linkov <juri@jurta.org>
4962
4963 * callint.c (Fcall_interactively): For interactive code letters
4964 'b' and 'B' put the buffer list into the list of default "future"
4965 values of the minibuffer.
4966
f5020181
AS
49672008-03-16 Andreas Schwab <schwab@suse.de>
4968
a864f6d6
AS
4969 * keyboard.c (read_key_sequence): Fix downcasing of letters with
4970 modifiers.
4971
f5020181
AS
4972 * regex.c (re_match_2_internal): Correct matching of a charset
4973 against latin-1 characters.
4974
03f244e2
KH
49752008-03-16 Kenichi Handa <handa@m17n.org>
4976
4977 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
4978 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
f9f3238f
SM
4979 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
4980 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
03f244e2
KH
4981 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
4982 CHAR_STRING_ADVANCE.
4983 (produce_chars): Fix for the case that the source and the
4984 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
4985 instead of CHAR_STRING_ADVANCE.
4986 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
4987 STRING_CHAR_ADVANCE.
4988
0e2501ed
AS
49892008-03-15 Andreas Schwab <schwab@suse.de>
4990
4991 * regex.c (re_match_2_internal): Correct matching of eight bit
4992 characters in unibyte strings.
4993
7723e095
MR
49942008-03-15 Martin Rudalics <rudalics@gmx.at>
4995
4996 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
4997 at end of range when it coincides with the end of the buffer.
4998
f507f365
EZ
49992008-03-14 Eli Zaretskii <eliz@gnu.org>
5000
294f1153
EZ
5001 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
5002
f507f365
EZ
5003 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
5004
64f0809d
JR
50052008-03-14 Jason Rumney <jasonr@gnu.org>
5006
956ae531
JR
5007 * editfns.c (initial_tz): New variable.
5008 (syms_of_editfns): Initialize it.
5009 (Fset_time_zone_rule): Set it when first called.
5010 Use it when TZSTRING is nil.
5011
64f0809d
JR
5012 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
5013 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
5014 (monitor_from_point_fn, get_monitor_info_fn): New globals.
5015 (globals_of_w32fns): Initialize them.
5016 (compute_tip_xy): Use them to position tooltips.
5017
21a4ff8e
GM
50182008-03-14 Glenn Morris <rgm@gnu.org>
5019
5020 * emacs.c (main): Revert previous change.
5021 (standard_args): Revert -internal-script back to -scriptload,
5022 and remove the long-option form.
5023
a09a5b5b
GM
50242008-03-13 Glenn Morris <rgm@gnu.org>
5025
5026 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
5027 Remove option -enable-font-backend.
5028
1c55ebd1
SM
50292008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
5030
5031 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
5032
880820fe 50332008-03-11 Jan Djärv <jan.h.d@swipnet.se>
c523e161
JD
5034
5035 * xterm.c (x_connection_closed): For GTK: If this is the last
5036 terminal just exit without closing the display.
5037
7145be81
JR
50382008-03-11 Jason Rumney <jasonr@gnu.org>
5039
5040 * w32font.c (w32font_full_name): Use floor to round.
5041
e6201af3 50422008-03-10 dhruva <dhruvakm@gmail.com> (tiny change)
ce9033f8
JD
5043
5044 * sound.c (alsa_configure): Declare vol at beginning of block.
5045
e6201af3 5046 * fontset.c (Ffontset_info): Remove extra semicolon.
ce9033f8 5047
390b81fa 50482008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
acd37560 5049
56388398
MB
5050 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
5051 size of resulting string.
af0ad939 5052
390b81fa 50532008-03-10 Jason Rumney <jasonr@gnu.org>
acd37560 5054
56388398 5055 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
acd37560 5056
390b81fa 50572008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
acd37560 5058
56388398
MB
5059 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
5060 Don't pretend as if characters with display property haven't been
5061 consumed for string-replacing-string case.
acd37560 5062
223ed6db
KS
50632008-03-08 Kim F. Storm <storm@cua.dk>
5064
5065 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
5066 (get_next_display_element, next_element_from_string)
5067 (next_element_from_ellipsis, next_element_from_buffer): Use it.
5068
28545f7c
AS
50692008-03-08 Andreas Schwab <schwab@suse.de>
5070
5071 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
5072
c960bff8
JR
50732008-03-06 Jason Rumney <jasonr@gnu.org>
5074
290afd83
JB
5075 * w32font.c (w32_registry): Take font_type argument. Use ANSI
5076 when charset not specified. Only translate ANSI to unicode when
c960bff8
JR
5077 font_type is truetype.
5078 (w32font_coverage_ok): New function.
5079 (add_font_entity_to_list): Use it to filter unsuitable fonts.
5080
87b8ce92
KH
50812008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
5082
5083 * lread.c (Fread_char): Resolve modifiers.
5084 (Fread_char_exclusive): Likewise.
5085
5086 * character.c (char_resolve_modifier_mask): New function.
5087 (char_string): Use char_resolve_modifier_mask.
5088 (Fchar_resolve_modifiers): New function.
5089 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
5090 function.
5091
cefd56f6
JR
50922008-03-04 Jason Rumney <jasonr@gnu.org>
5093
5094 * makefile.w32-in: Always include w32font.c in the build.
5095 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
5096
03bd3c1f
AS
50972008-03-04 Andreas Schwab <schwab@suse.de>
5098
5099 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
5100 (versionclean): Likewise.
5101
6f69e89b
JB
51022008-03-04 Juanma Barranquero <lekktu@gmail.com>
5103
5104 * .cvsignore: Add oo.
5105
f4a3cc44
AS
51062008-03-03 Andreas Schwab <schwab@suse.de>
5107
5108 * coding.c (decode_coding_object): Inhibit gap shrinking while
5109 decoding in place.
5110
73f838ad
DN
51112008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
5112
5113 * w32term.c: Remove unused include "gnu.h".
6f69e89b 5114 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
73f838ad
DN
5115
5116 * gnu.h: Rename to ...
5117 * emacs-icon.h: ... this.
5118 * xterm.c: Use emacs-icon.h instead of gnu.h.
5119 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
5120
ce9c1f06
JB
51212008-03-03 Juanma Barranquero <lekktu@gmail.com>
5122
5123 * w32font.c: Include math.h.
5124
34fd2d28
JR
51252008-03-03 Jason Rumney <jasonr@gnu.org>
5126
54efdcd1
JR
5127 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
5128 Compute options separately.
5129 (w32font_open_internal): Set glyph_idx before caching metrics.
5130
ce9c1f06
JB
5131 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
5132 Define if system headers don't.
5133 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
34fd2d28
JR
5134 (w32font_encode_char): Don't declare here.
5135
5136 * w32font.c (Quniscribe, QCformat): New symbols.
5137 (syms_of_w32font): Define them.
5138 (w32font_has_char): Indicate uncertainty.
ce9c1f06 5139 (w32font_encode_char): Encode as glyph point. Make static.
34fd2d28 5140 (recompute_cached_metrics): New function.
ce9c1f06
JB
5141 (w32font_open_internal): Use it. Set font to use glyph points
5142 initially. Set format based on type of font.
34fd2d28 5143 (w32font_text_extents, w32font_draw): Optionally use glyph points.
ce9c1f06
JB
5144 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
5145 on it. Set format based on information available here.
34fd2d28
JR
5146 (add_font_entity_to_list): Identify backend based on opentype_only.
5147
14daee73
AS
51482008-03-02 Andreas Schwab <schwab@suse.de>
5149
f907fb2e
AS
5150 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
5151
ce9c1f06
JB
5152 * coding.c (decode_coding_big5, produce_chars):
5153 Fix typos in last change.
14daee73 5154
c9cc6462
DN
51552008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
5156
5157 * gnu.h: New icon.
5158
119852e7
KH
51592008-03-02 Kenichi Handa <handa@m17n.org>
5160
5161 * coding.c (decode_coding_utf_8): When eol-type of CODING is
5162 `dos', don't decode '\r' if that is the last in the source.
5163 (decode_coding_utf_16, decode_coding_emacs_mule)
5164 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5165 (decode_coding_raw_text, decode_coding_charset): Likewise.
5166 (produce_chars): Don't decode EOL here. Use EMACS_INT.
5167
a823468b
JR
51682008-03-01 Jason Rumney <jasonr@gnu.org>
5169
5170 * w32font.c (w32font_full_name): Report point size for scalable fonts.
5171
4ddc7e30
KS
51722008-03-01 Kim F. Storm <storm@cua.dk>
5173
5174 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
5175
67997c79
JR
51762008-03-01 Jason Rumney <jasonr@gnu.org>
5177
5178 * w32font.c (w32font_full_name): New function.
5179 (w32font_open_internal): Use it.
5180
3f4e9c35
KS
51812008-03-01 Kim F. Storm <storm@cua.dk>
5182
5183 * dispnew.c (line_draw_cost): Fix invalid glyph check.
5184
f3b9e479
JR
51852008-03-01 Jason Rumney <jasonr@gnu.org>
5186
5187 * font.c (font_unparse_fcname): Increase len when style is a symbol.
5188
880820fe 51892008-03-01 Jan Djärv <jan.h.d@swipnet.se>
7ee480ce
JD
5190
5191 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
5192 xg_frame_resized when the event is for the edit widget.
5193
5194 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
5195
5196 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
5197 set_char_size.
5198 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
5199 operations on widgets here. Just set frame size if needed.
5200 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
5201 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
5202 (x_wm_set_size_hint): Set size hints on the edit widget only, not
5203 the whole frame.
5204 (xg_create_tool_bar): Move attachement of the tool bar to
5205 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
5206 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
5207
6c8acaa1
JR
52082008-03-01 Jason Rumney <jasonr@gnu.org>
5209
5210 * w32fns.c (w32_msg_pump): Disable debug code.
5211
51fb064b 52122008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
03eb5fab 5213
51fb064b 5214 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
cb681b34 5215
60221a33
CY
52162008-02-29 Chong Yidong <cyd@stupidchicken.com>
5217
5218 * xdisp.c (next_overlay_string): Don't set
5219 overlay_strings_at_end_processed_p if we're currently reading from
5220 a display string.
5221
10cbc34f
SM
52222008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
5223
5224 * xdisp.c (get_overlay_strings_1): Fix typo.
5225
73c0054e
CY
52262008-02-29 Chong Yidong <cyd@stupidchicken.com>
5227
5228 * xdisp.c (get_overlay_strings_1): Add missing argument type.
5229
ec1c4354
KH
52302008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
5231
55082642
KH
5232 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
5233
ec1c4354
KH
5234 * xdisp.c (display_mode_element): Cancel the previous change.
5235 (decode_mode_spec): Likewise.
ee548a94
KH
5236 (handle_auto_composed_prop): Don't make composition if it->string
5237 is a string.
ec1c4354 5238
b6d898a2
KS
52392008-02-27 Kim F. Storm <storm@cua.dk>
5240
5241 * lisp.h (GLYPH): Change type from int to struct with separate char
5242 and face_id members.
5243 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
5244 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
5245 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
5246 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
5247 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
5248 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
5249 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
5250 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
5251 handle new Lisp glyph code encoding, either an integer or a cons.
5252
5253 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
5254 (GLYPH_ALIAS): Delete.
5255 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
5256 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
5257 (GLYPH_FROM_CHAR): Replace macro by ...
5258 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
5259
5260 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
5261 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
5262 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
5263 (GLYPH_INVALID_P): New macro.
5264 (spec_glyph_lookup_face): Update prototype.
5265
5266 * dispnew.c (line_draw_cost): Adapt to new glyph type.
5267 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
5268 new glyph code encoding.
5269 (spec_glyph_lookup_face): No return value; update passed glyph instead.
5270 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
5271
5272 * xdisp.c (get_next_display_element, next_element_from_display_vector):
5273 Adapt to new glyph type and new glyph code encoding.
5274
5275 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
5276
5277 * indent.c (current_column, current_column_1, Fmove_to_column)
5278 (compute_motion): Adapt to new glyph code encoding.
5279
5280 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
5281
af2080a2
CY
52822008-02-27 Chong Yidong <cyd@stupidchicken.com>
5283
5284 * process.c (wait_reading_process_output): Check for window
5285 changes caused by timers.
880820fe 5286 Suggested by Johan Bockgård.
af2080a2 5287
253ed25e
GM
52882008-02-27 Glenn Morris <rgm@gnu.org>
5289
5290 * emacs.c (USAGE1): Add `--disable-font-backend'.
5291
18a9f8d9
SM
52922008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
5293
5294 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
5295 is made to the buffer.
5296
0f8b27ea
SM
52972008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
5298
5299 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
5300 (face_at_string_position):
5301 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
5302 (face_at_string_position):
5303 * xdisp.c (display_string, next_overlay_change):
5304 * buffer.h (overlays_at):
5305 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
5306 Update callers.
5307
4e7c53ca
CY
53082008-02-26 Chong Yidong <cyd@stupidchicken.com>
5309
5310 * editfns.c (Fformat): Doc fix.
5311
51c01100
JB
53122008-02-26 Juanma Barranquero <lekktu@gmail.com>
5313
5314 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
5315 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
5316 (Ffont_otf_alternates, Fquery_font): Doc fixes.
5317
13cda5f9
SM
53182008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
5319
5320 * buffer.c (Fbuffer_swap_text): New function.
5321 (syms_of_buffer): Defsubr it.
5322
8018d430
CY
53232008-02-25 Chong Yidong <cyd@stupidchicken.com>
5324
5325 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
5326
9bde1a21
JR
53272008-02-25 Jason Rumney <jasonr@gnu.org>
5328
5329 * w32font.c (w32font_draw): Draw one character at a time when padding.
5330
eeca6f6f
SM
53312008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
5332
5333 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
5334 Handle a nil arg. Use run_window_configuration_change_hook.
5335 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
5336 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
5337 Use run_window_configuration_change_hook.
5338
ec1c4354
KH
53392008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
5340
5341 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
5342 1-pixel width.
5343
ae185452
KH
53442008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
5345
5346 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
5347 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
5348 if the glyph in the font is zero pixel with.
5349
5350 * dispextern.h (struct glyph_string): New member padding_p.
5351
5352 * w32font.c (w32font_draw): Pay attention to s->padding_p.
5353
5354 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
5355
5356 * xfont.c (xfont_draw): Pay attention to s->padding_p.
5357
5358 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
5359
eeca6f6f 5360 * font.c: If the font driver doesn't have `shape' function, return Qnil.
ae185452 5361
ffe832ea 53622008-02-25 Jason Rumney <jasonr@gnu.org>
c9029fe5 5363
ffe832ea 5364 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
16782258 5365
06045130
SM
53662008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
5367
5368 Allow fine-grained image-cache flushing.
5369 * dispextern.h (struct image): Add `dependencies' field.
5370 (clear_image_caches): Change arg to Lisp_Object.
5371 * image.c (make_image): Initialize `dependencies' field.
5372 (clear_image_cache): Change arg to allow fine-grained flushing.
5373 Perform the flush even if image-cache-eviction-delay is nil.
5374 (clear_image_caches): Change arg to Lisp_Object.
5375 (Fclear_image_cache): Expand meaning of the argument.
5376 (mark_image): Mark `dependencies' field.
5377 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
5378 (lface_hash): Use XHASH rather than XFASTINT.
5379 (face_at_buffer_position): Fix int -> EMACS_INT position.
5380 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
5381 (select_frame_for_redisplay): Remove code duplication.
5382 (redisplay_internal): Adapt arg to call to clear_image_caches.
5383
9d2818d6
DN
53842008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
5385
5386 * s/vms4-0.h:
5387 * s/vms4-2.h:
5388 * s/vms4-4.h:
5389 * s/vms5-5.h: Remove, unused.
5390
5391 * s/irix5-2.h:
5392 * s/irix6-0.h:
5393 * s/riscos5.h:
5394 * s/mach-bsd4-3.h:
2a2e8de7 5395 * m/mips4.h: Remove files for obsolete systems.
9d2818d6
DN
5396
5397 * Makefile.in:
5398 * filelock.c:
5399 * unexmips.c:
5400 * m/hp9000s300.h:
5401 * m/iris4d.h:
5402 * s/aix3-1.h:
5403 * s/hpux.h:
5404 * s/msdos.h:
5405 * s/usg5-0.h:
5406 * s/usg5-2-2.h:
5407 * s/usg5-2.h:
5408 * s/usg5-3.h: Remove references to obsolete variables.
5409
5410 * s/irix5-0.h: Remove, move all the contents ...
5411 * s/irix6-5.h: ... here. Simplify.
5412 * config.in: Regenerate.
5413
2a36efcf
JR
54142008-02-24 Jason Rumney <jasonr@gnu.org>
5415
c5ad7a3d 5416 * w32term.c (x_draw_glyph_string_background): Clear the background
2face669
JR
5417 manually when cleartype is in use.
5418 (x_draw_glyph_string_foreground): Draw text transparently when
5419 cleartype is in use.
5420
2a36efcf
JR
5421 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
5422 a font into it unless we have to.
5423
b03f96dc 54242008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
92a8ce63 5425
b03f96dc
MB
5426 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
5427 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
92a8ce63 5428
b03f96dc 54292008-02-18 Jason Rumney <jasonr@gnu.org>
92a8ce63 5430
b03f96dc 5431 * w32fns.c (Fw32_shell_execute): Encode parameters.
92a8ce63 5432
b03f96dc 54332008-02-09 Eli Zaretskii <eliz@gnu.org>
20f1ef2e 5434
b03f96dc 5435 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
32d0a9dc 5436
b03f96dc 54372008-02-05 Juanma Barranquero <lekktu@gmail.com>
20f1ef2e 5438
b03f96dc 5439 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
77d1daf2 5440
d5958163
CY
54412008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
5442
5443 * xterm.c (x_set_offset): Don't change the gravity if
5444 CHANGE_GRAVITY is -1.
5445
9997701e
CY
54462008-02-23 Chong Yidong <cyd@stupidchicken.com>
5447
5448 * fileio.c (auto_save_error_occurred): New var.
5449 (auto_save_error): Set it.
5450 (Fdo_auto_save): Don't overwrite the error message if an auto-save
5451 error occurred.
5452
9d95a291
EZ
54532008-02-23 Eli Zaretskii <eliz@gnu.org>
5454
5455 * w32.c (globals_of_w32): Add initializations for
5456 g_b_init_get_sid_sub_authority and
5457 g_b_init_get_sid_sub_authority_count.
5458
43d1af23
SM
54592008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
5460
43a1d19b
SM
5461 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
5462 (font_parse_xlfd): Use them for sanity check.
608c3307 5463 (Finternal_set_font_style_table): Make sure the table is bijective.
43a1d19b 5464
354884c4
SM
5465 Consolidate the image_cache to the terminal struct.
5466 * termhooks.h (P_): Remove redundant def.
5467 (struct terminal): New field `image_cache'.
5468 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
5469 of FRAME_X_IMAGE_CACHE.
5470 * xterm.h (struct x_display_info): Remove image_cache field.
5471 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
5472 * w32term.h (struct w32_display_info): Remove image_cache field.
5473 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
5474 * macterm.h (struct mac_display_info): Remove image_cache field.
5475 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
5476 * xterm.c (x_term_init):
5477 * w32term.c (w32_term_init):
5478 * macterm.c (mac_term_init): Set the image_cache in the terminal.
5479 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
5480 Remove declarations.
5481 (clear_image_caches, mark_image_cache): New declarations.
5482 * xfaces.c (clear_face_cache):
5483 * xdisp.c (redisplay_internal): Use clear_image_caches.
5484 * image.c (clear_image_cache): Don't check that a frame is on
5485 a window-system before checking if it shares the same cache.
5486 (clear_image_caches): New function.
5487 (Fclear_image_cache): Use it.
5488 (mark_image): Move from allo.c.
5489 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
5490 * alloc.c (mark_image, mark_image_cache): Move to image.c.
5491 (mark_object): Don't call mark_image_cache for frames.
5492 (mark_terminals): Call mark_image_cache.
5493
c2e42690
SM
5494 * lisp.h (Fdelete_terminal): Declare.
5495
43d1af23
SM
5496 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
5497 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
5498 wrong_type_argument.
5499
cc8d1311
KH
55002008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
5501
5502 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
4a4bdfc7 5503 malayalam.el, and tamil.el. Add sinhala.el.
cc8d1311 5504
6bd92640
SM
55052008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
5506
5507 * xterm.c (x_connection_closed): Consolidate identical tests.
5508 (x_delete_terminal): Don't crash if called via x_connection_closed.
5509
a73b5627
KH
55102008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
5511
5512 * xdisp.c (decode_mode_spec): New arg string.
6bd92640 5513 (display_mode_element): Adjust for the above change.
a73b5627 5514
1b511542
SM
55152008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
5516
5517 * callint.c (Fcall_interactively): Use AREF.
5518
81aefea4
SM
55192008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
5520
5521 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
5522
880820fe 55232008-02-18 Jan Djärv <jan.h.d@swipnet.se>
2d7117fe
JD
5524
5525 * xfns.c (Fx_show_tip): Set string to " " if empty.
5526
a2b84f35
DN
55272008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
5528
5529 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
5530 with Qt.
5531
43c0454d
KH
55322008-02-17 Kenichi Handa <handa@m17n.org>
5533
5534 * ftfont.c (ftfont_shape): Return Lispy number.
5535
5536 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
5537 for GCs.
5538 (Finternal_set_font_selection_order): Call font_update_sort_order
5539 only when enable_font_backend is set.
5540 (realize_x_face): Set face->font_info to that of default face only
5541 when enable_font_backend is set.
5542
5543 * xdisp.c (handle_composition_prop): Set it->c to the fist
5544 characte of the composed region.
5545 (fill_composite_glyph_string): Set base_face->font_info to
5546 s->font_info. Get a face for ascii from base_face->ascii_face.
5547 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
5548 with a face already decided.
5549 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
5550 non-negative.
978bef9a
JB
5551 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
5552 call font_prepare_composition unconditionally.
43c0454d 5553
978bef9a 5554 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
43c0454d
KH
5555
5556 * xterm.h (struct x_display_info): New member font.
5557
5558 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
5559 (x_set_mouse_face_gc, x_new_font): Likewise.
5560 (x_term_init): Setup display_info->font.
5561 (x_delete_terminal): Free display_info->font.
5562
5563 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
5564
5565 * ftxfont.c (ftxfont_default_fid): Delete it.
5566 (ftxfont_open): Set xfont->fid to 0.
978bef9a 5567 (ftxfont_end_for_frame): Clear data specific to the frame and the
43c0454d
KH
5568 font-driver.
5569
5570 * xftfont.c (xftfont_default_fid): Delete it.
5571 (xftfont_open): Set xfont->fid to 0.
5572
5573 * fontset.c (FONTSET_OBJLIST): New macro.
5574 (fontset_find_font): Update font-object list of the fontset.
5575 (free_realized_fontset): New function.
5576 (free_face_fontset): Call free_realized_fontset.
5577 (Ffont_info): Call font_close_object only when enable_font_backend
5578 is set.
5579
5580 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
5581 [HAVE_NTGUI]: Include w32term.h.
5582 [MAC_OS]: Include macterm.ch.
5583 (font_otf_ValueRecord): Use make_number.
5584 (font_finish_cache): Fix handling of reference count.
5585 (font_clear_cache): Update num_fonts.
5586 (font_open_entity): Update smallest_char_width and
5587 smallest_font_height of the frame.
5588 (font_close_object): Update num_fonts.
5589 (Fclear_font_cache): Fix finding the target cache data.
5590
be617367
GM
55912008-02-16 Glenn Morris <rgm@gnu.org>
5592
5593 * fontset.c (Finternal_char_font): Fix compilation warning.
5594
2930d117
EZ
55952008-02-16 Eli Zaretskii <eliz@gnu.org>
5596
634d3003
EZ
5597 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
5598 instead of char arrays. Enlarge the size of array passed to
5599 get_token_information.
5600
2930d117
EZ
5601 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
5602 warnings.
5603
79214046
DN
56042008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
5605
5606 * .gdbinit: Don't set `args', it breaks gdb --args.
5607
7f5d2c72
SM
56082008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
5609
5610 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
5611 within a narrowed buffer.
5612
6edacc43
KH
56132008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
5614
b270d6af
JB
5615 * coding.c (decode_coding_object, encode_coding_object):
5616 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
6edacc43 5617
174105f7
SM
56182008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
5619
b270d6af
JB
5620 * coding.c (coding_set_destination): Use BEG_BYTE rather than
5621 hardcoding 1.
13818c30
SM
5622 (detect_coding_system):
5623 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
5624 (string_char_to_byte, string_byte_to_char, insert_from_gap):
5625 * insdel.c (insert_from_gap):
5626 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
5627 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
5628 (string_to_multibyte):
5629 * character.c (chars_in_text, multibyte_chars_in_text):
5630 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
5631
f1c99628
SM
5632 * character.h (FETCH_STRING_CHAR_ADVANCE)
5633 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
5634 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
5635 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
5636
7927d8e3
SM
5637 * casefiddle.c (casify_region): Only call after-change and composition
5638 functions on the part of the region that was changed.
5639
adf6a429 5640 * keyboard.c (read_avail_input):
174105f7
SM
5641 * frame.c (Fdelete_frame): Call Fdelete_terminal.
5642
3ee24aec
SM
56432008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
5644
5645 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
5646 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
5647
4ed4b975
JB
56482008-02-11 Juanma Barranquero <lekktu@gmail.com>
5649
5650 * w32menu.c (push_submenu_start, push_submenu_end)
5651 (push_left_right_boundary, push_menu_pane, push_menu_item):
5652 * keyboard.c (read_key_sequence): Don't pass args with side effects
5653 to AREF, it fails when compiling with -DENABLE_CHECKING.
5654
79e3bfb8
KH
56552008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
5656
4ed4b975
JB
5657 * Makefile.in (${lispsource}international/charprop.el):
5658 Delete this target.
6e76043f 5659
79e3bfb8
KH
5660 * search.c (boyer_moore): Fix incorrect synching of the trunk and
5661 emacs-unicode-2.
5662
5b8de9c5
SM
56632008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
5664
5665 * terminal.c (Fdelete_terminal): Clean up the `force' path.
5666
eac1939a
SM
56672008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
5668
c53956fe
SM
5669 * frame.c (Qnoelisp): New symbol.
5670 (syms_of_frame): Initialize it.
5671 (Fdelete_frame): Use it to distinguish a mere `force' passed from
5672 someharmles Elisp code, from a strong `force' from x_connection_closed.
5673 * frame.h (Qnoelisp): Declare.
5674 * xterm.c (x_connection_closed): Pass `noelisp'.
5675
eac1939a
SM
5676 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
5677 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
5678 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
5679 rather than `int' for the type of `type'.
5680
13f6772b
DN
56812008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
5682
5683 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
5684
5685 * Makefile.in (GNUC): Remove support for gcc-1.x.
5686
e8455367
RS
56872008-02-10 Richard Stallman <rms@gnu.org>
5688
5689 * lisp.h (ASET): Use AREF, not ASLOT.
5690
4b75ffab
SM
56912008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
5692
5693 * lisp.h (ASET): Check bounds.
5694
d224e8c2
GM
56952008-02-10 Glenn Morris <rgm@gnu.org>
5696
5697 * buffer.c (mode-name): Doc fix.
5698
4624371d
DN
56992008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
5700
290afd83
JB
5701 * Makefile.in:
5702 * emacs.c:
5703 * gmalloc.c:
5704 * keyboard.c:
5705 * lisp.h:
5706 * m/ibm370aix.h:
5707 * process.c:
5708 * regex.c:
5709 * s/hpux.h:
5710 * sysdep.c:
5711 * sysselect.h:
5712 * systty.h:
5713 * unexec.c:
5714 * w32term.c:
5715 * xsmfns.c:
5716 * xterm.c: Remove code that deals with obsolete variables.
4624371d
DN
5717
5718 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
5719
5720 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
5721 nothing else needs it anymore.
5722
274ec34b
EZ
57232008-02-09 Eli Zaretskii <eliz@gnu.org>
5724
5725 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
5726 instead of unibyte_char_to_multibyte.
5727
deeaffe1
DN
57282008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
5729
5730 * s/gnu-linux.h: Remove commented out code.
5731
4ed4b975 5732 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
deeaffe1
DN
5733
5734 * Makefile.in: Update what RMS says about using autoconf.
4ed4b975 5735 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
c3f9fba8 5736 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
deeaffe1
DN
5737 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
5738 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
5739
68b587a6
SM
57402008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
5741
9141ca5e
SM
5742 * keymap.c (Fkey_description): Move side effect outside of macro call.
5743
dfae5f9a 5744 * xfaces.c (Finternal_make_lisp_face):
b1ebcadb
SM
5745 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
5746
ff7a2223
SM
5747 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
5748 (syms_of_fontset): Use ASET.
5749
68b587a6
SM
5750 * fns.c (concat): Move side effect outside of macro call.
5751 (hash_clear): Use ASET.
5752
a31787b1
RS
57532008-02-08 Richard Stallman <rms@gnu.org>
5754
5755 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
5756 If FORCE, and frame has a surrogate minibuffer for another frame,
5757 delete the other frame first.
5758
987be29b 57592008-02-07 Timo Savola <timo.savola@iki.fi>
1540a61a
JD
5760
5761 * xterm.c (x_detect_focus_change): Handle embed client message.
5762 (handle_one_xevent): Ditto.
5763 (handle_one_xevent): If embedded and we get a button press/release,
5764 request focus.
5765 (xembed_set_info, xembed_send_message): New functions.
5766 (x_make_frame_visible): Call xembed_set_info if embedded.
5767 (x_make_frame_invisible): Call xembed_set_info if embedded.
5768 (x_term_init): Initialize Xatom_XEMBED.
5769 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
5770 (x_iconify_frame): Ditto.
5771
5772 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
5773 (enum xembed_info, enum xerm srmbed_message, enum xembed_focus)
5774 (enum xembed_modifier, enum xembed_accelerator): New.
5775 (xembed_set_info, xembed_send_message): Declare.
5776 (FRAME_X_EMBEDDED_P): New.
5777
5778 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
5779 gtk_plug_new.
5780
5781 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
5782 window ID of a frame.
5783 (x_window): Reparent frame if embedded.
5784 (Fx_create_frame): Don't set border width if embedded.
5785
1f204af3 5786 * emacs.c (USAGE3): Add --parent-id.
1540a61a
JD
5787 (standard_args): Ditto.
5788
880820fe 57892008-02-07 Jan Djärv <jan.h.d@swipnet.se>
f937a7db
JD
5790
5791 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
5792
92413ef3
JD
57932008-02-07 Jim Meyering <meyering@redhat.com>
5794
6f69e89b 5795 Use "do...while (0)", not "if (1)...else" in macro definitions.
987be29b
RF
5796 The latter provokes a warning from gcc about the empty else, when
5797 followed by ";". Also, without that trailing semicolon, it would
5798 silently swallow up any following statement.
c3f9fba8 5799 * syntax.h (SETUP_SYNTAX_TABLE)
987be29b
RF
5800 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
5801 * buffer.h (DECODE_POSITION): Likewise.
5802 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
5803 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
5804 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
5805 (FETCH_CHAR_ADVANCE): Likewise.
5806 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
92413ef3 5807
03fa5713
GM
58082008-02-07 Jim Meyering <meyering@redhat.com>
5809
5810 * lread.c [lint]: Don't include <sys/inode.h>.
5811
3ae565b3
SM
58122008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
5813
5814 * xselect.c (x_handle_dnd_message):
5815 * xmenu.c (digest_single_submenu, xmenu_show):
5816 * xdisp.c (with_echo_area_buffer_unwind_data)
5817 (format_mode_line_unwind_data, unwind_format_mode_line)
5818 (display_menu_bar):
5819 * eval.c (Ffetch_bytecode):
5820 * doc.c (store_function_docstring):
5821 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
5822 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
5823 * buffer.c (add_overlay_mod_hooklist): Use ASET.
5824
146b6e55
KH
58252008-02-07 Kenichi Handa <handa@m17n.org>
5826
5827 * ftxfont.c (ftxfont_open): Don't set
5828 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
5829
5830 * ftfont.c (ftfont_open): Fix previous change.
5831
46a923ac
JR
58322008-02-06 Jason Rumney <jasonr@gnu.org>
5833
5834 * w32font.c (w32font_text_extents): Fill in lbearing metric.
5835 Use cached metrics for ASCII characters.
3ae565b3
SM
5836 (w32font_open_internal): Don't set font's owning_frame.
5837 Cache metrics for ASCII characters.
46a923ac
JR
5838
5839 * w32font.h (struct w32font_info): Add ascii_metrics.
5840 Remove owning_frame.
5841
da7d7c21
KH
58422008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
5843
5844 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
5845 to negative value.
5846
5847 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
5848
3ae565b3 5849 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
da7d7c21
KH
5850
5851 * charset.c (syms_of_charset): Set QCtest and Qeq.
5852
c62c8ddb
SM
58532008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
5854
ca319910
SM
5855 * process.c (Fstart_process):
5856 * callproc.c (Fcall_process): Handle the case where
5857 Funhandled_file_name_directory returns nil.
5858
76860cbb
SM
5859 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
5860 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
f9ffa1ea
SM
5861 * font.c (check_gstring): Use them and AREF to access the vector before
5862 we know it's really a gstring.
5863 (Ffont_shape_text): Fix typo.
5864 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Oject mixups.
76860cbb 5865
15139d67
SM
5866 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
5867 Declare.
5868
c62c8ddb
SM
5869 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
5870
04b65d2b
JR
58712008-02-05 Jason Rumney <jasonr@gnu.org>
5872
5873 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
5874 Set smallest_font_height and smallest_char_width in display info.
5875
fccaebfd
KH
58762008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
5877
5878 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
5879
e7d7fd8c
MB
58802008-02-05 Miles Bader <miles@gnu.org>
5881
5882 * xfaces.c (get_lface_attributes, merge_named_face)
5883 (lookup_named_face, lookup_derived_face, realize_named_face):
5884 Revert 2008-02-01 change by cyd@stupidchicken.com.
5885
3d4448a8
KH
58862008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
5887
5888 * fontset.c (Ffontset_info): Handle the case of inhibitting the
5889 fallback fonts.
15139d67 5890 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
3d4448a8 5891
5ace1ec1
JR
58922008-02-04 Jason Rumney <jasonr@gnu.org>
5893
5894 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
5895 set full_name.
e3a77b22 5896 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
5ace1ec1 5897
ffe42183
JR
58982008-02-03 Jason Rumney <jasonr@gnu.org>
5899
5900 * makefile.w32-in (OBJ1): Include font.o here.
5901 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
5902
526dc3b3
JR
59032008-02-02 Jason Rumney <jasonr@gnu.org>
5904
a0fece35 5905 * makefile.w32-in (temacs): Bump EMHEAP to 21.
526dc3b3 5906
af805c82
JR
59072008-02-01 Jason Rumney <jasonr@gnu.org>
5908
5909 * s/cygwin.h: Define VIRT_ADDR_VARIES.
5910
5911 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
5912
7f6519c5
AS
59132008-02-01 Andreas Schwab <schwab@suse.de>
5914
1f45f627 5915 * Makefile.in (shortlisp, lisp): Update for rename of
7f6519c5 5916 ../lisp/language/myanmar.el.
7f6519c5 5917
26f8aa27
CY
59182008-02-01 Chong Yidong <cyd@stupidchicken.com>
5919
1f45f627 5920 * xfaces.c (get_lface_attributes): Delete function.
26f8aa27
CY
5921 (merge_named_face, lookup_named_face, lookup_derived_face)
5922 (realize_named_face): Call lface_from_face_name directly, and use
5923 the fact that merge_face_vectors does not alter its FROM argument.
5924
73acf815 59252008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
5926
5927 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
1f45f627 5928 input in the default locale. Handle non-Unicode multibyte input.
aca7a3d2 5929
73acf815 59302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5931
5932 * fontset.c (reorder_font_vector): Exclude nil elements from the
5933 font group. Don't try multiple fonts.
15139d67 5934 (fontset_font): Adjust for the above change.
aca7a3d2
MB
5935 (Finternal_char_font): Return nil if the found font doesn't
5936 contain the character ch.
5937
4c4475a8 5938 * Makefile.in (lisp, shortlisp): Add cham.el.
aca7a3d2 5939
73acf815 59402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5941
5942 * font.h (FONTP): Make it return 1 also for a font-object.
5943
5944 * .gdbinit (xfontset): New function.
5945
5946 * font.c (font_find_for_lface): Check if the character C is
5947 supported or not only for the first font.
5948
5949 * fontset.c (reorder_font_vector): Fix typo.
5950 (fontset_find_font): Don't add a font-spec specifying a script.
5951 Use 0 (not Qt) for the indication of empty font-group. Change the
5952 format of RFONT-DEF. Return Qt if no font in the font-group
5953 support the character.
15139d67 5954 (fontset_font): Adjust for the above change. If no font was
aca7a3d2 5955 found the character, remember that.
15139d67 5956 (face_for_char): Adjust for the change of RFONT-DEF.
aca7a3d2
MB
5957 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
5958 no font for the target.
15139d67 5959 (Finternal_char_font): Adjust for the change of RFONT-DEF.
aca7a3d2 5960
73acf815 59612008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5962
5963 * font.c (font_load_for_face): Handle the case that the font in
5964 face->lface is a string.
5965
73acf815 59662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 5967
1f45f627 5968 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
aca7a3d2 5969
73acf815 59702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5971
5972 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
5973 Fix previous change. If the frame is not on a window system,
5974 signal an error.
5975
73acf815 59762008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 5977
4c4475a8
GM
5978 * coding.c (decode_coding_object, encode_coding_object): Adjust
5979 marker positions after conversion.
aca7a3d2
MB
5980
5981 * lisp.h (struct Lisp_Marker): New member need_adjustment.
5982
73acf815 59832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5984
5985 * font.c (font_find_for_lface): Fix the handling of the return
5986 value of font_has_char.
5987 (Ffont_shape_text): Fix previous change.
5988
5989 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
5990 (fontset_ref_and_range): Delete it.
5991 (fontset_find_font): Call char_table_ref_and_range instead of
5992 FONTSET_REF_AND_RANGE.
5993 (make_fontset): Don't setup font groups of Latin here.
5994 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
5995 (new_fontset_from_font): Make the specified font the default for
5996 all Latin characters.
5997
73acf815 59982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
5999
6000 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
6001 is on a window system before accessing the fontset of the frame.
6002
73acf815 60032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 6004
1f45f627 6005 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
aca7a3d2
MB
6006
6007 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
6008 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
6009
6010 * font.c (Ffont_shape_text): If the font driver doesn't have a
6011 shaper function, make zero-width glyphs to have at least one-pixel
6012 width. Fix setting of `to' field of glyphs.
6013
73acf815 60142008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6015
6016 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
6017 glyphs.
6018
1f45f627 6019 * font.h (struct font_driver): Improve docstring of member `shape'.
aca7a3d2 6020
73acf815 60212008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6022
6023 * composite.c (syms_of_composite): Fix docstring of
6024 auto-composition-function.
6025
6026 * font.h (LGLYPH_SIZE): New macro.
6027
6028 * font.c (Ffont_fill_gstring): Stop filling when a character not
6029 supported by the font is found.
6030 (Ffont_shape_text): When a shape callback function returns nil,
6031 try at most two more times with larger gstring.
15139d67 6032 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
aca7a3d2
MB
6033
6034 * xdisp.c (handle_auto_composed_prop): Change the argument to
6035 auto-composition-function.
6036
6037 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
6038 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
6039 Lispy glyph and store it in the lgstring.
6040
6041 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
6042
6043 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
6044
73acf815 60452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6046
6047 * font.c (Ffont_shape_text): Avoid unnecessary composition.
6048
6049 * fontset.c (Vfont_encoding_charset_alist): New variable.
6050 (syms_of_fontset): DEFVAR it.
4c4475a8
GM
6051 (reorder_font_vector, fontset_find_font): Optimize for the case of
6052 no need of reordering.
aca7a3d2
MB
6053 (face_for_char): Map the charset property by
6054 Vfont_encoding_charset_alist.
6055
73acf815 60562008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6057
6058 * w32font.c (logfonts_match): Don't check adstyle here.
6059 (font_matches_spec): Check here against physical font instead.
6060 (add_font_entity_to_list): Avoid some substitutions.
6061
6062 * font.c (font_parse_fcname): Default weight and slant to normal.
6063 (font_score): Prefer normal fonts if weight or slant unspecified.
6064 (font_score) [WINDOWSNT]: Scale weight difference down to closer
6065 match freetype scores.
6066
73acf815 60672008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6068
6069 * w32font.c (w32font_text_extents): Don't use the frame stored in the
6070 font, as it may have been deleted.
6071 (w32_enumfont_pattern_entity): Map generic family to adstyle using
6072 most common hyphenless variation.
6073 (logfonts_match): Check generic family.
6074 (font_matches_spec): Don't check generic family here.
6075 (fill_in_logfont): Set generic family based on adstyle.
6076
6077 * w32font.h (w32font_get_cache): Update declaration.
6078
73acf815 60792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6080
6081 * ftfont.c (ftfont_get_cache): Adjust the argument type.
6082
15139d67 6083 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
dde8403f 6084 If none of the new drivers are available, call font_update_drivers
aca7a3d2
MB
6085 with the old drivers.
6086
6087 * w32font.c (w32font_get_cache): Adjust the argument type.
6088
6089 * xfont.c (xfont_get_cache): Adjust the argument type.
6090
6091 * font.h (struct font_driver): Change argument type of get_cache.
6092
6093 * xftfont.c (xftfont_start_for_frame): Delete prototype.
6094
6095 * font.c (Ffont_get): Fix arguments to Fassoc.
15139d67 6096 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
aca7a3d2 6097 (font_clear_cache): New function.
4c4475a8 6098 (font_list_entities, font_matching_entity): Use font_get_cache.
15139d67 6099 (font_update_drivers): Call font_clear_cache when finishing a driver.
aca7a3d2
MB
6100
6101 * fontset.c (fontset_find_font): Fix previous change.
6102
73acf815 61032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6104
6105 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
6106 dpyinfo->font_table.
6107 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
15139d67 6108 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
aca7a3d2
MB
6109
6110 * font.c (font_at): Handle the case that the arg C is negative.
6111 Handle the unibyte case.
6112 (Ffont_at): Call font_at with the arg C -1.
6113
6114 * xdisp.c (handle_auto_composed_prop): Don't get a character at
15139d67
SM
6115 the position here, and call font_at with the arg C -1.
6116 Don't check the range of the existing composition at the point.
aca7a3d2 6117
73acf815 61182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 6119
15139d67 6120 * fontset.c (fontset_add): New args charset_id and family.
1f45f627 6121 Change caller.
4c4475a8
GM
6122 (load_font_get_repertory, fontset_find_font): Assume that
6123 font_spec is always a font-spec object.
aca7a3d2
MB
6124 (Fset_fontset_font): Always store a font-spec object in a fontset.
6125
6126 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
6127 instead of get_property_and_range.
6128
73acf815 61292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6130
6131 * xftfont.c (struct xftfont_info): Delete the member ft_face.
6132 (xftfont_open): Don't keep locking face.
6133 (xftfont_close): Don't unlock face.
4c4475a8 6134 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
aca7a3d2
MB
6135
6136 * fontset.c (fontset_find_font): Don't prefer a font of
6137 supplementary charset.
6138
73acf815 61392008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6140
1f45f627
GM
6141 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
6142 script, langsys_tag to langsys, new member script.
aca7a3d2
MB
6143 (OTF_TAG_STR): Terminate by '\0'.
6144 (ftfont_get_open_type_spec): If :otf prop is is spec, Limit the
6145 listing to the script specified in that property. Fix arg to
6146 OTF_check_features.
6147
73acf815 61482008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6149
6150 * w32font.h: New file.
6151
6152 * w32font.c: Include it.
6153 (struct w32font_info): Add owning_frame field. Move to w32font.h.
6154 (w32font_open): Set owning_frame.
6155 (w32font_text_extents): Use owning_frame.
6156 (struct font_callback_data): Add opentype_only field.
6157 (add_font_entity_to_list): Use it to filter fonts.
6158 Don't check against full name.
6159 (w32font_list_internal): New function.
6160 (w32font_list): Use it.
6161 (w32font_match_internal): New function.
6162 (w32font_match): Use it.
6163 (w32font_open_internal): New function.
6164 (w32font_open): Use it.
6165 (w32font_get_cache, w32font_close, w32font_has_char)
6166 (w32font_encode_char, w32font_text_extents, w32font_draw):
6167 Make non-static.
6168
6169 * makefile.w32-in (w32font.o): Depend on w32font.h.
6170
73acf815 61712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6172
6173 * charset.c (Fdefine_charset_internal): Record a supplementary
6174 charset at the tail of Vcharset_order_list.
6175
6176 * font.c (Ffont_shape_text): Fix the return value.
6177
6178 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
6179
6180 * xdisp.c (handle_auto_composed_prop): Fix previous change.
6181
73acf815 61822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6183
6184 * ftfont.c (struct OpenTypeSpec): New struct.
6185 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
6186 (ftfont_get_open_type_spec): New function.
6187 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
6188
15139d67 6189 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
aca7a3d2 6190
73acf815 61912008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6192
6193 * w32font.c (add_font_entity_to_list): Compare only the beginning
6194 of full name.
6195
73acf815 61962008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6197
15139d67
SM
6198 * xdisp.c (handle_auto_composed_prop): Simplify the code.
6199 Never return HANDLED_RECOMPUTE_PROPS.
aca7a3d2 6200
73acf815 62012008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6202
6203 * font.c (font_gstring_produce): Delete it.
6204
15139d67
SM
6205 * composite.h (COMPOSITION_METHOD):
6206 Handle COMPOSITION_WITH_GLYPH_STRING.
aca7a3d2 6207
73acf815 62082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 6209
15139d67 6210 * xfont.c (Qx): Delete.
aca7a3d2
MB
6211 (syms_of_xfont): Don't initialize Qx.
6212
15139d67
SM
6213 * composite.h (enum composition_method):
6214 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
aca7a3d2 6215
73acf815 62162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6217
6218 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
6219 (choose_face_font): Accept new form of font-spec.
6220
6221 * frame.h (font_driver_list): Declare it unconditionally.
6222 (struct frame): Define members font_driver_list and font_data_list
6223 unconditionally.
6224
6225 * fontset.c: Include "font.h" unconditionally.
15139d67 6226 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
aca7a3d2
MB
6227 (Fset_fontset_font): Accept a font-spec object.
6228
6229 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
6230 PIXEL_SIZE part a wild card.
6231
6232 * dispextern.h (struct glyph_string): Define members clip and
6233 num_clips unconditionally.
6234 (struct face): Define members font_info and extra unconditionally.
6235
6236 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
6237 ftfont_info only when HAVE_LIBOTF is defined.
6238
73acf815 62392008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
6240
6241 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
6242 and end.
6243
73acf815 62442008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6245
6246 * w32font.c (w32font_driver): Add new fields.
6247
73acf815 62482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2 6249
aca7a3d2
MB
6250 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
6251 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
6252 (LIBES): Add @M17N_FLT_CFLAGS@.
6253
6254 * composite.c (compose_text): Don't treat the new style
6255 composition specially.
6256
6257 * emacs.c (main): Call syms_of_font unconditionally.
6258
6259 * font.h (FONT_ENTITY_NOT_LOADABLE)
6260 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
15139d67 6261 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
aca7a3d2 6262 (struct font_driver): New member shape.
1f45f627 6263 (font_registry_charsets): Extern it.
4c4475a8 6264 (font_find_for_lface, font_prepare_composition): Adjust prototype.
aca7a3d2
MB
6265 (font_otf_capability, font_drive_otf): Delete their externs.
6266
6267 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
4c4475a8
GM
6268 (font_charset_alist, font_registry_charsets): Move from xfont.c
6269 and rename.
aca7a3d2
MB
6270 (font_prop_validate_otf): New function.
6271 (font_property_table): Register it for QCotf.
6272 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
15139d67 6273 (font_drive_otf): Delete.
1f45f627 6274 (font_prepare_composition): New arg F. Adjust for the change of
aca7a3d2
MB
6275 lispy gstring.
6276 (font_find_for_lface): New arg C.
15139d67 6277 (font_load_for_face): Adjust for the change of font_find_for_lface.
4c4475a8
GM
6278 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
6279 lispy gstring.
aca7a3d2
MB
6280 (Ffont_shape_text): New function.
6281 (Fopen_font): If the font size is not given, use 12-pixel.
6282 (Ffont_at): New arg STRING.
15139d67
SM
6283 (syms_of_font): Initalize font_charset_alist.
6284 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
aca7a3d2
MB
6285 conditionally.
6286
6287 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
6288 fonts of the same font-spec. Change the format of RFONT-DEF.
4c4475a8
GM
6289 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
6290 Adjust for the change of RFONT-DEF.
15139d67 6291 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
aca7a3d2
MB
6292
6293 * ftfont.h: New file.
6294
6295 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
6296 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
6297 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
6298 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
6299 font_otf_capability and font_drive_otf, set ftfont_shape.
15139d67 6300 (ftfont_list): Adjust for the change of :otf property value.
aca7a3d2
MB
6301 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
6302 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
6303 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
1f204af3 6304 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
aca7a3d2
MB
6305 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
6306 (otf_gstring, gstring, m17n_flt_initialized): New variables.
6307
15139d67
SM
6308 * w32term.c (x_draw_composite_glyph_string_foreground):
6309 Adjust for the change of lispy gstring.
aca7a3d2 6310
15139d67 6311 * xdisp.c (handle_composition_prop): Adjust for the change of
aca7a3d2 6312 lispy gstring. Call a function for auto-composition with the
15139d67
SM
6313 third arg it->window.
6314 (fill_composite_glyph_string): Adjust for the change of lispy string.
6315 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
aca7a3d2 6316
15139d67 6317 * xfaces.c (set_font_frame_param): Adjust for the change of
aca7a3d2
MB
6318 font_find_for_lface.
6319
1f45f627
GM
6320 * xfont.c (x_font_charset_alist): Move to font.c and rename.
6321 (xfont_registry_charsets): Likewise. Change caller.
aca7a3d2
MB
6322 (syms_of_xfont): Don't handle x_font_charset_alist.
6323
6324 * xftfont.c: Include "ftfont.h".
15139d67 6325 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
aca7a3d2
MB
6326 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
6327 (xftfont_close) [HAVE_LIBOTF]: Close otf.
6328 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
15139d67
SM
6329 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
6330 Set xftfont_driver.shape to xftfont_shape.
aca7a3d2 6331
15139d67 6332 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aca7a3d2
MB
6333 the change of lispy gstring.
6334
73acf815 63352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6336
6337 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
6338
73acf815 63392008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6340
6341 * w32font.c (w32font_draw): Fill background manually.
6342
73acf815 63432008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6344
6345 * font.c (Qfontp): Remove unused symbol.
6346 (QCantialias): New symbol.
6347 (syms_of_font): Define it.
6348 (font_property_table): Set a validator for QCantialias.
6349
15139d67
SM
6350 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
6351 Define if not already.
aca7a3d2
MB
6352 (QCfamily): Share with xfaces.c.
6353 (Qstandard, Qsubpixel, Qnatural): New symbols.
1f45f627 6354 (syms_of_w32font): Define them. Don't define QCfamily here.
aca7a3d2
MB
6355 (w32_antialias_type, lispy_antialias_type): New functions.
6356 (w32_enumfont_pattern_entity): New arg requested_font.
6357 Set antialias parameter if non-default was requested.
6358 (fill_in_logfont): Fill in lfQuality if :antialias specified.
6359
73acf815 63602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6361
6362 * lread.c (read1): Undo the previous change.
6363
73acf815 63642008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
aca7a3d2
MB
6365
6366 * frame.c (Fdelete_frame): Call font_update_drivers only when
6f69e89b 6367 USE_FONT_BACKEND is defined.
aca7a3d2 6368
73acf815 63692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6370
6371 * font.h (struct font_bitmap): New member bits_per_pixel.
6372 (struct font_driver): New members start_for_frame and end_for_frame.
6373 (struct font_data_list): New struct.
6374 (font_put_frame_data, font_get_frame_data): Extern them.
6375
6376 * frame.h (struct frame): New member font_data_list.
6377
6378 * font.c (font_update_drivers): Call driver->start_for_frame and
6379 driver->end_for_frame at proper timings.
6380 (font_put_frame_data, font_get_frame_data): New functions.
6381 (Ffont_spec): Add usage in the docstring.
6382
6383 * frame.c (make_frame): Initialize f->font_data_list to NULL.
6384 (Fdelete_frame): Call font_update_drivers.
6385
6386 * xftfont.c (struct xftface_info): Delete the member xft_draw.
4c4475a8 6387 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
aca7a3d2
MB
6388 (xftfont_get_xft_draw): New function.
6389 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
6390 (xftfont_end_for_frame): New function.
6391 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
6392
15139d67 6393 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
1f45f627 6394 Change argument. Cache GCs in the per-frame data.
aca7a3d2
MB
6395 (struct ftxfont_frame_data): New struct.
6396 (ftxfont_draw_bitmap): New arg gc_fore and flush.
6397 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
15139d67 6398 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
aca7a3d2
MB
6399 (ftxfont_end_for_frame): New function.
6400 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
6401
6402 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
6403
73acf815 64042008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6405
6406 * xselect.c (Vselection_coding_system)
6407 (Vnext_selection_coding_system): Delete them.
6408 (syms_of_xselect): Don't declare selection-coding-system and
6409 next-selection-coding-system. They are declared in select.el.
6410
73acf815 64112008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6412
6413 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
6414
6415 * w32fns.c: Include imm.h.
6416 (get_composition_string_fn, get_ime_context_fn): New optional
6417 system functions.
6418 (globals_of_w32fns): Load them from imm32.dll.
6419 (ignore_ime_char): New flag.
6420 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
6421 WM_IME_ENDCOMPOSITION messages.
6422
6423 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
6424 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
6425
73acf815 64262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6427
6428 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
6429 (READCHAR_REPORT_MULTIBYTE): New macro.
6430 (readchar): New 2nd arg MULTIBYTE.
15139d67
SM
6431 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
6432 Make symbol's name multibyte according to the multibyteness of the
aca7a3d2
MB
6433 source.
6434
73acf815 64352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6436
6437 * xfaces.c (face_for_overlay_string): Call lookup_face with
6438 correct arguments (fix of synching with the trunk).
6439
73acf815 64402008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6441
4c4475a8
GM
6442 * font.c (font_prop_validate_symbol, font_prop_validate_style)
6443 (font_prop_validate_non_neg, font_prop_validate_spacing):
6444 Delete argument prop_index.
15139d67
SM
6445 (font_property_table): Change arguments to validater. Change Callers.
6446 (font_lispy_object): Delete.
aca7a3d2
MB
6447 (font_at): Use font_find_object instead fo font_lispy_object.
6448
73acf815 64492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
aca7a3d2
MB
6450
6451 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
6452 and file names.
6453
73acf815 64542008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6455
6456 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
6457 (font_matches_spec): Remove debug output.
6458 (add_font_entity_to_list): Avoid using substituted fonts.
6459
73acf815 64602008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6461
6462 * doc.c (Fsnarf_documentation):
6463 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
6464
73acf815 64652008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2 6466
290afd83 6467 * dispextern.h (struct glyph_row): Only define "clip" field if
aca7a3d2
MB
6468 HAVE_WINDOW_SYSTEM is defined.
6469
73acf815 64702008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
aca7a3d2
MB
6471
6472 Fix up multi-tty merge.
6473
6474 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
6475 and indentation.
6476
6477 * xfaces.c (free_realized_face, clear_face_gcs):
6478 Include font_done_for_face in the input_blocked section, just in case.
6479
6480 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
6481 (get_char_face_and_encoding): Undo last change and remove the *other*
6482 duplicate definition (i.e. keep the one that's better scoped and that
6483 includes code for the font-backend).
6484
6485 * terminal.c (create_terminal): Default keyboard_coding to
6486 `no-conversion' and terminal_coding to `undecided'.
6487
6488 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
6489
6490 * fontset.c (free_realized_fontsets): Check that the table entry does
6491 contain a fontset before trying to compare it to `base'.
6492
6493 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
6494 syms_of_charset, and syms_of_coding earlier because init_window_once
6495 now needs Vcoding_system_hash_table to be setup.
6496
6497 * coding.h (default_buffer_file_coding): Remove.
6498
6499 * coding.c (default_buffer_file_coding): Remove.
6500 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
6501 than ->symbol, and use the terminal-local coding system.
6502 (syms_of_coding): Don't setup the coding-systems that are not
6503 terminal-local.
6504 (Fdefine_coding_system_internal): Use XCAR/XCDR.
6505
6506 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
6507 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
6508
6509 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
6510 in chartab.c and were re-added here by mistake.
6511 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
6512
6513 * doc.c (Fsnarf_documentation):
6514 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
6515 src to etc.
6516
6517 * ChangeLog.10: Add mistakenly removed entry.
6518
73acf815 65192008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
aca7a3d2
MB
6520
6521 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
6522
73acf815 65232008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
6524
6525 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
6526 Add extra args to FACE_FOR_CHAR.
6527
73acf815 65282008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6529
6530 * keymap.c (where_is_internal_1): If key is a cons, store the copy
6531 in sequence.
6532
4c4475a8
GM
6533 * chartab.c (map_sub_char_table, map_char_table): If the range
6534 contains just one character, call the function with that character
6535 even if the depth is not 3.
aca7a3d2 6536
73acf815 65372008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6538
6539 * w32font.c (w32font_text_extents): Calculate metrics for the
6540 whole string.
6541
73acf815 65422008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6543
6544 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
6545
73acf815 65462008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6547
6548 * w32term.c (x_set_glyph_string_clipping): Use
6549 get_glyph_string_clip_rects.
4c4475a8
GM
6550 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
6551 Adjust for the change of struct glyph_string.
aca7a3d2
MB
6552
6553 * w32font.c (w32font_draw): Do clipping here.
6554
73acf815 65552008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6556
1f45f627 6557 * xftfont.c (xftfont_draw): Adjust for the change of struct
aca7a3d2
MB
6558 glyph_string.
6559
6560 * xterm.c (x_set_glyph_string_clipping): Use
6561 get_glyph_string_clip_rects.
4c4475a8
GM
6562 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
6563 Adjust for the change of struct glyph_string.
aca7a3d2
MB
6564
6565 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
6566 the resulting clip(s}.
1f45f627 6567 (expose_overlaps): Add arg r. Change callers. Set it to
aca7a3d2
MB
6568 row->clip temporarily.
6569 (expose_window): Redraw rows overlapping the exposed area.
6570
6571 * dispextern.h (struct glyph_row): New member clip.
6572 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
6573 clip_height, new member clip, and num_clips.
6574
73acf815 65752008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6576
6577 * data.c (Fchar_or_string_p): Fix docstring.
6578
73acf815 65792008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6580
6581 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
6582 create a temporal XftDraw object.
6583
73acf815 65842008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6585
6586 * font.c (Ffontp): Fix docstring.
6587
6588 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
6589 strong evidence of ISO-2022.
6590
73acf815 65912008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6592
6593 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
6594 SYNTAX_ENTRY_FOLLOW_PARENT.
6595
73acf815 65962008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
aca7a3d2
MB
6597
6598 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
6599 its type.
6600 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
6601 Update to the new type of weak_hash_tables and next_weak.
6602
6603 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
6604 a plain C pointer to Lisp_Hash_Table.
6605
6606 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
6607 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
6608 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
6609 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
6610 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
6611 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
6612 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
6613 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
6614 (GC_EQ): Remove since they've been identical to their non-GC_
6615 alter-egos ever since the markbit was eradicated.
6616
290afd83
JB
6617 * alloc.c:
6618 * buffer.c:
6619 * buffer.h:
6620 * data.c:
6621 * fileio.c:
6622 * filelock.c:
6623 * fns.c:
6624 * frame.h:
6625 * lisp.h:
6626 * macterm.c:
6627 * print.c:
6628 * process.c:
6629 * w32fns.c:
6630 * w32menu.c:
6631 * w32term.c:
6632 * xfns.c:
6633 * xmenu.c:
6634 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
aca7a3d2 6635
73acf815 66362008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6637
6638 * chartab.c (map_sub_char_table): Make it work for the top-level
6639 char-table. Fix handling of parent char-table.
c5ad7a3d 6640 (map_char_table): Adjust for the above change.
aca7a3d2 6641
73acf815 66422008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6643
6644 * w32font.c (Qgdi): Rename from Qw32.
6645
73acf815 66462008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6647
6648 * w32bdf.c (get_quoted_string): Make function static.
6649
73acf815 66502008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6651
6652 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
6653 bigger ascent and descent than those of the font, use them as
6654 font's ascent and descent.
6655
73acf815 66562008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6657
6658 * Makefile.in (${lispsource}international/charprop.el): Move this
6659 target within "#ifdef HAVE_UNIDATA" and "#endif".
6660
73acf815 66612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6662
6663 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
6664 (shortlisp): Add ../lisp/language/tai-viet.el.
6665
1f45f627 66662008-02-01 Ulrich Mueller <ulm@gentoo.org>
aca7a3d2
MB
6667
6668 * Makefile.in (${lispsource}international/charprop.el): Depend on
6669 temacs${EXEEXT}.
6670
73acf815 66712008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6672
6673 * w32font.c (w32font_close): Delete the GDI font object.
6674
6f69e89b 6675 * w32menu.c: Include character.h.
aca7a3d2
MB
6676
6677 * w32proc.c: Likewise.
6678
6679 * w32select.c: Likewise.
6680
6f69e89b 6681 * makefile.w32-in (w32proc.o): Depend on character.h.
aca7a3d2 6682
73acf815 66832008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6684
6685 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
6686
6687 * w32menu.c (syms_of_w32menu): Likewise.
6688
6689 * w32proc.c (syms_of_ntproc): Likewise.
6690
6691 * w32select.c (syms_of_w32select): Likewise.
6692
6693 * w32term.c (syms_of_w32term): Likewise.
6694
73acf815 66952008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6696
6697 * w32font.c (w32font_draw): Delete brush after using it.
6698
73acf815 66992008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6700
6701 * w32font.c (w32font_open): Don't set font_idx.
6702 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
6703 to font settings.
6704 (w32font_draw): Fill background explicitly.
6705
73acf815 67062008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6707
6708 * w32term.c (w32_initialize): Don't call w32font_initialize.
6709
6710 * w32font.c (w32font_info): Remove subranges.
6711 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
6712 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
6713 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
6714 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
6715 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
6716 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
6717 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
6718 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
6719 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
6720 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
6721 New symbols.
6722 (font_callback_data): New struct.
6723 (w32font_list, w32font_match): Use it.
6724 (w32font_open): Don't populate subranges.
6725 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
6726 (w32font_encode_char): Always return unicode code-point as-is.
6727 (w32font_text_extents): Supply a tranformation matrix to
1f45f627
GM
6728 GetGlyphOutline. Never look up by glyph index. Avoid looping
6729 twice. Use unicode version of GetTexExtentPoint32 instead of
aca7a3d2 6730 glyph index version.
1f204af3 6731 (set_fonts_frame): Remove.
aca7a3d2 6732 (w32_enumfont_pattern_entity): Add frame parameter, use it to
1f45f627
GM
6733 set frame parameter. Use backward compatible fake foundries.
6734 Save generic family in extra slot under QCfamily. Make width slot
6735 constant. Save QCspacing value. Save list of scripts instead of
aca7a3d2
MB
6736 binary subranges.
6737 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
1f45f627 6738 (add_font_entity_to_list): Use font_callback_data struct. Filter
aca7a3d2
MB
6739 unwanted fonts.
6740 (add_one_font_entity_to_list): Use font_callback_data struct.
1f45f627
GM
6741 (w32_registry): Default to iso10646_1.
6742 (fill_in_logfont): Use dpi from extra slot. Don't bother with
6743 string font registries. Don't fill in font name if it is a generic
6744 family name, fill family instead. Use spacing, family and script
aca7a3d2
MB
6745 extra info to fill pitch, family and charset fields.
6746 (list_all_matching_fonts): Use font_callback_data struct.
6747 (unicode_range_for_char): Remove.
6748 (font_supported_scripts): New function.
6749 (w32font_initialize): Remove.
6750 (syms_of_w32font): Update which symbols are defined.
6751
73acf815 67522008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6753
6754 * font.c (font_pixel_size): Reverse assq_no_quit args.
6755
6756 * w32term.h (FONT_WIDTH): Report max width, not average.
6757 (FONT_MAX_WIDTH): Remove.
6758 (FONT_AVG_WIDTH): New macro.
6759
6760 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
6761 redefinition of FONT_WIDTH.
6762
6763 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
6764 (w32_cache_char_metrics): Use FONT_WIDTH.
6765
6766 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
6767
73acf815 67682008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6769
6770 * w32font.c (w32font_open): Make lfHeight negative.
6771
6772 * w32fns.c (x_default_font_parameter): Use new style font name.
6773 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
6774
73acf815 67752008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6776
6777 * w32font.c (QCsubranges): New symbol.
6778 (w32font_open, w32font_has_char): Get subranges from subproperty
6779 of extra.
6780 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
6781 (syms_of_w32font): Define :subranges symbol.
6782
6783 * font.c (font_put_extra): Expose externally.
6784
1f45f627 6785 * font.h (font_put_extra): Move declaration from font.c.
aca7a3d2
MB
6786
6787 * font.c (Ffont_get): Use font driver to determine otf capability.
6788 (adjust_anchor): Check if driver defines anchor_point before using.
6789
6790 * w32font.c (w32font_open): Handle size, height and pixel_size better.
6791 (w32font_draw): Use options.
6792 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
6793 Fix detection of truetype fonts.
6794 (registry_to_w32_charset): Handle charsets other than iso8859-1
6795 expressed as lisp symbols.
6796 (w32_registry): Express charset as lisp symbol.
6797 (fill_in_logfont): Reverse pixel and point height logic.
1f45f627 6798 Don't set width here. Set quality to default.
aca7a3d2
MB
6799
6800 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
6801 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
6802
6803 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
6804 Remove redundant loop and allocation.
6805
6806 * makefile.w32-in (font.o, w32font.o): New objects.
6f69e89b 6807 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
aca7a3d2
MB
6808 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
6809
6810 * xdisp.c (fill_composite_glyph_string): Make the first arg to
6811 STORE_XCHARB a valid l-value.
6812
6813 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
6814 calculations for non-Truetype fonts.
6815 (x_draw_glyph_string): Sync with xterm.c.
c3f9fba8
JB
6816 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
6817 Remove redundant code.
aca7a3d2
MB
6818 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
6819
6820 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
6821 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
6822
6823 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
6824 (x_to_w32_charset, w32_to_x_charset): Expose externally.
6825
6826 * w32font.c: New file for w32 font backend.
6827
73acf815 68282008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6829
6830 * term.c: Don't include "buffer.h" twice.
6831
73acf815 68322008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6833
6834 * character.c (Funibyte_string): New function.
6835 (syms_of_character): Defsubr it.
6836
73acf815 68372008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
6838
6839 * w32term.c [USE_FONT_BACKEND]:
c3f9fba8
JB
6840 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
6841 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
6842 (x_draw_glyph_string, x_draw_glyph_string_foreground)
6843 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
aca7a3d2
MB
6844 (x_free_frame_resources): Sync with xterm.c.
6845
73acf815 68462008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
6847
6848 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
6849 char-table size.
6850
73acf815 68512008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 6852
c3f9fba8 6853 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
aca7a3d2 6854
73acf815 68552008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6856
6857 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
6858 font_otf_gpos, add font_drive_otf.
6859
6860 * fontset.c (fontset_find_font): Pay attention to font size
6861 specified for a font.
6862 (reorder_font_vector): Check contents of font_def.
6863
6864 * font.c (struct otf_list): Delete it.
6f69e89b 6865 (otf_list): Make it a lisp variable.
aca7a3d2 6866 (otf_open): Use lispy otf_list.
1f45f627 6867 (generate_otf_features): Rename from parse_gsub_gpos_spec.
aca7a3d2 6868 (check_otf_features): New function.
c3f9fba8
JB
6869 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
6870 New functions.
aca7a3d2
MB
6871 (font_drive_otf): New function merging font_otf_gsub and
6872 font_otf_gpos.
6873 (font_open_for_lface): New arg spec. Change argument order.
1f45f627 6874 (font_load_for_face): Adjust for the change of font_open_for_lface.
aca7a3d2
MB
6875 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
6876 Ffont_otf_gpos.
6877 (syms_of_font): Staticpro otf_list. Delete defsubr of
6878 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
6879
1f45f627 6880 * xfaces.c (set_font_frame_param): Adjust for the change of
aca7a3d2
MB
6881 font_open_for_lface.
6882
6883 * font.h (font_open_for_lface): Adjust prototype.
6884 (struct font_driver): Delete members otf_gsub and otf_gpos, add
6885 member otf_drive.
6886 (font_otf_gsub, font_otf_gpos): Delete externs.
6887 (font_drive_otf): Extern it.
6888
73acf815 68892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6890
6891 * font.c (font_at): If the window W is not on a window system,
6892 return Qnil.
6893
4c4475a8
GM
6894 * coding.c (produce_chars, encode_coding): Don't call
6895 insert_from_gap if no characters to produce.
aca7a3d2 6896
73acf815 68972008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6898
6899 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
6900 Fclear_face_cache.
6901
6902 * xfaces.c (face_for_font): Check also face->font==font->font.font.
6903
73acf815 69042008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
6905
6906 * emacs.c (main): Change default value of `enable_font_backend' to 1.
6907 Parse "--disable-font-backend" option.
6908 (standard_args): Add "--disable-font-backend" option.
6909
73acf815 69102008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6911
6912 * fontset.c (fontset_find_font): New function.
6913 (fontset_font): Use fontset_find_font.
6914 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
6915 Register the specified font for all Latin characters.
6916 (new_fontset_from_font): Register the specified font for all Latin
6917 characters.
6918 (dump_fontset): For a realized fontset, include the base fontset
6919 name in the returned vector.
6920
73acf815 69212008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6922
6923 * character.h (CHAR_STRING): Cast C to unsigned on calling
6924 char_string.
6925
6926 * character.c (char_string): Type of arg C changed to unsigned.
6927 Signal an error if C is an invalid character code.
6928
4c4475a8
GM
6929 * editfns.c (general_insert_function, Fchar_to_string):
6930 Use CHARACTERP, not INTEGERP.
aca7a3d2 6931
73acf815 69322008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6933
6934 * character.h (MIN_MULTIBYTE_LEADING_CODE)
6935 (MAX_MULTIBYTE_LEADING_CODE): New macros.
6936
6937 * regex.c (analyse_first): Fix for multibyte characters in "case
6938 charset:" and "case categoryspec:".
6939
73acf815 69402008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
6941
6942 * Makefile.in (LIBES): Move standard libraries to the end.
6943
73acf815 69442008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6945
6946 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
6947 nonzero, don't shrink the buffer nextb.
6948
6949 * buffer.h (struct buffer_text): New member inhibit_shrinking.
6950
6951 * coding.c (coding_alloc_by_making_gap): New arg offset.
6952 (alloc_destination): Call coding_alloc_by_making_gap with the arg
6953 offset.
6954 (decode_coding_iso_2022): Update coding->safe_charsets.
6955 (decode_coding_gap): Temporarily set
6956 current_buffer->text->inhibit_shrinking to 1.
6957
73acf815 69582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6959
6960 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
6961 indexing into elements of s->cmp and s->char2b.
6962
73acf815 69632008-02-01 Juanma Barranquero <lekktu@gmail.com>
aca7a3d2
MB
6964
6965 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
6966
73acf815 69672008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6968
6969 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
6970 target_multibyte instead of multibyte.
6971 (re_match_2_internal): Call bcmp_translate with target_multibyte.
6972 (bcmp_translate): Change the argument name from multibyte to
6973 target_multibyte.
6974
73acf815 69752008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
6976
6977 These changes are to compile a regexp into a pattern that can be
6978 used both for multibyte and unibyte targets.
6979
6980 * Makefile.in (search.o): Depend on charset.h.
6981
6982 * character.c (multibyte_char_to_unibyte_safe): New function.
6983
6984 * search.c: Include "charset.h".
6985 (compile_pattern_1): Delete argument multibyte. Don't set
6986 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
6987 (compile_pattern): Don't compare cp->buf.target_multibyte.
6988 Compare cp->buf.charset_unibyte.
6989 (compile_pattern): Set cp->buf.target_multibyte.
6990
6991 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
6992
6993 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
6994
6995 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
1f45f627 6996 multibyte. Change callers.
aca7a3d2 6997 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
1f45f627
GM
6998 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
6999 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
aca7a3d2
MB
7000 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
7001 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
7002 (regex_compile): Make the compiled pattern usable both for
7003 multibyte and unibyte targets.
7004 (analyse_first): Make the fastmap usable both for multibyte and
7005 unibyte targets.
1f45f627 7006 (TRANSLATE_VIA_MULTIBYTE): Delete.
aca7a3d2
MB
7007 (re_match_2_internal): Pay attention to the case that the
7008 multibyteness of bufp and target may be different.
7009
73acf815 70102008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7011
7012 * xdisp.c (x_produce_glyphs): When a font is not found, make the
7013 empty box occupy at least one column width.
7014
73acf815 70152008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
7016
7017 * Makefile.in: Remove redundant HAVE_XFT clause.
7018
73acf815 70192008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7020
7021 * xrdb.c (x_load_resources): Setup the default fontSet X reource.
7022
73acf815 70232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7024
7025 * fontset.c (Finternal_char_font): Fix for the case of POSITION
7026 being nil.
7027
73acf815 70282008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7029
7030 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
7031
73acf815 70322008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7033
7034 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
7035
73acf815 70362008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7037
7038 * search.c (simple_search): Fix previous change.
7039
73acf815 70402008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7041
7042 * xftfont.c (ftfont_font_format): Extern declaration.
7043
7044 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
7045
7046 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
7047 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
7048
7049 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
7050 (ftfont_font_format): Fix previous change.
7051
7052 * font.h (Ffont_xlfd_name): EXFUN it.
7053
7054 * font.c (font_parse_xlfd): Fix the array size of `f'.
7055 (register_font_driver): Use EQ to compare driver->type.
7056
7057 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
7058 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
7059 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
7060
73acf815 70612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7062
4c4475a8
GM
7063 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
7064 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
aca7a3d2 7065
73acf815 70662008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7067
7068 * xfont.c (xfont_open): Set font->format.
7069
7070 * xftfont.c (xftfont_open): Set font->format.
7071
7072 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
7073 (ftfont_list): Include FC_FONTFORMAT in FcObject.
7074 (ftfont_open): Set font->format.
7075 (ftfont_font_format): New function.
7076
7077 * font.h (struct font): New memeber format.
7078
7079 * font.c (Qopentype): New variable.
7080 (syms_of_font): Defsym it.
7081 (Fquery_font): Change the format of the last element of the return
7082 value.
7083
73acf815 70842008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7085
7086 * xfns.c (xic_create_xfontset): Try the default fontset name as a
7087 last resort.
7088
73acf815 70892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7090
7091 * coding.c (detect_coding_charset): Fix detection of multi-byte
7092 charset.
7093
73acf815 70942008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
aca7a3d2
MB
7095
7096 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
7097
73acf815 70982008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7099
7100 * xdisp.c (get_next_display_element): Set it->face_id for the
7101 first component of a composition.
1f45f627 7102 (x_produce_glyphs): Check if the font is changed or not for composition.
aca7a3d2 7103
73acf815 71042008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7105
7106 * fontset.c (Qlatin): New variable.
7107 (syms_of_fontset): Define it as a lisp symbol.
1f45f627 7108 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
aca7a3d2 7109
73acf815 71102008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7111
7112 * font.c (font_unparse_fcname): Pay attention to the case that
7113 some of font property is a null string.
7114
73acf815 71152008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7116
7117 * term.c: Include "composite.h".
7118 (encode_terminal_code): Output all components of composition.
7119 Check the size of encode_terminal_src.
424c157f 7120 (produce_glyphs): For composition, call produce_composite_glyph.
aca7a3d2
MB
7121 (append_composite_glyph, produce_composite_glyph): New functions.
7122
7123 * xdisp.c (x_produce_glyphs): In handling composition, if a font
7124 is not found, get font_info from the current ascii face.
7125
73acf815 71262008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7127
7128 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
7129 buffer-file-name to Qnil before calling insert_from_buffer.
7130
7131 * font.c (font_unparse_fcname): Pay attention to the case that
7132 foundry is a null string.
7133
73acf815 71342008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7135
7136 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
7137
7138 * font.c (Qunicode_sip): New variable.
7139 (syms_of_font): Declare it as a Lisp symbol.
7140
7141 * font.h (Qunicode_sip): Extern it.
7142
73acf815 71432008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7144
1f45f627 7145 * composite.c (get_composition_id): Pay attention to TAB component.
aca7a3d2
MB
7146
7147 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
1f45f627 7148 TAB. Adjust for the change of s->char2b which always points to
aca7a3d2
MB
7149 the first elememnt of allocated memory.
7150
1f45f627 7151 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
aca7a3d2
MB
7152
7153 * xdisp.c (handle_composition_prop): Set it->c to the first
7154 non-TAB component.
1f45f627
GM
7155 (fill_composite_glyph_string): Change argument.
7156 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
aca7a3d2
MB
7157 (x_produce_glyphs): Fix handling of left/right padding.
7158
73acf815 71592008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7160
7161 * coding.c (detect_coding_system): Fix for handling off
7162 inhibit_iso_escape_detection. Fix for the case that no coding
7163 system is defined for a specific coding category.
7164
73acf815 71652008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7166
1f45f627 7167 * font.c (font_matching_entity): Delete unused local var.
aca7a3d2
MB
7168
7169 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
7170 opening a font.
7171
7172 * fileio.c (Finsert_file_contents): On recovering a file, assume
7173 Unix-like eol.
7174 (choose_write_coding_system): On auto-saving a file, force
7175 Unix-like eol.
7176
7177 * coding.c (setup_coding_system): Fix setting of
7178 coding->common_flags based on eol_type.
7179 (coding_inherit_eol_type): If PARENT is not nil, be sure to
7180 inherit from it.
7181
73acf815 71822008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7183
1f45f627 7184 * alloc.c (NSTATICS): Increas to 0x600.
aca7a3d2 7185
73acf815 71862008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7187
1f45f627 7188 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
aca7a3d2
MB
7189 (ftfont_list): Don't check :name property.
7190 (ftfont_match): New function.
7191 (ftfont_pattern_entity): If the pattern doesn't contain
7192 FC_SPACING, don't assuce FC_MONO.
7193
7194 * font.h (struct font_driver): New member `match'.
1f45f627 7195 (font_update_drivers): Adjust prototype.
aca7a3d2 7196
4c4475a8
GM
7197 * font.c (font_parse_fcname, font_parse_name): Don't change :name
7198 property of FONT.
aca7a3d2
MB
7199 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
7200 them unconditionally.
7201 (font_matching_entity): New function.
7202 (font_open_by_name): Try font_matching_entity if exact match is
7203 not found.
7204 (font_update_drivers): Delete the arg FONT. Return a list of
7205 actually used backends. Don't free faces, font caches here.
7206 Don't store data in frame parameters. Don't call x_set_font.
7207 (Ffont_spec): Store :name property as is.
7208 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
1f45f627
GM
7209 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
7210 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
aca7a3d2
MB
7211 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
7212 Call font->driver->otf_gsub instead of font_otf_gsub.
7213
7214 * frame.c (x_set_font_backend): Do more works that were done in
7215 font_update_drivers before.
7216
7217 * xfont.c (xfont_match): New function.
7218 (xfont_driver): Set xfont_driver.match to xfont_match.
7219 (xfont_draw): Set font in GC if necessary.
7220
7221 * ftxfont.c (ftxfont_match): New function.
7222 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
7223
7224 * xftfont.c (xftfont_match): New function.
7225 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
7226
73acf815 72272008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7228
7229 * font.h (struct font): New member scalable.
7230 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
1f45f627 7231 (font_otf_gsub): Adjust prototype.
aca7a3d2 7232
1f45f627
GM
7233 * font.c (font_otf_capability): Fix handling of the default langsys.
7234 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
aca7a3d2
MB
7235 Check the contents of SPEC.
7236 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
7237 (check_gstring): New function.
7238 (REPLACEMENT_CHARACTER): New macro.
7239 (font_otf_gsub): New arg alternate_subst. Be sure to set all
7240 glyph codes of GSTRING.
7241 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
7242 (font_prepare_composition): Set cmp->glyph_len.
7243 (font_open_entity): Set font->scalable.
7244 (Ffont_get): Handle :otf property.
7245 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
7246 functions.
7247 (Fquery_font): Use font->font.full_name.
7248 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
7249 Sfont_otf_alternates.
7250
7251 * ftfont.c (ftfont_open): Set font->font.full_name and
7252 font->font.name properly. Fix calculation of font->font.height
7253 and font->min_width.
7254
7255 * ftxfont.c (ftxfont_create_gcs): New function.
7256 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
7257 (ftxfont_draw_backgrond): Fix filling region.
7258 (ftxfont_default_fid): New function.
7259 (ftxfont_open): Set xfotn->fid to the return value of
7260 ftxfont_default_fid.
7261 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
7262 (ftxfont_done_face): Free only GCs that are created by
7263 ftxfont_create_gcs.
7264 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
7265
7266 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
7267 Clip to src->width, etc (not src->clip_XXX).
7268
7269 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
7270 FontBackend frame parameter.
7271
73acf815 72722008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7273
7274 * font.h (struct font_driver_list): New member `on'.
7275 (Fclear_font_cache): EXFUN it.
7276 (font_update_drivers): Extern it.
7277
7278 * font.c (font_unparse_fcname): Fix typo (swidth->width).
7279 (font_list_entities): Check driver_list->on.
7280 (register_font_driver): Initalize `on' member to 0.
7281 (font_update_drivers): New function.
7282 (Fclear_font_cache): Check driver_list->on.
7283
7284 * frame.h (Qfont_backend): Extern it.
7285 (x_set_font_backend): Extern it.
7286
7287 * frame.c (Qfont_backend): New variable.
7288 (frame_parms): New element for font-backend.
7289 (x_set_font_backend): New function.
7290
7291 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
7292 FontBackend frame parameter.
7293 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
7294 x_set_font_backend.
7295
7296 * xfont.c (xfont_list): Don't try listing by :name property if the
7297 name is not for XLFD.
7298
73acf815 72992008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7300
7301 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
7302 (LGLYPH_SET_TO): New macros.
7303 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
7304 element of G is vector or not.
7305 (font_at): Extern it.
7306
7307 * font.c: Include window.h.
7308 (font_lispy_object): New function.
7309 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
7310 end of valid glyph.
7311 (font_close_object): Fix getting (struct font *).
7312 (font_at): New function.
7313 (Ffont_get): If FONT is a font-object, get entity from it.
7314 (Ffont_make_gstring): Initialize elements of glyphs with nil.
7315 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
7316 range check.
7317 (Ffont_at): New function.
7318 (syms_of_font): Defsubr Sfont_at.
7319
7320 * xdisp.c (it_props): Move the entry for Qauto_composed to just
424c157f 7321 before the entry for Qcomposition.
1f45f627 7322 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
aca7a3d2
MB
7323 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
7324 the font in gstring.
7325 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
7326 LGLYPH_FORM (g) to detect the end of valid glyph.
7327 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
7328 we are composing with gstring.
7329
7330 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
7331 Check if adjustment is vector or not.
7332
7333 * Makefile.in (font.o): Make it depends on window.h.
7334
73acf815 73352008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7336
7337 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
7338 adjustment is vector or not.
7339
73acf815 73402008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
7341
7342 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
7343
73acf815 73442008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7345
7346 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
7347 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
7348 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
7349
1f45f627 7350 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
aca7a3d2 7351 (DEVICE_DELTA): Fix typo.
4c4475a8
GM
7352 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
7353 LGLYPH format.
aca7a3d2 7354
1f45f627 7355 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aca7a3d2
MB
7356 the change of LGLYPH format.
7357
73acf815 73582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7359
7360 * ftfont.c (ftfont_list): Fix typo.
1f45f627 7361 (ftfont_build_basic_charsets): Don't include letters with diacritics.
aca7a3d2 7362
880820fe 73632008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2
MB
7364
7365 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
7366
7367 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
7368 xftface_info is non-NULL.
7369
880820fe 73702008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2 7371
1f45f627 7372 * ftfont.c (ftfont_list): Move misplaced #endif.
aca7a3d2 7373
73acf815 73742008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7375
7376 * ftfont.c (ftfont_list): Pay attention to the case that
7377 FC_CAPABILITY is not defined.
7378
73acf815 73792008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7380
7381 * xftfont.c (xftfont_open): Set charset related members to -1.
7382
1f45f627
GM
7383 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
7384 QCname.
aca7a3d2
MB
7385 (ftfont_open): Set charset related members to -1.
7386
7387 * fontset.c (Votf_script_alist): New variable.
7388 (syms_of_fontset): Initialize it.
7389 (fontset_font): Delete unused variable.
7390
7391 * fontset.h (Votf_script_alist): Extern it.
7392
1f45f627 7393 * font.c (font_find_for_lface): Optimize code.
aca7a3d2
MB
7394
7395 * font.h (font_close_object, font_merge_old_spec): Extern them.
7396
73acf815 73972008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7398
7399 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
7400 (syms_of_font): Initialize them.
7401 (font_pixel_size): Allow float value in dpi.
1f45f627
GM
7402 (font_prop_validate_type): Delete.
7403 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
7404 Change caller.
7405 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
7406 (font_prop_validate_extra): Delete.
aca7a3d2
MB
7407 (font_prop_validate_spacing): New function.
7408 (font_property_table): Add elements for all known properties.
1f45f627
GM
7409 (get_font_prop_index): Rename from check_font_prop_name. New
7410 argument FROM. Change caller.
aca7a3d2 7411 (font_prop_validate): Validate all known properties.
1f45f627 7412 (font_put_extra): Delete argument force. Change caller.
aca7a3d2
MB
7413 (font_expand_wildcards): Make it static. Fix the way of shrinking
7414 the possible range.
1f45f627 7415 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
aca7a3d2 7416 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
1f45f627 7417 Change caller.
aca7a3d2 7418 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
1f45f627
GM
7419 (font_parse_fcname): Delete argument merge. Fix parsing of point
7420 size. Don't validate properties values here. Change caller.
7421 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
aca7a3d2
MB
7422 (font_open_by_name): Delete unused variable.
7423 (Ffont_spec): Likewise. Validate property values.
7424 (Ffont_match_p): New function.
7425
7426 * font.h (QCscalable): Extern it.
1f45f627 7427 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
aca7a3d2 7428
1f45f627 7429 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
aca7a3d2 7430
1f45f627 7431 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
aca7a3d2
MB
7432 (xfont_list_pattern): New function.
7433 (xfont_list): Use xfont_list_pattern.
7434
73acf815 74352008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7436
7437 * font.h (Flist_fonts): EXFUN it.
7438
73acf815 74392008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
7440
7441 * w32term.c (w32_initialize): Add back smoothing_type and
7442 smoothing_enabled definitions.
7443
73acf815 74442008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7445
7446 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
7447 s->face->font on determining underline position.
7448
73acf815 74492008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7450
7451 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
7452 (font_has_char): Accept font-object too.
7453 (font_find_for_lface): Try at first with a size specified in face.
7454
73acf815 74552008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7456
7457 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
7458 font_open_by_name.
7459
73acf815 74602008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7461
7462 * font.h (QCspacing, QCdpi): Extern them.
7463 (enum font_spacing): New enum.
7464 (FONT_PIXEL_SIZE_QUANTUM): New macro.
7465
7466 * font.c (POINT_TO_PIXEL): Don't divice POINT by 10.
7467 (QCspacing, QCdpi): New variables.
7468 (syms_of_font): Initialize them.
7469 (font_pixel_size): New function.
7470 (font_put_extra): New function.
7471 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
7472 in FONT_EXTRA.
e9184ccb
JB
7473 (font_parse_fcname): Handle enumenrated values (e.g. bold).
7474 Fix handling font size. Add QCname property that contains only
aca7a3d2 7475 unknown properties.
1f45f627 7476 (font_score): Change argument. Change caller. Pay attention to
aca7a3d2 7477 FONT_PIXEL_SIZE_QUANTUM.
4c4475a8
GM
7478 (font_sort_entites, font_list_entities, font_find_for_lface)
7479 (font_open_for_lface, font_open_by_name): Fix handling of font size.
1f45f627 7480 (Ffont_spec): Add QCname property that contains only unknown properties.
aca7a3d2
MB
7481
7482 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
7483 include weight in listing pattern, instead check weight of each
7484 listed font. Don't include scalable in pattern. Pay attention to
7485 FONT_PIXEL_SIZE_QUANTUM.
7486
73acf815 74872008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7488
aca7a3d2 7489 * font.c (font_parse_fcname): Fix parsing of point-size.
1f45f627 7490 (font_unparse_fcname): Produce symbolic names for style properties.
aca7a3d2
MB
7491 (font_list_entities): Handle float size correctly.
7492 (font_open_by_name): Prefer `normal' property values if the name
7493 doesn't specify them.
7494
7495 * fontset.c (Finternal_char_font): Use font_get_name, not
7496 Ffont_xlfd_name.
7497
7498 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
7499 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
7500 pattern. Don't force scalable.
7501
7502 * xftfont.c (xftfont_open): For generating a name, start from
7503 96-byte buffer.
7504
880820fe 75052008-02-01 Jan Djärv <jan.h.d@swipnet.se>
aca7a3d2
MB
7506
7507 * frame.h (x_new_fontset2): Fix prototype.
7508
73acf815 75092008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7510
1f45f627 7511 * font.h (struct font_driver): Delete member parse_name.
aca7a3d2
MB
7512 (font_match_p, font_get_spec, font_parse_fcname)
7513 (font_unparse_fcname): Extern them.
1f45f627 7514 (font_get_name): Adjust prototype.
aca7a3d2
MB
7515
7516 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
7517 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
7518 (font_expand_wildcards): Fix handling ENCODING field. Avoid
7519 unnecessary checks for weight, slant, and swidth.
7520 (font_parse_fcname): New function.
7521 (font_unparse_fcname): New function.
7522 (font_parse_name): New function.
7523 (font_match_p): New function.
1f45f627 7524 (font_get_name): Change return value to Lisp string.
aca7a3d2
MB
7525 (font_get_spec): New function.
7526 (Qunspecified, Qignore_defface): Don't extern them.
7527 (font_find_for_lface): Assume that LFACE is fully specified.
7528 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
7529 object, use it for FACE.
7530 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
7531 driver->parse_name.
7532 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
7533
1f45f627
GM
7534 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
7535 prototype.
aca7a3d2 7536
1f45f627
GM
7537 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
7538 argument F. Don't call Fnew_fontset. Instead, directly call
aca7a3d2
MB
7539 make_fontset.
7540
1f45f627 7541 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
aca7a3d2 7542
1f45f627 7543 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
aca7a3d2
MB
7544 of x_new_fontset2.
7545
7546 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
7547 (Qsans__serif): New variables.
7548 (ftfont_generic_family_list): New variable.
7549 (syms_of_ftfont): Initialize the above variables.
1f45f627 7550 (ftfont_pattern_entity): Delete argument NAME.
aca7a3d2
MB
7551 (ftfont_list_generic_family): New function.
7552 (ftfont_parse_name): Delete this function.
1f45f627 7553 (ftfont_list): Try generic family only when FcFontList found no font.
aca7a3d2
MB
7554 (ftfont_list_family): Fix args to FcObjectSetBuild.
7555
7556 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
7557 object in attrs[LFACE_FONT_INDEX].
7558 (set_lface_from_font_name): Cancel all changes for font-backend.
7559 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
7560 function.
7561 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
7562 font object in QCfont attribute.
7563 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
7564 (realize_default_face) [USE_FONT_BACKEND]: Call
7565 set_lface_from_font_and_fontset.
7566
7567 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
7568 "fixed", and signal error here if no suitable font was found.
7569
7570 * xfont.c (xfont_parse_name): Delete this function.
7571
7572 * xftfont.c (xftfont_open): Change coding style of error
7573 handling. Generate fontconfig's fontname pattern.
7574
7575 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
7576 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
7577
7578 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
7579 Both args FONTSET and FONT_OBJECT must be existing ones.
7580
73acf815 75812008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
7582
7583 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
7584
73acf815 75852008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7586
7587 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
7588
7589 * font.h (struct font): Fix typo.
7590
7591 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
7592 XLFD_XXX_INDEX.
7593 (enum xlfd_field_mask): New enum.
1f45f627 7594 (intern_font_field): Changed argument. Change caller. If digits
aca7a3d2
MB
7595 are followed by non-digits, return a symbol.
7596 (font_expand_wildcards): New function.
7597 (font_parse_xlfd): Fix wildcard handling.
7598 (Ffont_spec): If :name is specified, reflect the info in the other
7599 properties.
7600
7601 * ftfont.c (ftfont_pattern_entity): Fix typo.
7602 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
7603 locale.
7604
73acf815 76052008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7606
7607 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
7608
1f45f627 7609 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
aca7a3d2
MB
7610 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
7611 registry doesn't specify encoding part.
7612 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
7613 (font_open_by_name): At first try parsing the name.
7614 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
7615 as Lisp symbols.
7616
7617 * fontset.c (reorder_font_vector): Pay attention to the case that
7618 the 3rd element of font_def is nil.
7619 (fontset_font): For the default fontset, append one more fontset
7620 elements for a script-based font specification. Don't add script
7621 attribute on finding a font.
7622 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
7623 font name.
7624 (fontset_ascii_font): If a font can't be opened, return nil.
7625
1f45f627 7626 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
aca7a3d2
MB
7627 (ftfont_pattern_entity): New function.
7628 (ftfont_get_cache): Assume that freetype_font_cache is already
7629 initialized.
7630 (ftfont_list): Handle the case that a file is specified in font
7631 name. Use ftfont_pattern_entity to generate entities.
7632 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
7633 (syms_of_ftfont): Initialize freetype_font_cache.
7634
7635 * xftfont.c (xftfont_open): Make the font name fontconfig's
7636 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
7637 (xftfont_close): Free font->font.name if not NULL.
7638
7639 * xfont.c (xfont_list): If script is specified for a font, return
7640 null_vector.
7641 (xfont_list_family): Declare argument type.
7642
7643 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
7644 name, set LFACE_FONT (lface) to nil.
7645
7646 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
7647 return Qnil.
7648
73acf815 76492008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7650
1f45f627 7651 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
aca7a3d2
MB
7652 (standard_args): Add "-enable-font-backend".
7653
73acf815 76542008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7655
7656 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
7657 (struct xftdraw_list, xftdraw_list): Delete them.
7658 (register_xftdraw, check_xftdraw): Delete them.
7659 (xftfont_prepare_face): Don't call register_xftdraw.
7660 (xftfont_done_face): Don't call check_xftdraw.
7661 (xftfont_draw): Get backroudn color only when with_background is
7662 nonzero.
7663
7664 * xfont.c (xfont_encode_char): Fix calculation of char2b.
7665
73acf815 76662008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7667
7668 These changes are for the new font handling codes.
7669
7670 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
7671 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
7672 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
7673 (FONTSRC, FONTOBJ): New variables.
7674 (obj): Add $(FONTOBJ).
7675 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
7676 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
7677 @LIBOTF_LIBS@.
7678 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
1f45f627 7679 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
aca7a3d2 7680
1f45f627 7681 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
aca7a3d2
MB
7682
7683 * character.h (Vscript_representative_chars): Extern it.
7684
7685 * character.c (Vscript_representative_chars): New variable.
7686 (syms_of_character): Declare it as a Lisp variable.
7687
7688 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
7689 enable_font_backend is nonzero, accept the composition method
7690 COMPOSITION_WITH_GLYPH_STRING.
7691
7692 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
7693 enumeration COMPOSITION_WITH_GLYPH_STRING.
7694
aca7a3d2
MB
7695 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
7696 members clip_x, clip_y, clip_width, and clip_height.
7697 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
7698
7699 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
7700 --enable-font-backend. Call syms_of_font.
7701
7702 * fns.c (assoc_no_quit): New function.
7703
7704 * fontset.h (FONT_INFO_FROM_FACE): New macro.
7705 (face_for_font, new_fontset_from_font)
7706 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
7707
7708 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
7709 (fontset_font, fontset_ascii, face_for_char)
7710 (make_fontset_for_ascii_face, Ffont_info)
7711 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
7712 is nonzero, use font-backend mechanism.
7713 (find_font_encoding): Make it non-static.
7714 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
7715 New functions.
7716
7717 * frame.h (struct frame): New members resx and resy.
7718 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
7719 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
7720
7721 * frame.c [USE_FONT_BACKEND]: Include "font.h".
1f45f627 7722 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
aca7a3d2
MB
7723
7724 * lisp.h (assoc_no_quit): Extern it.
7725
7726 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
7727 Through out the file, use FONT_INFO_FROM_FACE instead of
7728 FONT_INFO_FROM_ID, use get_per_char_metric instead of
7729 rif->per_char_metric.
7730 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
7731 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
7732 (get_glyph_face_and_encoding, fill_composite_glyph_string)
7733 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
7734 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
7735 nonzero, use font-backend mechanism.
7736 (get_per_char_metric): New function.
7737
7738 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
7739 (set_lface_from_font_name)
7740 (set_font_frame_param, free_realized_face)
7741 (prepare_face_for_display, clear_face_gcs)
7742 (Finternal_set_font_selection_order, realize_x_face)
7743 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
7744 font-backend mechanism.
1f45f627 7745 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
aca7a3d2
MB
7746 (load_face_font) [USE_FONT_BACKEND]: Abort.
7747 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
1f45f627 7748 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
aca7a3d2
MB
7749
7750 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
7751 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
7752 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
7753 nonzero, register all available font drivers. Call
7754 x_default_font_parameter for deciding a font.
7755 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
7756
7757 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
7758 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
7759 (x_set_glyph_string_clipping_exactly)
7760 (x_compute_glyph_string_overhangs)
7761 (x_draw_glyph_string_foreground)
7762 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
7763 (x_free_frame_resources) [USE_FONT_BACKEND]: If
7764 enable_font_backend is nonzero, use font-backend mechanism.
7765 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
7766
73acf815 77672008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7768
fcb314b2 7769 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
aca7a3d2
MB
7770 system_eol_type.
7771 (syms_of_coding): Initialize system_eol_type.
7772
fcb314b2
GM
7773 * process.c (Fset_process_coding_system): Inherit system's eol
7774 format if necessary.
aca7a3d2 7775
73acf815 77762008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
7777
7778 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
7779
73acf815 77802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7781
7782 * coding.c (decode_eol): Pay attention to buffer relocation in
7783 del_range_2.
7784 (decode_coding): Call decode_eol before restoring undo_list.
7785
73acf815 77862008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7787
7788 * charset.c (Fdefine_charset_internal): Fix setting of
7789 emacs_mule_bytes.
7790
73acf815 77912008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7792
7793 * keyboard.c (read_char): Check if C is a character or not before
7794 looking up Vkeyboard_translate_table.
7795
73acf815 77962008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7797
7798 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
7799 condition to terminate the loop.
7800
73acf815 78012008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7802
7803 * coding.c (produce_composition): Compare charbuf[i] instead of
7804 args[i] against 0.
7805 (Fterminal_coding_system): Use EQ to compare Lisp objects.
7806
73acf815 78072008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7808
7809 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
7810 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
7811 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
7812 detect_coding.
7813 (emacs_mule_char): Handle old style (Emacs 20) component character
7814 of a composition.
4c4475a8
GM
7815 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
7816 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
7817 composition rule.
aca7a3d2
MB
7818 (decode_coding_emacs_mule): Handle invalid bytes correctly.
7819
73acf815 78202008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7821
7822 * coding.c (encode_coding_ccl): Allocate destination dynamically
7823 when necessary.
7824
73acf815 78252008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7826
7827 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
7828 the loop. When quitted, show a proper error message.
7829
73acf815 78302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7831
aca7a3d2
MB
7832 * xterm.c (x_set_glyph_string_clipping_exactly): Set
7833 src->clip_head and src->clip_tail temporarily instead of src->hl.
7834
7835 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
7836 character sequence.
7837 (Fccl_execute_on_string): Use ASET, not XSET.
7838
73acf815 78392008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7840
1f45f627 7841 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
aca7a3d2 7842
73acf815 78432008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7844
7845 * coding.c (decode_coding): Fix the condition of terminating the
7846 decoding loop.
7847
73acf815 78482008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7849
7850 * data.c (Faset): On setting a character bigger than 255 in a
1f45f627 7851 unibyte string, signal an error instead of make the string multibyte.
aca7a3d2 7852
73acf815 78532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7854
7855 * charset.c (map_charset_chars): Fix for ascii-compatible charset
7856 made by a mapping table.
7857
73acf815 78582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7859
7860 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
7861 not.
7862 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
7863 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
7864
7865 * xterm.c (x_draw_composite_glyph_string_foreground): Check
7866 s->face is NULL or not.
7867
73acf815 78682008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7869
7870 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
7871 (x_draw_glyph_string): Fix drawing of right_overhang and
7872 left_overhang around/on cursor.
7873
1f45f627 7874 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
aca7a3d2 7875
73acf815 78762008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7877
7878 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
7879
73acf815 78802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7881
4c4475a8
GM
7882 * coding.c (Fdefine_coding_system_internal)
7883 (Fdefine_coding_system_alias): Avoid a duplicated element in
7884 Vcoding_system_alist.
aca7a3d2 7885
73acf815 78862008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7887
7888 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
7889
fcb314b2 7890 * coding.c (Qcoding_system_define_form): New variable.
aca7a3d2
MB
7891 (syms_of_coding): Intern and staticpro it.
7892 (Fcoding_system_p): Check Qcoding_system_define_form.
1f45f627 7893 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
aca7a3d2
MB
7894
7895 * coding.h (CODING_SYSTEM_P): If ID is not available, call
7896 Fcoding_system_p.
7897 (CHECK_CODING_SYSTEM): If ID is not available, call
7898 Fcheck_coding_system.
4c4475a8
GM
7899 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
7900 Try also Fcheck_coding_system.
aca7a3d2 7901
73acf815 79022008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7903
aca7a3d2
MB
7904 * coding.c (code_conversion_restore): GCPRO arg.
7905
73acf815 79062008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7907
7908 * character.c (lisp_string_width): Check multibyteness of STRING.
7909
73acf815 79102008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
7911
7912 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
7913 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
7914 (decode_mac_font_name): Use decode_coding_c_string instead of
7915 decode_coding.
7916 (x_load_font): Initialize fontp->fontset to -1. Set
7917 fontp->encoding_type.
7918
73acf815 79192008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7920
7921 * search.c (search_buffer): Give up BM search on case-fold-search
7922 if one of a target character has a case-equivalence of different
7923 byte length even if that target charcter is an ASCII.
1f45f627
GM
7924 (simple_search): Fix calculation of byte length of matched text.
7925 (boyer_moore): Fix handling of case-equivalent multibyte characters.
aca7a3d2 7926
73acf815 79272008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7928
7929 * coding.c (decode_coding): Fix handling of invalid bytes.
7930
73acf815 79312008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7932
7933 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
7934 Unicode characters.
7935
73acf815 79362008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7937
7938 * coding.c (encode_coding_object): If a pre-write-conversion
7939 function makes a new buffer, kill it.
7940
73acf815 79412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
7942
7943 * coding.c (QCascii_compatible_p): New variable.
7944 (syms_of_coding): Initialize it.
4c4475a8
GM
7945 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
7946 calling string_char.
aca7a3d2
MB
7947 (record_conversion_result): Add `default:' case.
7948 (coding_charset_list): Delete unused variable `coding_type'.
7949 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
7950 property in the plist of the coding system.
7951 (Fcoding_system_put): Check QCascii_compatible_p.
7952
73acf815 79532008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2
MB
7954
7955 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
7956 removed calculation of frame `f', as it's now used.
7957
73acf815 79582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7959
1f45f627 7960 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
aca7a3d2
MB
7961 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
7962 (UNIDATA): New variable.
7963 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
7964 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
7965 $(RUN_TEMACS) unconditionally.
7966
73acf815 79672008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7968
1f45f627 7969 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
aca7a3d2
MB
7970 (admindir): New variable.
7971 ($(lispsource)international/charprop.el): New target.
7972
73acf815 79732008-02-01 Miles Bader <miles@gnu.org>
aca7a3d2 7974
1f45f627 7975 * character.c (chars-in-region): Remove obsolete function.
aca7a3d2
MB
7976 (syms_of_character): Remove its initialization.
7977
73acf815 79782008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
aca7a3d2
MB
7979
7980 * w32select.c (validate_coding_system)
7981 (setup_windows_coding_system): New functions.
7982 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
7983 setup_windows_coding_system.
7984 (setup_config, Fw32_get_clipboard_data): Use
7985 validate_coding_system.
7986 (Fx_selection_exists): Move call to setup_config to a place
1f45f627 7987 where signals are allowed.
aca7a3d2
MB
7988
7989 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
7990 (Fcheck_coding_system): Add declarations.
7991
73acf815 79922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 7993
1f45f627 7994 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
aca7a3d2 7995
73acf815 79962008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
7997
7998 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
7999 string as the second argument for x_new_fontset.
8000
73acf815 80012008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8002
8003 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
8004 (encode_coding_object): Use safe_call instead of call2.
8005
73acf815 80062008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8007
1f45f627 8008 * fontset.c (Fset_fontset_font): Check family element of a given vector.
aca7a3d2
MB
8009
8010 * Makefile.in (lisp): Include charprop.el.
8011
73acf815 80122008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aca7a3d2
MB
8013
8014 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
8015 Not sure if it's unnecessary.
8016
73acf815 80172008-02-01 Steven Tamm <steventamm@mac.com>
aca7a3d2
MB
8018
8019 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
8020 some possibly unnecessary fontset checking code that crashed
1f45f627 8021 when creating a new frame.
aca7a3d2 8022
73acf815 80232008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8024
8025 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
8026 lookup_face.
8027
8028 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
8029
1f45f627 8030 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
aca7a3d2 8031
73acf815 80322008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8033
73acf815 8034 * coding.c: Cancel the change done in HEAD on 2008-02-01.
aca7a3d2
MB
8035 (coding_charset_list): New function.
8036
8037 * coding.h (coding_charset_list): Extern it.
8038
73acf815 80392008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8040
8041 * fontset.c (Fset_fontset_font): Call find_font_encoding with
8042 concatenation of family and registry.
8043
73acf815 80442008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8045
8046 * character.h (BYTE8_STRING): Fix typo.
8047
8048 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
8049 string to multibyte (sync to HEAD).
8050
8051 * casefiddle.c (casify_region): Handle changes in byte-length
8052 using replace_range_2 (sync to HEAD).
8053
73acf815 80542008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
8055
8056 * chartab.c (map_char_table): GCPRO table and arg.
8057
73acf815 80582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8059
8060 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
8061 already at limit.
8062
73acf815 80632008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8064
8065 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
8066 instead of fast_c_string_match_ignore_case.
1f45f627 8067 (find_font_encoding): Change argument to Lisp_Object. Use
aca7a3d2 8068 fast_string_match_ignore_case instead of
1f45f627 8069 fast_c_string_match_ignore_case. Change caller.
aca7a3d2 8070
73acf815 80712008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8072
8073 * xdisp.c (get_next_display_element): In unibyte case, decide to
8074 display in octal form by checking a chacter by
8075 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
8076
1f45f627 8077 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
aca7a3d2
MB
8078
8079 * character.c (unibyte_has_multibyte_table): New variable.
8080
8081 * character.h (unibyte_has_multibyte_table): Extern it.
8082 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
8083
73acf815 80842008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8085
8086 * coding.c (encode_coding_iso_2022): Fix handling of charset
8087 annotation.
8088
73acf815 80892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8090
8091 * coding.c (setup_coding_system): If coding_system is nil, use
8092 Qundecided.
8093 (Fterminal_coding_system): Return nil if terminal coding system is
8094 `undecided'.
8095 (syms_of_coding): Define coding-system `undecided' here. Setup
8096 terminal_coding as `undecided'.
8097
73acf815 80982008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8099
8100 * xdisp.c (message_dolog, set_message_1): Call
8101 unibyte_char_to_multibyte with arg type int.
8102
aca7a3d2
MB
8103 * lread.c (read1): Fix reading of a char-table.
8104
8105 * print.c (print_object): Include sub char-table in cicularities
8106 detection.
8107
73acf815 81082008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8109
8110 * keymap.c (where_is_internal_2): Fix for the case that KEY is a
1f45f627 8111 cons. Append the found sequences in car of ARGS instead of prepending.
aca7a3d2 8112
73acf815 81132008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8114
8115 * fileio.c (report_file_error): Make a unibyte string from
8116 strerror (errorno).
8117 (Fsubstitute_in_file_name): Fix the arg to
8118 unibyte_char_to_multibyte. It is evaluated twice.
8119
73acf815 81202008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8121
8122 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
8123
73acf815 81242008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8125
8126 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
8127 BOM is not found.
4c4475a8
GM
8128 (detect_coding, detect_coding_system): Optimization for ISO-2022
8129 when no 8-bit data is found.
aca7a3d2 8130
73acf815 81312008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
8132
8133 * w32fns.c (x_to_w32_font): Update to use new coding struct.
8134
73acf815 81352008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8136
4c4475a8
GM
8137 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
8138 CHARS.
aca7a3d2 8139
73acf815 81402008-02-01 Steven Tamm <steventamm@mac.com>
aca7a3d2
MB
8141
8142 * macterm.c (mac_encode_char): Add charset argument and update
8143 to use encoding_type.
2a2e8de7 8144 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
1f45f627
GM
8145 switch to pure fontset.
8146 (decode_mac_font_name): Temporarily remove decoding.
8147 (x_font_name_to_mac_font_name): Temporarily remove encoding.
8148 (x_load_font): Temporarily remove encoding.
aca7a3d2 8149
73acf815 81502008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8151
8152 * xfaces.c (Fface_font): If frame is not on a window system,
8153 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
8154 refer to face->font.
8155 (split_font_name_into_vector, build_font_name_from_vector)
8156 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
8157 whne HAVE_WINDOW_SYSTEM is defined.
8158
73acf815 81592008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8160
8161 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
8162 (x_produce_glyphs): Fix setting of members of cmp in case
1f45f627 8163 cmp->glyph_len is zero.
aca7a3d2 8164
1f45f627 8165 * fontset.c (Fset_fontset_font): Fix docstring.
aca7a3d2
MB
8166 (Ffontset_info): Make it backward compatible. New arg ALL.
8167
73acf815 81682008-02-01 Kim F. Storm <storm@cua.dk>
aca7a3d2
MB
8169
8170 * process.c (read_process_output): Grow decoding_buf when needed;
8171 this could cause a crash in allocate_string and compact_small_strings.
8172
73acf815 81732008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8174
1f45f627 8175 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
aca7a3d2 8176
73acf815 81772008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8178
8179 * coding.c (setup_coding_system): Set coding->common_flags
8180 correctly for raw-text.
8181 (consume_chars): On encoding unibyte text by raw-text, don't check
8182 multibyte form.
1f45f627 8183 (encode_coding): On encoding by raw-text, never use translation tables.
aca7a3d2
MB
8184
8185 * fileio.c (e_write): Short cut for the case of no encoding.
8186
73acf815 81872008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8188
4c4475a8
GM
8189 * coding.c (detect_coding, detect_coding_system): Delete unused
8190 variables.
aca7a3d2 8191
73acf815 81922008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8193
8194 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
8195 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
8196
73acf815 81972008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8198
8199 * coding.c (Ffind_coding_systems_region_internal): Include
8200 raw-text and no-conversion in the result.
8201
73acf815 82022008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8203
1f45f627 8204 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
aca7a3d2
MB
8205 (load_font_get_repertory): Delete unnecessary check of ENCODING of
8206 FONT_DEF.
8207 (font_def_arg, add_arg, from_arg, to_arg): New args.
1f45f627 8208 (set_fontset_font): Change argument.
aca7a3d2
MB
8209 (Fset_fontset_font): Fix for the case that TARGET is a script
8210 name and charset name.
8211 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
8212
73acf815 82132008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8214
1f45f627
GM
8215 * fontset.c (fontset_font): Rename from fontset_face. Change return
8216 value.
4c4475a8
GM
8217 (face_suitable_for_char_p, face_for_char): Adjust for the change
8218 of fontset_font.
aca7a3d2
MB
8219 (make_fontset_for_ascii_face): Fix setting of the fontset element
8220 for ASCII.
8221 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
8222 to get a font name.
1f45f627 8223 (Ffontset_info): Adjust for the change of fontset_font.
aca7a3d2 8224
fcb314b2 8225 * coding.c (emacs_mule_char): Check invalid code more regidly.
aca7a3d2
MB
8226
8227 * character.h (LEADING_CODE_LATIN_1_MIN)
8228 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
8229
73acf815 82302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8231
fcb314b2 8232 * editfns.c (check_translation): New function.
aca7a3d2
MB
8233 (Ftranslate_region_internal): Handle M:N mapping.
8234
73acf815 82352008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8236
8237 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
8238
73acf815 82392008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8240
8241 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
8242 goto invalid_code.
8243 (decode_coding_iso_2022): Fix handling of invalid designation.
8244
8245 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
8246 after calling code_conversion_save.
8247
73acf815 82482008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8249
8250 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
8251
8252 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
8253
8254 * fontset.c: Include "intervals.h".
8255 (fontset_face): Fix comparing of Lisp_Objects.
4c4475a8
GM
8256 (free_face_fontset, new_fontset_from_font_name): Fix
8257 Lisp_Object/int mixup.
aca7a3d2
MB
8258
8259 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
8260
8261 * coding.c: Add many prototypes for static functions.
8262 (get_translation_table): Allow max_lookup to be NULL.
2a2e8de7 8263 (decode_coding, Ffind_coding_systems_region_internal)
4c4475a8
GM
8264 (Funencodable_char_position, Fcheck_coding_systems_region): Call
8265 get_translation_table with max_lookup NULL.
aca7a3d2 8266
73acf815 82672008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8268
8269 * coding.c (get_translation_table): Declare it as Lisp_Object.
8270 (LOOKUP_TRANSLATION_TABLE): New macro.
4c4475a8
GM
8271 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
8272 instead of CHAR_TABLE_REF.
aca7a3d2 8273
73acf815 82742008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8275
1f45f627 8276 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
aca7a3d2
MB
8277 annotation data format.
8278 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
1f45f627 8279 Change arguments FROM and TO to single argument NCHARS. Change caller.
4c4475a8 8280 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
aca7a3d2 8281 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4c4475a8
GM
8282 (decode_coding_ccl, decode_coding_charset): Pay attention to
8283 coding->charbuf_used.
aca7a3d2
MB
8284 (get_translation): New function.
8285 (produce_chars): New arguments translation_table and last_block.
8286 Translate characters here. Return number of carryover chars.
1f45f627
GM
8287 Change caller.
8288 (produce_composition): New argument pos. Change caller.
8289 Adjust for the change of annotation data format.
aca7a3d2
MB
8290 (produce_charset, produce_annotation): Likewise.
8291 (decode_coding, encode_coding): Don't call translate_chars.
1f45f627
GM
8292 (consume_chars): New arg translation_table. Change caller.
8293 (translate_chars): Delete.
8294 (syms_of_coding): Make translation-table's number of extra slots 2.
aca7a3d2 8295
73acf815 82962008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8297
8298 * search.c (simple_search): Fix setting this_pos_byte in backward
8299 search.
8300
8301 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
8302 byte sequence.
8303 (detect_coding_ccl): Fix setting of the variable valids.
8304
73acf815 83052008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8306
8307 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
8308
8309 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
8310
1f45f627 8311 * editfns.c (Ftranslate_region_internal): Rename from
aca7a3d2
MB
8312 Ftranslate_region. Accept a char-table in TABLE.
8313 (syms_of_editfns): Defsubr Stranslate_region_internal.
8314
8315 * xfaces.c (set_lface_from_font_name): If a font is specified for
8316 a frame, generate a fontset from the font.
8317 (build_scalable_font_name): If the scalable font is requested for
8318 a specific size, don't change that size.
8319 (try_font_list): Try a scalable font also in the case that a
1f45f627 8320 pattern string is specified.
aca7a3d2 8321
73acf815 83222008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8323
8324 * xfaces.c (Fface_font): New optional arg CHARACTER.
8325
73acf815 83262008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8327
8328 * charset.h (CHARSET_OFFSET): New macro.
8329
73acf815 83302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8331
8332 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
8333
8334 * fontset.c (fontset_face): Handle the case that repertory is a
8335 char-table.
8336 (find_font_encoding): Return nil for unknown encoding.
8337 (Fset_fontset_font): Ignore a font of unknown encoding.
8338
73acf815 83392008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8340
1f45f627 8341 * keymap.c (describe_vector): Handle default value of a char table.
aca7a3d2
MB
8342
8343 * fontset.c (fontset_face): Handle fallback fonts correctly.
8344 (Ffontset_info): Return infomation about fallback fonts.
8345
73acf815 83462008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8347
8348 * fontset.c (FONTSET_DEFAULT): New macro.
4c4475a8 8349 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
aca7a3d2
MB
8350 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
8351 the case that it is nil.
8352 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
1f45f627 8353 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
aca7a3d2
MB
8354
8355 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
8356 subset or superset.
8357
73acf815 83582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8359
8360 * emacs.c (main): Call init_charset after syms_of_XXX.
8361
1f45f627 8362 * charset.c (Vcharset_map_directory): Delete.
1f204af3 8363 (Vcharset_map_path): New variable.
aca7a3d2
MB
8364 (load_charset_map_from_file): Use Vcharset_map_path instead.
8365 (init_charset): Initialize Vcharset_map_path.
8366 (syms_of_charset): Delete declaration of "charset-map-directory",
8367 add declaration of "charset-map-path".
8368
73acf815 83692008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8370
4c4475a8
GM
8371 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
8372 ASCII only string.
aca7a3d2
MB
8373
8374 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
8375
8376 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
6f69e89b 8377 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
aca7a3d2 8378
73acf815 83792008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8380
8381 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
8382
8383 * coding.c (QCmnemonic, QCdefalut_char)
8384 (QCdecode_translation_table, QCencode_translation_table)
8385 (QCpost_read_conversion, QCpre_write_conversion): New variables.
8386 (get_translation_table): Return a list of translation tables if
8387 necessary.
8388 (decode_coding): Call get_translation_table with ENCODEP 0.
8389 (char_encodable_p): If translation_table is non-nil, always call
8390 translate_char.
8391 (Fdefine_coding_system_internal): Accept list of translation
8392 tables as :encode-translation-table and :decode-translation-table.
8393 (Fcoding_system_put): New function.
8394 (syms_of_coding): Declare new symbols. Defsubr
8395 Scoding_system_put.
4c4475a8
GM
8396 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
8397 typically JISX0212.
aca7a3d2
MB
8398
8399 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
8400 when the charset is superset type.
8401
8402 * character.c (translate_char): Accept list of translation tables.
8403
73acf815 84042008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8405
1f45f627 8406 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
aca7a3d2
MB
8407 (CODING_ATTR_TRANS_TBL): New macro.
8408
8409 * coding.c (get_translation_table): New function.
8410 (translate_chars): Fix the bug of skipping annotation data.
4c4475a8
GM
8411 (decode_coding, encode_coding): Utilize get_translation_table.
8412 (char_encodable_p, Funencodable_char_position): Translate char if
8413 necessary.
8414 (Ffind_coding_systems_region_internal)
8415 (Fcheck_coding_systems_region): Setup translation table for encode
8416 in a coding system attribute vector in advance.
aca7a3d2
MB
8417 (Fdefine_coding_system_internal): Allow a symbol as translation
8418 table. For shift-jis type coding system, allow 4th charset.
8419
73acf815 84202008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8421
8422 * coding.c (decode_coding_sjis): Check the first byte rigidly.
8423
8424 * xdisp.c (get_next_display_element): Pass -1 as POS to
8425 FACE_FOR_CHAR if displaying a C-string.
8426
73acf815 84272008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8428
8429 * composite.c (get_composition_id): Handle xoff and yoff in a
8430 composition rule.
8431
8432 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
8433 (struct composition): New member lbearing and rbearing.
8434
8435 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
8436 (x_get_glyph_overhangs): Handle a composition glyph.
1f45f627 8437 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
aca7a3d2
MB
8438
8439 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
8440 composition glyph.
8441
73acf815 84422008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8443
8444 * print.c: Include charset.h.
8445 (Vprint_charset_text_property): New variable.
8446 (Qdefault): Extern it.
8447 (PRINT_STRING_NON_CHARSET_FOUND)
8448 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
8449 (print_check_string_result): New variable.
8450 (print_check_string_charset_prop): New function.
8451 (print_prune_charset_plist): New variable.
8452 (print_prune_string_charset): New function.
8453 (print_object): Call print_prune_string_charset if
8454 Vprint_charset_text_property is not t.
8455 (print_interval): Print nothing if itnerval->plist is nil.
8456 (syms_of_print): Declare Vprint_charset_text_property as a lisp
8457 variable. Init and staticpro print_prune_charset_plist.
8458
73acf815 84592008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8460
8461 * fontset.c (new_fontset_from_font_name): Use the specified font
8462 for all characters in the new fontset.
8463
8464 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
8465 OBJECT args.
8466
8467 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
8468 OBJECT args for composition too.
8469
8470 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
8471 OBJECT args.
8472
73acf815 84732008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8474
8475 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
8476
1f45f627 8477 * fontset.c (reorder_font_vector): Adjust for the change of
aca7a3d2 8478 FONT_DEF format.
1f45f627 8479 (fontset_face): New arg id. Change caller.
aca7a3d2 8480 (face_for_char): New args pos and object.
1f204af3 8481 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
aca7a3d2
MB
8482 (fs_query_fontset): Check NAME by Fassoc too.
8483 (Fset_fontset_font): Allow non-XLFD font name.
1f45f627 8484 (Ffontset_info): Adjust for the change of FONT_DEF format.
aca7a3d2 8485
1f45f627 8486 * fontset.h (face_for_char): Adjust prototype.
aca7a3d2 8487
4c4475a8
GM
8488 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
8489 (append_space, extend_face_to_end_of_line)
8490 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
8491 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
aca7a3d2
MB
8492
8493 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
8494 POS and OBJECT args.
8495
8496 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
8497 POS and OBJECT args.
8498
73acf815 84992008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
8500
8501 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
8502 of GlobalAlloc'ed memory.
8503
73acf815 85042008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8505
8506 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
8507
8508 * charset.h (charset_table_used): Delete extern.
8509
8510 * charset.c (charset_table_used): Make it static.
8511 (map_charset_chars): Fix args to c_function with.
8512
8513 * chartab.c (map_sub_char_table_for_charset): Fix args to
8514 c_function with.
8515
8516 * coding.h (enum coding_result_code): Delete
8517 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
8518
8519 * coding.c (Qinsufficient_source, Qinconsistent_eol)
1f45f627 8520 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
aca7a3d2
MB
8521 (Vlast_code_conversion_error): New variables.
8522 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
8523 (ONE_MORE_BYTE): Record error if any instead of signaling an
8524 error. If non-ASCII multibyte char is found, return the negative
8525 value of the code. All callers changed to check it.
8526 (ONE_MORE_BYTE_NO_CHECK): Likewise.
1f45f627
GM
8527 (record_conversion_result): New function. Change all codes setting
8528 coding->result to call this function.
4c4475a8
GM
8529 (detect_coding_utf_8, decode_coding_utf_8)
8530 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
8531 Don't use the local variable incomplete.
aca7a3d2 8532 (emacs_mule_char): Change the second arg to `const'.
aca7a3d2
MB
8533 (decode_coding): Fix of flushing out unprocessed data.
8534 (make_conversion_work_buffer): Fix making of a work buffer.
2a2e8de7 8535 (decode_coding_object): Return coding->dst_object.
aca7a3d2
MB
8536
8537 * fontset.c (set_fontset_font): Fix args.
8538
8539 * lisp.h (CHARACTERBITS): Define as 22.
8540
8541 * process.c (send_process): Be sure to set coding->src_multibyte.
8542
8543 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
8544
73acf815 85452008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8546
8547 * xdisp.c (handle_auto_composed_prop): Give limit to
8548 Fnext_single_char_property_change.
8549
73acf815 85502008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8551
424c157f 8552 * composite.c (syms_of_composite): Don't make the composition hash
1f45f627 8553 table weak.
aca7a3d2
MB
8554
8555 * fontset.c (Fset_fontset_font): Fix docstring.
8556
8557 * lisp.h (detect_coding_system): Adjust prototype.
8558
8559 * fileio.c (kill_workbuf_unwind): Delete this function.
8560 (Finsert_file_contents): Adjust the call of detect_coding_system.
8561 Get conversion_buffer by code_conversion_save. Use the macor
8562 CODING_MAY_REQUIRE_DECODING. After decoding, update
8563 coding_system.
8564
8565 * coding.h (make_conversion_work_buffer): Delete extern.
8566 (code_conversion_save): Extern it.
8567
8568 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
1f45f627 8569 (CODING_GET_INFO): Delete argument eol_type. Change callers.
aca7a3d2
MB
8570 (decode_coding_utf_8): Don't do eol converion.
8571 (detect_coding_utf_16): Check coding->src_chars, not
1f45f627 8572 coding->src_bytes. Add heuristics for those that have no signature.
4c4475a8
GM
8573 (decode_coding_emacs_mule, decode_coding_iso_2022)
8574 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
8575 Don't do eol converion.
aca7a3d2
MB
8576 (adjust_coding_eol_type): Return a new coding system.
8577 (detect_coding): Don't detect eol. Fix for utf-16 detection.
8578 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
8579 each change.
8580 (decode_coding): Pay attention to undo_list. Do eol convesion for
8581 all types of coding-systems (if necessary).
8582 (Vcode_conversion_work_buf_list): Delete it.
1f45f627 8583 (Vcode_conversion_reused_workbuf): Rename from
aca7a3d2
MB
8584 Vcode_conversion_reused_work_buf.
8585 (Vcode_conversion_workbuf_name): New variable.
8586 (reused_workbuf_in_use): New variable.
8587 (make_conversion_work_buffer): Delete the arg DEPTH.
4c4475a8 8588 (code_conversion_restore): Change argument to cons.
1f45f627
GM
8589 (code_conversion_save): Delete the argument BUFFER. Change callers.
8590 (detect_coding_system): New argument src_chars. Change callers.
aca7a3d2
MB
8591 Fix for utf-16 detection.
8592 (init_coding_once): Don't use ISO_carriage_return.
1f45f627 8593 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
aca7a3d2
MB
8594 reused_workbuf_in_use.
8595
73acf815 85962008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8597
8598 * keymap.c (store_in_keymap): Pay attention to the case that idx
8599 is a cons specifying a character range.
8600
73acf815 86012008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8602
8603 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
8604 HANDLED_RECOMPUTE_PROPS.
8605
8606 * coding.c (Fdefine_coding_system_internal): Fix checking of
8607 ascii compatibility.
8608
73acf815 86092008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8610
1f45f627 8611 * charset.c (find_charsets_in_text): Delete unused locale variable.
aca7a3d2
MB
8612 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
8613
8614 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
8615 Resync charset_list to Vemacs_mule_charset_list.
8616
8617 * keymap.c (store_in_keymap): Pay attention to the case that idx
8618 is a cons specifying a character range.
8619
73acf815 86202008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8621
8622 * composite.c (update_compositions): Bind inhibit-read-only, etc
8623 to t before calling remove-list-of-text-properties.
8624
8625 * print.c (print_object): Always print ASCII chars as is.
8626
73acf815 86272008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8628
1f45f627 8629 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
aca7a3d2 8630
4c4475a8
GM
8631 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
8632 is a char table.
aca7a3d2 8633
73acf815 86342008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8635
1f45f627 8636 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
aca7a3d2 8637
73acf815 86382008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8639
8640 * xfaces.c (set_lface_from_font_name): Fix for the case that
8641 FONTNAME is not fontset name.
8642
73acf815 86432008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8644
8645 * fns.c (base64_encode_1): Fix previous change.
8646
73acf815 86472008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8648
8649 * fontset.c (set_fontset_font): New function.
8650 (Fset_fontset_font): If a font is specified for a charset, use
8651 map_charset_chars to store the font spec in a fontset.
8652
73acf815 86532008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8654
1f204af3 8655 * fontset.c (fontset_face): Create a fallback fontset on demand.
aca7a3d2
MB
8656 (make_fontset): Don't create a fallback fontset here.
8657 (free_face_fontset): Free a fallback fontset (if any) too.
8658 (n_auto_fontsets): Delete this variable.
8659 (auto_fontset_alist): New variable.
8660 (new_fontset_from_font_name): Check auto_fontset_alist.
8661 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
8662 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
8663 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
8664 Defsubr Sfontset_list_all.
8665
73acf815 86662008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8667
8668 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
8669
73acf815 86702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8671
8672 * fontset.c (Fnew_fontset): Check NAME more rigidly.
8673
73acf815 86742008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8675
8676 * editfns.c (Fgoto_char): Fix docstring.
8677
73acf815 86782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8679
8680 * insdel.c (insert_from_gap): Adjust intervals correctly.
8681
73acf815 86822008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
8683
8684 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
8685 (pfnGetFontUnicodeRanges): New dynamically loaded function.
8686 (w32_initialize): Try to load it.
8687 (x_get_font_repertory): Use it if available.
8688 (w32_encode_char): Add shortcut for unicode output.
8689
8690 * w32fns.c (w32_load_system_font): Default charset to -1.
8691 (x_to_w32_charset): Match all fonts for unicode.
1f45f627 8692 (w32_to_x_charset): New parameter matching. Don't return partial
aca7a3d2
MB
8693 or wildcard charsets.
8694 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
8695 (w32_codepage_for_font): Return CP_UNICODE for unicode.
8696 (w32_to_x_font): Match charset to real charset.
8697 (enum_font_cb2): Always list unicode versions.
8698
8699 * makefile.w32-in (temacs): Increase EMHEAP.
8700
73acf815 87012008-02-01 Jason Rumney <jasonr@gnu.org>
aca7a3d2
MB
8702
8703 * w32term.c (w32_encode_char): New charset parameter.
8704 font_info.encoding becomes encoding_type.
1f45f627 8705 (x_get_font_repertory): New function. Warning: stub only!
aca7a3d2
MB
8706 (x_new_font): Return quickly if font already set.
8707 (x_new_fontset): fontsetname parameter is Lisp_Object.
2a2e8de7
JB
8708 Use new fs_query_fontset. Try new_fontset_from_font_name.
8709 Use fontset_name for return value.
aca7a3d2
MB
8710
8711 * w32term.h: Declare x_get_font_repertory.
8712
8713 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
1f45f627 8714 place of find_charset_in_text. Use encode_coding_object in place
aca7a3d2
MB
8715 of encode_coding.
8716 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
8717 decode_coding.
8718
8719 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
8720 of x_new_fontset.
8721 (w32_load_system_font): Initialize charset as unicode.
8722 font_info.encoding becomes encoding_type.
1f45f627
GM
8723 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
8724 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
aca7a3d2
MB
8725 (syms_of_w32fns): Set get_font_repertory_func.
8726
1f45f627 8727 * w32console.c: Include character.h. Use terminal_encode_buffer
aca7a3d2 8728 from term.c.
1f45f627 8729 (write_glyphs): Use new version of encode_terminal_code. Use
aca7a3d2
MB
8730 encode_coding_object in place of encode_coding.
8731
8732 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
8733 encoding becomes encoding_type.
8734
8735 * term.c (terminal_encode_buffer): Make externally visible.
8736
8737 * makefile.w32-in: Add character.h dependancies.
8738 (character.o, chartab.o): New targets.
8739
73acf815 87402008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8741
8742 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
1f45f627 8743 CODING_ID_EOL_TYPE.
aca7a3d2 8744
73acf815 87452008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2
MB
8746
8747 * coding.c (produce_chars): Revert last change.
8748
73acf815 87492008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8750
8751 * charset.h (charset_unicode): Extern it.
8752
8753 * charset.c (string_xstring_p): Check by (C >= 0x100).
1f45f627 8754 (find_charsets_in_text): Change format of the arc CHARSETS. New
aca7a3d2 8755 arg MULTIBYTE.
1f45f627 8756 (Ffind_charset_region, Ffind_charset_string): Adjust for the
aca7a3d2
MB
8757 change of find_charsets_in_text.
8758 (Fsplit_char): Fix doc. Never return unknown.
8759
8760 * chartab.c (char_table_translate): Use CHARACTERP, not INETEGERP.
8761
8762 * coding.c (Fdefine_coding_system_alias): Update
8763 Vcoding_system_list.
8764
8765 * fontset.c (load_font_get_repertory): Pay attention to the case
8766 that ENCODING of a font is specified by a char-table.
8767
8768 * xterm.c (x_get_font_repertory): Handle the case that the
8769 encoding of font is other than Unicode.
8770
73acf815 87712008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8772
8773 * term.c (encode_terminal_code): Don't handle glyph-table. Check
8774 if a character is encodable by the terminal coding system. If
8775 not, produces proper number of `?'s. Update
8776 terminal_encode_buffer and terminal_encode_buf_size if necessary.
8777 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
8778
73acf815 87792008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8780
8781 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
8782 variables.
1f45f627 8783 (encode_terminal_code): Change argument. Encode multiple
aca7a3d2
MB
8784 characters at once. Store the result of encoding in
8785 terminal_encode_buffer.
4c4475a8
GM
8786 (write_glyphs, insert_glyphs): Adjust for the change of
8787 encode_terminal_code.
aca7a3d2
MB
8788 (term_init): Initialize terminal_encode_buffer and
8789 terminal_encode_buf_size.
8790
8791 * coding.c (consume_chars): If coding->src_object is nil, don't
8792 check annotation.
8793
73acf815 87942008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8795
8796 * character.c (char_string): Use ASCII_CHAR_P instead of
8797 SINGLE_BYTE_CHAR_P.
8798
73acf815 87992008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8800
8801 * xdisp.c (handle_auto_composed_prop): Check if the last
8802 characters of auto-composed region is newly composed with the
8803 following characters.
8804 (handle_composition_prop): Fix checking of point being inside
8805 composition.
8806
73acf815 88072008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8808
8809 * fns.c (concat): Don't change multibyteness of the result by
8810 concatenating an 8-bit character.
8811
8812 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
8813 multibyteness of the result when newelt is an 8-bit character.
8814
73acf815 88152008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8816
8817 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
8818 EMACS_INT.
8819
8820 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
8821
8822 * xfaces.c (face_numeric_value): Declare dim size_t.
8823 (Finternal_lisp_face_equal_p): Remove unused f.
8824
8825 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
8826 (MATRIX_ROW): Remove unused vars.
8827 (draw_glyphs, x_insert_glyphs, fast_find_position)
8828 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
8829 byte/char counts.
8830
8831 * regex.c (regex_compile): Remove unused var.
8832
8833 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
8834
8835 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
8836 (Faccessible_keymaps, where_is_internal): Remove unused vars.
8837
8838 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
8839
8840 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
8841
8842 * fileio.c (Fwrite_region): Remove unused var.
8843
8844 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
8845 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
8846
8847 * composite.c (Fremove_list_of_text_properties): Declare.
8848
1f45f627
GM
8849 * coding.c (inhibit_pre_post_conversion): Remove (unused).
8850 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
aca7a3d2
MB
8851 (coding_inherit_eol_type): Remove unused attrs.
8852 (detect_coding): Cast arg of detect_eol.
8853
8854 * charset.c (syms_of_charset): Remove unused var p.
8855 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
8856 byte/char counts.
8857
8858 * casetab.c (set_case_table): Remove unused var.
8859
8860 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
1f45f627 8861 unused vars.
aca7a3d2 8862
73acf815 88632008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8864
8865 * xterm.c (x_bitmap_mask): Declare.
8866
73acf815 88672008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8868
8869 * xterm.c (x_term_init): Fix type error.
8870
8871 * lisp.h: Add Funibyte_char_to_multibyte.
8872
8873 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
8874 (Fset_coding_system_priority): Doc fix.
8875
aca7a3d2
MB
8876 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
8877
8878 * indent.c (check_composition): Make start and end EMACS_INT.
8879
8880 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
8881
8882 * xdisp.c (handle_composition_prop, check_point_in_composition):
8883 Make buffer positions EMACS_INT.
8884
8885 * composite.c (find_composition, run_composition_function)
8886 (update_compositions, Ffind_composition_internal): Make buffer
8887 positions EMACS_INT.
8888
8889 * composite.h (find_composition, update_compositions): Make
8890 position args EMACS_INT.
8891
1f45f627 8892 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
aca7a3d2
MB
8893
8894 * intervals.c (get_property_and_range):
8895 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
8896
8897 * unexalpha.c: Don't include varargs.h.
8898
73acf815 88992008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8900
8901 * coding.h (ENCODE_UTF_8): New.
8902
8903 * Makefile.in (gtkutil.o): Depend on coding.h.
8904
8905 * coding.c (Fset_coding_system_priority): Doc fix.
8906
73acf815 89072008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8908
8909 * fileio.c (Finsert_file_contents): Call setup_coding_system in
8910 the case of auto saving.
8911
73acf815 89122008-02-01 Andreas Schwab <schwab@suse.de>
aca7a3d2 8913
4c4475a8
GM
8914 * chartab.c (map_char_table, map_char_table_for_charset): Protect
8915 `range' from GC.
aca7a3d2 8916
73acf815 89172008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8918
8919 * coding.c (decode_coding_sjis): Check bytes more rigidly.
8920
73acf815 89212008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 8922
1f45f627 8923 * fileio.c (choose_write_coding_system): Return a decided coding system.
aca7a3d2
MB
8924 (Fwrite_region): Set Vlast_coding_system_used to the return value
8925 of choose_write_coding_system.
8926
73acf815 89272008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8928
8929 * charset.c (Fset_charset_priority): Pay attention to duplicated
8930 arguments.
8931
8932 * coding.c (QCcategory): New variable.
8933 (syms_of_coding): Defsym it. Set all elements of
8934 Vcoding_category_table and their symbol values.
8935 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
8936 coding-category-XXX, and coding-category-list.
8937 (Fdefine_coding_system_internal): Add category in the plist.
8938
73acf815 89392008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8940
8941 * callproc.c (Fcall_process): Handle carryover correctly.
8942
1f45f627 8943 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
aca7a3d2
MB
8944 (raw_text_coding_system): Check NILP (coding_system).
8945 (coding_inherit_eol_type): Check NILP (coding_system) and
8946 NILP (parent).
8947 (consume_chars): Fix for the case of raw-text.
8948
8949 * process.c (read_process_output): Handle carryover correctly.
8950
73acf815 89512008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
8952
8953 * regex.c (re_search_2): Fix last change.
8954
73acf815 89552008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8956
8957 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
8958 target_multibyte. Even in a unibyte case, return a converted
8959 multibyte char.
8960 (GET_CHAR_AFTER): New macro.
8961 (PATFETCH): Translate via multibyte char.
8962 (HANDLE_UNIBYTE_RANGE): Delete this macro.
8963 (SETUP_MULTIBYTE_RANGE): New macro.
8964 (regex_compile): Setup compiled code so that its multibyteness
8965 matches that of a target. Fix the handling of "[X-YZ]" using
8966 SETUP_MULTIBYTE_RANGE.
8967 (analyse_first) <charset>: For filling fastmap for all multibyte
8968 characters, don't check by BASE_LEADING_CODE_P.
8969 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
8970 the same as RE_MULTIBYTE_P (bufp) now.
1f45f627 8971 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
aca7a3d2
MB
8972 (TARGET_CHAR_AND_LENGTH): Delete this macro.
8973 (TRANSLATE_VIA_MULTIBYTE): New macro.
8974 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
8975 It is the same as RE_MULTIBYTE_P (bufp) now.
8976 <exactn>: Translate via multibyte.
8977 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
8978 translate it.
8979 <charset, charset_not>: Fetch a character by
8980 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
8981 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
8982 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
8983 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
8984 by GET_CHAR_AFTER.
c5ad7a3d 8985 (bcmp_translate): Likewise.
aca7a3d2
MB
8986
8987 * search.c (compile_pattern): Check the member target_multibyte,
8988 not the member multibyte of buf.
8989
8990 * lread.c (read1): While reading a string, set force_singlebyte
8991 and force_multibyte correctly.
8992
4c4475a8
GM
8993 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
8994 up of unibyte_to_multibyte_table.
aca7a3d2 8995
73acf815 89962008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
8997
8998 * coding.c (setup_coding_system): If coding has
8999 post-read-conversion or pre-write-conversion, set
9000 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
9001 respectively.
9002 (decode_coding_gap): Run post-read-conversion if any.
9003
9004 * fileio.c (Finsert_file_contents): Even if we read into a
9005 unibyte buffer, check if we must decode the result or not.
9006
73acf815 90072008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9008
9009 * coding.c (make_conversion_work_buffer): Change the work buffer
9010 name to the same one as that of Emacs 21.
9011
73acf815 90122008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9013
1f45f627 9014 * coding.h (make_conversion_work_buffer): Adjust prototype.
aca7a3d2
MB
9015 (code_conversion_restore): Don't extern it.
9016
9017 * coding.c (detected_mask): Delete unused variable.
9018 (decode_coding_iso_2022): Pay attention to the byte sequence of
9019 CTEXT extended segment, and retain those bytes as is.
9020 (decode_coding_ccl): Delete unused variable `valids'.
9021 (setup_coding_system): Delete unused variable `category'.
9022 (consume_chars): Delete unused variable `category'. Make it work
9023 for non-multibyte case.
1f45f627 9024 (make_conversion_work_buffer): Change argument.
aca7a3d2
MB
9025 (saved_coding): Delete unused variable.
9026 (code_conversion_restore): Don't check saved_coding->destination.
9027 (code_conversion_save): New function.
9028 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
9029 instead of record_unwind_protect.
1f45f627 9030 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
aca7a3d2 9031 (detect_coding_system): Delete unused variable `mask'.
1f45f627 9032 (Fdefine_coding_system_internal): Delete unused vaiable id.
aca7a3d2
MB
9033
9034 * fileio.c (kill_workbuf_unwind): New function.
9035 (Finsert_file_contents): On replacing, call
9036 make_conversion_work_buffer with correct args, and call
9037 record_unwind_protect with the first arg kill_workbuf_unwind.
9038
9039 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
9040
73acf815 90412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9042
1f45f627 9043 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
aca7a3d2
MB
9044 (fontset_add): Fix for the case that TO is less than TO1.
9045 (Ffontset_info): Don't use fallback fontset on checking the
9046 default fontset.
9047 (dump_fontset): New function for debugging.
9048
9049 * coding.c (Fdefine_coding_system_internal): Fix for the case that
9050 coding_type is Qcharset.
9051
73acf815 90522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9053
9054 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
9055 (map_char_table): Don't inherit the value from the parent on
1f45f627 9056 initializing VAL. Adjust for the above change.
aca7a3d2 9057
73acf815 90582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9059
9060 * coding.c (Qsignature, Qendian): Delete these variables.
9061 (syms_of_coding): Don't initialize them.
9062 (CATEGORY_MASK_UTF_16_AUTO): New macro.
9063 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
9064 detect_info->found.
9065 (decode_coding_utf_16): Don't detect BOM here.
9066 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
9067 is NOT utf_16_without_bom.
9068 (setup_coding_system): For a coding system of type utf-16, check
9069 if the attribute :endian is Qbig or not (not nil or not), and set
9070 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
9071 (detect_coding): If coding type is utf-16 and BOM detection is
9072 required, detect it.
9073 (Fdefine_coding_system_internal): For a coding system of type
1f45f627 9074 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
aca7a3d2 9075
73acf815 90762008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9077
9078 * coding.c (coding_set_source): Fix for the case that the current
9079 buffer is different from coding->src_object.
9080 (decode_coding_object): Don't use the conversion work buffer if
9081 DST_OBJECT is a buffer.
9082
73acf815 90832008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9084
9085 * lread.c (read_emacs_mule_char) [len==2]: Index
9086 emacs_mule_charset correctly.
9087
73acf815 90882008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9089
9090 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
9091 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
1f45f627 9092 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
aca7a3d2
MB
9093 treated specially.)
9094 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
9095 (detected_mask): Remove Big5 bits.
9096
73acf815 90972008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9098
9099 The following changes are to make the font rescaling facility
9100 compatible with Emacs 21.
9101
1f45f627 9102 * xfaces.c (Vface_font_rescale_alist): Rename from
aca7a3d2
MB
9103 Vface_resizing_fonts.
9104 (struct font_name): Rename member resizing_ratio to rescale_ratio.
1f45f627 9105 (font_rescale_ratio): Rename from font_resizing_ratio.
aca7a3d2
MB
9106 (split_font_name): Set font->rescale_ratio.
9107 (better_font_p): Pay attention to font->rescale_ratio.
9108 (build_scalable_font_name): Likewise. Change RESX, and RESY
9109 fields.
1f45f627 9110 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
aca7a3d2 9111
73acf815 91122008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9113
9114 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
9115 (Qutf_16_le): Remove these variables.
9116 (syms_of_coding): Don't DEFSYM them.
9117 (decode_coding_utf_16): Fix handling of BOM.
9118 (encode_coding_utf_16): Fix handling of BOM.
9119
73acf815 91202008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9121
9122 * fileio.c (Finsert_file_contents): On replacing, before decoding
1f45f627 9123 the file into the work buffer, set point of the work buffer to the end.
aca7a3d2 9124
73acf815 91252008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9126
9127 * coding.c (Fcheck_coding_systems_region): Fix type errors.
9128
73acf815 91292008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9130
9131 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
9132 and fix C types.
9133
73acf815 91342008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9135
9136 * xdisp.c (SKIP_GLYPHS): New macro.
9137 (set_cursor_from_row): Pay attention to string display properties.
9138
9139 * category.c (copy_category_entry): Fix for the case that RANGE
9140 is an integer.
9141
9142 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
9143
1f45f627 9144 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
aca7a3d2 9145
73acf815 91462008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9147
9148 * charset.c (Fcharset_id_internal): New function.
9149 (syms_of_charset): Defsubr it.
9150
9151 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
9152 with the last arg charset_list acquired from coding.
9153 (Fdefine_coding_system_internal): For ccl-based coding system, fix
9154 the attribute coding_attr_ccl_valids.
9155
9156 * coding.h (enum define_coding_ccl_arg_index): Set the first
9157 member coding_arg_ccl_decoder to coding_arg_max.
9158
1f45f627 9159 * ccl.h (ccl_driver): Adjust prototype.
aca7a3d2
MB
9160
9161 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
9162 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
9163 of DECODE_CAHR, ENCODE_CHAR, CHAR_CHARSET.
4c4475a8
GM
9164 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
9165 last arg Qnil.
aca7a3d2 9166
73acf815 91672008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9168
9169 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
9170 call encode_char.
9171
1f45f627 9172 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
aca7a3d2 9173
73acf815 91742008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 9175
1f45f627 9176 * composite.c (syms_of_composite): Make composition_hash_table weak.
aca7a3d2 9177
73acf815 91782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9179
9180 * dispextern.h (check_face_attributes, generate_ascii_font_name)
9181 (font_name_registry): Don't extern them.
1f45f627 9182 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
aca7a3d2
MB
9183
9184 * fontset.h (Qfontset): Don't extern it.
9185 (new_fontset_from_font_name): Extern it.
9186
9187 * fontset.c: Give 8 extra slots to fontset objects.
9188 (Qfontset_info): New variable.
9189 (syms_of_fontset): Defsym it.
9190 (FONTSET_FALLBACK): New macro.
9191 (fontset_face): Try also the default fontset.
1f45f627
GM
9192 (make_fontset): Realize a fallback fontset from the default fontset.
9193 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
aca7a3d2
MB
9194 using split_font_name_into_vector and build_font_name_from_vector.
9195 (Fset_fontset_font): Access the elements of font_spec by enum
9196 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
9197 name by using split_font_name_into_vector.
9198 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
9199 generate a proper font name from the fontset name. Update
9200 Vfontset_alias_alist.
9201 (n_auto_fontsets): New variable.
9202 (new_fontset_from_font_name): New function.
9203 (Ffont_info): Store the information about fonts generated from the
1f45f627 9204 default fontset in the first extra slot of the returned char-table.
aca7a3d2 9205
1f45f627
GM
9206 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
9207 (font_name_registry): Delete function.
aca7a3d2
MB
9208 (split_font_name_into_vector): New function.
9209 (build_font_name_from_vector): New function.
1f45f627 9210 (font_list): The argument REGISTRY is now a list of registry names.
aca7a3d2
MB
9211 (choose_face_font): If we are choosing an ASCII font, and ATTRS
9212 specifies an explicit font name, return the name as is. Make a
9213 list of registy names.
9214
1f45f627 9215 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
aca7a3d2
MB
9216 of x_new_fontset.
9217 (Fx_create_frame): Don't call x_new_fontset here. Just use
9218 x_list_fonts to check the existence of fonts.
9219
1f45f627 9220 * xterm.h (x_new_fontset): Adjust prototype.
aca7a3d2
MB
9221
9222 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
9223 string. Use new_fontset_from_font_name to create a fontset from a
9224 font name.
9225
1c8658b9
GM
92262008-02-01 Kenichi Handa <handa@m17n.org>
9227
9228 * syntax.c (Vfind_word_boundary_function_table): New name for
9229 Vnext_word_boundary_function_table.
9230 (find-word-boundary-function-table): New name for
9231 next-word-boundary-function-table.
9232
73acf815 92332008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9234
9235 * Makefile.in: Fix some dependencies.
9236
9237 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
9238 set it to nil before returning.
9239
9240 * composite.c (update_compositions): Fix type error.
9241
9242 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
9243
73acf815 92442008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9245
9246 * xterm.c (x_new_font): Optimize for the case that the font is
9247 already set for the frame.
9248
73acf815 92492008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9250
9251 * chartab.c (char_table_ascii): Check if the char table contents
9252 is sub-char-table or not.
4c4475a8
GM
9253 (char_table_set, char_table_set_range): Fix argument to
9254 char_table_ascii.
aca7a3d2
MB
9255
9256 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
9257 (detect_coding_utf_8, detect_coding_utf_16)
9258 (detect_coding_emacs_mule, detect_coding_iso_2022)
9259 (detect_coding_sjis, detect_coding_big5)
9260 (detect_coding_ccl, detect_coding_charset): Change argument MASK
9261 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
1f45f627 9262 sequence is valid in this coding system. Change callers.
aca7a3d2
MB
9263 (MAX_ANNOTATION_LENGTH): New macro.
9264 (ADD_ANNOTATION_DATA): New macro.
1f45f627
GM
9265 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
9266 ADD_ANNOTATION_DATA. Change the format of annotation data.
aca7a3d2 9267 (ADD_CHARSET_DATA): New macro.
1f45f627 9268 (emacs_mule_char): New argument ID. Change callers.
aca7a3d2
MB
9269 (decode_coding_emacs_mule, decode_coding_iso_2022)
9270 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
9271 Produce charset annotation data in coding->charbuf.
9272 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
9273 to charset annotation data in coding->charbuf.
9274 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
9275 coding->common_flags if the coding system is iso-2022 based and
9276 uses designation.
1f45f627 9277 (produce_composition): Adjust for the new annotation data format.
aca7a3d2
MB
9278 (produce_charset): New function.
9279 (produce_annotation): Handle charset annotation.
9280 (handle_composition_annotation, handle_charset_annotation): New
9281 functions.
9282 (consume_chars): Handle charset annotation. Utilize the above two
9283 functions.
9284 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
9285 buffer, get the deleted text as a string and set
9286 coding->src_object to that string.
9287 (detect_coding, detect_coding_system): Use the new struct
9288 coding_detection_info.
9289
9290 * coding.h (struct coding_detection_info): New structure.
1f45f627 9291 (struct coding_system): Adjust prototype of the member `detector'.
aca7a3d2
MB
9292 (CODING_ANNOTATE_CHARSET_MASK): New macro.
9293
73acf815 92942008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9295
9296 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
9297
73acf815 92982008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 9299
1f45f627 9300 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
aca7a3d2
MB
9301 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
9302 to new local and nullify apropos_accumulate before returning.
9303 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
9304
73acf815 93052008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9306
9307 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
9308 correctly.
9309
73acf815 93102008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9311
9312 * fns.c (Flanginfo): Call synchronize_system_time_locale.
9313
73acf815 93142008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9315
9316 The following changes are to make character composition happen
9317 automatically on displaying.
9318
2a2e8de7 9319 * Makefile.in (lisp, shortlisp): Add composite.elc.
aca7a3d2 9320
1f45f627
GM
9321 * composite.h (Qauto_composed, Vauto_composition_function)
9322 (Qauto_composition_function): Extern them.
aca7a3d2 9323
1f45f627
GM
9324 * composite.c (Vcomposition_function_table)
9325 (Qcomposition_function_table): Delete variables.
9326 (Qauto_composed, Vauto_composition_function)
9327 (Qauto_composition_function): New variables.
aca7a3d2
MB
9328 (run_composition_function): Don't call
9329 compose-chars-after-function.
9330 (update_compositions): Clear `auto-composed' text property.
9331 (compose_chars_in_text): Delete this function.
9332 (syms_of_composite): Staticpro Qauto_composed and
9333 Qauto_composition_function. Declare Vauto_composition_function as
9334 a Lisp variable.
9335
9336 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
9337
9338 * xdisp.c (it_props): Add an entry for Qauto_composed.
9339 (handle_auto_composed_prop): New function.
9340
9341 * xselect.c (selection_data_to_lisp_data): Don't call
9342 compose_chars_in_text.
9343
73acf815 93442008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9345
9346 * keyboard.c (read_char): Modify checking around use of
9347 Vkeyboard_translate_table.
9348
9349 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
9350 and fix C types.
9351
73acf815 93522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9353
4c4475a8
GM
9354 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
9355 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9356 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
aca7a3d2 9357 the case that the last byte is '\r' correctly.
1f45f627
GM
9358 (decode_coding): Flush out the unprocessed data correctly.
9359 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
aca7a3d2 9360
73acf815 93612008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 9362
f245f2c6
JB
9363 * xterm.c (XTread_socket): Fix changes for defined keysyms.
9364 Add XK_ISO... case.
aca7a3d2
MB
9365 (xaw_scroll_callback): Revert last change.
9366
73acf815 93672008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9368
1f45f627 9369 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
aca7a3d2 9370
73acf815 93712008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9372
9373 * xfaces.c (Vface_resizing_fonts): New variable.
9374 (struct font_name): New member `resizing_ratio'.
9375 (font_resizing_ratio): New function.
9376 (split_font_name): Set font->resizing_ratio.
9377 (better_font_p): Pay attention to font->resizing_ratio.
9378 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
9379 RESX, and RESY fields.
9380 (try_alternative_families): Try scalable fonts if
9381 Vscalable_fonts_allowed is not Qt.
9382 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
9383
73acf815 93842008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9385
9386 * xterm.c (xaw_scroll_callback): Cast correctly.
9387
73acf815 93882008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9389
9390 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
9391 (lispy_kana_keys): Comment out.
9392 (make_lispy_event) [XK_kana_A]: Comment out.
9393
9394 * xterm.c (xaw_scroll_callback): Cast call_data.
9395 (XTread_socket): Deal with ASCII keysyms.
9396 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
9397
73acf815 93982008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9399
9400 * xterm.c (Vx_keysym_table): New.
9401 (syms_of_xterm): Initialize it.
9402 (XTread_socket): Use it.
9403 From head: Eliminate incorrect optimization that tried to avoid
9404 decoding the output of X*LookupString.
9405 (x_get_font_repertory): Delete charset declaration.
9406
73acf815 94072008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9408
1f45f627
GM
9409 * coding.c (detect_coding_charset): If only ASCII bytes are found,
9410 return 0.
aca7a3d2
MB
9411 (Fdefine_coding_system_internal): Setup
9412 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
9413
73acf815 94142008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9415
9416 * coding.c (Fcheck_coding_system): Doc fix.
9417
9418 * editfns.c (Finsert_byte): Return a proper value.
9419
73acf815 94202008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9421
9422 * coding.c (decode_coding): Fix args to translate_chars. Pay
9423 attention to Vstandard_translation_table_for_decode.
9424 (encode_coding): Fix args to translate_chars. Pay attention to
9425 Vstandard_translation_table_for_encode.
9426
9427 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
9428 SINGLE_BYTE_CHAR_P.
9429
9430 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
9431 not by SINGLE_BYTE_CHAR_P.
9432
9433 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
9434 SINGLE_BYTE_CHAR_P.
9435
9436 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
9437 SINGLE_BYTE_CHAR_P.
9438
9439 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
9440 by SINGLE_BYTE_CHAR_P.
9441
9442 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
9443 SINGLE_BYTE_CHAR_P.
9444
73acf815 94452008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9446
9447 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
9448
73acf815 94492008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9450
9451 * fns.c (Flanginfo): Fix typo.
9452
9453 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
9454
73acf815 94552008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9456
4c4475a8
GM
9457 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
9458 (detect_coding_emacs_mule, detect_coding_iso_2022)
9459 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
9460 incomplete byte sequence. Don't update *mask when correctly detected.
aca7a3d2 9461 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
1f45f627 9462 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
4c4475a8 9463 (detect_coding, detect_coding_system): Adjust for the changes above.
aca7a3d2 9464
73acf815 94652008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9466
1f45f627
GM
9467 * character.c (char_string): Rename from
9468 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
9469 (string_char): Rename from string_char.
aca7a3d2 9470
4c4475a8
GM
9471 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
9472 if C is greater than MAX_3_BYTE_CHAR.
9473 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
9474 string_char instead of string_char_with_unification.
aca7a3d2 9475
73acf815 94762008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9477
9478 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
9479
73acf815 94802008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9481
1f45f627 9482 * keymap.c (push_key_description): Pay attention to force_multibyte.
aca7a3d2
MB
9483
9484 * regex.c (re_search_2): Fix for the case of unibyte buffer.
9485
73acf815 94862008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9487
9488 * charset.c (define_charset_internal): Rename `supprementary'.
9489
9490 * Makefile.in (lisp, shortlisp): Remove latin-N.
9491
73acf815 94922008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9493
9494 * xfns.c (x_window, x_window): Use use_xim.
9495
9496 * xterm.c (use_xim): Initialize.
9497 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
9498 (x_term_init): Maybe set use_xim.
9499
9500 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
9501
73acf815 95022008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9503
9504 * search.c (search_buffer): Fix case-fold-search of multibyte
9505 characters.
9506 (boyer_moore): Rename the last argument to char_high_bits.
9507
73acf815 95082008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9509
9510 * xdisp.c (display_string): Fix for the case of zero width glyph.
9511
9512 * xfns.c (x_set_font): Change the error message of the case that
9513 x_new_fontset returns Qt.
9514
9515 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
9516 (Finternal_set_lisp_face_attribute): Use signal_error for the
9517 error of invalid fontset.
9518
9519 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
9520 fontset, return Qt.
9521
73acf815 95222008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 9523
aca7a3d2
MB
9524 * unexelf.c (unexec): Make .got handling not SGI-specific.
9525
9526 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
9527
9528 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
9529
9530 * keyboard.c (read_key_sequence): Fix type error.
9531
9532 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
9533 type error.
9534
9535 * fontset.c (fontset_add): Return Lisp_Object.
9536
73acf815 95372008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9538
9539 * charset.h (charset_ordered_list_tick): Declare extern.
9540
73acf815 95412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9542
73acf815 9543 The following changes (and some of 2008-02-01 changes of mine) are
aca7a3d2
MB
9544 for handling syntax, category, and case conversion for unibyte
9545 characters by converting them to multibyte on the fly. With these
9546 changes, we don't have to setup syntax and case tables for unibyte
9547 characters in each language environment.
9548
9549 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
9550 multibyte if necessary.
9551
9552 * bytecode.c (Fbyte_code): Likewise.
9553
9554 * character.h (LEADING_CODE_LATIN_1_MIN)
9555 (LEADING_CODE_LATIN_1_MAX): New macros.
9556 (unibyte_to_multibyte_table): Extern it.
9557 (unibyte_char_to_multibyte): New macro.
9558 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
9559 (CHAR_LEADING_CODE): New macro.
9560 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
9561
9562 * character.c (unibyte_to_multibyte_table): New variable.
1f45f627 9563 (unibyte_char_to_multibyte): Move to character.h and define as macro.
aca7a3d2
MB
9564 (multibyte_char_to_unibyte): If C is an eight-bit character,
9565 convert it to the corresponding byte value.
9566
9567 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
9568 not 1, singals an error. Update the elements of
9569 unibyte_to_multibyte_table.
9570 (init_charset_once): Initialize unibyte_to_multibyte_table.
9571 (syms_of_charset): Define the charset `iso-8859-1'.
9572
aca7a3d2
MB
9573 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
9574 as is without converting it to unibyte. In a unibyte buffer,
9575 convert C to multibyte before checking the syntax.
9576
1f45f627 9577 * lisp.h (unibyte_char_to_multibyte): Delete extern.
aca7a3d2
MB
9578
9579 * minibuf.c (Fminibuffer_complete_word): Use the macro
9580 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
9581
9582 * regex.h (struct re_pattern_buffer): New member target_multibyte.
9583
9584 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
9585 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
9586 that is zero, convert an eight-bit char to multibyte.
9587 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
9588 non-emacs case.
9589 (PATFETCH): Convert an eight-bit char to multibyte.
9590 (HANDLE_UNIBYTE_RANGE): New macro.
9591 (regex_compile): Setup the compiled pattern for multibyte chars
9592 even if the given regex string is unibyte. Use PATFETCH_RAW
9593 instead of PATFETCH in many places. To handle `charset'
c5ad7a3d 9594 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
aca7a3d2 9595 only for ASCII chars.
1f45f627 9596 (analyse_first) <exactn>: Simplify because the compiled pattern
aca7a3d2
MB
9597 is multibyte.
9598 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
9599 <charset>: Use CHAR_LEADING_CODE to get leading codes.
1f45f627 9600 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
aca7a3d2
MB
9601 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
9602 multibyte always 1.
9603 (re_search_2): In emacs, set the locale variable multibyte to 1,
9604 otherwise to 0. New local variable target_multibyte. Check it
9605 to decide the multibyteness of STR1 and STR2. If
9606 target_multibyte is zero, convert unibyte chars to multibyte
9607 before translating and checking fastmap.
9608 (TARGET_CHAR_AND_LENGTH): New macro.
9609 (re_match_2_internal): In emacs, set the locale variable multibyte
9610 to 1, otherwise to 0. New local variable target_multibyte. Check
9611 it to decide the multibyteness of STR1 and STR2. Use
9612 TARGET_CHAR_AND_LENGTH to fetch a character from D.
9613 <charset, charset_not>: If multibyte is nonzero, check fastmap
c5ad7a3d 9614 only for ASCII chars. Call bcmp_translate with
aca7a3d2
MB
9615 target_multibyte, not with multibyte.
9616 <begline>: Declare the local variable C as `unsigned'.
9617 (bcmp_translate): Change the last arg name to target_multibyte.
9618
9619 * search.c (compile_pattern_1): Don't adjust the multibyteness of
9620 the regexp pattern and the matching target. Set cp->buf.multibyte
9621 to the multibyteness of the regexp pattern. Set
1f45f627 9622 cp->but.target_multibyte to the multibyteness of the matching target.
aca7a3d2
MB
9623 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
9624 FETCH_STRING_CHAR_ADVANCE.
9625 (Freplace_match): Convert unibyte chars to multibyte.
9626
4c4475a8
GM
9627 * syntax.c (char_quoted, back_comment, scan_words)
9628 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
9629 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
aca7a3d2 9630 unibyte chars to multibyte.
1f45f627
GM
9631 (skip_chars): Delete the arg syntaxp, and move the code for
9632 handling syntaxes to skip_syntaxes. Change callers.
aca7a3d2
MB
9633 Fix the case that the multibyteness of STRING and the current
9634 buffer doesn't match.
9635 (skip_syntaxes): New function.
9636 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
9637 SINGLE_BYTE_CHAR_P.
aca7a3d2 9638
73acf815 96392008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9640
9641 * xfaces.c (QCfontset): New variable.
9642 (LFACE_FONTSET): New macro.
9643 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
9644 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
4c4475a8
GM
9645 (Finternal_set_lisp_face_attribute)
9646 (Finternal_get_lisp_face_attribute): Handle QCfontset.
aca7a3d2
MB
9647 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
9648 check also LFACE_FONTSET_INDEX.
9649 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
9650 attrs[LFACE_FONT_INDEX].
9651 (syms_of_xfaces): Intern and staticpro QCfontset.
9652
9653 * dispextern.h (enum lface_attribute_index): New member
9654 LFACE_FONTSET_INDEX.
9655
9656 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
9657
73acf815 96582008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9659
9660 * coding.c (coding_set_destination): Fix coding->destination for
9661 the case converting a region.
9662 (encode_coding_utf_8): Encode eight-bit chars as single byte.
9663 (encode_coding_object): Fix coding->dst_pos and
9664 coding->dst_pos_byte for the case converting a region.
9665
9666 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
9667
9668 * character.h (BYTE8_STRING): New macro.
9669
9670 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
9671
73acf815 96722008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9673
9674 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
9675 characters by octal form.
9676
9677 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
9678
1f45f627 9679 * buffer.h (_fetch_multibyte_char_len): Delete extern.
4c4475a8
GM
9680 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
9681 _fetch_multibyte_char_len.
aca7a3d2
MB
9682 (FETCH_CHAR_AS_MULTIBYTE): New macro.
9683
1f45f627 9684 * casetab.c (set_canon, set_identity, shuffle): Simplify.
aca7a3d2 9685
1f45f627 9686 * casefiddle.c (casify_object): Simplify. Handle the case that
aca7a3d2 9687 the case conversion change the byte length.
1f45f627 9688 (casify_region): Likewise.
aca7a3d2 9689
1f45f627 9690 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
aca7a3d2 9691
1f45f627 9692 * character.c (_fetch_multibyte_char_len): Delet this variable.
aca7a3d2
MB
9693 (syms_of_character): Setup Vprintable_chars.
9694
9695 * editfns.c (Fchar_equal): Fix for the unibyte case.
9696 (Finsert_byte): New function.
9697 (syms_of_editfns): Defsubr it.
9698
9699 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
9700 of direct code 0x3ffff.
9701
9702 * search.c (Freplace_match): Fix for the unibyte case.
9703
73acf815 97042008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9705
9706 * lread.c (safe_to_load_p): Fix the logic.
9707
9708 * syntax.c (scan_words): Don't treat characters belonging to
9709 different scripts as constituting a word.
9710
9711 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
9712
1f45f627 9713 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
aca7a3d2
MB
9714
9715 * emacs.c (main): In the case of --unibyte, instead of aborting on
9716 finding non-empty buffer, make it unibyte.
9717
73acf815 97182008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9719
9720 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
9721 to create a fontset.
9722
73acf815 97232008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9724
9725 * character.c (Funibyte_char_to_multibyte): Doc fix.
9726
9727 * xfns.c [HAVE_STDLIB_H]: Fix last change.
9728
73acf815 97292008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9730
9731 * fontset.c (fontset_add): Make the type `int'.
9732 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
9733
4c4475a8
GM
9734 * character.c (unibyte_char_to_multibyte)
9735 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
aca7a3d2 9736 charset_unibyte, not charset_primary.
aca7a3d2 9737
1f45f627 9738 * charset.h (charset_unibyte): Extern it instead of charset_primary.
aca7a3d2 9739
1f45f627
GM
9740 * charset.c (charset_unibyte): Rename from charset_primary.
9741 (Funibyte_charset): Rename from Fprimary_charset.
9742 (Fset_unibyte_charset): Rename from Fset_primary_charset.
9743 (syms_of_charset): Adjust for the above changes.
aca7a3d2
MB
9744
9745 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
9746 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
9747 it->multibyte_p is zero.
9748
9749 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
1f45f627 9750 Delete extern.
aca7a3d2 9751
73acf815 97522008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9753
9754 * coding.c (Fdefine_coding_system_internal): Fix category setting
9755 for a coding system of type iso-2022.
9756
73acf815 97572008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 9758
1f45f627 9759 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
aca7a3d2 9760
73acf815 97612008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9762
9763 * syntax.c (Vnext_word_boundary_function_table): New variable.
1c8658b9
GM
9764 (next-word-boundary-function-table): Declare it as a Lisp variable
9765 in syms_of_syntax.
aca7a3d2
MB
9766 (scan_words): Call functions in Vnext_word_boundary_function_table
9767 if any.
9768
9769 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
9770
9771 * fontset.c (fs_load_font): If fontp->charset is not negative,
9772 return fontp without setting its members.
9773
73acf815 97742008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 9775
aca7a3d2
MB
9776 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
9777
9778 * m/sparc.h (HAVE_ALLOCA): Delete.
9779
9780 * s/irix6-5.h: Don't include strings.h.
9781 (bcopy, bzero, bcmp): Don't undef.
9782
9783 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
9784
9785 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
9786 (TIOCSIGSEND): Don't test IRIX6.
9787 (bcopy, bzero, bcmp): Define conditionally.
9788
73acf815 97892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9790
9791 * buffer.c (Qas, Qmake, Qto): New variables.
1f45f627 9792 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
aca7a3d2
MB
9793 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
9794
9795 * callproc.c (Fcall_process): Don't call insert_1_both directly if
9796 we are inserting a process output into a multibyte buffer.
9797
9798 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
9799 multibyte_char_to_unibyte.
9800
9801 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
9802 by the primary charset, make it eight-bit char.
9803 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
9804
1f45f627
GM
9805 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
9806 (charset_8_bit__control, charset_8_bit_graphic)
9807 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
aca7a3d2
MB
9808 (define_charset_internal): New function.
9809 (syms_of_charset): Call define_charset_internal for pre-defined
9810 charsets.
9811
9812 * charset.h (charset_8_bit): Extern it.
9813
1f45f627 9814 * coding.c (make_conversion_work_buffer): Adjust for the change
aca7a3d2
MB
9815 of Fset_buffer_multibyte.
9816 (encode_coding_raw_text): Increment p0 in the loop.
9817
1f45f627 9818 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
aca7a3d2 9819
1f45f627 9820 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
aca7a3d2
MB
9821 for the change of Fset_buffer_multibyte.
9822
9823 * fns.c (Fstring_to_multibyte): New function.
9824 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
9825
73acf815 98262008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
9827
9828 * xfns.c (x_put_x_image): Declare args.
9829
1f45f627 9830 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
aca7a3d2
MB
9831 (try_font_list): Declare an arg.
9832
9833 * xdisp.c (message2_nolog, set_message): Declare an arg.
9834
9835 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
9836
9837 * syntax.c (scan_sexps_forward): Declare an arg.
9838
9839 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
9840 Declare an arg.
9841
9842 * lisp.h (Fnew_fontset): Declare.
9843
9844 * keymap.c (push_key_description): Call CHARACTERP correctly.
9845
1f45f627 9846 * fontset.c (fontset_add): Declare args. Call make_number correctly.
aca7a3d2
MB
9847 (face_for_char): Delete unused vars.
9848 (Fset_fontset_font): Doc fix. Delete unused vars.
9849
9850 * doc.c (Fsubstitute_command_keys): Delete unused vars.
9851
9852 * composite.c (update_compositions): Declare arg.
9853
9854 * cm.c (calccost, cmgoto): Declare args.
9855
9856 * charset.c: Remove `emacs' conditional. Doc fixes.
9857 (map_char_table_for_charset): Declare.
9858
1f45f627 9859 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
aca7a3d2 9860
1f45f627 9861 * ccl.c: Remove `emacs' conditional.
aca7a3d2 9862
73acf815 98632008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9864
9865 The following changes are to allow specifying multiple font
9866 patterns for a character range (specified by script or charset).
9867
9868 * Makefile.in (abbrev.o): Depend on syntax.h.
9869 (xfaces.o): Depend on charset.h.
9870
9871 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
9872 SINGLE_BYTE_CHAR_P.
9873
9874 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
9875
9876 * character.h (Vchar_script_table): Extern it.
9877
1f45f627 9878 * character.c (Vscript_alist): Delete.
aca7a3d2
MB
9879 (Vchar_script_table, Qchar_script_table): New variable.
9880 (syms_of_character): Declare Vchar_script_table as a lisp variable
9881 and initialize it.
9882
1f45f627 9883 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
aca7a3d2
MB
9884 have property char-table-extra-slots, make no extra slot.
9885
1f45f627 9886 * dispextern.h (struct face): Delete member `charset'.
4c4475a8
GM
9887 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
9888 SINGLE_BYTE_CHAR_P.
1f45f627
GM
9889 (choose_face_font, lookup_non_ascii_face, font_name_registry):
9890 Add prototypes.
9891 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
9892 (generate_ascii_font_name): Rename from generate_ascii_font.
aca7a3d2
MB
9893
9894 * fontset.h (get_font_repertory_func): New prototype.
1f45f627 9895 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
aca7a3d2
MB
9896 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
9897
9898 * fontset.c (Qprepend, Qappend): New variables.
1f45f627 9899 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
aca7a3d2
MB
9900 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
9901 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
9902 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
9903 (fontset_ref_and_range, fontset_add, reorder_font_vector)
9904 (load_font_get_repertory): New functions.
1f45f627 9905 (fontset_set): Delete.
aca7a3d2 9906 (fontset_face): New arg FACE. Return face ID, not face.
1f45f627 9907 Complete re-write to handle new fontset structure. Change caller.
aca7a3d2
MB
9908 (free_face_fontset): Use ASET istead of AREF (X) = Y.
9909 (face_for_char): Don't call lookup_face.
9910 (make_fontset_for_ascii_face): New arg FACE.
9911 (fs_load_font): New arg CHARSET_ID. Don't check
9912 Vfont_encoding_alist here.
9913 (find_font_encoding): New function.
9914 (list_fontsets): Use STRINGP, not ! NILP.
9915 (accumulate_script_ranges): New function.
9916 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
9917 re-written to handle new fontset structure.
9918 (Ffontset_font): Return a copy of element.
9919 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
9920 docstring of font-encoding-alist.
9921
9922 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
9923 (Fset_fotset_font): Fix arguments to 5.
9924
1f45f627 9925 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
aca7a3d2
MB
9926
9927 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
9928 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
1f45f627 9929 (highlight_trailing_whitespace): Adjust for the change of
aca7a3d2
MB
9930 lookup_named_face.
9931
9932 * xfaces.c: Include charset.h.
1f45f627
GM
9933 (load_face_font): Delete argument C. Change caller.
9934 (generate_ascii_font_name): Rename from generate_ascii_font.
aca7a3d2
MB
9935 (font_name_registry): New function.
9936 (cache_face): Store ascii faces before non-ascii faces in buckets.
1f45f627 9937 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
aca7a3d2
MB
9938 Lookup only ascii faces.
9939 (lookup_non_ascii_face): New function.
1f45f627
GM
9940 (lookup_named_face): Delete argument C. Change caller.
9941 (lookup_derived_face): Delete argument C. Change caller.
9942 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
aca7a3d2 9943 a string, just call font_list with it.
1f45f627
GM
9944 (choose_face_font): Delete arguments FACE and C. New arg
9945 FONT_SPEC. Change caller.
4c4475a8
GM
9946 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
9947 Change caller.
aca7a3d2
MB
9948 (realize_non_ascii_face): New function.
9949 (realize_x_face): Call load_face_font here.
1f45f627 9950 (realize_tty_face): Delete argument C. Change caller.
aca7a3d2
MB
9951 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
9952 get a face ID.
9953 (dump_realized_face): Don't print charset of FACE.
9954
9955 * xfns.c (x_set_font): Always call x_new_fontset and
9956 store_frame_parameter.
9957 (Fx_create_frame): Call x_new_fontset, not x_new_font.
1f45f627 9958 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
aca7a3d2
MB
9959
9960 * xterm.h (x_get_font_repertory): Extern it.
9961
9962 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
9963 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
9964 it->multibyte_p is zero.
9965 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
9966 (x_new_fontset): If FONTSETNAME doesn't match any existing
9967 fontsets, create a new one.
9968 (x_get_font_repertory): New function.
9969
73acf815 99702008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9971
9972 * coding.c (Ffind_coding_systems_region_internal): Detect an
9973 ASCII only string correctly.
9974
9975 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
9976 version is 0.
9977
73acf815 99782008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
9979
9980 * lread.c: Include "coding.h".
1f45f627
GM
9981 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
9982 (load_each_byte, unread_char): New variables.
9983 (readchar_backlog): Delete.
aca7a3d2
MB
9984 (readchar): Return a character unless load_each_byte is nonzero.
9985 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
9986 cons. If unread_char is not -1, simply return it.
9987 (unreadchar): Handle the case that readcharfun is
1f45f627
GM
9988 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
9989 (read_multibyte): Delete.
aca7a3d2
MB
9990 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
9991 (read_emacs_mule_char): New functions.
9992 (Fload): Even if the file doesn't have the extention ".elc", if
9993 safe_to_load_p returns a positive version number, assume that the
9994 file contains bytecompiled code. If the version is less than 22,
9995 load the file while decoding multibyte sequences by emacs-mule.
9996 (readevalloop): Don't use readchar_backlog.
1f45f627
GM
9997 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
9998 (Fread_from_string): Pay attention to the case that STREAM is a cons.
9999 (read_escape): Delete the arg BYTEREP.
aca7a3d2
MB
10000 (read1): Set load_each_byte to 1 temporarily while handling
10001 #@NUMBER. Don't call read_multibyte.
10002 (read_vector): Call Fread with a cons. If readcharfun is
10003 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
1f45f627 10004 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
aca7a3d2
MB
10005 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
10006 and Qload_force_doc_strings.
10007
73acf815 100082008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10009
10010 * xdisp.c (face_before_or_after_it_pos): Call
10011 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
10012
73acf815 100132008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10014
10015 * character.h (TRAILING_CODE_P): New macro.
1f45f627 10016 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
aca7a3d2
MB
10017 (string_char_with_unification): Fix prototype.
10018 (Vscript_alist): Extern it.
10019
10020 * character.c (Vscript_alist): New variable.
4c4475a8
GM
10021 (string_char_with_unification, str_as_unibyte)
10022 (string_escape_byte8): Add `const' to local variables.
aca7a3d2
MB
10023 (syms_of_character): Declare script-alist as a Lisp variable.
10024
10025 * charset.h (Vcharset_ordered_list): Extern it.
10026 (charset_ordered_list_tick): Extern it.
10027 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
10028 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
10029 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
1f204af3 10030 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
1f45f627 10031 (Funify_charset): Adjust for the change of Funify_charset.
aca7a3d2
MB
10032
10033 * charset.c (charset_ordered_list_tick): New variable.
10034 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
10035 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
10036 deunify intead of unify a charset.
10037 (string_xstring_p): Add `const' to local variables.
1f45f627
GM
10038 (find_charsets_in_text): Add `const' to arguemnts and local variables.
10039 (encode_char): Adjust for the change of Funify_charset. Fix
aca7a3d2
MB
10040 detecting of invalid code.
10041 (Fset_charset_priority): Increment charset_ordered_list_tick.
10042 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
10043 and TO_CODE.
10044
10045 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
1f45f627
GM
10046 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
10047 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
4c4475a8
GM
10048 (decode_coding_ccl, consume_chars)
10049 (Ffind_coding_systems_region_internal)
10050 (Fcheck_coding_systems_region): Add `const' to local variables.
aca7a3d2
MB
10051
10052 * print.c (print_object): Use octal form for printing the
10053 contents of a bool vector.
10054
73acf815 100552008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10056
10057 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
10058 <version == 20>: Refuse to load.
10059
73acf815 100602008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10061
10062 * fns.c: Move coding.h.
10063 (Qcodeset, Qdays, Qmonths): New.
10064 (concat): Use CHARACTERP instead of INTERGERP.
1f45f627 10065 (Flocale_codeset): Delete.
aca7a3d2 10066 (Flanginfo): New function.
1f45f627 10067 (syms_of_fns): Change accordingly.
aca7a3d2
MB
10068
10069 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
10070
73acf815 100712008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10072
10073 * casetab.c (init_casetab_once, init_casetab_once): Fix
10074 CHAR_TABLE_SET call.
10075
10076 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
10077
10078 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
10079
10080 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
10081 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
10082 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
10083
10084 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
10085
10086 * coding.c (ENCODE_DESIGNATION, decode_eol)
10087 (make_conversion_work_buffer, code_conversion_restore)
10088 (Fdefine_coding_system_internal): Convert Lisp types.
10089 (code_conversion_restore): Use EQ, not ==.
10090 (Fencode_coding_string): Fix code_convert_string call.
10091
10092 * coding.h (code_convert_region): Fix prototype.
10093
1f45f627 10094 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
aca7a3d2
MB
10095
10096 * fontset.c (fontset_ref, fontset_set, fs_load_font)
10097 (Ffontset_info): Convert Lisp types.
10098
10099 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
10100
10101 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
10102
10103 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
10104
10105 * chartab.c: Include "...h", not <...h> in some cases.
10106
10107 * callproc.c (Fcall_process): Remove unused variables.
10108
73acf815 101092008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10110
10111 * coding.c (Fset_coding_system_priority): Allow null arg list.
10112
73acf815 101132008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10114
10115 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
10116 (Fself_insert_and_exit): Use CHARACTERP.
10117
10118 * callproc.c (Fcall_process): Remove unused vars.
10119
10120 * xterm.c (XTread_socket): Add extra dead keysyms.
10121
10122 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
10123
10124 * dispextern.h: Remove prototypes for redraw_frame,
10125 redraw_garbaged_frames.
10126
10127 * cmds.c (Fself_insert_command): Use CHARACTERP.
10128
10129 * chartab.c (make_sub_char_table): Remove unused var.
10130 (Fset_char_table_default, Fmap_char_table): Doc fix.
10131
10132 * keymap.c (access_keymap): Remove generic char code.
10133 (push_key_description): Use CHARACTERP.
10134
73acf815 101352008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10136
10137 * charset.c: Doc fixes.
10138 (Funify_charset): Extra checking.
10139
73acf815 101402008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10141
10142 * lread.c: Remove some unused variables.
10143 (safe_to_load_p): If safe, return the magic number version byte.
10144 (Fload): Maybe use load-with-code-conversion.
10145
73acf815 101462008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10147
10148 * category.c (Fmodify_category_entry): Don't modify the contents
10149 of category_set for characters out of the range. Avoid
10150 unnecessary modification.
10151
1f45f627 10152 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
aca7a3d2
MB
10153 Vchar_unify_table. The default value of the table is now nil.
10154
10155 * character.c (syms_of_character): Setup Vchar_width_table for
10156 eight-bit-control and raw-byte chars.
10157
10158 * charset.h (enum define_charset_arg_index): Delete
10159 charset_arg_parents and add charset_arg_subset and
10160 charset_arg_superset.
10161 (enum charset_attr_index): Delete charset_parents and add
10162 charset_subset and charset_superset.
10163 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
10164 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
1f45f627 10165 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
aca7a3d2
MB
10166 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
10167 (CHARSET_SUPERSET): New macros.
10168 (charset_work): Extern it.
10169 (ENCODE_CHAR): Use charset_work.
1f45f627 10170 (CHAR_CHARSET_P): Adjust for the change of encoder format.
aca7a3d2
MB
10171 (map_charset_chars): Extern it.
10172
10173 * charset.c (load_charset_map): Set the default value of encoder
10174 and deunifier char-tables to nil.
1f45f627 10175 (map_charset_chars): Change argument. Change callers. Use
aca7a3d2
MB
10176 map_char_table_for_charset instead of map_char_table.
10177 (Fmap_charset_chars): New optional args from_code and to_code.
1f45f627 10178 (Fdefine_charset_internal): Adjust for the change of
aca7a3d2
MB
10179 `define-charset' (:parents -> :subset or :superset).
10180 (charset_work): New variable.
4c4475a8
GM
10181 (encode_char, syms_of_charset): Adjust for the change of
10182 Fdefine_charset_internal.
aca7a3d2
MB
10183 (Ffind_charset_string): Setup the vector `charsets' correctly.
10184
1f45f627 10185 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
aca7a3d2 10186 the previous change.
1f45f627 10187 (char_table_ref_and_range): Adjust for the above change.
aca7a3d2
MB
10188 (map_sub_char_table_for_charset): New function.
10189 (map_char_table_for_charset): New function.
10190
10191 * keymap.c (describe_vector): Handle a char-table directly here.
1f45f627 10192 (describe_char_table): Delete.
aca7a3d2 10193
1f45f627 10194 * lisp.h (map_charset_chars): Delete.
aca7a3d2 10195
73acf815 101962008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10197
10198 * fns.c (count_combining): Comment out (unused).
10199 (Flocale_codeset): New.
10200 (syms_of_fns): Defsubr it.
10201
10202 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
1f45f627 10203 (size_t): Remove.
aca7a3d2 10204
73acf815 102052008-02-01 Dave Love <fx@gnu.org>
aca7a3d2 10206
6f69e89b 10207 * Makefile.in (chartab.o): Depend on charset.h.
aca7a3d2 10208
73acf815 102092008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10210
10211 * character.c (syms_of_character): Set the default value of
10212 Vprintable_chars to Qnil.
10213
73acf815 102142008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10215
10216 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
10217
73acf815 102182008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10219
10220 * charset.c (load_charset_map): Handle the case that from < to
10221 correctly.
10222
4c4475a8
GM
10223 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
10224 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
10225 Pay attention to raw-8-bit chars.
aca7a3d2 10226
73acf815 102272008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 10228
4c4475a8
GM
10229 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
10230 It is not bytecompiled now.
aca7a3d2
MB
10231
10232 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
10233 (charset_jisx0208): New variables.
10234 (Fdefine_charset_internal): Setup them if appropriate.
10235 (init_charset_once): Initialize them to -1.
10236
1f45f627
GM
10237 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
10238 (charset_jisx0208): Extern them.
aca7a3d2 10239
1f204af3 10240 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
aca7a3d2 10241 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
1f45f627
GM
10242 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
10243 (setup_iso_safe_charsets): Fix arguments to Fassq.
4c4475a8
GM
10244 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
10245 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
10246 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
aca7a3d2
MB
10247 (encode_coding_iso_2022): Change the 1st arg to
10248 ENCODE_ISO_CHARACTER to a variable.
10249
73acf815 102502008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10251
10252 * charset.h (enum define_charset_arg_index): New enums
10253 charset_arg_min_code and charset_arg_max_code.
10254 (struct charset): New member char_index_offset.
10255
4c4475a8
GM
10256 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
10257 Take charset->char_index_offset into account.
aca7a3d2
MB
10258 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
10259 args[charset_arg_max_code]. Setup charset.char_index_offset.
10260 (syms_of_charset): Fix args to Fdefine_charset_internal.
10261
73acf815 102622008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10263
10264 * coding.c (decode_coding_utf_8): Reject overlong sequences.
10265
73acf815 102662008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10267
10268 * coding.c: Doc fixes.
10269 (Fcoding_system_aliases): Fix return value.
10270 (Qmac): Remove (duplicated) definition.
10271
73acf815 102722008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10273
10274 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
10275 functions.
10276
10277 * character.c (Fstring): Doc fix.
10278
10279 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
10280
10281 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
10282 ids.
10283 (font-encoding-alist): Doc fix.
10284
73acf815 102852008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10286
10287 * term.c (costs_set): Declare static, non-initialized for pcc.
1f45f627 10288 (encode_terminal_code): Remove unused var.
aca7a3d2
MB
10289
10290 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
10291 for K&R.
10292
10293 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
10294
10295 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
1f45f627 10296 (suffixes): Move out of make_subsidiaries for K&R.
aca7a3d2 10297
1f45f627 10298 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
aca7a3d2
MB
10299
10300 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
10301
73acf815 103022008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10303
10304 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
10305
1f45f627 10306 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
aca7a3d2 10307
2a2e8de7 103082008-02-01 Yong Lu <lyongu@asia-infonet.com>
aca7a3d2
MB
10309
10310 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
10311
1f45f627 10312 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
aca7a3d2 10313
73acf815 103142008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 10315
4c4475a8 10316 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
aca7a3d2 10317 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
aca7a3d2 10318
73acf815 103192008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 10320
1f45f627 10321 * coding.c (decode_coding_charset): Adjust for the change of
aca7a3d2
MB
10322 Fdefine_coding_system_internal.
10323 (Fdefine_coding_system_internal): For a coding system of
10324 `charset' type, store a list of charset IDs in
10325 `charset_attr_charset_valids' element of coding attributes.
10326
73acf815 103272008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10328
10329 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
1f45f627
GM
10330 (emacs_mule_char): New arg src. Delete arg `composition'. Change
10331 caller. Handle 2-byte and 3-byte charsets correctly.
10332 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
10333 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
aca7a3d2
MB
10334 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
10335 (DECODE_EMACS_MULE_21_COMPOSITION): Call
10336 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
10337 sequence.
10338 (decode_coding_emacs_mule): Handle composition correctly. Rewind
1f45f627 10339 `src' and `consumed_chars' correctly before calling emacs_mule_char.
aca7a3d2
MB
10340 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
10341 and alt&rule composition.
10342 (decode_coding_iso_2022): Handle composition correctly.
10343 (init_coding_once): Setup emacs_mule_bytes for private charsets.
10344
10345 * charset.c (Fdefine_charset_internal): Fix bug for the case of
10346 re-defining a charset. If the charset has :emacs-mule-id, setup
10347 emacs_mule_bytes.
1f45f627 10348 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
aca7a3d2 10349
73acf815 103502008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2 10351
4c4475a8
GM
10352 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
10353 (encode_coding_big5, encode_coding_charset): If coding requires safe
aca7a3d2
MB
10354 encoding, produce a character specified by
10355 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
aca7a3d2 10356
73acf815 103572008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10358
10359 * xterm.c (XSetIMValues): Declare.
10360
10361 * process.c: Conditionally include sys/wait.h, pty.h.
10362
1f45f627 10363 * print.c (print_object): Fix print format for 64-bit systems.
aca7a3d2 10364
1f45f627 10365 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
aca7a3d2
MB
10366
10367 * buffer.c (emacs_strerror): Declare.
aca7a3d2
MB
10368
10369 * fontset.c (Fclear_face_cache): Declare.
1f45f627 10370 (accumulate_font_info): Comment-out (unused).
aca7a3d2
MB
10371 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
10372 variables.
10373
10374 * character.h (string_escape_byte8): Declare.
10375
10376 * charset.c (load_charset_map, load_charset_map_from_file): Remove
10377 unused vars.
10378 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
10379 (Fmap_charset_chars): Doc fix.
10380
1f45f627 10381 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
aca7a3d2
MB
10382 (Fset_coding_system_priority, Fset_coding_system_priority)
10383 (Fdefine_coding_system_internal): Doc fix.
10384
73acf815 103852008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10386
10387 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
10388
73acf815 103892008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10390
10391 * character.c (string_escape_byte8): Make multibyte string with
10392 correct size.
10393
10394 * charset.c (Fmake_char): Delete unnecessary code.
10395
73acf815 103962008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10397
10398 * xfns.c (x_encode_text): Allocate coding.destination here, and
10399 call encode_coding_object with dst_object Qnil.
10400
10401 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
10402 multibyte form correctly.
10403
10404 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
10405 against Vfont_encoding_alist.
10406
10407 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
10408 handling of charset list.
10409 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
10410 (decode_coding_object): Move point to coding->dst_pos before
10411 calling post-read-conversion function.
10412 (encode_coding_object): Give correct arguments to
10413 pre-write-conversion. Ignore the return value of
10414 pre-write-conversion function. Pay attention to the case that
10415 pre-write-conversion changes the current buffer. If dst_object is
10416 Qt, even if coding->src_bytes is zero, allocate at least one byte
10417 to coding->destination.
10418
10419 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
10420
10421 * charset.c (Fmake_char): Make it more backward compatible.
10422 (Fmap_charset_chars): Fix docstring.
10423
73acf815 104242008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10425
10426 * coding.c: Doc fixes.
10427 (Fdefine_coding_system_alias): Use names, not symbols, in
10428 coding-system-alist.
10429
73acf815 104302008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10431
10432 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
10433 of calling free_realized_face.
10434
2a2e8de7 104352008-02-01 Yong Lu <lyongu@asia-infonet.com>
aca7a3d2 10436
1f45f627
GM
10437 * charset.c (read_hex): Don't treat SPC as a comment starter.
10438 (decode_char): If CODE_POINT_TO_INDEX retruns -1, always return -1.
aca7a3d2
MB
10439 (Fdecode_char): Fix typo.
10440
73acf815 104412008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10442
10443 * charset.h (struct charset): New member `code_space_mask'.
10444
1f45f627 10445 * coding.c (coding_set_source): Delete the local variable beg_byte.
4c4475a8
GM
10446 (encode_coding_charset, Fdefine_coding_system_internal):
10447 Delete the local variable charset.
aca7a3d2
MB
10448 (Fdefine_coding_system_internal): Setup
10449 attrs[coding_attr_charset_valids] correctly.
10450
10451 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
10452 member to check if CODE is valid or not.
10453 (Fdefine_charset_internal): Initialize `code_space_mask' member.
10454 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
10455 is within the range of charset->min_code and carset->max_code.
10456
73acf815 104572008-02-01 Dave Love <fx@gnu.org>
aca7a3d2
MB
10458
10459 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
10460
10461 * dispextern.h (generate_ascii_font): Fix return type.
10462
10463 * xfaces.c (generate_ascii_font): Fix arg declaration.
10464
10465 * coding.c (coding_inherit_eol_type)
10466 (Fset_terminal_coding_system_internal)
10467 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
10468
73acf815 104692008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10470
10471 * coding.c (decode_coding_charset, encode_coding_charset): Handle
10472 multiple charsets correctly.
10473
73acf815 104742008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10475
10476 * search.c (boyer_moore): Fix handling of mulitbyte character
10477 translation.
10478
10479 * xdisp.c (display_mode_element): When the variable `elt' is
10480 changed, update `this' and `lisp_string'.
10481
73acf815 104822008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10483
10484 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
10485
10486 * callproc.c (Fcall_process): Be sure to give the current buffer
1f45f627 10487 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
aca7a3d2
MB
10488
10489 * charset.c (struct charset_map_entries): New struct.
1f45f627
GM
10490 (load_charset_map): Rename from parse_charset_map. New args
10491 entries and n_entries. Change caller.
10492 (load_charset_map_from_file): Rename from load_charset_map.
10493 Change caller. New arg control_flag. Call load_charset_map at
aca7a3d2
MB
10494 the tail.
10495 (load_charset_map_from_vector): New function.
10496 (Fdefine_charset_internal): Setup charset.compact_codes_p.
10497 (encode_char): If the charset is compact, change a character index
10498 to a code point.
10499
10500 * coding.c (coding_alloc_by_making_gap): Check the case that the
10501 source and destination are the same correctly.
10502 (decode_coding_raw_text): Set coding->consumed_char and
10503 coding->consumed to 0.
10504 (produce_chars): If coding->chars_at_source is nonzero, update
10505 coding->consumed_char and coding->consumed before calling
10506 alloc_destination.
10507 (Fdefine_coding_system_alias): Register ALIAS in
10508 Vcoding_system_alist.
10509 (syms_of_coding): Define `no-convesion' coding system at the tail.
10510
10511 * fileio.c (Finsert_file_contents): Set coding_system instead of
10512 val. If the current buffer is multibyte, always call
10513 decode_coding_gap.
10514
10515 * xfaces.c (try_font_list): Give higher priority to fontset's
10516 family than face's family.
10517
73acf815 105182008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10519
10520 * callproc.c (Fcall_process): Be sure to give the current buffer
10521 to decode_coding_c_string.
10522
10523 * xfaces.c (try_font_list): Give a family specified in a fontset
10524 higher priority than a family specified in a face.
10525
73acf815 105262008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10527
10528 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
10529 Fix arguments to insert_from_buffer.
10530
10531 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
10532
73acf815 105332008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10534
10535 * coding.c (produce_chars): Set the variable `multibytep' correctly.
10536 (decode_coding_gap): Set coding->dst_multibyte correctly.
10537
73acf815 105382008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10539
10540 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
1f45f627 10541 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
aca7a3d2
MB
10542 (encode_coding_utf_16): Substitute coding->default_char for
10543 non-Unicode characters.
10544 (decode_coding): Don't call record_insert here.
10545 (setup_coding_system): Initialize `surrogate' of
10546 coding->spec.utf_16 to 0.
10547 (EMIT_ONE_BYTE): Fix for multibyte case.
10548
10549 * insdel.c (insert_from_gap): Call record_insert.
10550
73acf815 105512008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10552
10553 * casefiddle.c (casify_region): Fix multibyte case.
10554
10555 * character.c (c_string_width): Add return type `int'.
1f45f627 10556 (char_string_with_unification): Delete arg ADVANCED.
aca7a3d2
MB
10557
10558 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
1f45f627 10559 (CHAR_STRING): Adjust for the change of char_string_with_unification.
aca7a3d2
MB
10560 (CHAR_STRING_ADVANCE): Make it do-while statement.
10561
1f45f627 10562 * chartab.c (sub_char_table_set_range): Optimize for the case
aca7a3d2
MB
10563 DEPTH == 3. Add workaround code for a GCC optimization bug.
10564
10565 * charset.c (parse_charset_map): Remove an unused variable.
10566
10567 * coding.c: Delete unused variables.
10568
10569 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
10570 earlier. If inserted is zero and the coding system doesn't
10571 require flushing, don't call decode_coding_gap.
10572
10573 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
10574
73acf815 105752008-02-01 Kenichi Handa <handa@m17n.org>
aca7a3d2
MB
10576
10577 The following changes are for using Unicode as an internal
10578 character model, and use UTF-8 format for buffer/string
10579 representation.
10580
1f45f627 10581 * .gdbinit (xchartable): Adjust for the change of char table structure.
aca7a3d2
MB
10582 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
10583
10584 * Makefile.in (obj): Add character.o and chartab.o.
c3f9fba8 10585 (lisp, shortlisp): Remove utf-8.elc.
aca7a3d2
MB
10586 (*.o): For many files, change dependency on charset.h to
10587 character.h, and add dependency on character.h.
10588 (character.o, chartab.o): New targets.
10589
1f45f627
GM
10590 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
10591 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
10592 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
aca7a3d2
MB
10593 of "charset.h".
10594
10595 * dired.c, filelock.c: Include "character.h".
10596
10597 * alloc.c: Include "character.h" instead of "charset.h".
4c4475a8 10598 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
aca7a3d2
MB
10599 (syms_of_alloc): Remove defsubr for Smake_char_table.
10600
10601 * buffer.c: Include "character.h" instead of "charset.h", don't
10602 include "coding.h".
1f45f627 10603 (Fset_buffer_multibyte): Adjust for UTF-8.
aca7a3d2
MB
10604
10605 * buffer.h: EXFUN Fbuffer_live_p.
10606
10607 * callproc.c: Include "character.h" instead of "charset.h".
10608 (Fcall_process): Big change for the new code-conversion APIs.
10609
10610 * casetab.c: Include "character.h" instead of "charset.h".
1f45f627 10611 (set_canon, set_identity, shuffle): Adjust for the new
aca7a3d2
MB
10612 map_char_table spec.
10613 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
10614 accessing the char table structure.
10615
10616 * chartab.c: New file that implements char table.
10617
10618 * category.c: Include "character.h".
10619 (copy_category_entry): New function.
10620 (copy_category_table): Call map_char_table and copy_category_entry.
10621 (Fmake_category_table): Initialize all top-vel slots.
10622 (char_category_set): New function.
1f45f627 10623 (modify_lower_category_set): Delete.
aca7a3d2
MB
10624 (Fmodify_category_entry): Call char_table_ref_and_range.
10625
10626 * category.h (CATEGORY_SET): Just call char_category_set.
10627
10628 * ccl.c: Include "character.h".
10629 (Qccl, Qcclp): New variables.
10630 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
10631 it's less than 256.
1f45f627
GM
10632 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
10633 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
aca7a3d2 10634 and DST type.
1f45f627
GM
10635 (ccl_driver): Change types of argument, adjust code accordingly.
10636 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
aca7a3d2
MB
10637 ccl_driver.
10638 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
10639
1f45f627
GM
10640 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
10641 New members src_multibyte, dst_multibyte, consumed, and produced.
10642 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
aca7a3d2 10643 (CODING_SPEC_CCL_PROGRAM): New macro.
1f45f627 10644 (ccl_driver): Update prototype.
aca7a3d2
MB
10645 (Qccl, Qcclp, Fccl_program_p): Extern them.
10646 (CHECK_CCL_PROGRAM): New macro.
10647
10648 * character.c, character.h, chartab.c: New files.
10649
1f45f627
GM
10650 * charset.c: Mostly re-written. Move character and multibyte sequence
10651 handling codes to character.c.
aca7a3d2 10652
1f45f627
GM
10653 * charset.h: Mostly re-written. Move character and multibyte sequence
10654 handling codes to character.h.
aca7a3d2
MB
10655
10656 * coding.c, coding.h: Mostly re-written.
10657
10658 * composite.c: Include "character.h" instead of "charset.h".
1f45f627
GM
10659 (CHAR_WIDTH): Move to character.h.
10660 (HASH_KEY, HASH_VALUE): Delete.
aca7a3d2 10661
1f45f627
GM
10662 * composite.h (enum composition_method): Change order of enumeration
10663 symbols.
aca7a3d2
MB
10664
10665 * data.c: Include "character.h" instead of "charset.h".
10666 (Faref): Call CHAR_TABLE_REF for a char table.
10667 (Faset): Call CHAR_TABLE_SET for a char table.
10668
1f45f627
GM
10669 * dispextern.h (free_realized_face, check_face_attribytes)
10670 (generate_ascii_font): Extern them.
10671 (free_realized_multibyte_face): Delete extern.
aca7a3d2 10672
1f45f627 10673 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
aca7a3d2
MB
10674 table structure.
10675
10676 * editfns.c: Include "character.h" instead of "charset.h".
10677 (Fchar_to_string): Always call CHAR_STRING.
10678
10679 * emacs.c (main): Call init_charset_once, init_charset,
10680 syms_of_chartab, and syms_of_character.
10681
10682 * fileio.c: Include "character.h" instead of "charset.h".
1f45f627 10683 (Finsert_file_contents): Big change for the new code-conversion API.
4c4475a8 10684 (choose_write_coding_system, Fwrite_region): Likewise.
1f45f627 10685 (build_annotations_2): Delete.
aca7a3d2
MB
10686 (e_write): Big change for the new code-conversion API.
10687
10688 * fns.c: Include "character.h" instead of "charset.h".
1f45f627 10689 (copy_sub_char_table): Move to chartab.c.
aca7a3d2
MB
10690 (Fcopy_sequence): Call copy_char_table for a char table.
10691 (concat): Delete codes calling count_multibyte.
4c4475a8
GM
10692 (string_char_to_byte, string_byte_to_char): Adjust for the new
10693 multibyte form.
1f45f627
GM
10694 (internal_equal): Adjust for the change of char table structure.
10695 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
10696 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
10697 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
10698 (char_table_translate, optimize_sub_char_table)
10699 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
aca7a3d2 10700 chartab.c.
1f45f627
GM
10701 (char_table_ref_and_index): Delete.
10702 (HASH_KEY, HASH_VALUE): Move to lisp.h.
aca7a3d2 10703 (Fmd5): Call preferred_coding_system instead of accessing
1f45f627
GM
10704 Vcoding_category_list. Adjust for the new code-conversion API.
10705 (syms_of_fns): Move defsubr for char table related functions to
aca7a3d2
MB
10706 chartab.c.
10707
10708 * fontset.c: Mostly re-written.
10709
1f45f627 10710 * fontset.h (struct font_info): Change type of the member encoding_type.
aca7a3d2 10711 (enum FONT_SPEC_INDEX): New enum.
1f45f627
GM
10712 (fontset_font_pattern, fs_load_font): Update prototype.
10713 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
aca7a3d2
MB
10714
10715 * indent.c: Include "character.h" instead of "charset.h".
1f45f627 10716 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
aca7a3d2
MB
10717
10718 * insdel.c: Include "character.h" instead of "charset.h".
10719 (copy_text): Don't refer to Vnonascii_translation_table.
10720 (insert_from_gap): New function.
10721
10722 * keyboard.c: Include "character.h" instead of "charset.h".
10723 (command_loop_1): Never call direct_output_forward_char before
10724 a non-ASCII character.
10725 (read_char): If Vkeyboard_translate_table is a char table, always
1f45f627 10726 translate a character.
aca7a3d2
MB
10727
10728 * keymap.c: Include "character.h".
10729 (store_in_keymap): Handle the case that IDX is a cons.
10730 (Fdefine_key): Handle the case that KEY is a cons and the car part
10731 is also a cons (range).
1f45f627 10732 (push_key_description): Adjust for the new character code.
aca7a3d2
MB
10733 (describe_vector): Call describe_char_table for a char table.
10734 (describe_char_table): New function.
10735
10736 * keymap.h (describe_char_table): Extern it.
10737
10738 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
10739 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
1f45f627
GM
10740 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
10741 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
10742 Delete.
10743 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
aca7a3d2
MB
10744 structure.
10745 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
1f45f627
GM
10746 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
10747 (CHARTAB_SIZE_BITS_3): New macros.
aca7a3d2 10748 (chartab_size): Extern it.
1f45f627 10749 (struct Lisp_Char_Table): Re-design.
aca7a3d2 10750 (struct Lisp_Sub_Char_Table): New structure.
1f45f627
GM
10751 (HASH_KEY, HASH_VALUE): Move from fns.c.
10752 (CHARACTERBITS): Define as 22.
10753 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
aca7a3d2
MB
10754 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
10755 (GC_SUB_CHAR_TABLE_P): New macro.
1f45f627
GM
10756 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
10757 (code_convert_string_norecord): Deleted extern.
10758 (init_character_once, syms_of_character, init_charset)
10759 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
aca7a3d2
MB
10760
10761 * lread.c: Include "character.h".
10762 (read_multibyte): New arg NBYTES.
1f45f627
GM
10763 (read_escape): Change the meaning of returned *BYTEREP.
10764 (to_multibyte): Delete.
10765 (read1): Adjust the handling of char table and string.
aca7a3d2
MB
10766
10767 * print.c: Include "character.h" instead of "charset.h".
10768 (print_string): Convert 8-bit raw bytes to octal form by
10769 string_escape_byte8.
1f45f627 10770 (print_object): Adjust for the new multibyte form. Print 8-bit
aca7a3d2
MB
10771 raw bytes always in octal form. Handle sub char table correctly.
10772
10773 * process.c: Include "character.h" instead of "charset.h".
4c4475a8
GM
10774 (read_process_output, send_process): Adjust for the new
10775 code-conversion API.
aca7a3d2 10776
1f45f627 10777 * puresize.h (BASE_PURESIZE): Increase.
aca7a3d2
MB
10778
10779 * regex.c: Include "character.h" instead of "charset.h".
10780 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
10781 (regex_compile): Accept a range whose starting and ending
10782 character have different leading bytes.
1f45f627 10783 (analyse_first): Adjust for the above change.
aca7a3d2
MB
10784
10785 * search.c: Include "character.h" instead of "charset.h".
1f45f627
GM
10786 (search_buffer, boyer_moore): Adjust for the new multibyte form.
10787 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
aca7a3d2
MB
10788
10789 * syntax.c: Include "character.h" instead of "charset.h".
1f45f627 10790 (syntax_parent_lookup): Delete.
aca7a3d2 10791 (Fmodify_syntax_entry): Accept a cons as CHAR.
1f45f627 10792 (skip_chars): Adjust for the new multibyte form.
aca7a3d2
MB
10793 (init_syntax_once): Call char_table_set_range instead of directly
10794 accessing the structure of a char table.
10795
10796 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
1f45f627 10797 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
aca7a3d2
MB
10798 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
10799 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
10800
10801 * term.c: Include "buffer.h" and "character.h".
4c4475a8
GM
10802 (encode_terminal_code, write_glyphs): Adjust for the new
10803 code-conversion API.
aca7a3d2
MB
10804 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
10805
1f45f627 10806 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
aca7a3d2
MB
10807
10808 * xdisp.c: Include "character.h".
1f45f627
GM
10809 (get_next_display_element): Adjust for the new multibyte form.
10810 (disp_char_vector): Adjust for the new char table structure.
10811 (decode_mode_spec_coding): Adjust for the new structure of
aca7a3d2 10812 coding system.
1f45f627 10813 (decode_mode_spec): Adjust for the new code-conversion API.
aca7a3d2
MB
10814
10815 * xfaces.c: Include "character.h" instead of "charset.h".
1f45f627 10816 (load_face_font): Adjust for the change of choose_face_font and
aca7a3d2
MB
10817 FS_LOAD_FONT.
10818 (generate_ascii_font): New function.
1f45f627
GM
10819 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
10820 (set_font_frame_param): Adjust for the change of choose_face_font.
aca7a3d2 10821 (free_realized_face): Make it public.
1f45f627 10822 (free_realized_faces_for_fontset): Rename from
aca7a3d2 10823 free_realized_multibyte_face. Free also faces realized for ASCII.
1f45f627 10824 (choose_face_font): Change arguments. Adjust for the change of
aca7a3d2
MB
10825 fontset_font_pattern and FS_LOAD_FONT.
10826
10827 * xfns.c: Include "character.h".
1f45f627 10828 (x_encode_text): Adjust for the new code-conversion API.
aca7a3d2
MB
10829
10830 * xselect.c: Don't include "charset.h".
1f45f627 10831 (selection_data_to_lisp_data): Adjust for the new code conversion API.
aca7a3d2
MB
10832
10833 * xterm.c: Include "character.h".
1f45f627 10834 (x_encode_char): New argument CHARSET. Change caller.
4c4475a8
GM
10835 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
10836 Call ENCODE_CHAR instead of SPLIT_CHAR.
aca7a3d2
MB
10837 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
10838 CHAR_WIDTH instead of CHARSET_WIDTH.
1f45f627
GM
10839 (XTread_socket): Adjust for the new code-conversion API.
10840 (x_new_font): Adjust for the change of FS_LOAD_FONT.
10841 (x_load_font): Adjust for the change of struct font.
aca7a3d2 10842
d6abfc14
SM
108432008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
10844
10845 * xfaces.c (face_at_buffer_position): Remove unused vars.
10846
0acdaf8d
KH
108472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10848
4c4475a8
GM
10849 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
10850 Fix overflow checking.
0acdaf8d 10851
6c8a0ebf
GM
108522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
10853
10854 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
10855 Cancel previous change.
10856
108572008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
10858
10859 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
10860 ccl->eight_bit_control. Fix check for buffer overflow.
10861 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
10862 (ccl_driver): Initialize extra_bytes to 0.
10863
a32aad64
KH
108642008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
10865
10866 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
10867 return it ORed with ctrl_modifier.
10868
8b329dba
MB
108692008-01-29 Miles Bader <miles@gnu.org>
10870
10871 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
10872
548667aa
JR
108732008-01-28 Jason Rumney <jasonr@gnu.org>
10874
10875 * w32.c (stat): Don't double check for networked drive.
10876
0975aa24
SM
108772008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
10878
ef264c42
SM
10879 * window.c (run_window_configuration_change_hook): New function.
10880 Code extracted from set_window_buffer. Set the selected frame.
10881 (set_window_buffer): Use it.
10882 * window.h (run_window_configuration_change_hook): Declare.
10883 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
10884
0975aa24
SM
10885 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
10886
9c28b587
DN
108872008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
10888
10889 * Makefile.in: Remove references to unused macros.
10890
c617afce
EZ
108912008-01-26 Eli Zaretskii <eliz@gnu.org>
10892
10893 * w32.c (g_b_init_get_sid_sub_authority)
10894 (g_b_init_get_sid_sub_authority_count): New static variables.
10895 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
10896 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
0975aa24
SM
10897 (init_user_info): Use them to retrieve uid and gid.
10898 Use 500/513, the Windows defaults, as Administrator's uid/gid.
248c21c5
EZ
10899 (fstat): Use pw_uid and pw_gid from the_passwd structure for
10900 st_uid and st_gid of the file.
c617afce 10901
302d7d54
JR
109022008-01-26 Jason Rumney <jasonr@gnu.org>
10903
10904 * w32.c (logon_network_drive): New function.
10905 (stat): Use it.
10906
3ac7a21e
CY
109072008-01-26 Chong Yidong <cyd@stupidchicken.com>
10908
10909 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
10910 invisible text covered with an ellipsis.
10911
bbb9fc1f
RS
109122008-01-25 Richard Stallman <rms@gnu.org>
10913
10914 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
10915 jump back to beginning. Move some other initializations after that.
10916 (Qwindow_text_change_functions, Vwindow_text_change_functions):
10917 New variables.
10918 (syms_of_xdisp): Init them.
10919
10920 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
10921
0975aa24
SM
10922 * buffer.c (reset_buffer_local_variables):
10923 Implement `permanent-local-hook'.
bbb9fc1f 10924 (Qpermanent_local_hook): New variable.
0975aa24 10925 (syms_of_buffer): Init and staticpro it.
bbb9fc1f 10926
79235cbe
MA
109272008-01-25 Michael Albinus <michael.albinus@gmx.de>
10928
10929 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
10930
ccd8f7fe
TTN
109312008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
10932
10933 * fns.c (Fclrhash): Return TABLE.
10934
dfbe40f2 109352008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
223b3d1d
YM
10936
10937 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
10938 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
10939 is set even without positional changes.
10940 (x_scroll_bar_clear): Set bar->redraw_needed_p.
10941
10942 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
10943
dfbe40f2 109442008-01-23 Jason Rumney <jasonr@gnu.org>
602e142f 10945
d6169680
JR
10946 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
10947
602e142f
JR
10948 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
10949 the unicode range available in MULE by locale-coding-system.
c041e2d1 10950 Improve dbcs lead byte detection. Set event timestamp and modifiers
602e142f
JR
10951 earlier.
10952
dfbe40f2 109532008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5ee4de53
YM
10954
10955 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
10956 [MAC_OSX] (init_mac_osx_environment): Initialize it.
6f69e89b 10957 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
5ee4de53
YM
10958 when used on child processes.
10959
8c7a4ac5
MA
109602008-01-21 Michael Albinus <michael.albinus@gmx.de>
10961
e0df1b73 10962 * dbusbind.c (Fdbus_method_return_internal): Rename from
8c7a4ac5 10963 Fdbus_method_return.
e0df1b73 10964 (Fdbus_unregister_object): Move to dbus.el.
8c7a4ac5 10965 (Fdbus_call_method, Fdbus_method_return_internal)
e0df1b73 10966 (Fdbus_send_signal): Improve debug messages.
8c7a4ac5 10967
8abe0f97
MR
109682008-01-20 Martin Rudalics <rudalics@gmx.at>
10969
10970 * undo.c (undo_inhibit_record_point): New variable.
10971 (syms_of_undo): Initialize it.
10972 (record_point): Don't record point when undo_inhibit_record_point
10973 is set.
10974
c3b232e4
SM
109752008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
10976
e69c4cae
SM
10977 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
10978
823e0ebb
SM
10979 * xdisp.c (Qauto_hscroll_mode): New var.
10980 (syms_of_xdisp): Initialize it.
10981 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
10982 window's buffer.
10983 (hscroll_windows): Don't check automatic_hscrolling_p here.
10984
c3b232e4
SM
10985 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
10986 vscroll if we're setting window-buffer to the value it already has.
10987
76ed5e01
DN
109882008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
10989
10990 * m/intel386.h: Remove references to XENIX.
10991
55e6d9b2
AS
109922008-01-17 Andreas Schwab <schwab@suse.de>
10993
10994 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
10995 instead of HAVE_X86_64_LIB64_DIR.
10996 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
10997
b16ed52d
GM
109982008-01-17 Glenn Morris <rgm@gnu.org>
10999
11000 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
11001 to HAVE_X86_64_LIB64_DIR.
11002
6bed5c4a
DN
110032008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
11004
11005 * s/irix3-3.h:
11006 * s/irix4-0.h:
11007 * s/386-ix.h:
11008 * s/domain.h:
11009 * s/hpux9-x11r4.h:
11010 * s/hpux9shxr4.h: Remove files for systems no longer supported.
11011
11012 * sysdep.c: Remove code containing references to symbols defined
11013 by unsupported systems.
11014
fdecf907
GM
110152008-01-16 Glenn Morris <rgm@gnu.org>
11016
11017 * coding.c (select-safe-coding-system-function): Doc fix.
11018
9292328f
GM
110192008-01-15 Glenn Morris <rgm@gnu.org>
11020
11021 * config.in: Revert 2008-01-13 change: this is a generated file.
11022
944df511
MO
110232008-01-13 Tom Tromey <tromey@redhat.com>
11024
11025 * lisp.h: Fix typo.
11026
8111ec05
DN
110272008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
11028
f40f5dc3
DN
11029 * m/sequent-ptx.h:
11030 * m/sequent.h:
11031 * s/ptx.h:
11032 * s/ptx4-2.h:
11033 * s/ptx4.h: Remove files for systems no longer supported.
11034
ce20b664 11035 * callproc.c (Fcall_process): Fix previous change.
8111ec05 11036
e39a993c
DN
110372008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
11038
052e457f 11039 * unexsunos4.c: Remove file, system not supported anymore.
e39a993c 11040
290afd83
JB
11041 * m/mips.h:
11042 * m/intel386.h:
e39a993c
DN
11043 * callproc.c:
11044 * config.in:
11045 * ecrt0.c:
11046 * emacs.c:
11047 * fileio.c:
11048 * frame.c:
11049 * getpagesize.h:
11050 * keyboard.c:
11051 * lread.c:
11052 * process.c:
11053 * puresize.h:
11054 * sysdep.c:
11055 * systty.h:
11056 * syswait.h:
11057 * unexec.c:
11058 * xdisp.c:
11059 * alloc.c: Remove code containing references to symbols defined by
11060 unsupported systems.
11061
81cd7687
KH
110622008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
11063
11064 * coding.c (detect_coding_mask): Fix previous change.
11065
218b3b76
KH
110662008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
11067
11068 * coding.c (detect_coding_iso2022): New arg
11069 latin_extra_code_state. Allow Latin extra codes only
11070 when *latin_extra_code_state is nonzero.
11071 (detect_coding_mask): If there is a NULL byte, detect the encoding
11072 as UTF-16 or binary. If Latin extra codes exist, detect the
11073 encoding as ISO-2022 only when there's no other proper encoding is
11074 found.
11075
59ce725a 110762008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
081f2203 11077
59ce725a
MB
11078 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
11079 #ifdef MAC_OS.
048addec 11080
59ce725a 110812008-01-08 Richard Stallman <rms@gnu.org>
048addec 11082
59ce725a 11083 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
048addec 11084
8290574e
NR
110852008-01-06 Nick Roberts <nickrob@snap.net.nz>
11086
a0a3805c 11087 * keyboard.c (parse_menu_item): Don't enclose key bindings on
8290574e
NR
11088 menu bar in parentheses.
11089
f3041af1
DN
110902008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
11091
11092 * m/7300.h:
11093 * m/acorn.h:
11094 * m/alliant-2800.h:
11095 * m/alliant.h:
11096 * m/alliant1.h:
11097 * m/alliant4.h:
11098 * m/altos.h:
11099 * m/amdahl.h:
11100 * m/apollo.h:
11101 * m/att3b.h:
11102 * m/aviion-intel.h:
11103 * m/aviion.h:
11104 * m/celerity.h:
11105 * m/clipper.h:
11106 * m/cnvrgnt.h:
11107 * m/convex.h:
11108 * m/cydra5.h:
11109 * m/delta88k.h:
11110 * m/dpx2.h:
11111 * m/dual.h:
11112 * m/elxsi.h:
11113 * m/f301.h:
11114 * m/gould-np1.h:
11115 * m/gould.h:
11116 * m/i860.h:
11117 * m/ibmps2-aix.h:
11118 * m/ibmrt-aix.h:
11119 * m/ibmrt.h:
11120 * m/irist.h:
11121 * m/is386.h:
11122 * m/isi-ov.h:
11123 * m/mega68.h:
11124 * m/mg1.h:
11125 * m/news-r6.h:
11126 * m/news-risc.h:
11127 * m/news.h:
11128 * m/nh3000.h:
11129 * m/nh4000.h:
11130 * m/ns16000.h:
11131 * m/ns32000.h:
11132 * m/nu.h:
11133 * m/orion.h:
11134 * m/orion105.h:
11135 * m/paragon.h:
11136 * m/pfa50.h:
11137 * m/plexus.h:
11138 * m/pyramid.h:
11139 * m/pyrmips.h:
11140 * m/sh3el.h:
11141 * m/sps7.h:
11142 * m/sr2k.h:
11143 * m/stride.h:
11144 * m/sun1.h:
11145 * m/sun2.h:
11146 * m/sun3-68881.h:
11147 * m/sun3-fpa.h:
11148 * m/sun3-soft.h:
11149 * m/sun3.h:
11150 * m/sun386.h:
11151 * m/symmetry.h:
11152 * m/tad68k.h:
11153 * m/tahoe.h:
11154 * m/targon31.h:
11155 * m/tek4300.h:
11156 * m/tekxd88.h:
11157 * m/tower32.h:
11158 * m/tower32v3.h:
11159 * m/ustation.h:
11160 * m/wicat.h:
11161 * m/xps100.h:
11162 * s/cxux.h:
11163 * s/cxux7.h:
11164 * s/dgux.h:
11165 * s/dgux4.h:
11166 * s/dgux5-4-3.h:
11167 * s/dgux5-4r2.h:
11168 * s/esix.h:
11169 * s/esix5r4.h:
11170 * s/hiuxmpp.h:
11171 * s/hiuxwe2.h:
11172 * s/iris3-5.h:
11173 * s/iris3-6.h:
11174 * s/isc2-2.h:
11175 * s/isc3-0.h:
11176 * s/isc4-0.h:
11177 * s/isc4-1.h:
11178 * s/newsos5.h:
11179 * s/newsos6.h:
11180 * s/osf1.h:
11181 * s/osf5-0.h:
11182 * s/riscix1-1.h:
11183 * s/riscix12.h:
11184 * s/sco4.h:
11185 * s/sco5.h:
11186 * s/sunos4-0.h:
11187 * s/sunos4-1.h:
11188 * s/sunos413.h:
11189 * s/sunos4shr.h:
11190 * s/umax.h:
11191 * s/unipl5-2.h:
11192 * s/xenix.h:
11193 * cxux-crt0.s:
11194 * unexapollo.c:
11195 * unexconvex.c:
11196 * unexenix.c:
11197 * unexsni.c: Remove files for systems no longer supported.
11198
11199 * m/intel386.h: Remove references to unsupported systems.
11200
11201 * w32.c (get_emacs_configuration): Remove reference to i860.
11202
11203 * sysdep.c: Remove dead code.
11204
d35e1cd7
DN
112052008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
11206
11207 * s/rtu.h:
a0a3805c 11208 * m/masscomp.h: Remove files. Platform is obsolete.
d35e1cd7 11209
abe136ee
MA
112102008-01-04 Michael Albinus <michael.albinus@gmx.de>
11211
11212 * dbusbind.c (Fdbus_method_return): New function.
11213 (xd_read_message): Add the serial number to the event.
11214 (Fdbus_register_method): Activate the function.
11215
87df3c32
SM
112162008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
11217
11218 * keyboard.c (read_key_sequence): Fix typo.
11219
5125905e
MA
112202008-01-03 Michael Albinus <michael.albinus@gmx.de>
11221
11222 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
11223 (xd_signature, xd_append_arg): Handle element type detection for
11224 empty arrays.
11225 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
11226 SDATA () calls; this must be solved more general.
11227 (Fdbus_register_signal): Use SBYTES instead of strlen.
11228
8bba1b5c
MH
112292008-01-03 Magnus Henoch <magnus@zemdatav>
11230
11231 * dbusbind.c (xd_append_arg): Use unsigned char instead of
11232 unsigned int for byte values (necessary for big-endian platform).
2c3a8b27 11233 (Fdbus_call_method): Handle the case of no returned arguments.
8bba1b5c 11234
a0a3805c 112352007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
15f16c1b
MA
11236
11237 * dbusbind.c (xd_read_message): Use non-static input_event struct.
11238
a271e124
MH
112392007-12-31 Magnus Henoch <mange@freemail.hu>
11240
11241 * dbusbind.c (xd_signature): Signature of variant is just "v".
11242
17bc8f94
MA
112432007-12-30 Michael Albinus <michael.albinus@gmx.de>
11244
87df3c32 11245 * dbusbind.c: Fix several errors and compiler warnings.
1f204af3 11246 Reported by Tom Tromey <tromey@redhat.com>.
17bc8f94
MA
11247 (XD_ERROR, XD_DEBUG_MESSAGE)
11248 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
11249 (xd_append_arg): Part for basic D-Bus types rewitten.
11250 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
11251 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
11252 appropriate.
11253 (xd_read_message): Return Qnil. Don't signal an error; it is not
11254 useful during event reading.
11255 (Fdbus_register_signal): Signal an error if the check for
11256 FUNCTIONP fails.
11257 (Fdbus_register_method): New function. The implementation is not
11258 complete, the call of the function signals an error therefore.
11259 (Fdbus_unregister_object): New function, renamed from
11260 Fdbus_unregister_signal. The initial check signals an error, if
5125905e 11261 the object is not well formed.
17bc8f94 11262
dd6f2802
RS
112632007-12-30 Richard Stallman <rms@gnu.org>
11264
11265 * textprop.c (get_char_property_and_overlay):
11266 Signal error if POSITION is out of range in a buffer.
11267
1da8a031
MR
112682007-12-29 Martin Rudalics <rudalics@gmx.at>
11269
11270 * w32fns.c (Fx_create_frame): Make copy of frame parameters
11271 because the original parameters are in pure storage now.
11272
5742be86
YM
112732007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11274
11275 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
11276
b014713c
EZ
112772007-12-22 Eli Zaretskii <eliz@gnu.org>
11278
b17f53ab
MB
11279 * callint.c (syms_of_callint) <command-history>: Add reference to
11280 history-length in the doc string.
048addec 11281
b17f53ab 112822007-12-17 Jason Rumney <jasonr@gnu.org>
048addec 11283
b17f53ab
MB
11284 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
11285 before passing as wParam.
048addec 11286
9af5078b
MA
112872007-12-22 Michael Albinus <michael.albinus@gmx.de>
11288
11289 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
11290 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
11291 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
11292 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
11293 as number.
11294 (Fdbus_call_method): Fix docstring.
11295
87cf1a39
MA
112962007-12-21 Michael Albinus <michael.albinus@gmx.de>
11297
11298 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
11299 New macros.
87df3c32 11300 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
a0a3805c
JB
11301 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
11302 Simplify.
87cf1a39
MA
11303 (xd_signature): New function.
11304 (xd_append_arg): Compute also signatures. Major rewrite.
11305 (xd_retrieve_arg): Make debug messages friendly.
87df3c32
SM
11306 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
11307 Check for signatures of arguments.
87cf1a39 11308
54371585
MA
113092007-12-19 Michael Albinus <michael.albinus@gmx.de>
11310
11311 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
11312 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
11313 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
11314 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
11315 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
87df3c32 11316 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
54371585
MA
11317 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
11318 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
87df3c32 11319 (xd_retrieve_value): Remove. Functionality included in ...
54371585
MA
11320 (xd_append_arg): New function.
11321 (Fdbus_call_method, Fdbus_send_signal): Apply it.
11322
f5306ca3
MA
113232007-12-16 Michael Albinus <michael.albinus@gmx.de>
11324
11325 * dbusbind.c (top): Include <stdio.h>.
11326 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
11327 dbus_message_new_method_call and dbus_message_new_signal.
87df3c32
SM
11328 (Fdbus_register_signal): Rename unique_name to uname.
11329 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
f5306ca3
MA
11330 non-existing unique name. Fix typos in matching rule. Return an
11331 object which is useful in Fdbus_unregister_signal.
11332 (Fdbus_unregister_signal): Reimplementation, in order to remove
11333 only the corresponding entry.
11334 (Vdbus_registered_functions_table): Change the order of entries.
11335 Apply these changes in xd_read_message and Fdbus_register_signal.
11336
77a28bbf
AS
113372007-12-16 Andreas Schwab <schwab@suse.de>
11338
11339 * fileio.c (Finsert_file_contents): Fix overflow check to not
11340 depend on undefined integer overflow.
11341
2e3566d8
JR
113422007-12-14 Jason Rumney <jasonr@gnu.org>
11343
11344 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
11345 for characters above 127.
11346
bf254037
JR
113472007-12-13 Jason Rumney <jasonr@gnu.org>
11348
11349 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
11350 before dereferencing array.
11351 (lookup_vk_code): Remove zero comparison.
11352
eb7c7bf5
MA
113532007-12-14 Michael Albinus <michael.albinus@gmx.de>
11354
11355 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
87df3c32
SM
11356 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
11357 Use `unsigned int' instead of `uint'.
eb7c7bf5
MA
11358 (xd_read_message, Fdbus_register_signal): Split expressions into
11359 multiple lines before operators "&&" and "||", according to the
11360 GNU Coding Standards.
11361
34fb0fc9
EZ
113622007-12-14 Eli Zaretskii <eliz@gnu.org>
11363
11364 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
11365
c7d97628
JL
113662007-12-12 Juri Linkov <juri@jurta.org>
11367
11368 * buffer.c (Frename_buffer): In interactive spec replace
11369 `read-buffer' with `read-string' that uses `buffer-name-history'
11370 as history, and the current buffer's name as default.
11371
3709505e
SM
113722007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
11373
11374 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
11375 manipulating the backtrace manually.
11376 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
11377 (struct backtrace, backtrace_list): Remove.
11378 (command_loop_1): Remove dead var `no_direct'.
11379
11380 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
11381 preserve non-built-in buffer-local variables.
11382 (Fkill_all_local_variables): Don't re-create&re-set permanent
11383 buffer-local variables.
11384
e2bec886
JL
113852007-12-09 Juri Linkov <juri@jurta.org>
11386
11387 * buffer.c (Frename_buffer): Change interactive spec from "s" to
11388 Lisp code that uses `read-buffer' with current buffer as default.
11389
a31d47c7
MA
113902007-12-08 Michael Albinus <michael.albinus@gmx.de>
11391
11392 * dbusbind.c (xd_read_message): Generate an event for every
11393 registered handler. There might be several handlers registered
11394 for the same signal.
11395 (Fdbus_register_signal): Don't overwrite a registration for the
11396 same signal. Add a new registration if handlers are different.
11397 (Vdbus_registered_functions_table): Rework doc string.
11398
52da95fa
MA
113992007-12-07 Michael Albinus <michael.albinus@gmx.de>
11400
11401 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
11402 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
11403 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
11404 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
11405 Unify argument lists.
a0a3805c 11406 (xd_read_message, Fdbus_register_signal): Reorder and extend event
52da95fa
MA
11407 arguments and hash table keys. Use unique name for service.
11408 (Fdbus_unregister_signal): Remove checks.
11409 (Vdbus_registered_functions_table): Fix doc string.
11410
e5e76c04 114112007-12-05 Magnus Henoch <mange@freemail.hu>
0277bfa1
RS
11412
11413 * process.c (make_process): Initialize pty_flag to 0.
11414
e5e76c04 114152007-12-05 Jason Rumney <jasonr@gnu.org>
44b1dc2e
JR
11416
11417 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
11418 specified XBMs.
11419
e5e76c04 114202007-12-05 Richard Stallman <rms@gnu.org>
048addec 11421
e5e76c04 11422 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
048addec 11423
e5e76c04 114242007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 11425
e5e76c04
MB
11426 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
11427 New variable.
11428 (mac_try_close_socket) [MAC_OSX]: New function.
11429 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
11430 Update cfsockets_for_select. Replace invalid CFRunLoop source.
048addec 11431
e5e76c04
MB
11432 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
11433 Use mac_try_close_socket.
048addec 11434
e5e76c04 114352007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 11436
e5e76c04
MB
11437 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
11438 reloc_base.
11439 (copy_dysymtab): Compute relocation base here.
11440 (rebase_reloc_address) [__ppc64__]: New function.
11441 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
11442 changed.
048addec 11443
e5e76c04 114442007-12-05 Jason Rumney <jasonr@gnu.org>
048addec 11445
e5e76c04 11446 * w32proc.c (sys_spawnve): Quote args with wildcards.
048addec 11447
e5e76c04 114482007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
048addec 11449
e5e76c04
MB
11450 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
11451 __objc_* sections.
11452 (unrelocate) [_LP64]: Set relocation base to address of data segment.
048addec 11453
96faeb40
MA
114542007-12-05 Michael Albinus <michael.albinus@gmx.de>
11455
11456 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
11457 Move check for Vdbus_registered_functions_table to
11458 xd_read_queued_messages.
11459 (xd_read_queued_messages): Protect xd_read_message calls by
11460 internal_condition_case_1.
11461
39abdd4a
MA
114622007-12-04 Michael Albinus <michael.albinus@gmx.de>
11463
87df3c32 11464 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
39abdd4a 11465 Qdbus_system_bus and Qdbus_session_bus, respectively.
87df3c32 11466 (Vdbus_intern_symbols): Remove.
39abdd4a 11467 (Vdbus_registered_functions_table): New hash table.
87df3c32 11468 (XD_SYMBOL_INTERN_SYMBOL): Remove.
39abdd4a 11469 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
87df3c32 11470 Rewrite in order to manage registered functions by hash table
39abdd4a
MA
11471 Vdbus_registered_functions_table.
11472
880820fe 114732007-12-03 Jan Djärv <jan.h.d@swipnet.se>
7ba30657
JD
11474
11475 * xterm.c: Update URL to Window Manager Specification in comment.
11476
033b73e2
MA
114772007-12-02 Michael Albinus <michael.albinus@gmx.de>
11478
11479 * config.in (HAVE_DBUS): Add.
11480
a0a3805c 11481 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
033b73e2
MA
11482 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
11483 (obj): Add $(DBUS_OBJ).
11484 (LIBES): Add $(DBUS_LIBS).
11485 (dbusbind.o): New target.
11486
11487 * dbusbind.c: New file.
11488
11489 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
11490
11491 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
a0a3805c 11492 (Qdbus_event): New Lisp symbol.
033b73e2 11493 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
87df3c32 11494 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
033b73e2
MA
11495 (keys_of_keyboard ): Define dbus-event.
11496
11497 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
11498
39d0bf74
RS
114992007-12-01 Richard Stallman <rms@gnu.org>
11500
11501 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
11502
f3157c65
JR
115032007-11-30 Jason Rumney <jasonr@gnu.org>
11504
11505 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
11506 (w32con_reset_terminal_modes): Clear screen buffer.
f1e8dcf1
JR
11507 (w32_face_attributes): Don't use color indexes that are out of range.
11508 Only reverse the default colors.
f3157c65
JR
11509
11510 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
11511 WINDOWSNT.
11512
11513 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
11514
b510360c
JR
115152007-11-29 Jason Rumney <jasonr@gnu.org>
11516
11517 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
11518 (w32_face_attributes): Use Vtty_defined_color_alist to determine
11519 if the terminal colors are initialized.
11520 (unspecified_fg, unspecified_bg): Remove unused declarations.
11521
4b7ab1c4
AS
115222007-11-29 Andreas Schwab <schwab@suse.de>
11523
11524 * keyboard.c (apply_modifiers): Fix typo.
11525
4bb6c266
RS
115262007-11-29 Richard Stallman <rms@gnu.org>
11527
11528 * keymap.c (Fcurrent_local_map): Doc fix.
11529
aa44cd84
GM
115302007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
11531
11532 * s/gnu-kfreebsd.h: New file.
11533
21ec2c43
SM
115342007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
11535
cc648cef
SM
11536 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
11537 Don't cast redundantly.
11538
21ec2c43
SM
11539 * keyboard.c (KEY_TO_CHAR): New macro.
11540 (parse_modifiers, apply_modifiers): Accept integer arguments.
11541 (read_key_sequence): Use them to unify the "shift->unshift" mapping
11542 for chars and symbol keys.
11543 After doing such remapping, apply function-key-map again.
11544
73e72da4
DN
115452007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
11546
11547 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
11548 compiled anymore.
11549
254693ff
AS
115502007-11-26 Andreas Schwab <schwab@suse.de>
11551
11552 * process.c (list_processes_1): Fix indentation level of the
11553 command column.
11554
ff6e6ac8
AS
115552007-11-23 Andreas Schwab <schwab@suse.de>
11556
11557 * editfns.c (Fformat): Handle %c specially since it requires the
11558 argument to be of type int.
11559
f7cf8b20
SM
115602007-11-23 Markus Triska <markus.triska@gmx.at>
11561
11562 * emacs.c (main): Call init_editfns before init_process, since
2a2e8de7 11563 init_process sets Vprocess_connection_type depending on OS release.
f7cf8b20 11564
569c11e3
SM
115652007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
11566
8787dd73
SM
11567 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
11568 (find_symbol_value): Use do_symval_forwarding.
11569
569c11e3
SM
11570 * data.c (set_internal): Set the value in the `cons-cell' (for
11571 Buffer_Local_values) not only for frame-local variables.
11572
6af1696d
AS
115732007-11-22 Andreas Schwab <schwab@suse.de>
11574
11575 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
11576 values to sprintf.
11577 * keymap.c (Fsingle_key_description): Likewise.
11578 * print.c (print_object): Likewise.
11579
880820fe 115802007-11-22 Jan Djärv <jan.h.d@swipnet.se>
d4ad8c04
JD
11581
11582 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
11583 file for image is nil.
11584
7c401d15
DN
115852007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
11586
11587 * term.c: Include stdarg.h.
569c11e3 11588 (fatal): Implement using varargs.
a0a3805c 11589 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
7c401d15 11590
64e16c3c
SM
115912007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
11592
11593 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
11594 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
11595 Update call to buffer_slot_type_mismatch.
11596 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
11597 (buffer_slot_type_mismatch): Update.
11598 * buffer.c (buffer_local_types): Remove.
11599 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
11600 (defvar_per_buffer): Set the type in the buffer_objfwd.
11601
d4aa48db 116022007-11-21 Jason Rumney <jasonr@gnu.org>
5f42a7eb 11603
64e16c3c
SM
11604 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
11605 CreateFileMapping returns NULL on failure.
5f42a7eb 11606
d4aa48db 116072007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
048addec 11608
d4aa48db
MB
11609 * search.c (Fset_match_data): Remove the `evaporate' feature.
11610 (unwind_set_match_data): Don't use the `evaporate' feature.
437dfb9f 11611
bdae0540
JR
116122007-11-21 Jason Rumney <jasonr@gnu.org>
11613
11614 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
11615
11616 * w32console.c (w32con_write_glyphs): Remove unused variables.
11617
202c09a8
DN
116182007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
11619
b951420f
DN
11620 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
11621
202c09a8
DN
11622 * s/darwin.h (MULTI_KBOARD): Remove.
11623
11624 * macfns.c (x_create_tip_frame, Fx_create_frame)
11625 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
11626
bae72c12
SM
116272007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
11628
e7c10f83
SM
11629 * buffer.c (Fbuffer_local_value): Remove redundant test.
11630 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
11631 than in `current-buffer' to match the comment.
11632 Do the swap using swap_in_global_binding.
11633
136eb6ed
SM
11634 * data.c (store_symval_forwarding, set_internal):
11635 * eval.c (specbind): Remove dead code.
11636
bae72c12
SM
11637 * coding.c (detect_coding, Fupdate_coding_systems_internal):
11638 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
11639 Since we do not want to see internal Lisp_*fwd objects here.
11640
880820fe 116412007-11-18 Jan Djärv <jan.h.d@swipnet.se>
95fbaefc 11642
3d66b985
JD
11643 * sysdep.c (init_system_name): Use getaddrinfo if available.
11644
95fbaefc
JD
11645 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
11646 (x_scroll_bar_note_movement): start, end, with, height in struct
11647 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
11648
6c1d8cb6
DN
116492007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
11650
11651 * puresize.h (BASE_PURESIZE): Increase to 1190000.
11652
30f95089
SM
116532007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
11654
66b04bd4
SM
11655 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
11656 This undoes Richard's change of 14-Oct-2002.
11657
6d3f2bb2
SM
11658 * alloc.c (allocate_other_vector):
11659 * lisp.h (allocate_other_vector): Remove.
11660
b05b4e27
SM
11661 * window.c (struct save_window_data): Move non-lisp data to the end
11662 and make it `int' rather than Lisp_Object.
11663 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
11664 Done wrap/unwrap integer values.
11665 (Fset_window_configuration, compare_window_configurations):
11666 Update use of fields to their new types.
11667
056ce195
SM
11668 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
11669 Turn integer fields into `int'. Merge x_window_low and x_window_high.
11670 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
11671 (SET_SCROLL_BAR_X_WINDOW): Remove.
11672 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
11673 Access the new x_window field directly.
11674 * xterm.c (x_scroll_bar_create): Use a pseudovector.
11675 Don't wrap/unwrap integers into Lisp_Objects.
11676 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
11677 (x_scroll_bar_report_motion):
11678 Don't wrap/unwrap integers into Lisp_Objects.
11679 (x_term_init): Use SDATA.
11680 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
11681 (x_scroll_bar_set_handle, x_scroll_bar_remove)
11682 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
11683 (x_scroll_bar_report_motion, x_scroll_bar_clear):
11684 * xfns.c (x_set_background_color):
11685 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
11686 Access the new x_window field directly.
11687
30f95089
SM
11688 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
11689 (allocate_pseudovector): Make non-static.
6d3f2bb2 11690
30f95089
SM
11691 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
11692 (allocate_pseudovector): Declare.
6f69e89b 11693 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
30f95089 11694
9b6112e8
AS
116952007-11-15 Andreas Schwab <schwab@suse.de>
11696
30f95089
SM
11697 * editfns.c (Fformat): Correctly format EMACS_INT values.
11698 Also take precision into account when formatting an integer.
0f860bd7 11699
9b6112e8
AS
11700 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
11701
262fcd41
SM
117022007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
11703
58da34c7
SM
11704 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
11705 (syms_of_keyboard): Defsubr it.
11706
262fcd41
SM
11707 * data.c (swap_in_global_binding): Fix longstanding bug where
11708 store_symval_forwarding was not called with the right second argument,
11709 thus causing objfwd-ing from being dropped.
11710
d29a9848
JB
117112007-11-14 Juanma Barranquero <lekktu@gmail.com>
11712
11713 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
11714 (Fx_display_pixel_height, Fx_display_planes)
11715 (Fx_display_color_cells, Fx_server_max_request_size)
11716 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
11717 (Fx_display_visual_class, Fx_display_save_under):
11718 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
11719 (Fx_display_pixel_height, Fx_display_planes)
11720 (Fx_display_color_cells, Fx_server_max_request_size)
11721 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
11722 (Fx_display_mm_height, Fx_display_mm_width)
11723 (Fx_display_backing_store, Fx_display_visual_class)
11724 (Fw32_select_font, Fx_display_save_under):
11725 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
11726 (Fx_display_pixel_height, Fx_display_planes)
11727 (Fx_display_color_cells, Fx_server_max_request_size)
11728 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
11729 (Fx_display_save_under): Fix typos in docstrings.
11730
74084731
JB
117312007-11-14 Juanma Barranquero <lekktu@gmail.com>
11732
11733 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
11734 corresponding to deleted entries; they are an implementation detail.
11735 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
11736 Remove variables.
11737 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
11738 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
11739 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
11740 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
11741 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
d29a9848 11742 (Fw32_define_rgb_color, Fw32_load_color_file)
74084731 11743 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
02b39a28
JB
11744 Fix typos in docstrings.
11745 (Fx_server_version): Reflow docstring.
11746 (Fw32_shell_execute): Doc fixes.
74084731 11747
fb053a1f
JB
117482007-11-13 Juanma Barranquero <lekktu@gmail.com>
11749
11750 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
11751 if w32_parse_hot_key returned nil.
11752
a457417e 117532007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
9ec1bdb6 11754
a457417e 11755 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
9ec1bdb6 11756
4b219faa
JR
117572007-11-09 Jason Rumney <jasonr@gnu.org>
11758
11759 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
11760
11761 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
11762
11763 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
11764 Remove W32_SCROLL_BAR_CLICK_EVENT.
11765
11766 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
11767 Add MULTIMEDIA_KEY_EVENT.
11768
11769 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
11770 (lispy_multimedia_keys) [WINDOWSNT]: New array.
11771 (make_lispy_event) [WINDOWSNT]: Use it to translate
11772 MULTIMEDIA_KEY_EVENT.
11773
11774 * w32term.h (WM_APPCOMMAND): Define if not already.
11775 (GET_APPCOMMAND_LPARAM): Likewise.
11776
11777 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
11778 WM_APPCOMMAND.
11779
11780 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
11781 (syms_of_w32fns): Export and initialize it.
11782 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
11783
c12ecb0a 117842007-11-09 Chong Yidong <cyd@stupidchicken.com>
d388d2ac
CY
11785
11786 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
11787 twice.
11788
11789 * xdisp.c (handle_face_prop): Fix last change.
11790
c12ecb0a 117912007-11-09 Richard Stallman <rms@gnu.org>
048addec 11792
c12ecb0a
MB
11793 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
11794 not just for after-strings and before-strings.
11795 Call face_for_overlay_string and pass the overlay to it.
11796 (handle_display_prop): Determine whether property came from an overlay.
11797 Pass OVERLAY arg to handle_single_display_spec.
11798 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
11799 (load_overlay_strings): Fill in it->string_overlays.
11800 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
b5cb6072 11801
c12ecb0a
MB
11802 * xfaces.c (face_for_overlay_string): Function renamed from
11803 face_at_buffer_position_no_overlays, and add arg OVERLAY.
b5cb6072 11804
c12ecb0a
MB
11805 * dispextern.h (struct it): New elt string_overlays.
11806 New elt from_overlay, also in stack.
11807 Rearrange a few elements.
11808 (face_for_overlay_string): Decl renamed from
11809 face_at_buffer_position_no_overlays, and add argument.
15fff01d 11810
c12ecb0a 118112007-11-09 Richard Stallman <rms@gnu.org>
0065bb74 11812
c12ecb0a
MB
11813 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
11814 to get the base face for an overlay string.
0d8466cc 11815
c12ecb0a 11816 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
15fff01d 11817
c12ecb0a 11818 * xfaces.c (face_at_buffer_position_no_overlays): New function.
2fae9111 11819
c12ecb0a 11820 * xdisp.c (handle_stop): Move some code out of loop.
2d6c1fc0 11821
c12ecb0a 118222007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
07025a55 11823
c12ecb0a
MB
11824 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
11825 Fix conversion from Lisp object to ATSUFontID.
07025a55 11826
c12ecb0a 118272007-11-09 Jason Rumney <jasonr@gnu.org>
07025a55 11828
c12ecb0a 11829 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
3a232704 11830
c12ecb0a 118312007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
539e92ad 11832
c12ecb0a
MB
11833 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
11834 Don't assume regions are aligned to page boundary.
11835 (print_load_command_name): Add LC_UUID if defined.
3a232704 11836
c12ecb0a 118372007-11-09 Richard Stallman <rms@gnu.org>
0cb8bb48 11838
c12ecb0a 11839 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
539e92ad 11840
b8ddfbcc
JR
118412007-11-07 Jason Rumney <jasonr@gnu.org>
11842
11843 * s/windows95.h: Remove.
11844
880820fe 118452007-11-06 Jan Djärv <jan.h.d@swipnet.se>
e624c3f9
JD
11846
11847 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
11848 abort with a message on unhandled store_type values.
11849
880820fe 118502007-11-01 Jan Djärv <jan.h.d@swipnet.se>
ac1278c1
JD
11851
11852 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
11853 Remove HAVE_X11R5 and HAVE_X11R4.
11854
04a697fe
DN
118552007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
11856
11857 * Makefile.in: Remove references to sunfns.c and sunfns.o.
11858
880820fe 118592007-11-01 Johan Bockgård <bojohan@gnu.org>
56dad874
GM
11860
11861 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
fb053a1f 11862 Don't set s->stippled_p here, since it has already been set by
56dad874
GM
11863 x_set_glyph_string_gc from x_draw_glyph_string.
11864
07e5c0b0
DN
118652007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
11866
2a2e8de7 11867 * sunfns.c: Remove file.
07e5c0b0
DN
11868
11869 * m/sun386.h:
11870 * m/sun2.h:
11871 * m/sparc.h: Remove Sun windows code.
11872
1bc973c2
SM
118732007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
11874
11875 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
11876 (init_keyboard): Set current_kboard's window-system to nil.
11877 (tty_read_avail_input): Typo.
11878 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
11879
c22140f6
DN
118802007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
11881
11882 * s/usg5-4.h:
11883 * s/usg5-3.h:
11884 * s/ptx.h:
11885 * m/is386.h:
11886 * m/ibmps2-aix.h:
2a2e8de7 11887 * Makefile.in: Remove all mentions of X10.
c22140f6
DN
11888
11889 * dispnew.c (syms_of_display): Don't mention version 10.
11890
660a8219
JB
118912007-10-28 Juanma Barranquero <lekktu@gmail.com>
11892
11893 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
11894 ($(BLD)/abbrev.$(O)): Remove.
11895
e047f448
SM
118962007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
11897
11898 Rewrite abbrev.c in Elisp.
11899 * image.c (Qcount): Don't declare as extern.
11900 (syms_of_image): Initialize and staticpro `Qcount'.
11901 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
11902 * emacs.c (main): Don't call syms_of_abbrev.
11903 * Makefile.in (obj): Remove abbrev.o.
11904 (abbrev.o): Remove.
11905 * abbrev.c: Remove.
11906
67b73e3a
MR
119072007-10-26 Martin Rudalics <rudalics@gmx.at>
11908
11909 * window.c (window_min_size_2): Don't count header-line.
11910
e3d7bd83
DN
119112007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
11912
11913 * frame.h (struct frame): Move all bit fields after the first bit
660a8219 11914 field to take advantage of the available space. Group all the
e3d7bd83
DN
11915 chars together to reduce wasted space due to padding.
11916
a3547743
JB
119172007-10-26 Juanma Barranquero <lekktu@gmail.com>
11918
e298936f
JB
11919 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
11920
d3d47262
JB
11921 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
11922 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
11923 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
11924 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
11925 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
11926 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
11927 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
11928 (last_marked, mark_object_loop_halt): Make static.
11929
a3547743
JB
11930 * frame.c (syms_of_frame) <delete-frame-functions>:
11931 Fix typo in docstring.
11932
14c71d8b
JB
119332007-10-25 Juanma Barranquero <lekktu@gmail.com>
11934
11935 * w32.c (init_environment): Fix tiny memory leak.
66199f74 11936 (w32_get_resource): Remove unused variable `ok'.
14c71d8b 11937
70b8d0a4
SM
119382007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
11939
11940 Make `window-system' into a keyboard-local variable (rather than
11941 frame-local as done originally by multi-tty).
11942
11943 * keyboard.h (struct kboard): Add Vwindow_system.
11944 * keyboard.c (init_kboard): Set a default for Vwindow_system.
11945 (mark_kboards): Mark Vwindow_system.
11946
11947 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
11948 (init_display): Don't set the obsolete `window-system' frame-param.
11949
11950 * xterm.c (x_term_init):
11951 * w32term.c (w32_create_terminal):
11952 * term.c (init_tty): Set Vwindow_system.
11953 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
11954 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
11955
11956 * xfns.c (Fx_create_frame, x_create_tip_frame):
11957 * w32fns.c (Fx_create_frame, x_create_tip_frame):
11958 * macfns.c (Fx_create_frame):
11959 Don't set the obsolete `window-system' frame-param.
11960
11961 * frame.h (Qwindow_system): Remove.
11962 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
11963 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
11964
fdc90613 119652007-10-24 Richard Stallman <rms@gnu.org>
4521d1fc 11966
fdc90613
MB
11967 * frame.c (x_figure_window_size): For fullscreen case,
11968 set USPosition | PPosition without clobbering rest of window_prompting.
7c75be36 11969
fdc90613 11970 * keyboard.c (Fcurrent_idle_time): Doc fix.
4521d1fc 11971
fdc90613 11972 * print.c (Fwith_output_to_temp_buffer): Doc fix.
4521d1fc 11973
7357cb04
SM
119742007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
11975
98228e72
SM
11976 * process.c (unwind_request_sigio): Only define if __ultrix__.
11977
1baf6db9
SM
11978 * callproc.c (child_setup): Remove spurious *.
11979
4d0ac3d7
SM
11980 * lisp.h (Fget_text_property): Declare.
11981 (have_menus_p): Declare it here rather than in sys-dep header files.
11982 * macterm.h (have_menus_p):
11983 * msdos.h (have_menus_p):
11984 * xterm.h (have_menus_p): Remove.
11985
7357cb04
SM
11986 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
11987 (Fmake_variable_frame_local): Just check the variable's const-ness
11988 rather than checking nil or t.
11989
866e6dd6
JR
119902007-10-22 Jason Rumney <jasonr@gnu.org>
11991
b00afeae
JR
11992 * w32fns.c: Include math.h.
11993 (w32_abort): Declaration moved to nt/config.nt.
0f7f11b7 11994
c8f7c76b
JR
11995 * s/ms-w32.h (HAVE_STDLIB_H): Define.
11996 (abort): Redefinition moved to nt/config.nt.
11997
866e6dd6
JR
11998 * m/windowsnt.h: Remove.
11999
e79beb56
JB
120002007-10-22 Juanma Barranquero <lekktu@gmail.com>
12001
12002 * emacs.c (Fdump_emacs): Fix typo in message.
12003 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
12004 <installation-directory>: Reflow docstring.
12005
fb30dfd2
JL
120062007-10-22 Juri Linkov <juri@jurta.org>
12007
12008 * minibuf.c: Allow minibuffer default to be a list of default values.
12009 With empty input use the first element of this list as returned default.
e79beb56 12010 (string_to_object)
0f7f11b7 12011 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
fb30dfd2
JL
12012 (read_minibuf): If defalt is cons, set histstring to its car.
12013 (Fread_string): If default_value is cons, set val to its car.
12014 (Fread_buffer): If def is cons, use its car.
12015 (Fcompleting_read): If defalt is cons, set val to its car.
12016
1f163f28
MA
120172007-10-21 Michael Albinus <michael.albinus@gmx.de>
12018
12019 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
12020
db3534c3
JB
120212007-10-20 Juanma Barranquero <lekktu@gmail.com>
12022
12023 * doc.c (Fdocumentation): Check for advice in all cases.
12024
c6f18a07
CY
120252007-10-19 Chong Yidong <cyd@stupidchicken.com>
12026
12027 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
12028
2a1534d3
RS
120292007-10-19 Richard Stallman <rms@gnu.org>
12030
12031 * doc.c (Fdocumentation): Check for and handle an advised function.
12032
7b82c3b6
JB
120332007-10-19 Juanma Barranquero <lekktu@gmail.com>
12034
12035 * process.c (Fset_process_filter): Doc fix.
12036
3278f20e
SM
120372007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
12038
12039 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
12040 which caused key-translation-map to applied repeatedly (thus breaking
12041 double-mode).
12042
99784d63
SM
120432007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
12044
12045 * xselect.c (x_own_selection, x_handle_selection_clear)
12046 (x_clear_frame_selections):
12047 * w32menu.c (list_of_panes, list_of_items):
12048 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
12049 * textprop.c (validate_plist, interval_has_all_properties)
12050 (interval_has_some_properties, interval_has_some_properties_list)
12051 (add_properties, text_property_list):
12052 * process.c (Fget_buffer_process, list_processes_1, status_notify):
12053 * minibuf.c (Fassoc_string):
12054 * macselect.c (x_own_selection, x_clear_frame_selections)
12055 (Fx_disown_selection_internal):
12056 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
12057 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
12058
44bb704d
CY
120592007-10-17 Chong Yidong <cyd@stupidchicken.com>
12060
12061 * process.c: Link to libs for calling res_init() if available.
12062 (Fmake_network_process): Call res_init() before getaddrinfo or
12063 gethostbyname, if possible.
12064
d314756e
SM
120652007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
12066
2504022a
SM
12067 * lread.c (read1): Set pvectype for char_tables.
12068
19fa82b9
SM
12069 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
12070 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
12071 Add type checks.
12072 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
12073
d314756e
SM
12074 * alloc.c (free_misc): Use XMISCTYPE.
12075 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
12076
94b9aaa2
GM
120772007-10-17 Glenn Morris <rgm@gnu.org>
12078
12079 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
12080 (syms_of_minibuf): Add Qcompletion_ignore_case.
12081 * dired.c (Qcompletion_ignore_case): Change to external.
12082 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
12083 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
12084 (Fread_file_name): Use it rather than intern'ing.
12085
12086 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
12087 (Fread_coding_system): Ignore case of user input.
12088
da6658e8
YM
120892007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12090
12091 * xdisp.c (handle_display_prop): Ignore display specs after
12092 replacing one when string text is being replaced.
12093 (handle_single_display_spec): Pretend as if characters with display
12094 property haven't been consumed only when buffer text is being replaced.
12095
11fb4bdb
SM
120962007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
12097
9beb8baa
SM
12098 * xfns.c (Fx_create_frame, Fx_display_list):
12099 * window.c (window_fixed_size_p, enlarge_window)
12100 (shrink_window_lowest_first):
12101 * macterm.c (init_font_name_table):
12102 * macfns.c (Fx_create_frame, Fx_display_list):
12103 * lread.c (close_load_descs):
12104 * keyboard.c (read_char_x_menu_prompt):
12105 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
12106 * coding.c (code_convert_region_unwind): Test the type of an object
12107 rather than just !NILP before extracting data from it.
12108
d3f41ff5
SM
12109 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
12110
67ee9f6e
SM
12111 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
12112 (XMISCANY): New macro.
12113 (XMISCTYPE): Use it.
12114 (struct Lisp_Misc_Any): New type.
12115 (union Lisp_Misc): Use it.
12116 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
12117 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
12118 (find_symbol_value, set_internal, default_value, Fset_default)
12119 (Fmake_variable_buffer_local, Fmake_local_variable)
12120 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
12121 (Flocal_variable_if_set_p, Fvariable_binding_locus):
12122 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
12123 * alloc.c (allocate_buffer): Set the size and tag.
12124 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
12125 Use XMISCANY.
12126 (die): Follow the GNU convention for error messages.
12127 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
12128 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
12129 tag any more.
12130 (set_buffer_internal_1):
12131 * frame.c (store_frame_param):
12132 * eval.c (specbind):
12133 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
12134
11fb4bdb
SM
12135 * doc.c (Fsnarf_documentation): Simplify.
12136
decb374a
JB
121372007-10-14 Juanma Barranquero <lekktu@gmail.com>
12138
12139 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
12140 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
12141
b5a40ee7
SM
121422007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
12143
12144 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
12145
35277b03
JB
121462007-10-14 Juanma Barranquero <lekktu@gmail.com>
12147
12148 * eval.c (do_autoload): Don't save autoloads.
12149
12150 * data.c (Ffset): Save autoload of the function being set.
12151
35fdaa62
GM
121522007-10-07 John Paul Wallington <jpw@pobox.com>
12153
12154 * xfns.c (x_create_tip_frame): Set the `display-type' frame
12155 parameter before setting up faces.
12156
1ea40aa2
EZ
121572007-10-13 Eli Zaretskii <eliz@gnu.org>
12158
35fdaa62 12159 * ccl.c (Fregister_code_conversion_map):
96a5affb
EZ
12160 * keyboard.c (append_tool_bar_item): Reformat last change.
12161
1ea40aa2
EZ
12162 * lisp.h (eabs): Rename from `abs'. All callers changed.
12163
35277b03 121642007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
71d00ce4
EZ
12165
12166 * buffer.c (add_overlay_mod_hooklist):
12167 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
12168 * fontset.c (make_fontset):
12169 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
12170 (append_tool_bar_item):
12171 * macmenu.c (grow_menu_items):
35fdaa62 12172 * w32menu.c (grow_menu_items):
71d00ce4 12173 * xmenu.c (grow_menu_items): Use larger_vector.
35fdaa62 12174
bc82f120
EZ
121752007-10-13 Eli Zaretskii <eliz@gnu.org>
12176
12177 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
12178 selected frame'' on MSDOS).
12179
d57d5a78
MR
121802007-10-12 Martin Rudalics <rudalics@gmx.at>
12181
12182 * frame.c (Qexplicit_name): New variable.
12183 (x_report_frame_params): Report it in parameter alist.
12184 (syms_of_frame): Intern and staticpro it.
12185
35277b03 121862007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
04710ebd
JR
12187
12188 * macfns.c (x_create_tip_frame): Set terminal for frame.
12189
c7a4b95b
SM
121902007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
12191
26f9c7b7
SM
12192 * frame.c (Qenvironment): Remove.
12193 (syms_of_frame) <Qenvironment>: Don't initialize.
12194 (Fdelete_frame): Don't treat the `environment' param specially.
12195 * frame.h (Qenvironment): Don't declare.
12196 * callproc.c (set_initial_environment): Don't set unused frame param.
12197
c7a4b95b
SM
12198 * frame.c (Fframe_with_environment): Remove.
12199 (syms_of_frame) <Sframe_with_environment>: Don't declare.
26f9c7b7 12200
c7a4b95b
SM
12201 * lisp.h (Fframe_with_environment): Don't declare.
12202
c86f7377
JB
122032007-10-10 Juanma Barranquero <lekktu@gmail.com>
12204
12205 * indent.c (indent_tabs_mode, last_known_column)
12206 (last_known_column_modified): Make static.
12207 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
12208
d1b3a122
KY
122092007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
12210
12211 * puresize.h (BASE_PURESIZE): Increase to 1170000.
12212
d57d5a78
MR
122132007-10-09 Jason Rumney <jasonr@gnu.org>
12214
12215 * w32term.c (x_set_window_size): Disable code that attempts to tell
12216 Lisp code about a size change before it actually happens.
12217
81d3d428 122182007-10-09 Richard Stallman <rms@gnu.org>
91175673 12219
81d3d428
MB
12220 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
12221 return HANDLED_RETURN.
91175673 12222
1af74d06 122232007-10-08 Martin Rudalics <rudalics@gmx.at>
4f1b1854 12224
1af74d06
MB
12225 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
12226 when there's an unread command event.
e0fead5d 12227
c7a4b95b 12228 * frame.c (focus_follows_mouse): Move here from frame.el to allow
1af74d06
MB
12229 window autoselection act appropriately when leaving selected frame.
12230 (syms_of_frame): Initialize focus_follows_mouse.
12231 * frame.h (focus_follows_mouse): Extern it.
12232 * macterm.c (XTread_socket): When focus_follows_mouse is nil
c7a4b95b 12233 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
1af74d06
MB
12234 * msdos.c (dos_rawgetc): Likewise.
12235 * w32term.c (w32_read_socket): Likewise.
12236 * xterm.c (handle_one_xevent): Likewise.
12237 * xdisp.c (syms_of_xdisp): In doc-string of
12238 mouse-autoselect-window mention focus-follows-mouse.
e0fead5d 12239
1af74d06 122402007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
e0fead5d 12241
1af74d06
MB
12242 * macterm.c (mac_load_query_font): Fix missing return value.
12243 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
12244 Add BLOCK_INPUT.
c186cdb3 12245
1af74d06 122462007-10-08 Richard Stallman <rms@gnu.org>
c186cdb3 12247
1af74d06
MB
12248 * xdisp.c (get_window_cursor_type): Implement documented behavior
12249 for cursor-in-non-selected-windows = t.
c186cdb3 12250
1af74d06 122512007-10-08 Jason Rumney <jasonr@gnu.org>
c186cdb3 12252
1af74d06 12253 * w32.c (w32_get_resource): Always close registry keys.
58cfce98 12254
1af74d06 122552007-10-08 Jason Rumney <jasonr@gnu.org>
58cfce98 12256
1af74d06 12257 * makefile.w32-in (LIBS): Add COMCTL32.
62854fe2 12258
1af74d06 12259 * w32fns.c (globals_of_w32fns): Init common controls.
62854fe2 12260
1af74d06 122612007-10-08 Richard Stallman <rms@gnu.org>
a3c83618 12262
c7a4b95b 12263 * image.c (our_memory_buffer): Rename from omfib_buffer.
656f46bb 12264
1af74d06 122652007-10-08 Richard Stallman <rms@gnu.org>
656f46bb 12266
1af74d06 12267 * buffer.c (Foverlays_at): Doc fix.
036e218d 12268
1af74d06 122692007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
036e218d 12270
1af74d06 12271 * fns.c (Fplist_put): Preserve uneven tail data.
7ddb2c16 12272
1af74d06 122732007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
7ddb2c16 12274
1af74d06 12275 * termhooks.h (enum event_kind): Remove trailing comma.
ace9b298 12276
1af74d06 12277 * frame.h (enum): Remove trailing comma.
90647b07 12278
8993ad2e 122792007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
90647b07 12280
1af74d06 12281 * w32proc.c (delete_child): Don't terminate threads of zombies.
ace9b298 12282
1af74d06 122832007-10-08 Martin Rudalics <rudalics@gmx.at>
ace9b298 12284
1af74d06 12285 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
ace9b298 12286
1af74d06
MB
12287 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
12288 last-repeatable-command.
12289 (init_kboard): Initialize Vlast_repeatable_command.
12290 (command_loop_1): Set it to real_this_command unless that was
12291 bound to an input event.
12292 (mark_kboards): Mark it.
9fbc32aa 12293
1af74d06 122942007-10-08 Richard Stallman <rms@gnu.org>
036e218d 12295
1af74d06 12296 * eval.c (condition-case): Doc fix.
9fbc32aa 12297
1af74d06 122982007-10-08 Masatake YAMATO <jet@gyve.org>
9fbc32aa 12299
1af74d06
MB
12300 * xfaces.c (tty_supports_face_attributes_p): Fix code
12301 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
12302 was copied and not edited.
9fbc32aa 12303
beb9f745
SM
123042007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
12305
c86f7377 12306 Add new `input-decode-map' keymap and use it for terminal
4f4a84ec
SM
12307 escape sequences.
12308 * keyboard.h (struct kboard): Add Vinput_decode_map.
12309 Remove Vlocal_key_translation_map.
12310 * keyboard.c (read_key_sequence): Add support for input-decode-map.
12311 (init_kboard): Init input-decode-map.
12312 Replace local-key-translation-map back with key-translation-map.
12313 (syms_of_keyboard): Declare input-decode-map.
12314 Remove local-key-translation-map. Update docstrings.
12315 (mark_kboards): Mark Vinput_decode_map.
12316 Don't mark Vlocal_key_translation_map.
12317 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
12318 Replace local-key-translation-map back with key-translation-map.
12319 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
12320 Bind in input-decode-map rather than function-key-map.
12321
beb9f745
SM
12322 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
12323 This was made redundant by the previous introduction of XSETPVECTYPE.
12324
65342ae3
RS
123252007-10-09 Richard Stallman <rms@gnu.org>
12326
beb9f745 12327 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
65342ae3
RS
12328
123292007-09-29 Richard Stallman <rms@gnu.org>
12330
12331 * eval.c (internal_condition_case_2, internal_condition_case_1)
12332 (internal_condition_case): Reenable abort if x_catching_errors ()
12333 to see if that really happens and why.
12334
6cff77fd
AS
123352007-10-06 Andreas Schwab <schwab@suse.de>
12336
12337 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
12338
bbe6f2aa
JB
123392007-10-04 Juanma Barranquero <lekktu@gmail.com>
12340
12341 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
12342
a390930c
SM
123432007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
12344
12345 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
12346
d6aa1876
SM
123472007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
12348
d0fdb6da
SM
12349 * window.h (struct window):
12350 * window.c (struct save_window_data, struct saved_window):
12351 * termhooks.h (struct terminal):
12352 * process.h (struct Lisp_Process):
12353 * frame.h (struct frame):
12354 * buffer.h (struct buffer):
12355 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
12356 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
12357 The size field of (pseudo)vectors is now unsigned.
12358 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
12359
878f97ff
SM
12360 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
12361 Turn `count' into an integer.
d0fdb6da 12362
878f97ff
SM
12363 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
12364 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
12365 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
12366 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
12367 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
12368
d2029e5b
SM
12369 * alloc.c (allocate_pseudovector): New fun.
12370 (ALLOCATE_PSEUDOVECTOR): New macro.
12371 (allocate_window, allocate_terminal, allocate_frame)
12372 (allocate_process): Use it.
12373 (mark_vectorlike): New function.
12374 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
12375 (mark_terminals): Use it.
12376 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
12377 (Fmake_byte_code): Use XSETPVECTYPE.
12378
12379 * frame.c (Fframe_parameters): Minor simplification.
12380
12381 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
12382
12383 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
12384
12385 * buffer.c (Fget_buffer_create, init_buffer_once):
12386 * lread.c (defsubr):
12387 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
12388
12389 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
12390 defined differently in the m/*.h files.
12391 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
12392 (XSETPVECTYPE): New macro.
12393 (XSETPSEUDOVECTOR): Use it.
12394
d6aa1876
SM
12395 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
12396 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
d2029e5b 12397
d6aa1876
SM
12398 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
12399 * lread.c (defvar_per_buffer):
12400 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
12401
12402 * window.c (candidate_window_p): Only consider as visible frames that
12403 are on the same terminal.
12404
12405 * m/ibms390x.h (MARKBIT): Remove unused macro.
12406
88852d45
JB
124072007-10-01 Juanma Barranquero <lekktu@gmail.com>
12408
12409 * lread.c (Fload): Fix typo in docstring.
12410
880820fe 124112007-10-01 Michaël Cadilhac <michael@cadilhac.name>
2742fe30
MC
12412
12413 * floatfns.c (Fexpt): Manually check for overflows, so that a power
12414 of a non-zero value can't yield zero.
12415
ed0c79c6
SM
124162007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
12417
b870aa61
SM
12418 * term.c (term_clear_mouse_face, term_mouse_highlight)
12419 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
12420
4c37a414
SM
12421 * print.c (safe_debug_print): Use XHASH.
12422
b9466edb
SM
12423 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
12424 Lisp elements such as tags.
12425 (XHASH): New macro.
12426 (EQ): Use it.
12427 (SREF, SSET, STRING_COPYIN): Use SDATA.
12428 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
12429
9c545a55
SM
12430 * alloc.c (mark_terminal): Remove left-over declaration.
12431 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
12432 (allocate_vectorlike): Remove type argument. Adjust callers.
12433 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
12434 Only handle the one remaining MEM_TYPE_VECTORLIKE.
12435
dafc79fa
SM
12436 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
12437 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
12438 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
12439 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
12440 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
12441 Use them.
12442
ed0c79c6
SM
12443 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
12444 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
12445 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
12446
3c81afd4
DN
124472007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
12448
12449 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
12450 loaded by default.
12451
6178ce5e
SM
124522007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
12453
4ce5ab77
SM
12454 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
12455 on this tty.
12456 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
12457
6178ce5e
SM
12458 * term.c (mouse_face_window): Rename from Qmouse_face_window.
12459 Update all users.
12460 (handle_one_term_event): Use Gpm_DrawPointer.
12461 (Fgpm_mouse_start): Rename from Fterm_open_connection.
12462 Signal errors instead of returning nil. Always return nil.
12463 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
12464 Make it a noop if gpm-mouse was not activated.
12465 (syms_of_term): Update names.
12466
bdf5f8ef
SM
124672007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
12468
75a8734b
SM
12469 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
12470 (init_sys_modes): Check that gpm_tty is the current tty.
12471
13559ee0
SM
12472 * alloc.c (allocate_terminal): Set the vector size to only count the
12473 lisp fields. Initialize those to nil.
12474 (mark_object): Don't treat terminals specially.
12475 (mark_terminal): Remove.
12476 (mark_terminals): Use mark_object instead.
12477
ff16b875
SM
12478 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
12479 the GC to the beginning.
12480
83155776
SM
12481 * indent.h:
12482 * indent.c: Use EMACS_INT for ints coming from Elisp data.
12483
bdf5f8ef
SM
12484 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
12485
ec8705b6
JR
124862007-09-25 Jason Rumney <jasonr@gnu.org>
12487
12488 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
12489
12490 * w32console.c (create_w32cons_output): Remove.
12491
12492 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
12493
12494 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
12495 (reset_sys_modes): Use reset_terminal_modes_hook.
12496
7351b242
SM
124972007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
12498
12499 * eval.c (do_autoload): Don't output any message.
12500
16706228
JL
125012007-09-24 Juri Linkov <juri@jurta.org>
12502
12503 * emacs.c (standard_args): Change priority of "--no-splash"
12504 from 40 to 3. Add "--no-desktop" with the same priority.
12505
3ae2e3a3
RS
125062007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
12507
12508 * alloc.c (gc_sweep): Check cons cell mark bits word by word
12509 and optimize the case where they are all 1.
12510
7a58fb43
GM
125112007-09-23 Johannes Weiner <hannes@saeurebad.de>
12512
3ae2e3a3
RS
12513 * lisp.h (abs): Define if not defined.
12514 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
12515 Don't define `abs', since it's defined in lisp.h.
7a58fb43 12516
78048085
EZ
125172007-09-22 Eli Zaretskii <eliz@gnu.org>
12518
c7a4b95b 12519 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
78048085
EZ
12520 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
12521 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
12522 (init_tty): Use DEV_TTY instead of "/dev/tty".
12523 [WINDOWSNT]: No need to protect from NAME arg being null.
12524
23d4cba5
DN
125252007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
12526
12527 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
12528 up the tty state.
12529
71f44e7a
SM
125302007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
12531
12532 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
12533 (gpm_tty): Change its type.
12534 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
12535 (gpm_tty): Change its type and initialize it.
12536 (Fterm_open_connection): Check the frame is indeed a tty.
12537 Use the new gpm_tty.
12538 (Fterm_close_connection): Use the new gpm_tty.
12539 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
12540 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
12541
def7fa34
JB
125422007-09-21 Juanma Barranquero <lekktu@gmail.com>
12543
12544 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
12545 underline_color, to draw strike-through.
12546
d2bb6598
SM
125472007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
12548
273f164c
SM
12549 * lisp.h (allocate_terminal): Declare.
12550
ca2d5566
SM
12551 * window.c (candidate_window_p): Consider frames that are being placed
12552 by the user as somewhere between visible and iconified.
12553 (window_loop): Prefer windows on the current frame.
12554 (Fselect_window): Move the use of select-frame to the beginning so we
12555 can just delegate all the work (it'll call us back anyway).
12556
6168122d
SM
12557 * frame.c (Qdisplay_environment_variable):
12558 * frame.h (Qdisplay_environment_variable): Delete.
12559
c51842ec
SM
12560 * .gdbinit (xbacktrace): Print the arg's address rather than the value
12561 of the first arg, since that value may be a union.
12562
d2bb6598
SM
12563 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
12564 parameter rather than Qdisplay_environment_variable. If all else
12565 fails, look for DISPLAY in initial-environment.
12566
6f022c19
GM
125672007-09-21 Glenn Morris <rgm@gnu.org>
12568
12569 * Makefile.in (emacstool): Remove target.
f466320b 12570 (lisp, shortlisp): Remove termdev.elc.
6f022c19 12571
ea1bf8c7
GM
125722007-09-21 Markus Triska <markus.triska@gmx.at>
12573
d2bb6598 12574 * xterm.c (x_delete_display): Compile session management conditionally.
ea1bf8c7 12575
d30a25b3
SM
125762007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
12577
db699fc6
SM
12578 * callproc.c (getenv_internal_1): New function.
12579 (getenv_internal): Use it.
12580 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
12581
d2bb6598 12582 * terminal.c (get_terminal): Don't accept ints to represent terminals.
c5911e55
SM
12583 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
12584 (Fset_terminal_parameter): Work with dead terminals as well.
12585 (Fmodify_terminal_parameters): Remove.
12586
d30a25b3
SM
12587 * terminal.c (get_terminal): Handle terminals.
12588 Make sure the terminal returned is live.
12589 (create_terminal): Use allocate_terminal.
12590 (mark_terminals): Move to alloc.c.
12591 (delete_terminal): Use terminal->name as liveness status.
12592 NULL out fields after freeing their contents.
12593 Don't deallocate the object.
12594 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
12595 rather than an int.
12596 (Fterminal_live_p): Accept non-integer arguments.
12597 (Fterminal_list): Return terminal objects rather than an ints.
12598
12599 * alloc.c (enum mem_type): New member for `terminal' objects.
12600 (allocate_terminal): New function.
d2bb6598
SM
12601 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
12602 Handle terminals.
d30a25b3
SM
12603 (mark_terminal): New fun.
12604 (mark_terminals): Move from terminal.c.
12605
12606 * term.c (get_tty_terminal): Don't treat output_initial specially.
12607 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
12608 (delete_tty): Use terminal->name as liveness status.
12609
12610 * termhooks.h (struct terminal): Make it into a pseudovector.
12611 Remove `deleted' replaced by checking `name's nullness.
12612
12613 * print.c (print_object): Handle terminals.
12614
12615 * lisp.h (enum pvec_type): New `terminal' pseudovector.
12616 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
12617
12618 * frame.c (make_terminal_frame):
12619 * keyboard.c (tty_read_avail_input):
12620 * w32term.c (x_delete_terminal):
12621 * xfns.c (Fx_create_frame, x_create_tip_frame):
12622 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
12623
eba25e7c
GM
126242007-09-20 Glenn Morris <rgm@gnu.org>
12625
12626 * process.c (Fmake_network_process): Doc fix.
12627
2a29c3c1
JR
126282007-09-19 Jason Rumney <jasonr@gnu.org>
12629
12630 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
12631
880820fe 126322007-09-19 Michaël Cadilhac <michael@cadilhac.name>
ba1cbad7
MC
12633
12634 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
12635 Fix a C warning regarding variable constness.
12636
12637 * xterm.c (handle_one_xevent): Fix a C warning.
12638
334a1195
JR
126392007-09-18 Jason Rumney <jasonr@gnu.org>
12640
12641 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
12642
880820fe 126432007-09-17 Jan Djärv <jan.h.d@swipnet.se>
879ffad9
JD
12644
12645 * gtkutil.c (gdpy_def): New variable.
12646 (xg_initialize): Initialize gdpy_def.
12647 (xg_display_close): If no other display exists, set gdpy_def to a
12648 new connection.
12649
880820fe 126502007-09-16 Jan Djärv <jan.h.d@swipnet.se>
45c94881
JD
12651
12652 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
12653 when we have no file name for the icon.
12654 (xg_tool_bar_expose_callback): Remove.
12655 (xg_create_tool_bar): Don't connect expose signal to
12656 xg_tool_bar_expose_callback.
12657 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
12658
4d580af2
AS
126592007-09-16 Andreas Schwab <schwab@suse.de>
12660
12661 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
12662 values instead of zapping them.
12663
aca946f3
GM
126642007-09-14 Glenn Morris <rgm@gnu.org>
12665
12666 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
12667 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
12668 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
12669 scope and rename to omfib_buffer for clarity.
12670 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
12671
25c460e5
KH
126722007-09-14 Kenichi Handa <handa@m17n.org>
12673
12674 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
12675
09b69f01
JR
126762007-09-13 Jason Rumney <jasonr@gnu.org>
12677
12678 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
12679
12680 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
12681
12682 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
12683 (mac_term_init): Call here instead, passing rif.
12684
442218db
GM
126852007-09-13 Glenn Morris <rgm@gnu.org>
12686
12687 * s/hpux.h: No longer define `static' as nothing.
12688
880820fe 126892007-09-13 Johan Bockgård <bojohan@gnu.org>
4795c40f
GM
12690
12691 * callint.c (Fcall_interactively): Remove unused var `fun'.
12692
1971a872
RF
126932007-09-12 Romain Francoise <romain@orebokech.com>
12694
12695 * window.c (prefer_window_split_horizontally, display_buffer):
12696 Revert 2007-09-08 change.
12697
2d33f506
GM
126982007-09-12 Glenn Morris <rgm@gnu.org>
12699
585474ae 12700 * alloca.c: Remove file.
ca7af97a
GM
12701 * Makefile.in (alloca): Do not undef.
12702 (allocaobj, alloca.o): Remove.
12703 (otherobj): Remove allocaobj.
12704 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
12705 * regex.c (C_ALLOCA): Remove all references and code that was only
12706 used when this was defined.
12707 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
12708 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
99dfbaf1
GM
12709 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
12710
2d33f506 12711 * Makefile.in (SOURCES, unlock, relock): Delete.
ca7af97a
GM
12712
12713 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
12714 (menu_grab_callback): All uses changed.
12715
12716 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
12717 (x_reply_selection_request): All uses changed.
2d33f506 12718
18a4a65e
SM
127192007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
12720
12721 * lread.c (load_warn_old_style_backquotes): Change message to look
12722 better when it appears in the middle of byte-compiler messages.
12723
47cc8819
DN
127242007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
12725
b7ea0894
DN
12726 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
12727
47cc8819
DN
12728 * xterm.c (x_create_terminal): Add comment.
12729
12730 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
12731
5632bd0f
RS
127322007-09-10 Richard Stallman <rms@gnu.org>
12733
12734 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
12735
880820fe 127362007-09-10 Michaël Cadilhac <michael@cadilhac.name>
ccb5c14f 12737
4bca9161
MC
12738 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
12739 (DEFUN): Document `intspec', use it instead of `prompt'.
12740
04724b69
MC
12741 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
12742
8a6d230a
MC
12743 * data.c (Finteractive_form): If the interactive specification starts
12744 with a `(', use it as a Lisp form.
12745
09fbdf6c
MC
12746 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
12747 name and file modes.
12748
ccb5c14f
MC
12749 * callint.c (Fcall_interactively): Comment fixes.
12750
023accd6
SM
127512007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
12752
12753 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
12754 and compiled functions.
12755
f26b9544
EZ
127562007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
12757
12758 * window.c (prefer_window_split_horizontally): New variable.
12759 (display_buffer): Consider splitting window horizontally depending
12760 on prefer_window_split_horizontally.
12761
4d395425
EZ
127622007-09-08 Eli Zaretskii <eliz@gnu.org>
12763
97ddc760 12764 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
4d395425 12765
08c1d235
SM
127662007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
12767
179cef48
SM
12768 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
12769
08c1d235
SM
12770 * frame.c (x_set_frame_parameters): Check number is positive before
12771 using XFASTINT.
12772
12773 * window.c (freeze_window_start): Don't presume selected_window holds
12774 a window object.
92f94a12 12775 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
08c1d235 12776
97ddc760 127772007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
de52dcbb
DN
12778
12779 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
12780
90ab5c62
SM
127812007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
12782
12783 * window.c (Vsplit_window_preferred_function): New var.
12784 (Fdisplay_buffer): Use it.
12785 (syms_of_window): Export, and initialize it.
12786
1ab2cd43
TTN
127872007-09-06 Pixel <pixel@mandriva.com> (tiny change)
12788
12789 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
12790
0b0515bc
GM
127912007-09-06 Glenn Morris <rgm@gnu.org>
12792
57fd5c55 12793 * gtkutil.c (menu_grab_callback) <cnt>:
0b0515bc
GM
12794 * xselect.c (x_reply_selection_request) <cnt>: Move static
12795 variable to file scope.
12796
98594580
SM
127972007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
12798
12799 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
12800 consistent values of selected_frame and selected_window.
12801
0f4c7aef
JR
128022007-09-04 Jason Rumney <jasonr@gnu.org>
12803
12804 * w32console.c (initialize_w32_display): Zero unused hooks.
12805
e4019195
DN
128062007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
12807
12808 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
12809 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
12810
bce179b5
JR
128112007-09-04 Jason Rumney <jasonr@gnu.org>
12812
a0236551
JR
12813 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
12814 in w32console.c. Set up input. Remove XXX comments that have been
12815 confirmed as correct.
12816
a4926668
JR
12817 * s/ms-w32.h (MULTI_KBOARD): Define.
12818
953bf0dc
JR
12819 * w32console.c (one_and_only_w32cons): Remove.
12820 (initialize_w32_display): Take terminal argument.
12821
12822 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
12823 initialize_w32_display.
12824 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
12825
bce179b5
JR
12826 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
12827
12828 * keyboard.c (discard_mouse_events): Discard it.
12829 (make_lispy_event): Translate it to a lisp event.
12830 (lispy_wheel_names): Add wheel-left and right events.
12831 (syms_of_keyboard): Enlarge wheel_syms.
12832
12833 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
12834 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
12835
12836 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
12837
12838 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
12839 from WM_MOUSEHWHEEL.
12840 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
12841
12842 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
12843 terminal.
12844
12845 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
12846 keyboard for the terminal.
12847
92cd6a7c
DN
128482007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
12849
12850 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
12851 (Vresume_tty_hook): Rename from Vresume_tty_functions.
12852 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
12853 and resume-tty-function to resume-tty-hook.
12854 (Fsuspend_tty, Fresume_tty): Use new names.
12855
880820fe 128562007-09-02 Jan Djärv <jan.h.d@swipnet.se>
2154c964
JD
12857
12858 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
12859 if it starts with "n:".
12860
880820fe 128612007-08-31 Jan Djärv <jan.h.d@swipnet.se>
b42ff099
JD
12862
12863 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
12864
6b8e474c
SM
128652007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
12866
92d9c1d4
SM
12867 * frame.h:
12868 * frame.c (Qterm_environment_variable): Remove.
12869 (syms_of_frame): Don't init and staticpro it.
12870
92d9c1d4
SM
12871 * callproc.c (getenv_internal): Remove special case for $TERM.
12872
6b8e474c
SM
12873 * callproc.c (Vinitial_environment): New variable.
12874 (set_initial_environment): Initialize it.
12875 (syms_of_callproc): Declare it.
12876 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
12877 TERM under which a process runs is never related to the TERM in which
12878 Emacs is running.
12879
0f1444e1
DN
128802007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
12881
12882 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
12883 * s/darwin.h: ... do it here.
12884
b8866860
SM
128852007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
12886
12887 * lisp.h (set_initial_environment): Rename from set_global_environment.
12888
12889 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
12890 removed by mistake on the multi-tty branch.
12891
12892 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
12893 (Fmodify_frame_parameters): Return a value.
12894
12895 * image.c (png_load): Comment-out var only used in commented-out code.
12896
12897 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
12898 before passing it to mark_object.
12899
12900 * xfaces.c (internal_resolve_face_name): Return a value.
12901 (internal_resolve_face_name, resolve_face_name_error): Comment out.
12902
12903 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
12904 (x_icon): Comment-out var only used in commented-out code.
12905
0a42be6d
RF
129062007-08-29 Romain Francoise <romain@orebokech.com>
12907
12908 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
12909 QUIT hasn't been provided.
12910
8d9cc0b7
MB
129112007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
12912
12913 * callproc.c (child_setup, getenv_internal): Use the
ce20b664 12914 display-environment-variable and term-environment-variable frame params.
8d9cc0b7
MB
12915 (set_initial_environment): Initialise Vprocess_environment.
12916
12917 * config.in: Disable multi-keyboard support on a mac.
12918
12919 * frame.c (Qterm_environment_variable)
12920 (Qdisplay_environment_variable): New variables.
12921 (syms_of_frame): Intern and staticpro them.
12922 (Fmake_terminal_frame): Disable output method test.
12923
12924 * frame.h: Declare them here.
12925
12926 * macfns.c (x_set_mouse_color): Get rif from the frame.
12927 (x_set_tool_bar_lines): Don't use updating_frame.
12928 (mac_window): Add 2 new parameters for consistency with other systems.
12929 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
12930 frame parameters following what is done in X11 and w32. Don't use
12931 FRAME_MAC_DISPLAY_INFO.
12932 (Fx_open_connection, start_hourglass): Remove window-system check.
12933 (x_create_tip_frame): Get the keyboard from the terminal.
12934
12935 * macmenu.c: Reorder includes.
12936 (Fx_popup_menu): Use terminal specific mouse_position_hook.
12937
12938 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
12939 terminal parameter.
12940 (x_clear_frame): Add a frame parameter.
12941 (note_mouse_movement): Get rif from the frame.
12942 (mac_term_init): Initialize the terminal.
12943 (mac_initialize): Make static and move terminal initialization ...
12944 (mac_create_terminal): ... to this new function.
12945
12946 * macterm.h (struct mac_display_info): Add terminal.
7196c970 12947 (mac_initialize): Delete declaration.
8d9cc0b7 12948
381864b2 12949 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
8d9cc0b7
MB
12950
12951 * sysdep.c: Comment out text after #endif.
12952
12953 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
12954 is defined. Better initialize ttys in windows. Use terminal
12955 specific mouse_position_hook.
12956
12957 * termhooks.h (union display_info): Add mac_display_info.
12958
b8866860
SM
12959 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
12960 Set the default minibuffer frame, window_system and the rest of the
8d9cc0b7
MB
12961 frame parameters following what is done in X11.
12962
12963 * w32term.c (w32_initialize): Make static.
12964
12965 * xselect.c (x_handle_selection_clear): Only access
12966 terminal->kboard when MULTI_KBOARD is defined.
12967
12968 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
12969 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
12970
129712007-08-29 Jason Rumney <jasonr@gnu.org>
12972
12973 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
12974 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
12975
12976 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
12977 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
12978
12979 * keyboard.c (restore_kboard_configuration): Only define when
12980 MULTI_KBOARD defined.
12981
35277b03 12982 * makefile.w32-in: Update dependancies from Makefile.in.
8d9cc0b7
MB
12983 (OBJ1): Add terminal.$(O)
12984
b8866860
SM
12985 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
12986 Don't define function body.
8d9cc0b7
MB
12987 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
12988
12989 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
12990
12991 * w32.c (request_sigio, unrequest_sigio): Remove.
12992
12993 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
12994 (w32con_clear_frame, w32con_clear_end_of_line)
12995 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
12996 (w32con_delete_glyphs, w32con_set_terminal_window)
12997 (scroll_line, w32_sys_ring_bell): Add frame arg.
b8866860
SM
12998 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
12999 Add terminal arg.
8d9cc0b7
MB
13000 (PICK_FRAME): Remove.
13001 (w32con_write_glyphs): Use frame specific terminal coding.
13002 (one_and_only_w32cons): New global variable.
13003 (initialize_w32_display): Use it for storing hooks.
13004 (create_w32cons_output): New function.
13005
13006 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
13007 arg a frame.
13008
b8866860
SM
13009 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
13010 Set window_system.
8d9cc0b7
MB
13011 (x_set_tool_bar_lines): Don't use updating_frame.
13012 (Fx_create_frame): Set terminal and ref count.
13013 (Fx_open_connection): Remove window-system check.
13014
13015 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
13016
13017 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
13018 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
13019 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
13020 Add frame arg.
13021 (x_delete_terminal, w32_create_terminal): New functions.
13022 (w32_term_init): Create a terminal.
13023 (w32_initialize): Move terminal specific initialization to
13024 w32_create_terminal.
13025
b8866860 13026 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
8d9cc0b7
MB
13027 (w32_clear_rect, w32_clear_area): Use background from frame.
13028 (w32_display_info): Add terminal.
13029 (w32_sys_ring_bell, x_delete_display): Declare here.
13030
13031 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
13032
13033 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
13034
130352007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
13036
13037 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
13038 Fix get_named_tty calls for the controlling tty.
13039
130402007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
13041
13042 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
13043
130442007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
13045
13046 * term.c (tty_insert_glyphs): Add missing first parameter.
13047
880820fe 130482007-08-29 Károly Lőrentey <karoly@lorentey.hu>
8d9cc0b7 13049
b8866860
SM
13050 * buffer.c (Fbuffer_list, Fbury_buffer):
13051 Take frame->buried_buffer_list into account.
8d9cc0b7
MB
13052
13053 * cm.c (current_tty): New variable, for cmputc().
13054 (cmputc): Use it.
13055 (cmcheckmagic): Add tty parameter, look up terminal streams there.
13056 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
b8866860
SM
13057 (cmgoto): Add tty parameter. Pass it on to calccost().
13058 Use emacs_tputs() instead of tputs().
8d9cc0b7
MB
13059
13060 * cm.h (emacs_tputs): New macro to set current_tty, and then call
13061 tputs().
13062 (current_tty): New variable, for cmputc().
13063 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
13064
13065 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
13066 (internal_condition_case, internal_condition_case_1)
13067 (internal_condition_case_2): Don't abort when x_catching_errors.
13068
13069 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
13070 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
13071 prevent crashes caused by bogus longjmps in read_char.
13072
13073 * keymap.h (Fset_keymap_parent): Add EXFUN.
13074
13075 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
13076 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
13077 Remove redundant definition.
13078
b8866860
SM
13079 * macfns.c (x_set_mouse_color, x_make_gc):
13080 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7 13081
b8866860
SM
13082 * w32term.c (x_free_frame_resources):
13083 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
13084 (w32_initialize): Use the accessor macros for terminal characteristics.
13085
13086 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
13087 Use the accessor macros for terminal characteristics.
13088 * msdos.c (internal_terminal_init): Use the accessor macros for
13089 terminal characteristics.
b8866860
SM
13090 (ScreenVisualBell, internal_terminal_init):
13091 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
13092
13093 * termopts.h (no_redraw_on_reenter): Declare.
13094
13095 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
03f06e5c 13096 (mark_terminals, mark_ttys): Declare.
8d9cc0b7 13097 (Fgarbage_collect): Call them.
03f06e5c 13098 (mark_object): Mark buried_buffer_list.
8d9cc0b7
MB
13099
13100 * prefix-args.c: Include stdlib.h for exit.
13101
13102 * syssignal.h: Add comment.
13103
13104 * indent.c: Include stdio.h.
13105
13106 * window.h (Vinitial_window_system): Declare.
13107 (Vwindow_system): Delete declaration.
13108
13109 * fontset.c (Finternal_char_font): Use FRAME_RIF.
13110
13111 * image.c (lookup_image): Don't initialize `c' until the xasserts
13112 have been run.
13113
13114 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
13115 FRAME_FOREGROUND_PIXEL.
13116
13117 * print.c (print_preprocess): Don't lose print_depth levels while
13118 iterating.
13119
b8866860
SM
13120 * widget.c (update_from_various_frame_slots):
13121 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
13122
13123 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
13124 frames.
13125 (window_internal_height): Remove bogus make_number call.
b8866860 13126 (init_window_once): Call make_terminal_frame with two zero parameters.
8d9cc0b7
MB
13127
13128 * fileio.c (Fread_file_name): Update comment.
13129
b8866860
SM
13130 * callint.c (Fcall_interactively):
13131 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
8d9cc0b7
MB
13132 Make sure it is correctly unwound.
13133
13134 * xsmfns.c (x_session_close): New function.
13135
03f06e5c 13136 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
8d9cc0b7
MB
13137 Delete declarations.
13138
13139 * xterm.h: Remove declaration for x_fully_uncatch_errors.
13140 (x_output): Remove background_pixel and foreground_pixel fields.
03f06e5c 13141 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
c3f9fba8 13142 (x_delete_device, x_session_close): Declare.
8d9cc0b7
MB
13143
13144 * lread.c: Include setjmp.h. Update declaration of `read_char'.
13145 (read_filtered_event): Call `read_char' with a local
13146 `wrong_kboard_jmpbuf'.
13147
b8866860
SM
13148 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
13149 Don't call single_kboard_state. Use FRAME_RIF.
8d9cc0b7
MB
13150
13151 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
13152 systems.
13153
b8866860 13154 * lisp.h (set_process_environment): Rename to `set_global_environment'.
03f06e5c 13155 (Fframe_with_environment, Fset_input_meta_mode)
8d9cc0b7 13156 (Fset_quit_char): EXFUN.
03f06e5c 13157 (x_create_device, tty_output, terminal, tty_display_info): Declare.
8d9cc0b7
MB
13158 (init_sys_modes, reset_sys_modes): Update prototypes.
13159 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
13160
b8866860
SM
13161 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
13162 Vlocal_key_translation_map, and Vkeyboard_translate_table.
03f06e5c 13163 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
8d9cc0b7 13164 Delete declarations.
03f06e5c
JB
13165 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
13166 (temporarily_switch_to_single_kboard, tty_read_avail_input):
8d9cc0b7
MB
13167 New declarations.
13168
13169 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
13170 already does that during init_display(). Call syms_of_keymap
b8866860
SM
13171 before syms_of_keyboard. Call `syms_of_terminal'.
13172 Call set_initial_environment, not set_process_environment.
8d9cc0b7
MB
13173 (shut_down_emacs): Call reset_all_sys_modes() instead of
13174 reset_sys_modes().
13175
13176 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
03f06e5c
JB
13177 (internal_resolve_face_name, resolve_face_name_error): New functions.
13178 (resolve_face_name): Protect against loops and errors thrown by Fget.
13179 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
8d9cc0b7
MB
13180 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
13181
13182 * scroll.c: Replace CURTTY() with local variables throughout the
13183 file (where applicable).
13184 (calculate_scrolling, calculate_direct_scrolling)
13185 (scrolling_1, scroll_cost): Use the accessor macros for terminal
13186 characteristics.
13187
13188 * keymap.c (Vfunction_key_map): Remove.
b8866860 13189 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
8d9cc0b7
MB
13190 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
13191 (Vkey_translation_map): Remove.
13192 (syms_of_keymap): Remove DEFVAR for key-translation-map.
c3f9fba8 13193 (Fdescribe_buffer_bindings)
8d9cc0b7
MB
13194 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
13195 Update for terminal-local key-translation-map.
13196
13197 * Makefile.in (callproc.o): Update dependencies.
13198 (lisp, shortlisp): Add termdev.elc.
13199 (obj): Add terminal.o.
13200 (terminal.o): Add dependencies.
13201 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
13202 (data.o, fns.o): Add termhooks.h dependency.
13203 (SOME_MACHINE_LISP): Add dnd.elc.
13204 (minibuf.o): Fix typo.
13205 Update dependencies.
13206
13207 * data.c (do_symval_forwarding, store_symval_forwarding)
13208 (find_symbol_value): Use the selected frame's keyboard, not
13209 current_kboard.
13210
13211 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
13212 Vwindow_system.
13213
13214 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
13215 Fmenu_bar_open.
13216 (syms_of_xmenu): Update defsubr.
13217 (mouse_position_for_popup, Fx_popup_menu)
13218 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
13219 (set_frame_menubar, free_frame_menubar)
13220 (create_and_show_popup_menu, xmenu_show, )
13221 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
13222 an X frame.
13223
13224 * xselect.c (x_own_selection): Abort if not an X frame.
13225 (some_frame_on_display): Check if it is an X frame.
13226 (x_handle_selection_clear): Deal with MULTI_KBOARD.
13227
13228 * coding.c: Include frame.h and termhooks.h.
03f06e5c 13229 (terminal_coding, keyboard_coding): Delete.
c3f9fba8
JB
13230 (Fset_terminal_coding_system_internal)
13231 (Fset_keyboard_coding_system_internal)
13232 (Fkeyboard_coding_system)
03f06e5c
JB
13233 (Fterminal_coding_system): Add a terminal parameter.
13234 Get terminal_coding from the terminal.
8d9cc0b7
MB
13235 (init_coding_once): Don't call setup_coding_system here.
13236
13237 * dispextern.h (set_scroll_region, turn_off_insert)
13238 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
13239 (tty_clear_end_of_line, tty_setup_colors)
03f06e5c 13240 (delete_tty, updating_frame)
8d9cc0b7
MB
13241 (produce_special_glyphs, produce_glyphs, write_glyphs)
13242 (insert_glyphs): Remove.
13243 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
03f06e5c 13244 (tty_turn_off_highlight, get_tty_size): Add declaration.
b8866860 13245 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
8d9cc0b7
MB
13246
13247 * frame.h (enum output_method): Add output_initial.
13248 (struct x_output): Delete.
b8866860
SM
13249 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
13250 Access foreground_pixel and background_pixel directly from the frame.
8d9cc0b7
MB
13251 (tty_display): Delete.
13252 (struct frame): Add buried_buffer_list, foreground_pixel,
1f204af3 13253 background_pixel and terminal. Delete kboard.
8d9cc0b7
MB
13254 (union output_data): Add tty.
13255 (FRAME_KBOARD): Get the kboard from the terminal.
13256 (FRAME_INITIAL_P): New macro.
13257 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
13258 (Qterm_environment_variable, Qdisplay_environment_variable)
b8866860
SM
13259 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
13260 New declarations.
8d9cc0b7
MB
13261
13262 * termchar.h (tty_output, tty_display_info): New structures.
13263 (tty_list): Declare.
13264 (FRAME_TTY, CURTTY): New macros.
13265 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
13266 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
13267 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
13268 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
13269
13270 * callproc.c: Include frame.h and termhooks.h, for terminal
13271 parameters.
13272 (add_env): New function.
13273 (child_setup): Use it.
b8866860 13274 (child_setup, getenv_internal): Handle the new Vprocess_environment.
8d9cc0b7
MB
13275 (getenv_internal): Fix get_terminal_param call.
13276 (Fgetenv_internal, egetenv): Update doc.
13277 (syms_of_callproc): Initialize Vprocess_environment to nil.
03f06e5c 13278 Register and initialize them. Remove obsolete defvars. Update doc
8d9cc0b7
MB
13279 strings.
13280 (child_setup): Handle Vlocal_environment_variables.
b8866860
SM
13281 (getenv_internal): Add terminal parameter.
13282 Handle Vlocal_environment_variables.
8d9cc0b7
MB
13283 (Fgetenv_internal): Add terminal parameter.
13284 (child_setup, getenv_internal, Fgetenv_internal): Store the local
b8866860 13285 environment in a frame (not terminal) parameter. Update doc strings.
8d9cc0b7
MB
13286 (set_initial_environment): Rename from set_global_environment.
13287 Store Emacs environment in initial frame parameter.
13288
13289 * xdisp.c (redisplay_internal): Update references to
13290 `previous_terminal_frame'.
13291 (display_mode_line, Fformat_mode_line): Replace calls to
13292 `push_frame_kboard' with `push_kboard'.
13293 (get_glyph_string_clip_rects): Add extra parentheses and
13294 braces to prevent compiler warnings.
13295 (calc_pixel_width_or_height): Add xassert to check that the
13296 frame is alive. Don't call `lookup_image' on a termcap frame.
13297 (message2_nolog, message3_nolog, redisplay_internal)
13298 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
13299 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
13300 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
13301 (Fx_display_pixel_width, Fx_display_pixel_height)
13302 (Fx_display_planes, Fx_display_color_cells)
13303 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
13304 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
13305 (Fx_display_backing_store, Fx_display_visual_class)
13306 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
97ddc760 13307 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
8d9cc0b7
MB
13308
13309 * xfns.c (x_set_foreground_color x_set_background_color)
b8866860
SM
13310 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
13311 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
8d9cc0b7
MB
13312 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
13313 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
13314 terminal that is being deleted.
13315 (Fx_create_frame): Use `store_frame_param' to set `window-system'
b8866860 13316 frame parameter, and make sure it overrides any user-supplied setting.
8d9cc0b7
MB
13317 (Fx_close_connection, Fx_synchronize): Unify argument names with
13318 the rest of the DEFUNs.
13319
13320 * dispnew.c (Fsend_string_to_terminal): Update call to
13321 `get_tty_terminal'.
13322 (Fredraw_frame, Fsend_string_to_terminal)
2d33f506 13323 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
8d9cc0b7
MB
13324 FRAME_TERMCAP_P and FRAME_TTY.
13325 (window_change_signal): Don't believe width/height values that are
13326 impossibly small.
13327 (Vinitial_window_system): Rename from Vwindow_system.
13328 (termscript, Wcm, rif): Delete.
13329
13330 * termhooks.h (struct terminal): New struct containing the
13331 previously global text display hooks and new members NAME,
13332 DELETED and PARAM_ALIST.
13333 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
13334 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
13335 (FRAME_RIF): New macros.
13336 (get_terminal_param, get_device): New declarations.
13337 (termscript): Delete declaration.
13338
13339 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
13340 (XTflash, x_free_frame_resources, x_scroll_bar_create)
13341 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
13342 FRAME_FOREGROUND_PIXEL.
13343 (x_fully_uncatch_errors): Disable definition.
13344 (x_scroll_bar_expose): Fix reference to foreground pixel.
13345 (XTread_socket): Disable loop on all X displays.
13346 (x_delete_terminal): Don't set terminal->deleted and let
13347 delete_terminal delete the frames on the terminal.
13348 (x_delete_display): Doc update to reflect changes in
13349 delete_terminal.
13350 (x_display_info) <terminal>: Move member earlier in the struct.
8d9cc0b7
MB
13351 (deleting_tty): Remove old variable.
13352 (Fsuspend_tty): Call clear_tty_hooks.
13353 (Fresume_tty, init_tty): Call set_tty_hooks.
8d9cc0b7
MB
13354 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
13355 errors on X frames.
13356 (x_catch_errors_unwind): Abort if x_error_message is NULL.
13357 (handle_one_xevent): Initialize `f' to NULL.
9cab96b0 13358 (x_delete_terminal, x_create_terminal): New functions.
8d9cc0b7
MB
13359 (XTset_terminal_modes, XTreset_terminal_modes)
13360 (XTread_socket, x_connection_closed, x_term_init)
13361 (x_term_init, x_delete_display): Add terminal parameter.
13362 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
13363 X connections.
13364
bf380f53
GM
13365 * frame.c: Include termchar.h.
13366 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
13367 (Qwindow_system, Qenvironment, Qterm_environment_variable)
13368 (Qdisplay_environment_variable): New vars.
13369 (Fframep): Deal with output_initial.
13370 (Fframe-live-p): Doc fix.
13371 (Fwindow-system): New function.
8d9cc0b7
MB
13372 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
13373 (make_terminal_frame): Don't create frames on a terminal that is
bf380f53 13374 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
b8866860 13375 (store_frame_param): Check for found_for_frame before calling XFRAME.
8d9cc0b7
MB
13376 (Fmake_terminal_frame): Handle NULL tty names correctly.
13377 (syms_of_frame): Enhance doc string of `default-frame-alist'.
bf380f53
GM
13378 (Fdelete_frame): Remove unused variable `count'. Don't allow other
13379 frames to refer to a deleted frame in their 'environment parameter.
8d9cc0b7 13380 (Fframe_with_environment): New function.
b8866860 13381 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
8d9cc0b7
MB
13382 (get_future_frame_param): New function.
13383 (Fmake_terminal_frame): Use it.
2d33f506 13384 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
8d9cc0b7
MB
13385
13386 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
13387 * sysdep.c (reset_sys_modes): Update for renames.
13388
13389 * keyboard.c (tty_read_avail_input): New function.
03f06e5c 13390 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
8d9cc0b7
MB
13391 (syms_of_keyboard): Defsubr them.
13392 (Fset_input_meta_mode, Fset_quit_char): New functions.
13393 (Fset_input_mode): Split to above functions.
8d9cc0b7
MB
13394 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
13395 parameter. Use it in call to `read_char'.
b8866860
SM
13396 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
13397 Set wrong_kboard_jmpbuf correctly in recursive calls.
13398 Use current_kboard to access Vkeyboard_translate_table.
13399 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
13400 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
13401 Update longjmp invocations. Remember the original current_kboard,
13402 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
13403 changes it. Comment out unnecessary calls to
13404 `record_single_kboard_state' and `any_kboard_state'.
13405 Update recursive calls.
8d9cc0b7
MB
13406 (wrong_kboard_jmpbuf): Remove global variable.
13407 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
13408 Handle deleted interrupted_kboards correctly; that is a legal
13409 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
b8866860 13410 and read_char calls. Abort if interrupted_kboard died in read_char.
8d9cc0b7
MB
13411 (any_kboard_state, single_kboard_state)
13412 (push_frame_kboard): Remove function.
13413 (pop_kboard): Switch out of single_kboard mode if the kboard has
03f06e5c
JB
13414 been deleted. Remove unused variable. Help debugging by not
13415 changing current_kboard unnecessarily. Set current_kboard to the
8d9cc0b7
MB
13416 kboard of the selected frame when the stored kboard object has
13417 been deleted before pop_kboard.
13418 (temporarily_switch_to_single_kboard): Change first parameter to a
13419 frame pointer. Throw an error when caller wants to change kboards
13420 while in single_kboard mode. Don't push_kboard if we weren't in
13421 single kboard state. Don't pop_kboard if we popped into any
13422 kboard state.
13423 (restore_kboard_configuration): Abort if pop_kboard changed the
03f06e5c 13424 kboard in single_kboard mode. Call pop_kboard only after setting
8d9cc0b7
MB
13425 up single_kboard mode.
13426 (Frecursive_edit): Switch to single_kboard mode only in nested
13427 command loops.
b8866860
SM
13428 (cmd_error, command_loop, command_loop_1, timer_check):
13429 Comment out unnecessary call to `any_kboard_state' and
8d9cc0b7
MB
13430 `record_single_kboard_state'.
13431 (delete_kboard): Exit single_kboard mode if we have just deleted
03f06e5c 13432 that kboard. Use FRAME_KBOARD.
8d9cc0b7
MB
13433 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
13434 `fatal_error_signal'.
13435 (record_single_kboard_state): Don't push_kboard if we weren't in
13436 single kboard state. Don't pop_kboard if we popped into any
13437 kboard state.
13438 (push_frame_kboard): Rename to push_kboard.
13439 (kbd_buffer_get_event): Use FRAME_TERMINAL.
13440 (read_avail_input): Read input from all terminals.
13441 (mark_kboards): Also mark Vkeyboard_translate_table.
13442 (kbd_buffer_store_event_hold): Simplify condition.
13443 (read_key_sequence): Reinitialize fkey and keytran at each replay.
13444 (Vkeyboard_translate_table): Move to struct kboard.
13445 (init_kboard): Initialize Vkeyboard_translate_table.
13446 (syms_of_keyboard): Use DEFVAR_KBOARD to define
13447 Vkeyboard_translate_table. Update doc strings. Update docs of
13448 local-function-key-map and function-key-map.
13449
13450 * terminal.c: New file.
13451
13452 * term.c: Include errno.h.
13453 (Vring_bell_function, device_list, initial_device)
13454 (next_device_id, ring_bell, update_begin, update_end)
13455 (set_terminal_window, cursor_to, raw_cursor_to)
13456 (clear_to_end, clear_frame, clear_end_of_line)
13457 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
13458 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
13459 (syms_of_term): Move their initialization to terminal.c.
13460 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
13461 (Ftty_display_color_cells)
13462 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
9cab96b0 13463 (clear_tty_hooks, set_tty_hooks)
8d9cc0b7
MB
13464 (init_tty, maybe_fatal): New functions.
13465 (Ftty_type): Return nil if terminal is not on a tty instead of
13466 throwing an error. Doc update.
13467 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
03f06e5c 13468 Doc update. Initialize new subrs and variables.
8d9cc0b7
MB
13469 (delete_tty): Use terminal->deleted.
13470 (tty_set_terminal_modes): Rename from set_terminal_modes.
13471 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
13472 (set_scroll_region): Rename to `tty_set_scroll_region'.
13473 (turn_on_insert): Rename to `tty_turn_on_insert'.
13474 (turn_off_insert): Rename to `tty_turn_off_insert'.
13475 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
13476 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
13477 (toggle_highligh): Rename to `tty_toggle_highlight'.
13478 (background_highlight): Rename to `tty_background_highlight'.
13479 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
13480 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
13481 (tty_set_scroll_region, tty_background_highlight)
13482 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
13483 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
13484 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
13485 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
13486 Add static modifier.
13487 (tty_reset_terminal_modes, tty_set_terminal_window)
13488 (tty_set_scroll_region, tty_background_highlight)
13489 (tty_highlight_if_desired, tty_cursor_to)
13490 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
13491 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
13492 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
13493 renames.
13494
880820fe 134952007-08-28 Jan Djärv <jan.h.d@swipnet.se>
cf0590c4
JD
13496
13497 * keyboard.c: Qrtl is new.
13498 (parse_tool_bar_item): Handle :rtl keyword.
13499 (syms_of_keyboard): Intern :rtl keyword.
13500
13501 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
13502
13503 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
13504 so no Lisp code is executed.
13505 (file_for_image, find_rtl_image): New functions.
1f204af3 13506 (xg_get_image_for_pixmap): Use file_for_image.
cf0590c4
JD
13507 (update_frame_tool_bar): If direction is RTL, use RTL image if
13508 defined. Use Gtk stock images if defined.
13509
83cc8d35
YM
135102007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13511
13512 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
13513 for nonexistent or zero-width glyph in composition glyph.
13514
e60c4e15
SM
135152007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
13516
d7e2a28f
SM
13517 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
13518
e60c4e15
SM
13519 * xdisp.c (Finvisible_p): New function.
13520 (syms_of_xdisp): defsubr it.
13521
ee163e6d
JB
135222007-08-24 Juanma Barranquero <lekktu@gmail.com>
13523
13524 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
13525 Doc fixes.
13526
90fa408d
YM
135272007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13528
35277b03 13529 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
90fa408d 13530
cac4219c
MR
135312007-08-24 Martin Rudalics <rudalics@gmx.at>
13532
13533 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
13534 whether decoding has modified buffer contents.
13535
5fc9fdeb
JR
135362007-08-24 Jason Rumney <jasonr@gnu.org>
13537
13538 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
13539 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
13540 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
13541 (init_svg_functions) [HAVE_NTGUI]: New function.
13542 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
13543 (svg_load_image): Use them.
13544 (svg_load_image) [HAVE_NTGUI]: Implement background.
13545
93b23406
YM
135462007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13547
13548 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
13549 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
13550 (LIBX): Remove @RSVG_LIBS@.
13551 (LIBES): Add $(RSVG_LIBS).
13552
13553 * image.c (svg_load_image): Blend with specified background if exists.
13554 Use IMAGE_BACKGROUND. Add Mac OS Support.
13555
13556 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
13557 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
13558 Remove macros.
13559 [MAC_OSX] (socket_callback): Do nothing.
13560 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
13561 ReceiveNextEvent.
13562 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
13563 socket_callback.
13564 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
13565
2467875c
GM
135662007-08-22 Glenn Morris <rgm@gnu.org>
13567
ff8da443 13568 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
2467875c 13569
4ab27a43
GM
135702007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
13571
13572 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
ff8da443 13573
666e0eda
GM
13574 * image.c: Add support for SVG images. Some additional comments
13575 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
13576 (svg_image_p): New function to test for SVG image.
13577 (svg_load): New function to load SVG image.
13578 (svg_load_image): New function, helper for svg_load.
13579 (Qsvg): New Lisp_object.
13580 (svg_keyword_index): New enum.
13581 (svg_format): New static `image_keyword' struct.
13582 (svg_type): New static `image_type' struct.
13583 (librsvg/rsvg.h): Include it.
4ab27a43 13584
b636b4c1
SM
135852007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
13586
13587 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
13588
9ecb827b
SM
135892007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
13590
1d064697
SM
13591 * lread.c (Qold_style_backquotes): New var.
13592 (syms_of_lread): Init and staticpro it.
13593 (load_warn_old_style_backquotes): New fun.
13594 (Fload): Use them to warn about old style backquotes.
13595 (end_of_file_error, Fload): Remove unused vars.
13596
5772ed4b
SM
13597 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
13598
9ecb827b 13599 * lread.c (Vold_style_backquotes): New var.
5aa273b0 13600 (syms_of_lread): Init and export it to Elisp.
9ecb827b
SM
13601 (read1): Set it when we find an old-style (back)quote.
13602
32e1c7b1
JR
136032007-08-22 Jason Rumney <jasonr@gnu.org>
13604
13605 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
13606
b8fa755b
KY
136072007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
13608
13609 * puresize.h (BASE_PURESIZE): Increase to 1140000.
13610
1283140e
RS
136112007-08-19 Richard Stallman <rms@gnu.org>
13612
13613 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
13614
2c4685ee
AS
136152007-08-19 Andreas Schwab <schwab@suse.de>
13616
13617 * alloc.c (pure): Round PURESIZE up.
13618
880820fe 136192007-08-17 Jan Djärv <jan.h.d@swipnet.se>
e8953ebf
JD
13620
13621 * xterm.c (handle_one_xevent): Remove check that mouse click is in
13622 active frame.
13623
6e33efc4
RS
136242007-08-16 Richard Stallman <rms@gnu.org>
13625
13626 * eval.c (Fcommandp): Add parens to clarify.
13627
13628 * minibuf.c (Fall_completions): Use enum for type of table.
13629
13630 * emacs.c (USAGE2): Improve text.
13631
fcf8ff2e
GM
136322007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
13633
5205ee62
GM
13634 * term.c (tty_default_color_capabilities): Declare static
13635 variables in file scope, to avoid HPUX compiler problem.
fcf8ff2e 13636
880820fe 136372007-08-13 Jan Djärv <jan.h.d@swipnet.se>
81d13a51
JD
13638
13639 * gtkutil.c (update_frame_tool_bar): Use -1 as index
13640 to gtk_toolbar_insert.
13641
4a181359
SM
136422007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
13643
1bc99c9c
SM
13644 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
13645
4a181359
SM
13646 * insdel.c (reset_var_on_error): New fun.
13647 (signal_before_change, signal_after_change):
13648 Use it to reset (after|before)-change-functions to nil in case of error.
13649 Bind inhibit-modification-hooks to t.
13650 Don't bind (after|before)-change-functions to nil while they run.
13651
6c28435c
YM
136522007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13653
13654 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
13655 filling pixmap with stippled background.
13656
ad3b3e02
YM
136572007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13658
13659 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
13660 Don't use invisible frame as parent window for repositioning.
13661
a22dec27
SM
136622007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
13663
13664 * print.c (new_backquote_output): Rename from old_backquote_output.
13665 (print): Inverse its logic (according to its name) so as to match the
13666 behavior of new_backquote_flag in lread.c.
13667
7b7d07bb
YM
136682007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13669
13670 * gmalloc.c (posix_memalign): New function.
13671
13672 * macterm.c (frame_highlight, frame_unhighlight): Don't call
13673 ActivateControl/DeactivateControl here.
13674 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
13675 frame-notice-user-settings is non-nil.
13676 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
13677 for kEventParamFMFontStyle.
13678 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
13679 mac_pass_command_to_system and mac_pass_control_to_system here.
13680 (XTread_socket): Call ActivateControl/DeactivateControl here.
13681 (XTread_socket) [TARGET_API_MAC_CARBON]:
13682 Check mac_pass_command_to_system and mac_pass_control_to_system here.
f9426479
YM
13683 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
13684 for window repositioning.
7b7d07bb 13685
22e9fe24
GM
136862007-08-08 Glenn Morris <rgm@gnu.org>
13687
13688 * Replace `iff' in doc-strings and comments.
13689
ae494350
CY
136902007-08-07 Chong Yidong <cyd@stupidchicken.com>
13691
13692 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
13693
6f2528d8
MR
136942007-08-07 Martin Rudalics <rudalics@gmx.at>
13695
13696 * fileio.c (Finsert_file_contents): Run format-decode and
13697 after_insert_file_functions on entire buffer when REPLACE is
13698 non-nil and inhibit modification_hooks and point_motion_hooks.
13699 For consistency, run after_insert_file_functions iff something
13700 got inserted. Move signal_after_change and update_compositions
13701 after code running after_insert_file_functions. Make sure that
6b8e474c 13702 undo_list doesn't record intermediate steps of the decoding process.
6f2528d8 13703
3ceeb306
YM
137042007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13705
13706 * emacs.c (main)
13707 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
13708 Call malloc_enable_thread on interactive startup.
13709
13710 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
7b7d07bb
YM
13711 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
13712 [USE_PTHREAD]: Conditionalize with it.
3ceeb306
YM
13713 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
13714 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
13715 New functions.
13716
ca5e6fd5
CY
137172007-08-06 Chong Yidong <cyd@stupidchicken.com>
13718
32bfce5d
CY
13719 * xdisp.c (redisplay_window): When restoring original buffer
13720 position, make sure it is still valid.
13721
ca5e6fd5
CY
13722 * image.c (png_load): Ignore png-supplied background color.
13723
a5b11587
YM
137242007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13725
13726 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
13727 Use kCFAbsoluteTimeIntervalSince1970.
13728
13729 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
13730 New variable.
13731 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
13732 event loop should be quit.
13733 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
13734 Quit dialog event loop if quit_dialog_event_loop is set.
13735
13736 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
13737 (Selection): New typedef. Use instead of ScrapRef.
13738 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
13739 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
13740 (mac_clear_selection): Rename from clear_scrap.
13741 (get_flavor_type_from_symbol): New argument SEL and subsume function of
ff8da443 13742 scrap_has_target_type. All uses changed.
a5b11587
YM
13743 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
13744 (mac_selection_has_target_p): New functions.
13745 (mac_put_selection_value): Rename from put_scrap_string.
13746 (mac_get_selection_value): Rename from get_scrap_string.
13747 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
13748 (put_scrap_private_timestamp, scrap_has_target_type)
13749 (get_scrap_private_timestamp): Remove functions.
13750 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
13751 (x_own_selection, x_get_local_selection):
13752 Use mac_valid_selection_value_p.
13753 (x_own_selection): Don't use put_scrap_private_timestamp.
13754 Record OWNERSHIP-INFO into Vselection_alist instead.
13755 (x_get_local_selection): Don't check type if request is local.
13756 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
13757 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
13758
880820fe 137592007-08-04 Jan Djärv <jan.h.d@swipnet.se>
991bde0d
JD
13760
13761 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
13762 add comment explaining why.
13763
73ff9d42
RS
137642007-08-03 Richard Stallman <rms@gnu.org>
13765
13766 * fileio.c (Fvisited_file_modtime): Use make_time.
13767
54ed9a2d 137682007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
cdf5c17a
VJL
13769
13770 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
13771 build.
13772
65a9c8e2
SM
137732007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
13774
13775 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
13776
c5925799
KY
137772007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
13778
13779 * puresize.h (BASE_PURESIZE): Increase to 1130000.
13780
adef3de7
RS
137812007-07-30 Richard Stallman <rms@gnu.org>
13782
13783 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
13784
880820fe 137852007-07-29 Jan Djärv <jan.h.d@swipnet.se>
784c1472
JD
13786
13787 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
13788
a10421a1
NR
137892007-07-28 Nick Roberts <nickrob@snap.net.nz>
13790
13791 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
13792 remote default-directory.
13793
13794 * buffer.c (mode-line-format): Update doc string.
13795
0cb1ae20
YM
137962007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13797
13798 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
13799 scroll bar gap.
13800 (x_scroll_bar_create): Set bar->fringe_extended_p.
13801 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
13802 on frame edge. Check fringe background extension. Don't clear
13803 extended fringe background area.
13804
13805 * w32term.h (struct scroll_bar): New member fringe_extended_p.
13806 (w32_fill_area): Enclose multiple statements with do ... while (0).
13807
13808 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
13809 Extend fringe background to scroll bar gap.
13810 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
13811 Set bar->fringe_extended_p.
13812 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
13813 Put leftmost/rightmost scroll bars on frame edge. Check fringe
13814 background extension. Don't clear extended fringe background area.
13815
13816 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
13817 New member fringe_extended_p.
13818
cacc7b51
GM
138192007-07-25 Glenn Morris <rgm@gnu.org>
13820
13821 * Relicense all FSF files to GPLv3 or later.
13822
13823 * COPYING: Switch to GPLv3.
13824
89835619
SM
138252007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
13826
c4f46926
SM
13827 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
13828
13829 * data.c (Finteractive_form): Check for the presence of an
13830 `interactive-form' symbol property more thoroughly.
13831
13832 * data.c (Finteractive_form): Use an `interactive-form' property if
89835619
SM
13833 present, analogous to the function-documentation property.
13834
ee04257d
JR
138352007-07-24 Jason Rumney <jasonr@gnu.org>
13836
13837 * w32fns.c (x_real_positions): Get real position from OS instead of
13838 calculating it.
13839
50624218
JR
138402007-07-23 Jason Rumney <jasonr@gnu.org>
13841
13842 * filelock.c (current_lock_owner): Allow for @ sign in username.
13843
3650f60e
NR
138442007-07-22 Nick Roberts <nickrob@snap.net.nz>
13845
13846 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
13847 remote default-directory.
13848
13849 * buffer.c (mode-line-format): Describe above case in doc string.
13850
1e899515 138512007-07-20 Eli Zaretskii <eliz@gnu.org>
b395d6e1 13852
75be5258
EZ
13853 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
13854 Define if not defined.
13855
2b6e2f4d
JR
138562007-07-18 Jason Rumney <jasonr@gnu.org>
13857
13858 * w32proc.c (w32_executable_type): Handle 64 bit executables.
13859
23dacf80
JB
138602007-07-18 Richard Stallman <rms@gnu.org>
13861
13862 * data.c (Fsetq_default): Doc fix.
13863
13864 * eval.c (Fsetq): Doc fix.
13865
138662007-07-18 Juanma Barranquero <lekktu@gmail.com>
13867
13868 * coding.c (Ffind_operation_coding_system):
13869 * eval.c (For, Fand): Doc fixes.
880820fe 13870 Reported by Johan Bockgård.
23dacf80 13871
880820fe 138722007-07-18 Jan Djärv <jan.h.d@swipnet.se>
656de71a 13873
23dacf80 13874 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
656de71a 13875
23dacf80 13876 * xterm.h: Declare x_ewmh_activate_frame.
656de71a
JD
13877
13878 * xterm.c (x_ewmh_activate_frame): New function.
13879 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
13880
71ec17e6
MR
138812007-07-17 Martin Rudalics <rudalics@gmx.at>
13882
13883 * window.c (Fdisplay_buffer): If largest or LRU window is the
13884 only window, split it even if it is not eligible for splitting.
13885 This restores the original behavior broken by the 2007-07-15
13886 change.
13887
e9818042
GM
138882007-07-17 Glenn Morris <rgm@gnu.org>
13889
13890 * abbrev.c (abbrev_check_chars): New function.
6b8e474c
SM
13891 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
13892 Call abbrev_check_chars to check abbrev characters are word
e9818042
GM
13893 constituents. Doc fix.
13894
e6fca843
SM
138952007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
13896
13897 * process.c (Fstart_process, Fmake_network_process)
13898 (read_process_output): Fix up last changes.
13899
b5d2b4ab
EZ
139002007-07-16 Eli Zaretskii <eliz@gnu.org>
13901
13902 * makefile.w32-in (clean): Don't delete *~.
13903
413a79ad
AS
139042007-07-16 Andreas Schwab <schwab@suse.de>
13905
13906 * window.c (Fdisplay_buffer): Use NILP.
13907 (Fset_window_scroll_bars): Likewise.
13908
f1de8c77
MR
139092007-07-15 Martin Rudalics <rudalics@gmx.at>
13910
13911 * window.c (window_min_size_2): New function.
13912 (window_min_size_1, size_window, Fdisplay_buffer)
13913 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
13914 windows without mode- or header-lines when window-min-height is
13915 too small.
13916 (size_window): Reset nodelete_p after testing it, following an
13917 earlier note by Kim F. Storm.
13918 (display_buffer): Do not set split_height_threshold to twice the
13919 value of window_min_height to avoid changing the value of a
13920 customizable variable. Rather explicitly check whether the
13921 height of the window that shall be splitted is at least as large
13922 as split_height_threshold.
1af74d06
MB
13923 (Fwindow_full_width_p): New defun.
13924 (syms_of_window): Defsubr it.
d31053f9 13925
1af74d06 13926 * window.h: Add EXFUN for Fwindow_full_width_p.
f1de8c77 13927
5e1ab613
JR
139282007-07-14 Jason Rumney <jasonr@gnu.org>
13929
13930 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
13931
f01cbfdd
RS
139322007-07-14 Richard Stallman <rms@gnu.org>
13933
13934 * eval.c (maybe_call_debugger): New function.
13935 (find_handler_clause): Use maybe_call_debugger.
13936 Call it when the handler says `debug'.
13937 Eliminate DEBUGGER_VALUE_PTR.
13938 (Fsignal): Eliminate debugger_value.
13939 (Qdebug): New variable.
13940 (syms_of_eval): Initialize it.
13941
1bab435a
JB
139422007-07-14 Juanma Barranquero <lekktu@gmail.com>
13943
13944 * eval.c (Fprogn):
13945 * keyboard.c (Ftrack_mouse):
13946 * print.c (Fwith_output_to_temp_buffer):
13947 * window.c (Fsave_window_excursion): Doc fix.
13948
be436d23
SM
139492007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
13950
13951 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
13952
60f0fb11
SM
139532007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
13954
13955 * process.h (struct Lisp_Process): Turn slots infd, outfd,
13956 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
13957 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
13958 read_output_delay, and read_output_skip from Lisp_Objects to ints.
13959 Remove unused encoding_carryover.
13960 * process.c: Adjust all functions accordingly.
13961
d8b18043
RS
139622007-07-12 Richard Stallman <rms@gnu.org>
13963
13964 * term.c: Include unistd.h only if HAVE_UNISTD_H.
13965
d5781bb6
JR
139662007-07-11 Jason Rumney <jasonr@gnu.org>
13967
13968 * makefile.w32-in (LIBS): Include OLE32.
13969
13970 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
13971 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
13972
5bb7dfee
SM
139732007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
13974
13975 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
13976 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
13977 from a Lisp_Object into a bare pointer.
13978 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
13979 Adjust the code correspondingly.
13980
13981 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
13982
13983 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
13984 (term_show_mouse_face): Remove unused var `j'.
13985 (handle_one_term_event): Remove unused vars `i' and `j'.
13986 Don't cast return value of ttyname since it's not necessary.
13987
a1be1ce8
SM
139882007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
13989
5045e68e
SM
13990 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
13991 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
13992
8071c00f
SM
13993 * fns.c (map_char_table): Use an array of int for `indices' rather than
13994 an array of Lisp_Objects (which are only ever integers anyway).
13995 (Fmap_char_table): Update caller.
13996 * lisp.h: Update prototype.
13997 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
13998 * fontset.c (Ffontset_info):
13999 * casetab.c (set_case_table): Update callers.
14000
14001 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
14002
fab84e3c
SM
14003 * keymap.c (struct accessible_keymaps_data)
14004 (struct where_is_internal_data): New structures.
14005 (accessible_keymaps_1, where_is_internal_1): Use them to change
14006 interface to adhere to the one used by map_keymap.
14007 (Faccessible_keymaps, where_is_internal): Use map_keymap.
14008 (accessible_keymaps_char_table, where_is_internal_2): Remove.
14009
a1be1ce8
SM
14010 * keymap.h (map_keymap_function_t): More informative prototype.
14011
ef887810
RS
140122007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
14013
14014 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
14015 (looking_at_1): Don't change search_regs and last_thing_searched
14016 if `inhibit-changing-match-data' is non-nil.
14017 (string_match_1, search_buffer, set_search_regs): Likewise.
14018 (syms_of_search): Add Lisp level definition for
14019 `inhibit-changing-match-data' and set it to nil.
8071c00f
SM
14020 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
14021 start and end of the match, instead of using values in search_regs.
ef887810 14022
4d02fc25
SM
140232007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
14024
14025 * minibuf.c (Fcompleting_read): New value `confirm-only'
14026 for `require-match'.
14027
fe45b81f
SM
140282007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
14029
14030 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
14031 part of the 2007-06-27 change to syms_of_fileio.
14032
a56dd283
YM
140332007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14034
14035 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
14036 Check WINDOWP before using XWINDOW. Consolidate return statements.
14037
0cf9f5b5
RS
140382007-06-27 Richard Stallman <rms@gnu.org>
14039
14040 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
14041
a66f285a
JB
140422007-06-27 Juanma Barranquero <lekktu@gmail.com>
14043
14044 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
14045
8d0d84d2
YM
140462007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14047
14048 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
14049 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
14050 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
14051 (_free_internal, memalign): Use them.
14052 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
14053 Initialize to PTHREAD_MUTEX_INITIALIZER.
14054 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
14055 (morecore_nolock): Rename from morecore. All uses changed.
14056 Use only nolock versions of internal allocation functions.
14057 (_malloc_internal_nolock, _realloc_internal_nolock)
14058 (_free_internal_nolock): New functions created from
14059 _malloc_internal, _realloc_internal, and _free_internal.
14060 (_malloc_internal, _realloc_internal, _free_internal): Use them.
14061 Copy hook value to automatic variable before its use.
14062 (memalign): Copy hook value to automatic variable before its use.
14063
5a0bbd9a
KH
140642007-06-26 Kenichi Handa <handa@m17n.org>
14065
14066 * coding.c (Ffind_operation_coding_system): Docstring improved.
14067 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
14068
9a51747b
DK
140692007-06-25 David Kastrup <dak@gnu.org>
14070
14071 * keymap.c (Fcurrent_active_maps): Add `position' argument.
14072 (Fwhere_is_internal): Adjust call to `current-active-maps' to
14073 cater for additional parameter.
14074
14075 * keymap.h: Adjust number of parameters to `current-active-maps'.
14076
14077 * doc.c (Fsubstitute_command_keys): Adjust call of
14078 `current-active-maps'.
14079
e4305426
DK
140802007-06-25 David Kastrup <dak@gnu.org>
14081
14082 * callint.c (Fcall_interactively): Make the parsing of interactive
14083 specs somewhat more readable.
14084
511a18d9
YM
140852007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14086
14087 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
14088 to scroll bar gap also when bitmap fills fringe. Draw only foreground
14089 if extended background has already been filled.
14090
512eb161
YM
140912007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14092
14093 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
14094 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
14095
14096 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
14097 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
14098 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
14099 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
14100 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
14101 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
14102 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
14103 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
14104 Run timers during dialog popup.
14105 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
14106
2386b1f1
JR
141072007-06-21 Jason Rumney <jasonr@gnu.org>
14108
14109 * image.c (convert_mono_to_color_image): Swap fore and background.
14110
fab8b787
JR
141112007-06-20 Jason Rumney <jasonr@gnu.org>
14112
14113 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
14114 (w32_free_bdf_font): Unmap memory not handle.
14115
15bdd7a0 141162007-06-20 Sam Steingold <sds@gnu.org>
3cacba85
SS
14117
14118 * gmalloc.c (__morecore): Fix the declaration to comply with the
14119 definition.
14120
1bb8a291
JB
141212007-06-20 Juanma Barranquero <lekktu@gmail.com>
14122
14123 * w32term.c (w32_delete_display): Remove leftover declaration.
14124 (w32_define_cursor, w32_initialize): Make static.
14125
14126 * w32.c (_wsa_errlist): Fix typo in error message.
14127 (init_environment): Ignore any environment variable from the
14128 registry having a null value.
14129
92648dea
GM
141302007-06-20 Glenn Morris <rgm@gnu.org>
14131
14132 * Makefile.in (LIBGIF): Default to -lgif.
14133
ff25d115
JR
141342007-06-17 Jason Rumney <jasonr@gnu.org>
14135
14136 * w32menu.c (add_menu_item): Don't use multibyte string functions on
14137 unicode strings.
14138
a1a578a5
JB
141392007-06-16 Juanma Barranquero <lekktu@gmail.com>
14140
14141 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
14142 Fix typo in docstring.
14143
af41f8a8
EZ
141442007-06-16 Eli Zaretskii <eliz@gnu.org>
14145
14146 * w32menu.c (add_menu_item): Escape `&' characters in menu items
14147 and their keybindings.
14148
8b29cab9
CY
141492007-06-15 Chong Yidong <cyd@stupidchicken.com>
14150
14151 * composite.c (update_compositions): Fix last fix.
14152
c433c134
JR
141532007-06-14 Jason Rumney <jasonr@gnu.org>
14154
14155 * w32.c (get_process_times_fn): New function pointer.
14156 (globals_of_w32): Intialize it if present in kernel32.dll.
14157 (w32_get_internal_run_time): New function.
14158
14159 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
14160
553d3164
KH
141612007-06-14 Kenichi Handa <handa@etlken.m17n.org>
14162
14163 * composite.c (update_compositions): Check the validness of
14164 compositions.
14165
446ba96f
YM
141662007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14167
14168 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
14169 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
14170
14171 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
14172 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
14173
14174 * macgui.h (USE_MAC_TOOLBAR): New define.
14175
14176 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
14177 Return immediately unless popup is activated.
14178
14179 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
14180 background to scroll bar gap.
14181 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
14182 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
14183 scroll bars on frame edge. Check fringe background extension.
14184 Don't clear extended fringe background area.
14185 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
14186 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
14187 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
14188 [USE_MAC_TOOLBAR]: New macros.
14189 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
14190 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
14191 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
14192 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
14193 [USE_MAC_TOOLBAR]: New functions.
14194 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
14195 manually if previous repositioning has failed.
14196 (mac_handle_keyboard_event): Use precomputed event kind.
14197 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
14198 as tool bar item click. Handle mouse movement over tool bar items.
14199
14200 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
14201 toolbar_win_gravity.
14202 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
14203 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
14204 Add externs.
14205
14206 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
14207 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
14208
9720173f
CY
142092007-06-14 Chong Yidong <cyd@stupidchicken.com>
14210
14211 * image.c (search_image_cache): Remove unused variable.
14212
1217dd00
CY
142132007-06-13 Chong Yidong <cyd@stupidchicken.com>
14214
14215 * xfns.c, xmenu.c: Link to xaw3d if available.
14216
c5b8e0ea
YM
142172007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14218
14219 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
14220 frame_foreground and frame_background.
14221
14222 * image.c (lookup_image): Save frame foreground and background colors.
14223 (search_image_cache): Check if saved and current frame colors match.
14224
c69b0314
SM
142252007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
14226
14227 * regex.c (regex_compile): Remove the `regnum' counter.
14228 Use bufp->re_nsub instead. Add support for \(?N:RE\).
14229
c9612b8e
SM
142302007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
14231
14232 * term.c: Include intervals.h to declare Fget_text_property.
14233
843d2458
JR
142342007-06-10 Jason Rumney <jasonr@gnu.org>
14235
14236 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
14237
1e0d2d60 142382007-06-08 Juanma Barranquero <lekktu@gmail.com>
977f6cfb
JB
14239
14240 * callint.c (Fcall_interactively):
14241 * editfns.c (Fdelete_and_extract_region):
14242 * fileio.c (Fread_file_name):
14243 * fns.c (Fmapconcat):
14244 * keyboard.c (cmd_error_internal):
14245 * keymap.c (Fkey_description):
14246 * lread.c (openp):
14247 * minibuf.c (read_minibuf):
14248 * search.c (wordify):
14249 * sunfns.c (sel_read):
14250 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
14251 * xfns.c (x_default_scroll_bar_color_parameter):
14252 * xmenu.c (menu_help_callback):
14253 * xselect.c (Fx_get_atom_name):
14254 * xterm.c (x_term_init): Use empty_unibyte_string.
14255
15bdd7a0 142562007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
977f6cfb
JB
14257
14258 * alloc.c (init_strings): Initialize canonical empty strings.
14259 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
14260 canonical empty string when the requested size is 0.
14261
14262 * emacs.c (empty_unibyte_string): Rename from empty_string.
14263 (empty_multibyte_string): New canonical empty string.
14264 (syms_of_emacs): Don't initialize empty_string.
14265
14266 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
14267 string, if appropriate.
14268 (empty_unibyte_string, empty_multibyte_string): New externs.
14269 (empty_string): Remove extern.
14270
14271 * lread.c (syms_of_lread): Use empty_unibyte_string.
14272
42c4c67a
JR
142732007-06-07 Jason Rumney <jasonr@gnu.org>
14274
14275 * s/ms-w32.h: Don't define HAVE_TZNAME.
14276
14277 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
14278
aa8280d3
YM
142792007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14280
14281 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
14282
14283 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
14284 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
14285
14286 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
14287 Don't call next handler.
14288 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
14289 Remove argument. Install handler to application.
14290 (set_frame_menubar): Don't change deep_p.
1e0d2d60 14291 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
aa8280d3
YM
14292 FRAME_OUTER_TO_INNER_DIFF_Y.
14293 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
14294 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
14295 [HAVE_DIALOGS]: New macros.
14296 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
14297 Use them.
14298 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
14299
14300 * macselect.c [MAC_OSX] (install_service_handler): Rename from
14301 init_service_handler. All callers changed. Return OSStatus value.
14302
14303 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
14304 All callers changed so as not to call SetPortWindowPort.
14305 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
14306 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
14307 mac_draw_string_common.
14308 (mac_draw_image_string_qd): Likewise.
14309 (mac_draw_string_common): Use them. Add INLINE.
14310 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
14311 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
14312 GetGlobalMouse.
14313 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
14314 and FRAME_OUTER_TO_INNER_DIFF_Y.
14315 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
14316 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
14317 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
14318 repositioning window to mac_handle_window_event.
14319 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
14320 saving window location to mac_handle_window_event
14321 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
14322 (install_menu_target_item_handler): Remove argument in extern.
14323 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
14324 Also accept command events.
14325 (do_keystroke): New function created from XTread_socket.
14326 (init_command_handler): Remove functions.
14327 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
14328 and save window location by kEventWindowShowing and kEventWindowHiding
14329 handlers here. Don't call next handler for window state change and
14330 focus events.
14331 (mac_handle_application_event, mac_handle_keyboard_event)
14332 [TARGET_API_MAC_CARBON]: New functions.
14333 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
14334 kEventWindowShowing and kEventWindowHiding events. Move installation
14335 of mouse, font, text input and menu target item handlers to
14336 install_application_handler.
14337 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
14338 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14339 New function.
14340 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
14341 Register it.
c9612b8e
SM
14342 (XTread_socket) [TARGET_API_MAC_CARBON]:
14343 Consolidate SendEventToEventTarget calls.
14344 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
14345 Move application activation handler to mac_handle_application_event.
14346 Move keyboard handler to mac_handle_keyboard_event.
aa8280d3
YM
14347 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
14348 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
14349 init_command_handler. Call install_application_handler.
14350
14351 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
14352 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
14353
6926c954
GM
143542007-06-07 Glenn Morris <rgm@gnu.org>
14355
14356 * emacs.c (main): Use `emacs-copyright' in --version output.
14357
6fe04c89
CY
143582007-06-06 Chong Yidong <cyd@stupidchicken.com>
14359
c9612b8e 14360 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
6fe04c89 14361
7eb0d727
YM
143622007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14363
14364 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
785ce0ac 14365
7eb0d727
YM
14366 * macgui.h: Replace WindowPtr with WindowRef.
14367
14368 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
14369 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
14370 Replace ControlHandle with ControlRef.
14371 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
14372
14373 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
14374 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
14375 Replace ControlHandle with ControlRef.
14376 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
14377 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
14378
14379 * macterm.h (struct scroll_bar): Rename member control_handle_low
14380 and control_handle_high to control_ref_low and control_ref_high.
14381 All uses changed.
14382 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
14383 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
14384 respectively. All uses changed.
14385 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
14386 (install_window_handler, remove_window_handler): Replace WindowPtr
14387 with WindowRef in externs.
14388
65fddb74
JB
143892007-06-05 Juanma Barranquero <lekktu@gmail.com>
14390
14391 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
14392
db1213a9
NR
143932007-06-03 Nick Roberts <nickrob@snap.net.nz>
14394
14395 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
14396
65fddb74 14397 * frame.c (Fmouse_position, Fmouse_pixel_position):
db1213a9
NR
14398 Condition on HAVE_GPM too.
14399
14400 * term.c (term_mouse_highlight): Remove unused variables.
14401 (Fterm_open_connection): Set gpm_zerobased to 1.
14402 (term_mouse_movement, term_mouse_click, handle_one_term_event):
14403 Use zero based co-ordinates.
14404 (handle_one_term_event): Report a drag as mouse movement too.
14405
14406 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
14407
d94df25b
CY
144082007-06-03 Chong Yidong <cyd@stupidchicken.com>
14409
14410 * image.c (search_image_cache): New function. Require background
14411 color match if background color is unspecified in the image spec.
14412 (uncache_image, lookup_image): Use it.
14413
4797b6d9
JB
144142007-06-01 Juanma Barranquero <lekktu@gmail.com>
14415
14416 * window.c (Fshrink_window): Reflow docstring.
14417
1ffe7343
NR
144182007-06-02 Chong Yidong <cyd@stupidchicken.com>
14419
14420 * Version 22.1 released.
14421
144222007-06-01 Richard Stallman <rms@gnu.org>
14423
14424 * xfns.c (x_encode_text): Add GCPRO.
14425
144262007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14427
14428 * xfns.c (x_set_name_internal): Save encoded name before
14429 x_encode_text in case string data is relocated.
14430
144312007-05-31 Richard Stallman <rms@gnu.org>
14432
14433 * buffer.c (syms_of_buffer): Doc fix.
14434
144352007-05-30 Nick Roberts <nickrob@snap.net.nz>
14436
14437 * sysdep.c (init_sys_modes): Add rather than replace with
14438 O_NONBLOCK.
14439
14440 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
14441 term_mouse_moveto.
14442
14443 * termhooks.h (term_mouse_moveto): New extern.
14444
14445 * term.c (mouse_face_window): Rename...
14446 (Qmouse_face_window): ...to this.
14447 (term_show_mouse_face, term_clear_mouse_face)
14448 (term_mouse_highlight): Use Qmouse_face_window.
14449 (term_mouse_moveto): New function.
14450 (term_mouse_position): Make it work.
14451 (syms_of_term): Uncomment assignment to mouse_position_hook.
14452 Staticpro Qmouse_face_window.
14453
144542007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14455
14456 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
14457 around current_column call.
14458
144592007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
14460
14461 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
14462 * xdisp.c (next_element_from_buffer):
14463 * window.c (delete_window):
14464 * term.c (term_mouse_highlight):
14465 * msdos.c (getdefdir):
14466 * macterm.c (mac_create_bitmap_from_bitmap_data)
14467 (init_font_name_table):
14468 * fns.c (Fsxhash):
14469 * data.c (Fmake_local_variable):
14470 * ccl.c (ccl_driver): Likewise.
14471
144722007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14473
14474 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
14475 Call mac_wakeup_from_rne on window size change.
14476
144772007-05-25 Chong Yidong <cyd@stupidchicken.com>
14478
14479 * image.c (uncache_image): Fix typo.
14480
144812007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
14482
14483 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
14484
144852007-05-22 Richard Stallman <rms@gnu.org>
14486
14487 * xterm.c (x_connection_closed): Remove NO_RETURN.
14488
144892007-05-22 Martin Rudalics <rudalics@gmx.at>
14490
14491 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
14492
144932007-05-21 Chong Yidong <cyd@stupidchicken.com>
14494
14495 * image.c (uncache_image): New function.
14496 (Fimage_refresh): New function.
14497
880820fe 144982007-05-20 Jan Djärv <jan.h.d@swipnet.se>
1ffe7343
NR
14499
14500 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
14501
145022007-05-20 Nick Roberts <nickrob@snap.net.nz>
14503
14504 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
14505 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
14506
145072007-05-20 Nick Roberts <nickrob@snap.net.nz>
14508
14509 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
14510 conditional on [HAVE_GPM_H].
14511
145122007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
14513
14514 * syntax.c (skip_chars): Update syntax-table only after we checked that
14515 the new location is valid.
14516
145172007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14518
14519 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
14520 mac_get_window_bounds.
14521
145222007-05-20 Nick Roberts <nickrob@snap.net.nz>
14523
14524 * Makefile.in (LIBGPM): Allow it to be set from configure.
14525 If set then link Emacs with it.
14526
14527 * config.in: Regenerate.
14528
14529 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
14530 New externs.
14531
14532 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
14533 Include gpm.h.
14534 (handle_one_term_event, term_gpm): New externs.
14535
14536 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
14537 and allow it to be interrupted by SIGIO.
14538
14539 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
14540 (wait_reading_process_output): Wait on gpm_fd too.
14541 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
14542 (add_gpm_wait_descriptor_called_flag): New variable.
14543 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
14544
14545 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
14546 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
14547 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
14548 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
14549 (make_lispy_event): Add case GPM_CLICK_EVENT.
14550 (read_avail_input): Handle mouse input.
14551
14552 * term.c (write_glyphs_with_face): New function.
14553 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
14554 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
14555 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
14556 (mouse_face_face_id, term_gpm, pos_x, pos_y)
14557 (last_mouse_x, last_mouse_y): New variables.
14558 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
14559 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
14560 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
14561 (Fterm_close_connection): New functions.
14562 (term_init): Initialise mouse_face_window.
14563
145642007-05-19 Chong Yidong <cyd@stupidchicken.com>
14565
14566 * xdisp.c (redisplay_window): If first window line is a
14567 continuation line, recompute the new window start instead of
14568 recentering.
14569
145702007-05-18 Glenn Morris <rgm@gnu.org>
14571
14572 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
14573 Suggested by Alfred M. Szmidt <ams@gnu.org>.
14574
145752007-05-17 Glenn Morris <rgm@gnu.org>
14576
14577 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
14578
145792007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14580
14581 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
14582 dead key repeat and up events.
14583
145842007-05-14 Chong Yidong <cyd@stupidchicken.com>
14585
14586 * image.c (pbm_load): Check image size for monochrome pbm.
14587
145882007-05-13 Chong Yidong <cyd@stupidchicken.com>
14589
14590 * xterm.c (XTread_socket): Revert last change.
14591
145922007-05-12 Chong Yidong <cyd@stupidchicken.com>
14593
14594 * image.c (pbm_load): Correctly check image size for greyscale pbm.
14595
14596 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
14597
145982007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
14599
14600 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
14601 mixup (YAILOM).
14602
146032007-05-07 Andreas Schwab <schwab@suse.de>
14604
14605 * keymap.c (Flookup_key): Fix typo in last change.
14606
146072007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
14608
14609 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
14610 mapping for unibyte strings.
14611
146122007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14613
14614 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
14615 (Fx_popup_dialog) [MAC_OSX]: Likewise.
14616
146172007-04-29 Richard Stallman <rms@gnu.org>
14618
14619 * insdel.c (replace_range): For undo, record insertion first.
14620
146212007-04-29 Andreas Schwab <schwab@suse.de>
14622
14623 * lisp.h (VECSIZE): Use OFFSETOF.
14624
146252007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14626
14627 * xdisp.c (try_window_reusing_current_matrix): Fix number of
14628 disabled lines.
14629
146302007-04-28 Richard Stallman <rms@gnu.org>
14631
14632 * lread.c (read_escape): In a string, \s is always space.
14633
880820fe 146342007-04-27 Jan Djärv <jan.h.d@swipnet.se>
1ffe7343
NR
14635
14636 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
14637
14638 * gtkutil.c (xg_update_menubar, create_menus): Create empty
14639 submenu for menu bar items.
14640
382c648d 14641See ChangeLog.10 for earlier changes.
6922b018
KH
14642
14643;; Local Variables:
880820fe 14644;; coding: utf-8
33462dfa 14645;; add-log-time-zone-rule: t
67e8d28a 14646;; bug-reference-url-format: "http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=%s"
6922b018 14647;; End:
2a34a036 14648
59ce725a 14649 Copyright (C) 2007, 2008 Free Software Foundation, Inc.
7f6d64f8
GM
14650
14651 This file is part of GNU Emacs.
14652
5a1dde61 14653 GNU Emacs is free software: you can redistribute it and/or modify
7f6d64f8 14654 it under the terms of the GNU General Public License as published by
5a1dde61
GM
14655 the Free Software Foundation, either version 3 of the License, or
14656 (at your option) any later version.
7f6d64f8
GM
14657
14658 GNU Emacs is distributed in the hope that it will be useful,
14659 but WITHOUT ANY WARRANTY; without even the implied warranty of
14660 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14661 GNU General Public License for more details.
14662
14663 You should have received a copy of the GNU General Public License
5a1dde61 14664 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
ab5796a9 14665
28f60c3d 14666;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40