* url-methods.el (url-scheme--registering-proxy): New variable.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
c31c985e
AM
12009-09-11 Alan Mackenzie <acm@muc.de>
2
3 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
4 batch mode.
5
78012bd2
AS
62009-09-11 Andreas Schwab <schwab@linux-m68k.org>
7
8 * xdisp.c (display_mode_element): Detect cycles.
9
9d889332
SM
102009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
11
12 * keymap.c (where_is_internal): Don't erroneously return nil right after
13 filling the cache.
14 (where_is_internal_1): Fix up typo.
15
7ab5d780
GM
162009-09-11 Glenn Morris <rgm@gnu.org>
17
18 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
19 share a common doc-string.
20
5238a749
SM
212009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
22
66d77eda
SM
23 * keymap.c (get_keymap): Return the actual keymap symbol rather than
24 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
25
5238a749
SM
26 * keymap.c (QCadvertised_binding): New constant.
27 (syms_of_keymap): Initialize it.
28 (Fwhere_is_internal): Try and use bindings from :advertised-binding
29 if applicable.
30
19f48442
SM
312009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
32
50d4ba39
SM
33 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
34 (parse_menu_item): Streamline since bindings are recomputed all the
35 time anyway. Don't bother checking Vdefine_key_rebound_commands any
36 more and don't support lmenu's menu-alias any more either.
37
a88a5372
SM
38 * keymap.c (where_is_internal_data): Make noindirect a boolean.
39 (where_is_internal): Strip it down to only traverse the keymaps.
40 Move the cache handling from Fwhere_is_internal to here.
41 (Fwhere_is_internal): Move the handling of remapping and the choice of
42 the best binding from where_is_internal to here.
43 Unify the cached/noncached paths, so remapping is also handled
44 correctly when the cache is used, and so the cache can be used to
45 speed up remap-handling when applicable.
46 Give preference to non-remapped bindings.
47 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
48 non-remapped bindings.
49 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
50 command remapping.
51
19f48442
SM
52 * xdisp.c (display_mode_element): Move list length limit from 50 to
53 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
54
599498c3 552009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
56
57 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
58
f9b7b5ac
SM
592009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
60
61 * keymap.c (where_is_internal): Filter out shadowed remappings.
62 Assume that where_is_internal returns unshadowed bindings to simplify
63 the code and get rid of the gotos. Use ASIZE.
64
04f4b72d
JD
652009-09-04 Jan Djärv <jan.h.d@swipnet.se>
66
4da146f2
JD
67 * xterm.c (x_focus_changed): If we get a focusout and pointer
68 is invisible, make it visible.
69
04f4b72d
JD
70 * xterm.h: Remove condition for declaration of
71 x_*_window_to_frame.
72
7cef7ce3
SM
732009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
74
75 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
76 initial terminal as well.
77
a54fa5b7
JD
782009-09-02 Jan Djärv <jan.h.d@swipnet.se>
79
80 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 81 x_menubar_window_to_frame.
a54fa5b7
JD
82
83 * xterm.c: Remove declarations also in xterm.h
84 (XTmouse_position): Do not return valid positions
85 for clicks in the menubar and the toolbar for Gtk+.
86
87 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
88 if the widget for the event has the same top level as a frame,
89 return the frame.
90 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
91 internal windows, bug #4122.
92 (x_non_menubar_window_to_frame): Remove.
93
5a021dd0
GM
942009-09-02 Glenn Morris <rgm@gnu.org>
95
96 * buffer.c (default-major-mode): Move most of the doc from here...
97 (major-mode): ... to here.
98
548fe2f3
NR
992009-08-30 Nick Roberts <nickrob@snap.net.nz>
100
101 * process.c (wait_reading_process_output): Keep the descriptor
102 when pty is used by a non-child process, e.g., in I/O buffer of
103 GDB this allows inferior to be restarted.
104
e0840eef
EZ
1052009-08-29 Eli Zaretskii <eliz@gnu.org>
106
107 * xdisp.c (redisplay_internal): Remove redundant test and collapse
108 both branches into one.
109
82e98df4
SM
1102009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
111
112 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
113 (main): Use enable-multibyte-characters rather than
114 default-enable-multibyte-characters. Output a warning message when
115 running a unibyte session.
116
890617cb
YM
1172009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
118
119 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
120 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
121 (copy_data_segment): Also copy __program_vars section.
122 (copy_dyld_info) [LC_DYLD_INFO]: New function.
123 (dump_it) [LC_DYLD_INFO]: Use it.
124
125 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
126
e7adeadc
EZ
1272009-08-28 Eli Zaretskii <eliz@gnu.org>
128
129 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
130 $(SRC)/buildobj.h.
131 (buildobj.h): Renamed from $(SRC)/buildobj.h.
132 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
133 $(SRC)/buildobj.h.
134 (clean): Add buildobj.h.
135
3ed8bbdc
TZ
1362009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
137
138 * print.c (print_object): Set escapeflag to 1 when printing
139 hashtable keys and values.
140
155a6764
SM
1412009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
142
143 * lread.c (read_integer): Use doubles (and potentially return a float
144 number) as we do in string-to-number.
145 (read1): Use strtol to read integers, signal errors on strtol's
146 overflow and use floats if strtol's output is too large for
147 Elisp integers.
148
877610de
EZ
1492009-08-27 Eli Zaretskii <eliz@gnu.org>
150
151 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
152 (make-buildobj-SH): Fix last change.
153 (SRC): Move to before where it's first used.
154
ef73e7be
KH
1552009-08-27 Kenichi Handa <handa@m17n.org>
156
550c8289
KH
157 * process.c (send_process): Use encode_coding_object instead of
158 encode_coding_string to perform eol-conversion even if the string
159 is unibyte.
160
60afa08d
KH
161 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
162 character.
163
ef73e7be 164 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 165 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 166
7b3a82d7
DN
1672009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
168
5654bf63
DN
169 * callproc.c (Fcall_process): Remove always true #if.
170
7b3a82d7
DN
171 * lisp.h: Replace #if 0 code for checking with text pointing to
172 the --enable-checking configure flag.
173
174 * emacs.c (main): Mention the --enable-profiling configure flag
175 instead of using CFLAGS.
176
878bde49
KR
1772009-08-26 Ken Raeburn <raeburn@raeburn.org>
178
179 * Makefile.in (buildobj.h): New target.
180 (doc.o): Depend on it.
181 (temacs${EXEEXT}): Don't generate buildobj.lst.
182 (mostlyclean): Delete buildobj.h, not buildobj.lst.
183 * makefile.w32-in ($(SRC)/buildobj.h): New target.
184 ($(BLD)/doc.$(O)): Depend on it.
185 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
186 provided by Eli Zaretskii.)
187 ($(TEMACS)): Don't generate buildobj.lst.
188 * doc.c: Include buildobj.h.
189 (buildobj): New static variable.
190 (Fsnarf_documentation): Use it, instead of opening and reading
191 buildobj.lst.
192
1574224c
MA
1932009-08-25 Michael Albinus <michael.albinus@gmx.de>
194
195 * dbusbind.c (Fdbus_call_method)
196 (Fdbus_call_method_asynchronously): Use English numeric format for
197 timeout values in doc string.
198
d9da2f45
KH
1992009-08-25 Kenichi Handa <handa@m17n.org>
200
ef73e7be
KH
201 * alloc.c (mark_char_table): New function.
202 (mark_object): Use mark_char_table for a char-table.
203
d9da2f45
KH
204 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
205 (CHAR_TABLE_REF): Use it.
206
c8edcc01
KR
2072009-08-23 Ken Raeburn <raeburn@raeburn.org>
208
209 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
210 before invoking the newly build emacs to check for load-path
211 shadowing.
212
7763401b
GM
2132009-08-22 Glenn Morris <rgm@gnu.org>
214
215 * Makefile.in (bootstrap_exe): New variable.
216 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
217 Use ${bootstrap_exe}.
218
729eadda
EZ
2192009-08-22 Eli Zaretskii <eliz@gnu.org>
220
221 * coding.h (encode_coding_string): Don't encode unibyte strings.
222 (Bug#4047)
223
eb4c6ace
MA
2242009-08-22 Michael Albinus <michael.albinus@gmx.de>
225
226 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
227
228 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
229 intended as hotfix only.
230 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
231
36e34d1b
AR
2322009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
233
234 * nsterm.m (ns_get_color): Update documentation properly for last
235 change, and clean up loose ends in the code left by it. Fix
236 longstanding bug with 16-bit hex parsing, and add support for
237 yet another X11 format (rgb:r/g/b) for compatibility.
238 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
239 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
240
f983eb8a
SM
2412009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
242
243 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
244
3f56d3c6
MA
2452009-08-20 Michael Albinus <michael.albinus@gmx.de>
246
247 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
248 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
249 (xd_initialize, xd_pending_messages): Check, whether
250 $DBUS_SESSION_BUS_ADDRESS is set.
251
fb641d68
YM
2522009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
253
254 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
255
256 * nsterm.m (ns_get_color): Remove incompatible color formats again.
257
cf59a374
GM
2582009-08-20 Glenn Morris <rgm@gnu.org>
259
260 * emacs.c (system-type): Doc fix.
261
1373f3be
SM
2622009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
263
264 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
265 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
266
058ed861
MA
2672009-08-18 Michael Albinus <michael.albinus@gmx.de>
268
1373f3be
SM
269 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
270 New functions.
058ed861
MA
271 (xd_initialize): Revert change from 2009-08-16.
272
563a866e 2732009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
274
275 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 276 font-group vector, return nil.
5fc05db0 277
e42bdf01
CY
2782009-08-17 Chong Yidong <cyd@stupidchicken.com>
279
280 * process.c (status_notify): Don't perform redisplay.
281 (Fdelete_process, list_processes_1, process_send_signal):
282 Expliticly perform redisplay.
283 (wait_reading_process_output): Always check process status, but
284 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
285
4230ab74
KR
2862009-08-17 Ken Raeburn <raeburn@raeburn.org>
287
1373f3be 288 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
289 (XFLOAT_INIT): New macro for storing a float value.
290 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
291 * fns.c (sxhash): Copy out the value of a float in order to
292 examine its bytes.
293 * dbusbind.c (xd_append_arg): Likewise.
294
4230ab74
KR
295 * emacs.c (main): Don't call syms_of_data twice.
296
a0645cdd
MA
2972009-08-16 Michael Albinus <michael.albinus@gmx.de>
298
299 * dbusbind.c (xd_initialize): Add connection file descriptor to
300 input_wait_mask, in order to let select() detect, whether a new
301 message has been arrived.
ca4f31ea 302 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 303
485db0ba
MA
3042009-08-15 Michael Albinus <michael.albinus@gmx.de>
305
1373f3be
SM
306 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
307 New functions.
485db0ba
MA
308
309 * lisp.h (xd_pending_messages): Declare.
310
311 * keyboard.c (readable_events): Call xd_pending_messages.
312
b5b98ff4
CY
3132009-08-15 Chong Yidong <cyd@stupidchicken.com>
314
1373f3be 315 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 316
f8354c6e
CY
317 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
318
b5b98ff4
CY
319 * buffer.c (set_buffer_internal_1)
320 (swap_out_buffer_local_variables): Check for unbound local
321 variables (Bug#4138).
322
8b9fc636
EZ
3232009-08-14 Eli Zaretskii <eliz@gnu.org>
324
325 * process.c (create_pty): Fix last change.
326
ce959360
CY
3272009-08-13 Chong Yidong <cyd@stupidchicken.com>
328
329 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
330 (xbm_load_image): Caller changed.
64b807c9 331 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 332
c7baf7e9
NR
3332009-08-13 Nick Roberts <nickrob@snap.net.nz>
334
335 * process.c (create_pty): New function.
336 (Fstart_process): Use it to allow Emacs to just associate a pty
337 with the buffer. See associated change in gdb-mi.el.
338 (list_processes_1): Deal with no program name.
339 (start_process_unwind): Use pid == -2 to mean no process.
340
1ac9108a
SM
3412009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
342
343 * cmds.c (nonundocount): New global variable.
344 (keys_of_cmds): Initialize it.
345 (Fself_insert_command): Use it to combine upto 20 sequential chars
346 into a single undo entry, just like the Qself_insert_command code in
347 keyboard.c does.
348 Call frame_make_pointer_invisible, also like the Qself_insert_command
349 code in keyboard.c does.
350 * keyboard.c (command_loop_1): Use the new global nonundocount rather
351 than its own local replacement for it.
352
e267324c
KR
3532009-08-10 Ken Raeburn <raeburn@raeburn.org>
354
1ac9108a 355 * fns.c (concat): Don't re-set string length to its current value.
77437343 356
1ac9108a
SM
357 * coding.h (decode_coding_string, encode_coding_string):
358 Use SBYTES macro.
f0bed503 359
1ac9108a 360 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
361 (doprnt): Merge with doprnt1, discarding lispstrings code.
362 * lisp.h (doprnt_lisp): Don't declare.
363
416e006d
JL
3642009-08-07 Juri Linkov <juri@jurta.org>
365
366 * puresize.h (BASE_PURESIZE): Increase to 1270000.
367
6f7d5780
DN
3682009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
369
370 * print.c (syms_of_print): Undo previous change.
371
f19a0f5b
TZ
3722009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
373
374 * lread.c (read1, syms_of_lread): Read hashtables back from the
375 readable format.
376
377 * print.c (print_preprocess, print_object): Print hashtables fully
378 and readably.
379 (syms_of_print): Provide 'hashtable-print-readable.
380
b9173dc2
AR
3812009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
382
383 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
384 no family set.
385 (nsfont_open): Handle case when entity has no family.
386
1586503c
AR
3872009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
388
389 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
390 element, not a list, for match case.
391
087048cd
KH
3922009-07-28 Kenichi Handa <handa@m17n.org>
393
394 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
395 rigidly.
396
397 * xfont.c (xfont_list_pattern): Don't ignore the return value of
398 font_parse_xlfd. Check font properties more rigidly.
399
780c2506
DN
4002009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
401
31fd7c5c
JB
402 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
403 bsd-common.h.
780c2506 404
a8c0cc18
KH
4052009-07-27 Kenichi Handa <handa@m17n.org>
406
407 * xfaces.c (face_with_height): Call font_clear_prop.
408
4fbe2306
CY
4092009-07-26 Chong Yidong <cyd@stupidchicken.com>
410
111d9af3
CY
411 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
412
413 * xterm.c (x_term_init): Use Qx.
414
4fbe2306
CY
415 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
416
1ac9108a 417 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
418 (ns_get_color): Revert 2009-07-16 change.
419
beb0b7f9
EZ
4202009-07-25 Eli Zaretskii <eliz@gnu.org>
421
422 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 423 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 424
2baf5e76
KR
4252009-07-25 Ken Raeburn <raeburn@raeburn.org>
426
1ac9108a
SM
427 * coding.h (decode_coding_string, encode_coding_string):
428 Use SCHARS macro.
8890e5f5 429
2baf5e76 430 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 431 (load_depth): Delete.
2baf5e76
KR
432 (Qload_in_progress): New variable.
433 (load_unwind): Don't reference load_depth or load_in_progress.
434 (Fload): Likewise; specbind Qload_in_progress instead.
435 (init_lread): Don't initialize load_depth.
436 (syms_of_lread): Initialize and protect Qload_in_progress.
437
1395c6f5
AR
4382009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
439
440 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
441
4e2f36cf
AR
4422009-07-23 Yavor Doganov <yavor@gnu.org>
443
444 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
445
5dd9a6f7
AR
4462009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
447
448 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
449 Bugs 3792, 3720, 2402.
450 (ns_lookup_indexed_color): Check for bad index.
451 (ns_index_color): Init unused slot to 0.
452 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
453 Bug 3714, possibly 3082.
5dd9a6f7 454
c902b920
JR
4552009-07-22 Jason Rumney <jasonr@gnu.org>
456
1ac9108a
SM
457 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
458 Position IME window at cursor (Bug#2570).
c902b920
JR
459 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
460 (globals_of_w32fns): Dynamically load functions required above.
461
462 * w32term.c (w32_draw_window_cursor): Send message to reposition
463 any IME window.
464
090101cf
CY
4652009-07-21 Chong Yidong <cyd@stupidchicken.com>
466
467 * fileio.c: Revert 2009-07-16 changes.
468 (Vauto_save_include_big_deletions): New variable.
469 (Fdo_auto_save): Disable auto-save only if
470 auto-save-include-big-deletions is nil.
471
e6583e3d
CY
4722009-07-21 Chong Yidong <cyd@stupidchicken.com>
473
474 * xdisp.c (move_it_to): For continued lines ending in a tab, take
475 the overflowed pixels into account (Bug#3879).
476
ece435a5
KR
4772009-07-21 Ken Raeburn <raeburn@raeburn.org>
478
479 * lread.c (load_depth): New variable.
480 (Fload, load_unwind, init_lread): Set it to the load recursion
481 depth; set load_in_progress as a simple boolean based on the
482 current load_depth. (Bug#3892)
483
40b2d973
AR
4842009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
485
486 * nsfont.m (ns_has_attribute): Remove.
487 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
488
10be7e0d
JL
4892009-07-18 Juri Linkov <juri@jurta.org>
490
491 * process.c (Fset_process_query_on_exit_flag): Mention killing
492 a buffer in docstring.
493
fa055055
KH
4942009-07-17 Kenichi Handa <handa@m17n.org>
495
496 * casetab.c (shuffle): Fix the logic of setting up the cycle.
497
042f7b69
YM
4982009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
499
500 * nsfns.m (Fns_set_alpha): Remove function.
501 (syms_of_nsfns): Don't defsubr it.
502
503 * nsterm.m (ns_get_color): Remove incompatible color formats.
504 (ns_color_to_lisp): Generate #rrggbb color format string.
505
4be941e3
RS
5062009-07-16 Richard Stallman <rms@gnu.org>
507
508 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
509 (Fset_buffer_auto_saved): Handle save_length = -2.
510
4e6b227d
CY
5112009-07-16 Chong Yidong <cyd@stupidchicken.com>
512
513 * xterm.c (Qx_gtk_map_stock): New var.
514
515 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
516 of calling intern each time.
517
a1856973
YM
5182009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
519
520 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
521 does tiling.
522
523 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
524
497e54d8
KH
5252009-07-14 Kenichi Handa <handa@m17n.org>
526
72d36834
KH
527 * font.c (font_vconcat_entity_vectors): New function.
528 (struct font_sort_data): New member font_driver_preference.
529 (font_compare): Check font_driver_preference.
530 (font_sort_entities): The format of the first argument changed.
531 (font_delete_unmatched): Likewise.
532 (font_list_entities): The return type changed.
533 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
534 (font_find_for_lface): Adjuste for the above changes.
535 Don't suppress the checking of C even if the repertory supports it.
536 (Flist_fonts): Adjust for the above changes.
72d36834 537
1ac9108a
SM
538 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
539 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
540 Reject a font who has adstyle property that is different from a
541 langname derived from registry property.
1ac9108a 542 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 543
b6046155
EZ
5442009-07-13 Eli Zaretskii <eliz@gnu.org>
545
546 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
547 local copy of dirfilename.
548
fb6b6049
KH
5492009-07-13 Kenichi Handa <handa@m17n.org>
550
e2402a5e
KH
551 * chartab.c (sub_char_table_ref_and_range): Fix the range check
552 against max_char.
553
fb6b6049
KH
554 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
555 calling XSYMBOL (sym).
556
65156807
EZ
5572009-07-11 Eli Zaretskii <eliz@gnu.org>
558
1ac9108a
SM
559 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
560 New function.
561 (directory_files_internal) [WINDOWSNT]:
562 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
563 the filesystem of the directory is fast or slow.
564
565 * w32.c (logon_network_drive): Don't assume PATH is an absolute
566 file name.
567 (is_slow_fs): New function.
568 (stat): Use it to determine whether to issue more system calls to
569 get accurate file attributes, when w32-get-true-file-attributes is
570 `local'.
571
e0ab5fcf
JD
5722009-07-10 Jan Djärv <jan.h.d@swipnet.se>
573
574 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 575 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
576 parameter font-parameter as default to the font dialog.
577
784ceded
KH
5782009-07-10 Kenichi Handa <handa@m17n.org>
579
580 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
581
fb8edc0b
EZ
5822009-07-09 Eli Zaretskii <eliz@gnu.org>
583
1ac9108a 584 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 585
fb8edc0b
EZ
586 * w32.c (stat): Treat UNC file names as residing on remote
587 drives. (Bug#3542)
588
635c75b1
KH
5892009-07-09 Kenichi Handa <handa@m17n.org>
590
591 * fontset.c (fontset_find_font): Fix previous change.
592
c1d5ce94
MA
5932009-07-08 Michael Albinus <michael.albinus@gmx.de>
594
595 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
596 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
597 error flag.
598
edb61b39
KH
5992009-07-08 Kenichi Handa <handa@m17n.org>
600
374bf7e4
KH
601 * fontset.c (fontset_find_font): Fix the logic of handling
602 charset_matched.
603 (font_for_char): Delete unused var.
604 (generate_ascii_font_name): Delete it.
605
edb61b39
KH
606 * coding.h (JIS_TO_SJIS2): Fix the code range check.
607
608 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
609 (encode_coding_sjis): Fix the code range check.
610
0f3f018c
CY
6112009-07-07 Chong Yidong <cyd@stupidchicken.com>
612
613 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
614 (Fexpand_file_name): Copy string data properly (Bug#3772).
615
fcaf6f3a
JD
6162009-07-07 Jan Djärv <jan.h.d@swipnet.se>
617
618 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
619 first MapNotify.
620
6809ca75
KH
6212009-07-07 Kenichi Handa <handa@m17n.org>
622
623 * character.h (unibyte_has_multibyte_table): Delete extern.
624 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
625
626 * charset.c (Fset_charset_priority): Update charset_unibyte.
627 (syms_of_charset): Initialize charset_unibyte.
628
629 * character.c (unibyte_has_multibyte_table): Delete it.
630 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
631 charset_unibyte.
632 (multibyte_char_to_unibyte_safe): Likewise.
633 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
634
1ac9108a 635 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
636 (x_produce_glyphs): Likewise.
637
638 * .gdbinit (xcharset): Fix the treating $arg0.
639
ad9e2d54
EZ
6402009-07-04 Eli Zaretskii <eliz@gnu.org>
641
642 Emulation of `getloadavg' on MS-Windows.
643 * w32.c: Include float.h
644 (g_b_init_get_native_system_info, g_b_init_get_system_times)
645 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
646 (get_native_system_info, get_system_times): New functions.
647 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
648 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
649 (globals_of_w32): Initialize g_b_init_get_native_system_info,
650 g_b_init_get_system_times, and num_of_processors.
651
0a3472c7
JR
6522009-07-03 Jason Rumney <jasonr@gnu.org>
653
654 * w32term.c (w32_initialize): Use standard types.
655
80904120
EZ
6562009-07-03 Eli Zaretskii <eliz@gnu.org>
657
658 * dired.c (Ffile_attributes): Decode user and group names by the
659 locale's encoding. (Bug#3443)
660
6978862d
DN
6612009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
662
f8d23104
DN
663 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
664 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
665
666 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
667
668 * term.c (init_tty): Remove spurious #ifdef.
669
6978862d
DN
670 * m/mips.h: Mention this file is also used for netbsd.
671 * m/pmax.h: Remove file.
672
e044e4fc
JD
6732009-07-03 Jan Djärv <jan.h.d@swipnet.se>
674
675 * xterm.h (struct x_display_info): Add invisible_cursor.
676 (struct x_output): Add current_cursor.
677
678 * xterm.c (XTtoggle_invisible_pointer): New function.
679 (x_define_frame_cursor): Don't define cursor if invisible or the
680 same as before. Set current_cursor.
681 (x_create_terminal): Set toggle_invisible_pointer_hook.
682
683 * xfns.c (make_invisible_cursor): New function.
684 (x_set_mouse_color): Call make_invisible_cursor.
685 Set current_cursor.
686 (x_window): Set current_cursor.
687
688 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
689
690 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
691 inserting a character.
692 (read_avail_input): Call frame_make_pointer_visible.
693
694 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
695 (frame_make_pointer_invisible, frame_make_pointer_visible):
696 New functions.
e044e4fc
JD
697 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
698
699 * frame.h: Declare frame_make_pointer_invisible and
700 frame_make_pointer_visible.
701 (struct frame): Add pointer_invisible.
702
574c8efa
JD
7032009-07-02 Jan Djärv <jan.h.d@swipnet.se>
704
7b507248
JD
705 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
706 frame isn't visible.
707 (xg_frame_resized): If width/height is -1, get size of window
708 from X server.
709
710 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
711 for MapNotify.
712
835bdaa7 713 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 714 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 715 (flush_and_sync): Reintroduce.
574c8efa 716
3f1c6666 7172009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 718
31fd7c5c 719 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
720
721 * xterm.c (x_handle_net_wm_state): Also look for sticky.
722 (x_term_init): Initialize Xatom_net_wm_state_sticky.
723
724 * frame.h: Declare Qsticky.
725
cad9ef74
JD
726 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
727
728 * nsfns.m (ns_frame_parm_handlers): Ditto.
729
730 * frame.c: Declare Qsticky.
731 (frame_parms): Add sticky.
732
733 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
734
735 * xterm.h: Declare x_set_sticky.
736
737 * xterm.c (x_set_sticky): New function.
738
69b16610
JD
739 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
740 (xg_tool_bar_menu_proxy): Attach enter/leave events to
741 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
742
743 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
744
745 * frame.c: Qmaximized is new.
746 (x_set_frame_parameters): Do not handle fullscreen specially.
747 Only set width and height if explicitly set.
748 (x_set_fullscreen): Handle Qmaximized.
749 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
750 (syms_of_frame): Initialize Qmaximized.
751
1ac9108a
SM
752 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
753 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
754
755 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
756 for Expose event. Add call to x_check_fullscreen for MapNotify event.
757 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
758 set gravity to NorthWestGravity when USE_GTK.
759 (set_wm_state): New function.
31fd7c5c 760 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
761 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
762 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 763 or the case when no window manager is running. That means remove calls
3f1c6666
JD
764 to x_real_positions and x_fullscreen_adjust.
765
766 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
767 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
768 flush_and_sync.
769 (xg_height_changed): New function.
770 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
771 and gtk_window_set_policy. Set frame gravity after parsing the
772 geometry string.
3f1c6666
JD
773 (xg_update_frame_menubar, free_frame_menubar)
774 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
775 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
776 Remove calls to xg_frame_set_char_size.
777
fd503d99
KH
7782009-07-01 Kenichi Handa <handa@m17n.org>
779
780 * keyboard.c (decode_keyboard_code): New function.
781 (tty_read_avail_input): Decode the input bytes if necessary.
782
1ac9108a
SM
783 * coding.c (setup_coding_system):
784 Initialize coding->carryover_bytes to 0.
fd503d99
KH
785 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
786 use Qno_conversion.
787
24ed93fb
YM
7882009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
789
790 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
791
99061dfc
CY
7922009-06-30 Chong Yidong <cyd@stupidchicken.com>
793
1ac9108a 794 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 795
ff90fbde
JR
7962009-06-30 Jason Rumney <jasonr@gnu.org>
797
798 * w32term.c (w32_initialize): Use GetModuleHandle for library that
799 is already loaded.
800 Set user model ID if supported (bug#1849).
801
5f445726
JM
8022009-06-29 Jim Meyering <meyering@redhat.com>
803
804 Remove useless if-before-xfree test.
805 * nsfont.m (nsfont_close): Remove useless test.
806 * term.c (delete_tty): Likewise.
807 * w32.c (system_process_attributes): Likewise.
808 * w32font.c (w32font_close): Likewise.
809 * xfaces.c (x_free_gc): Likewise.
810 * xselect.c (buffer): Likewise.
811
b9607587
AS
8122009-06-28 Andreas Schwab <schwab@linux-m68k.org>
813
814 * process.c (send_process): Keep decoded string in a local
815 variable and protect it from GC. (Bug#3521)
816
89ba96f4
EZ
8172009-06-28 Eli Zaretskii <eliz@gnu.org>
818
819 * term.c (create_tty_output) [MSDOS]: #ifdef away.
820 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
821
098a1589
CY
8222009-06-28 Chong Yidong <cyd@stupidchicken.com>
823
485422be
CY
824 * xdisp.c (start_display, handle_face_prop)
825 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
826 (redisplay_window, try_window_id, produce_image_glyph):
827 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 828
098a1589
CY
829 * xterm.c (x_update_window_begin, x_new_focus_frame)
830 (x_scroll_bar_handle_click, handle_one_xevent)
831 (handle_one_xevent, XTread_socket, x_focus_on_frame)
832 (x_make_frame_visible, x_make_frame_invisible)
833 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
834 code chunks that are now obsolete.
835
78c38319
MA
8362009-06-28 Michael Albinus <michael.albinus@gmx.de>
837
838 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
839 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
840 for hours, when optimzation is enabled.
841 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
842 (xd_read_message): Make them static.
843
4189ed40
CY
8442009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
845
846 * term.c (turn_on_face): Allow simultaneously bold and dim
847 terminal faces (Bug#3530).
848
cd9b5e16
CY
8492009-06-27 Chong Yidong <cyd@stupidchicken.com>
850
4e23bedb
CY
851 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
852
cd9b5e16
CY
853 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
854 truncation glyphs (Bug#3686).
855
07cc3c35
GM
8562009-06-27 Glenn Morris <rgm@gnu.org>
857
858 * m/pmax.h: Restore file, with only netbsd portions.
859
31fd7c5c 8602009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 861
cd9b5e16 862 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 863
42d4a64f
KH
8642009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
865
866 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
867 the arg FORCE_SYMBOL.
868
930fe55b 8692009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
870
871 * fontset.c (fontset_find_font): When a usable rfont_def is found
872 in a fallback font-group, make it the first element of the group.
873
57ebc3fd
CY
8742009-06-24 Chong Yidong <cyd@stupidchicken.com>
875
876 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
877
f084f942
KH
8782009-06-24 Kenichi Handa <handa@m17n.org>
879
880 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
881 set for C.
882 (fontset_font): Record the availability of a font for C both in
883 the realized fontsets of the current one and the default one.
884
2f686c87
DN
8852009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
886
887 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
888 conditional, it is always defined on AIX.
889
666e158e
MB
8902009-06-23 Miles Bader <miles@gnu.org>
891
892 * window.c (Vrecenter_redisplay): New variable.
893 (syms_of_window): Initialize it.
894 (Qtty): New extern declaration.
895 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
896
c6da7cd2
JM
8972009-06-23 Jim Meyering <meyering@redhat.com>
898
1ac9108a
SM
899 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
900 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 901 pointer dereferences are guaranteed to be valid.
c6da7cd2 902
678dca3d
KH
9032009-06-23 Kenichi Handa <handa@m17n.org>
904
74d75424
KH
905 * emacs.c (main): Call init_font ().
906
907 * font.h (Vfont_log): Extern it.
908 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
909
910 * font.c (font_sort_entities, font_list_entities)
911 (font_matching_entity, font_open_entity)
912 (font_close_object): Change font_add_log to FONT_ADD_LOG.
913 (Vfont_log): Delete static.
914 (font_log_env_checked): Delete this variable.
915 (font_add_log): Don't check font_log_env_checked.
916 (font_deferred_log): Check Vfont_log.
917 (init_font): New function.
918
678dca3d
KH
919 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
920
921 * w32font.c: Change font_add_log to FONT_ADD_LOG.
922
923 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
924
925 * xfont.c: Change font_add_log to FONT_ADD_LOG.
926
927 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
928 (face_for_char): Don't call font_deferred_log here.
929 (font_for_char): Likewise.
930
8a668709
CY
9312009-06-22 Chong Yidong <cyd@stupidchicken.com>
932
9a01ee33
CY
933 * w32term.c (x_draw_glyph_string): Use the glyph string's width
934 rather than its background_width for drawing the overline and
935 underline (Bug#489).
936
937 * xterm.c (x_draw_glyph_string): Use the glyph string's width
938 rather than its background_width for drawing the overline and
939 underline (Bug#489).
ec7c9926
CY
940 (xg_default_icon_file): New variable.
941 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
942 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 943
8a668709
CY
944 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
945 (load_overlay_strings): Remove externs.
946 (fast_find_position): Function deleted.
947 (mouse_face_from_buffer_pos): New function, based on
948 fast_find_position. Correctly handle before-strings,
949 display-strings, and after-strings (Bug#1220).
950 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
951
4d4c02d8
CY
9522009-06-21 Chong Yidong <cyd@stupidchicken.com>
953
1ac9108a 954 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
955 (move_it_in_display_line_to, move_it_in_display_line_to)
956 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
957
70243478
CY
9582009-06-21 Chong Yidong <cyd@stupidchicken.com>
959
960 * Branch for 23.1.
961
13087e59
JR
9622009-06-21 Jason Rumney <jasonr@gnu.org>
963
964 * w32term.c (keyboard_codepage): New static variable.
965 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
966 (w32_read_socket) [WM_CHAR]: Use it to decode character
967 input (bug#3237).
968 (w32_initialize): Initialize it.
969 (codepage_for_locale): New function.
970
4735b74e
KR
9712009-06-20 Ken Raeburn <raeburn@raeburn.org>
972
973 * process.c (status_message): Pass Faset index argument as a lisp
974 object, so as to work with USE_LISP_UNION_TYPE.
975
0e727afa
YM
9762009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
977
978 * coding.c (Ffind_coding_systems_region_internal):
979 Cache checked characters.
980
cf299835
KH
9812009-06-18 Kenichi Handa <handa@m17n.org>
982
1ac9108a 983 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 984
90f20d94
AS
9852009-06-18 Andreas Schwab <aschwab@redhat.com>
986
987 * xdisp.c (redisplay_internal): Check that the frame is still
988 live after redisplay of its windows.
989 (redisplay_windows): Check that the window is still live.
990
7f1faf1c
KH
9912009-06-17 Andreas Schwab <schwab@linux-m68k.org>
992
993 * coding.c (detect_coding_utf_16): Fix previous change.
994
cc13543e
KH
9952009-06-16 Kenichi Handa <handa@m17n.org>
996
997 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
998 UTF-16 by checking the dispersion of Eth and Oth bytes.
999
977b85f4
AS
10002009-06-15 Andreas Schwab <schwab@linux-m68k.org>
1001
1002 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
1003
66bd43d1
KH
10042009-06-15 Kenichi Handa <handa@m17n.org>
1005
1006 * process.c (status_message): Fix previous change. Be sure to
1007 decode a localized string.
1008
cb5ca9c5
YM
10092009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1010
1011 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
1012 add comment explaining why.
1013
ec7709ba 10142009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 1015
ec7709ba 1016 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 1017
4b7f335c
AR
10182009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
1019
1020 * nsfont.m (ns_attribute_value): Remove.
1021 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
1022 (ns_has_attribute): Shrink the normal range.
1023 (ns_findfonts): Don't worry about requested spec in determining
1024 need for synthItal.
e41820ee 1025 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 1026
73b26103
SZ
10272009-06-14 Seiji Zenitani <zenitani@mac.com>
1028
1029 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
1030
5753e4da
KH
10312009-06-11 Kenichi Handa <handa@m17n.org>
1032
1033 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
1034 overhang for the static composition case.
1035
3561b671
KH
10362009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1037
5753e4da
KH
1038 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
1039 overhang for the automatic composition case.
1040
3561b671
KH
1041 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
1042 composition case.
1043
852bbd41
CY
10442009-06-10 Chong Yidong <cyd@stupidchicken.com>
1045
1046 * xdisp.c (get_next_display_element): When handling wrap-prefix
1047 and line-prefix, treat \n as a control character (bug#3502).
1048
9903d1e6
KH
10492009-06-10 Kenichi Handa <handa@m17n.org>
1050
1051 * font.c (font_parse_family_registry): Fix for one-char foundry.
1052 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
1053
0bcbaaaa
CY
10542009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
1055
1056 * process.c (status_message): Fix handling of multibyte signal
1057 string (Bug#3499).
1058
40aa3f13
JM
10592009-06-09 Jim Meyering <meyering@redhat.com>
1060
1f80c7e2
CY
1061 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
1062 color name is missing.
40aa3f13 1063
72d51285
KH
10642009-06-09 Kenichi Handa <handa@m17n.org>
1065
1066 * charset.c (Fmap_charset_chars): In docstring, state clearly that
1067 FROM-CODE and TO-CODE are codepoints of CHARSET.
1068
c1d04d84
AR
10692009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
1070
1071 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
1072
10732009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
1074
1075 Changes to support :script/:lang/:otf in NS font driver.
1076 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
1077 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
1078 indicate not part of font driver interface, and change callers.
1079 (ns_get_family): Remove pointless null check.
1080 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
1081 ns_spec_to_descriptor, ns_descriptor_to_entity.
1082 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
1083 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
1084 (ns_spec_to_descriptor, ns_descriptor_to_entity)
1085 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
1086 (ns_get_req_script, ns_accumulate_script_ranges)
1087 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
1088 New functions.
1089 (nsfont_list, nsfont_match): Use ns_findfonts.
1090 (nsfont_open): Use font descriptor instead of traits.
1091 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
1092 (dump_glyphstring): Rename to ns_dump_glyphstring.
1093
c7eb9816
AR
1094 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
1095
c1d04d84
AR
1096 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
1097
1098 * fontset.c (fontset_from_font): Remove NS-specific code.
1099
ec7709ba 11002009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
1101
1102 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
1103 nonactive windows.
1104
31fd7c5c 11052009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 1106
1ac9108a 1107 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 1108
68852c13 11092009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
1110
1111 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
1112
6756cd1d
CY
11132009-06-07 Chong Yidong <cyd@stupidchicken.com>
1114
1115 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
1116 account for the overflowing of newlines into the last glyph on the
1117 display line (Bug#3482).
1118
28bf482a
DR
11192009-06-05 David Reitter <david.reitter@gmail.com>
1120
ec7709ba
JB
1121 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
1122 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
1123 Fns_selection_exists_p, Fns_selection_owner_p.
1124
fdb55376
JR
11252009-06-03 Jason Rumney <jasonr@gnu.org>
1126
1127 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
1128 available. (Bug#3379)
1129
05129fbe
KH
11302009-05-29 Kenichi Handa <handa@m17n.org>
1131
1ac9108a
SM
1132 * coding.c (get_translation_table):
1133 Check Venable_character_translation.
05129fbe 1134
ec7709ba 11352009-05-26 David Reitter <david.reitter@gmail.com>
15891144 1136
ec7709ba
JB
1137 * nsterm.m (ns_raise_frame): Only raise frame if visible.
1138 (x_make_frame_visible): Move frame to front rather than calling
15891144 1139 ns_raise_frame().
ec7709ba 1140 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 1141 isn't key window.
ec7709ba 1142 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
1143 drawRect may be called by NSView even if the frame is hidden.
1144
ec7709ba
JB
1145 * nsfns.m (Fx_create_frame): Follow other ports in
1146 determining visibility; default to t. Ensure async_visible is set.
15891144 1147
21f73755
EZ
11482009-05-23 Eli Zaretskii <eliz@gnu.org>
1149
1150 * dired.c (Ffile_attributes): Doc fix.
1151
34001e41
CY
11522009-05-22 Chong Yidong <cyd@stupidchicken.com>
1153
1154 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
1155
46306a17
SM
11562009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
1157
1158 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
1159 and xfont_scratch_props.
1160 (syms_of_xfont): Do it here instead.
1161 (xfont_find_ccl_program): Delete, unused.
1162 (xfont_open): Delete unused var `i'.
1163
ef6e0694
KH
11642009-05-21 Kenichi Handa <handa@m17n.org>
1165
1166 * fontset.c (Qlatin): Don't make it static.
1167
46306a17
SM
1168 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
1169 New functions.
ef6e0694
KH
1170 (xfont_scripts_cache, xfont_scratch_props): New variables.
1171 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
1172 (xfont_list_pattern): Argument changed. Callers changed.
1173 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
1174 (xfont_list): Don't reject a font spec with :script property.
1175 (xfont_has_char): Fix setting of encoding.
1176 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
1177 xfont_scratch_props.
1178
11792009-05-19 Kenichi Handa <handa@m17n.org>
1180
46306a17 1181 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
1182 Callers changed.
1183
11842009-05-18 Kenichi Handa <handa@m17n.org>
1185
1186 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
1187
ac71ced7
SM
11882009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
1189
1190 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
1191 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
1192
1c6d1051
YM
11932009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1194
1195 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
1196 (x_delete_terminal): Dissociate resource database from display and
1197 then call XrmDestroyDatabase before closing display.
1198
9b9b779c
AR
11992009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
1200
1201 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
1202 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
1203 whether selected frame is viable before raising it (based on patch
1204 by David Reitter), and improve commentary.
1205 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 1206
cccd42d5
KH
12072009-05-15 Kenichi Handa <handa@m17n.org>
1208
1209 * font.c (Ffont_spec): Check arguments.
1210
337fbd17
CY
12112009-05-14 Chong Yidong <cyd@stupidchicken.com>
1212
1213 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
1214 weight when testing attributes (Bug#3282).
1215
47a6002f
JD
12162009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1217
1218 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
1219 what we expect to get in the next ConfigureNotify event.
1220
9cb363db
YM
1221 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
1222 before Xft one (Bug#1696).
1223
b9126609
CY
12242009-05-07 David Reitter <david.reitter@gmail.com>
1225
1226 * nsfns.m (Fx_display_planes): Compute bitplanes using
1227 NSBitsPerPixelFromDepth (Bug#3207).
1228
27a69fd9
CY
12292009-05-10 Chong Yidong <cyd@stupidchicken.com>
1230
1231 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
1232
00f37552
TTN
12332009-05-10 Ulrich Mueller <ulm@gentoo.org>
1234
1235 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
1236
2d82a920
DR
12372009-05-07 David Reitter <david.reitter@gmail.com>
1238
ec7709ba
JB
1239 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
1240 Respect mouse face background.
2d82a920 1241
46b0d52d
DR
12422009-05-07 David Reitter <david.reitter@gmail.com>
1243
ec7709ba
JB
1244 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
1245 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
1246 in ns_update_begin and ns_update_end.
1247
ce1b23bb
SM
12482009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
1249
5996e1b7
SM
1250 * nsfns.m (ns_get_screen): Rewrite.
1251 Don't presume selected-frame is of type `ns'.
1252
ba98e3a0
SM
1253 * font.c (font_update_drivers): Sanity fallback to avoid disabling
1254 all drivers.
1255
ce1b23bb
SM
1256 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
1257
bcda200f
YM
12582009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1259
1260 * keyboard.h (add_user_signal): Fix typo in extern.
1261
1262 * lisp.h (add_user_signal): Remove extern.
1263
1264 * unexelf.c (unexec): Consider a section to precede the .bss section
1265 if its addresses overlap that of .bss.
1266 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
1267 instead of dumping process.
1268
864660a2
SM
12692009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
1270
1271 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
1272
50da4e56
SM
12732009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
1274
1275 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
1276
51520a1a
DN
12772009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
1278
1279 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
1280 any statements.
1281
409ea3a1
AS
12822009-05-02 Andreas Schwab <schwab@linux-m68k.org>
1283
59c4c60f
AS
1284 * process.c (read_process_output): Make sure the current buffer is
1285 always restored.
1286
409ea3a1
AS
1287 * coding.c (record_conversion_result): Don't modify
1288 Vlast_code_conversion_error for successful result.
1289 (alloc_destination): Don't clobber conversion result. (Bug#1650)
1290
56f00ed2
KH
12912009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
1292
1293 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 1294 (load_charset_map): Remove unnecessary code.
56f00ed2 1295
4491c9d2
DR
12962009-04-30 David Reitter <david.reitter@gmail.com>
1297
35f5b128 1298 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
1299 through f24.
1300
6970f632
CY
13012009-04-30 Chong Yidong <cyd@stupidchicken.com>
1302
1303 * xfaces.c (face_at_buffer_position): New arg base_face_id.
1304
1305 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
1306 face_at_buffer_position.
1307 (face_before_or_after_it_pos, get_next_display_element)
1308 (note_mouse_highlight): Update face_at_buffer_position call.
1309
1310 * term.c (term_mouse_highlight):
1311 * msdos.c (IT_note_mouse_highlight):
1312 * fontset.c (Finternal_char_font):
35f5b128 1313 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
1314
1315 * dispextern.h (face_at_buffer_position): Update prototype.
1316
0c616f63
KH
13172009-04-30 Kenichi Handa <handa@m17n.org>
1318
35f5b128 1319 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 1320
ad3aaf33
AS
13212009-04-29 Andreas Schwab <schwab@linux-m68k.org>
1322
1323 * callproc.c (Fcall_process): Fix GC protection. Make sure
1324 current buffer is always restored.
1325
c3c963a0
YM
13262009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1327
1328 * atimer.c (init_atimer): Also clear stopped_atimers.
1329
1330 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
1331
7e3386cb
YM
1332 * process.c (create_process): Clean up merger residues of
1333 2008-07-17 change.
1334
91f68422
CY
13352009-04-29 Ulrich Mueller <ulm@gentoo.org>
1336
1337 * lread.c (Vread_circle): New variable.
1338 (read1): Disable recursive read if Vread_circle is nil.
1339
24b34550
KH
13402009-04-29 Kenichi Handa <handa@m17n.org>
1341
1342 * fontset.h (set_default_ascii_font): Delete extern.
1343
1344 * fontset.c (set_default_ascii_font): Delete this unused function.
1345
1346 * frame.c (x_set_font): When ARG is a font-object, check if the
1347 font-object matches with the ASCII font-spec of the frame's
9c358bda 1348 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 1349
77bf07e1
AS
13502009-04-28 Andreas Schwab <schwab@linux-m68k.org>
1351
1352 * fns.c (Flocale_info): Protect vector from GC during decoding.
1353
1354 * process.c (Fstart_process): Protect argv strings from GC during
1355 encoding.
1356
2c55aacf
AS
13572009-04-27 Andreas Schwab <schwab@linux-m68k.org>
1358
1359 * sysdep.c: Include <ctype.h>.
1360
b892d3c9
DR
13612009-04-27 David Reitter <david.reitter@gmail.com>
1362
35f5b128 1363 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
1364 Remove commented-out code.
1365
9d0644c4
JB
13662009-04-26 Johan Bockgård <bojohan@gnu.org>
1367
1368 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
1369
b7053016
JR
13702009-04-25 Jason Rumney <jasonr@gnu.org>
1371
1372 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
1373
4e8231f3
YM
13742009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1375
1376 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
1377 Swap bytes in short integer if fringe bitmap width > 8.
1378
493dcf2c
KH
13792009-04-23 Kenichi Handa <handa@m17n.org>
1380
1381 * xfaces.c (Fx_list_fonts): If a font size is specified in
1382 PATTERN, set it in returned scalable fonts.
1383
401e9e57
CY
13842009-04-22 Chong Yidong <cyd@stupidchicken.com>
1385
708e05dc
CY
1386 * keyboard.c (Fset_input_meta_mode): Doc fix.
1387
1388 * dispnew.c (Fsend_string_to_terminal): Doc fix.
1389
1ac9108a 1390 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
1391
1392 * coding.c (Fterminal_coding_system): Doc fix.
1393
1394 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
1395 (Fx_display_pixel_height, Fx_display_planes)
1396 (Fx_display_color_cells, Fx_server_max_request_size)
1397 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
1398 (Fx_display_mm_height, Fx_display_mm_width)
1399 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
1400 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
1401 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
1402 (check_x_display_info): Handle terminal objects instead of
1403 terminal ids.
1404
401e9e57
CY
1405 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
1406 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
1407 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
1408 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 1409
df80c7f0
KH
14102009-04-21 Kenichi Handa <handa@m17n.org>
1411
5a8f12af 1412 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 1413 (font_score): Check AVGWIDTH too.
908567ef 1414
df80c7f0
KH
1415 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
1416 worst case.
1ac9108a
SM
1417 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
1418 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 1419
705af33f
JR
14202009-04-19 Jason Rumney <jasonr@gnu.org>
1421
1422 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 1423 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
1424
1425 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
1426 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
1427 get_phys_cursor_geometry.
1428
b71ac3dd 1429 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
1430 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
1431 using get_phys_cursor_geometry.
1432
1433 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
1434 correctly calculated.
1435
dc2933eb
JD
14362009-04-19 Jan Djärv <jan.h.d@swipnet.se>
1437
1ac9108a
SM
1438 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
1439 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
1440 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
1441 is deprecated.
1442
973e7849
AS
14432009-04-18 Andreas Schwab <schwab@linux-m68k.org>
1444
1445 * font.c (font_put_frame_data): Use xfree instead of free.
1446
314d66f4
JB
14472009-04-17 Juanma Barranquero <lekktu@gmail.com>
1448
1449 * w32font.c (Qja, Qko): Remove declarations.
1450 (syms_of_w32font): Don't DEFSYM them.
1451
cf702558
CY
14522009-04-17 Chong Yidong <cyd@stupidchicken.com>
1453
1454 * font.c (Qja, Qko): Move definitions here from ftfont.c.
1455
1456 * font.h (Qja, Qko): Extern them.
1457
1458 * ftfont.c (Qja, Qko): Remove declarations.
1459
1460 * xfont.c (Qja, Qko): Remove declarations.
1461
b50504f5
KH
14622009-04-17 Kenichi Handa <handa@m17n.org>
1463
bde25748
KH
1464 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
1465 string from a vector to handle Latin-1 characters correctly.
1466
b50504f5
KH
1467 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
1468 entity even if the cache hits.
1469
f4646fff
AS
14702009-04-16 Andreas Schwab <schwab@linux-m68k.org>
1471
1472 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 1473 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 1474
e7deaab0
AS
1475 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
1476 * lisp.h: Adjust prototypes.
1477
0a0e7d49
CY
14782009-04-16 Chong Yidong <cyd@stupidchicken.com>
1479
1480 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
1481 change (Bug#3003).
1482
3c908a57
KH
14832009-04-16 Kenichi Handa <handa@m17n.org>
1484
1ac9108a 1485 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
1486
1487 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
1488 adstyle.
1489
1490 * ftfont.c (Qja, Qko): Don't make them static.
1491 (enum ftfont_cache_for): New enum.
1492 (fc_charset_table): Undo the previous change.
1493 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
1494 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
1495 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
1496 non-scarable font, try to get AVERAGE_WIDTH.
1497 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
1498 Change ft_face_cache from a list of a hash-table. Don't check
1499 `ja' and `ko' adstyle here.
1500 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
1501 FTFONT_CACHE_FOR_CHARET.
1502 (ftfont_get_charset): Undo the previous change.
1ac9108a 1503 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
1504 (ftfont_close): Likewise.
1505 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
1506
1507 * font.c (font_sort_entites): Change the meaning of the arg
1508 BEST-ONLY. Don't optimize for VEC of lenght 1.
1509 (font_select_entity): Just return the value of font_sort_entites.
1510
1511 * xfaces.c (merge_face_vectors): Reflect font properties in
1512 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
1513 font_clear_prop if a face attribute doesn't change.
1514
3c908a57
KH
1515 * charset.h (charset_ksc5601): Extern it.
1516
1517 * charset.c (charset_ksc5601): New variable.
1518 (Fdefine_charset_internal): Set charset_ksc5601.
1519 (init_charset_once): Initialize charset_ksc5601 to -1.
1520
d65859c3
DN
15212009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
1522
1523 * fileio.c (history_delete_duplicates): Remove unused declaration.
1524
1525 * callint.c (history_delete_duplicates): New declaration.
1526 (Fcall_interactively): Remove command history duplicates when
1527 history_delete_duplicates is true.
1528
3ba010e5
EZ
15292009-04-14 Eli Zaretskii <eliz@gnu.org>
1530
1531 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
1532
06f19b91
KH
15332009-04-14 Kenichi Handa <handa@m17n.org>
1534
1535 * font.c (Ffont_info): Fix docstring. Fix the second element of
1536 the returned value (bug#2949).
1537
2cce8bfc
CY
15382009-04-14 Chong Yidong <cyd@stupidchicken.com>
1539
1540 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
1541
d156542d
KH
15422009-04-14 Kenichi Handa <handa@m17n.org>
1543
1544 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
1545 encoding charset is ascii_compatible.
1546
1547 * charset.c (Fdefine_charset_internal): Make charset
1548 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
1549 code_offset is 0, and covers all ASCII characters.
1550
86fa089e
SM
15512009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
1552
1553 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
1554 (ns_string_to_pasteboard_internal):
1555 * nsmenu.m (process_dialog):
1556 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
1557 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
1558 * lisp.h (Fx_load_color_file): Declare.
1559
a8a3728b
KH
15602009-04-13 Kenichi Handa <handa@m17n.org>
1561
1ac9108a 1562 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
1563 (font_select_entity): Suppress the code to optimize for the same
1564 kind of fonts.
1565 (font_load_for_lface): Get a font that supports at least ASCII
1566 characters.
1567
1568 * ftfont.c (Qja, Qko): New variables.
1569 (fc_charset_table): Delete uniquifier data for iso8859-1.
1570 (ftfont_get_latin1_charset): New function.
1571 (get_adstyle_property): New function.
1572 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
1573 bitmap fonts.
1574 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
1575 Delete iso-8859-1 range from the charset of fonts whose adstyle is
1576 `ko' or `ja'.
1577 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 1578 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
1579 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
1580 property.
1581 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
1582 (syms_of_ftfont): DEFSYM Qja and Qko.
1583
483670b5
KH
15842009-04-09 Kenichi Handa <handa@m17n.org>
1585
12b55765
KH
1586 * charset.c (map_charset_chars): For a charset of `superset'
1587 method, fix calculation of code range.
1588
483670b5
KH
1589 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
1590 from the list of extra properties.
1591 (font_clear_prop): Be sure to delete `:name' font property.
1592
57d3b93b
KH
15932009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1594
b4b2c2ca
YM
1595 * dispnew.c (redraw_overlapping_rows): Fix detection of
1596 overlapping for topmost and bottommost rows.
1597
1ac9108a 1598 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 1599
472c3609
JR
16002009-04-06 Jason Rumney <jasonr@gnu.org>
1601
1602 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
1603
ab193662
KH
16042009-04-06 Kenichi Handa <handa@m17n.org>
1605
1606 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
1607
1608 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
1609
0c26f026
KH
16102009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1611
1612 * ftfont.c (ftfont_open): Fix checking of the return value of
1613 FT_Load_Char. Fix setting font->underline_thickness.
1614
e173bbce
CY
16152009-04-04 Chong Yidong <cyd@stupidchicken.com>
1616
1617 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
1618 (Fterminal_parameters, Fterminal_parameter)
1619 (Fset_terminal_parameter): In doc string, refer to terminal
1620 objects rather than terminal ids.
1621
693a2698
EZ
16222009-04-04 Eli Zaretskii <eliz@gnu.org>
1623
1624 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
1625 ret_lim_data. (Bug#2867)
1626
d5221487
CY
16272009-04-03 Chong Yidong <cyd@stupidchicken.com>
1628
1629 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
1630 so they don't get wider than the window, matching 2006-01-23
1631 change to the partner function in xdisp.c (Bug#2800).
1632
223509a3
KH
16332009-04-03 Kenichi Handa <handa@m17n.org>
1634
1635 * print.c (print_object): Make each lowest sub_char_table start a
1636 new line (Bug#2866).
1637
74fcd0b1
KH
16382009-04-02 Kenichi Handa <handa@m17n.org>
1639
1640 * fontset.c (fontset_font): Record no-font when a fontset
1641 explicitly tells not to try another font-specs.
1642
c542407d
SM
16432009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
1644
1645 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
1646
e3869731
KH
16472009-03-30 Kenichi Handa <handa@m17n.org>
1648
d8d2f142
KH
1649 * fontset.c (fontset_from_font): Specify only registry in a
1650 font-spec for all characters supported by that registry.
1651
e3869731
KH
1652 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
1653 even if HAVE_M17N_FLT is not defined.
1654
5da5f805
CY
16552009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
1656
1657 * ftfont.c: Conditionalize prototyping and use of
1658 ftfont_variation_glyphs.
1659
ab226c50
SM
16602009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
1661
9628fed7
SM
1662 * frame.c (delete_frame): Work around compiler bug.
1663
1664 * editfns.c (general_insert_function): Adjust to insdel.c changes.
1665 * insdel.c (prepare_to_modify_buffer, signal_before_change):
1666 Some more EMACS_INT.
1667 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
1668
1669 * xdisp.c (dump_glyph): Fix typo.
1670
ae19ba7c
SM
1671 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
1672 (adjust_markers_gap_motion, adjust_markers_for_delete)
1673 (adjust_markers_for_insert, adjust_point)
1674 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
1675 (make_gap, copy_text, count_size_as_multibyte, insert)
1676 (insert_and_inherit, insert_before_markers)
1677 (insert_before_markers_and_inherit, insert_1)
1678 (count_combining_before, count_combining_after, insert_1_both)
1679 (insert_from_string, insert_from_string_before_markers)
1680 (insert_from_string_1, insert_from_gap, insert_from_buffer)
1681 (insert_from_buffer_1, adjust_after_replace)
1682 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
1683 (replace_range_2, del_range, del_range_1, del_range_byte)
1684 (del_range_both, del_range_2, modify_region)
1685 (prepare_to_modify_buffer, signal_before_change)
1686 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
1687 for buffer positions and sizes.
1688 * lisp.h: Adjust prototypes accordingly.
1689
1690 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
1691 (non_regular_inserted, non_regular_nbytes, read_non_regular)
1692 (Finsert_file_contents): Use EMACS_INT for buffer positions.
1693
ab226c50
SM
1694 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
1695
46dfb8fb
JD
16962009-03-27 Jan Djärv <jan.h.d@swipnet.se>
1697
1698 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
1699 lines and columns so we keep the same pixel height and width.
1700
1701 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
1702 the property _NET_WM_STATE has changed.
46dfb8fb
JD
1703 (x_handle_net_wm_state): New function to update frame parameter
1704 fullscreen.
1705 (x_term_init): Initialize atoms for _NET_WM_STATE.
1706
1707 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
1708
d347e494
SM
17092009-03-27 Kevin Ryde <user42@zip.com.au>
1710
1711 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
1712 Gpm_GetEvent as an error that justifies closing the filedescriptor.
1713 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
1714 (Fgpm_mouse_stop): Pass that new parameter.
1715 * termhooks.h (close_gpm): Adjust prototype.
1716
84db11d6
SM
17172009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
1718
c95a5008
SM
1719 * lisp.h (Fx_focus_frame): Declare.
1720
84db11d6
SM
1721 * callint.c (Fcall_interactively): For '^' just delegate the work to
1722 handle-shift-selection.
1723 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
1724
0a1958d6
CY
17252009-03-24 Chong Yidong <cyd@stupidchicken.com>
1726
0bfdff23
CY
1727 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
1728
0a1958d6
CY
1729 * data.c (Qinteractive_form): New variable.
1730 (Finteractive_form): Use it.
1731
1732 * eval.c (Fcommandp): Use Qinteractive_form.
1733
58aec0d6
JR
17342009-03-24 Jason Rumney <jasonr@gnu.org>
1735
1736 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
1737 Calculate total size precisely. Decode environment variables
1738 before substituting. (Bug#38)
1739
553dd618
KH
17402009-03-24 Kenichi Handa <handa@m17n.org>
1741
1742 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 1743 encoding (Bug#2722).
553dd618 1744
c39ea606
JD
17452009-03-23 Jan Djärv <jan.h.d@swipnet.se>
1746
1747 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
1748 that gdpy is set.
1749
bc9b2b5e
AM
17502009-03-22 Alan Mackenzie <acm@muc.de>
1751
1752 * callint.c (Finteractive): Clarify the doc string - even
1753 promptless elements need \n separators.
1754
9f995a76
JR
17552009-03-22 Jason Rumney <jasonr@gnu.org>
1756
1757 * w32term.c (syms_of_w32term): Doc fix for
1758 x-use-underline-position-properties.
1759
22749e9a
EZ
17602009-03-21 Eli Zaretskii <eliz@gnu.org>
1761
1762 * w32.c (getpwuid): Change argument type to unsigned.
1763 (struct w32_id): Change type of `rid' member to unsigned.
1764 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
1765 argument ID to unsigned. All callers changed.
1766 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
1767
e00553bf
EZ
17682009-03-20 Eli Zaretskii <eliz@gnu.org>
1769
1770 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
1771 negative, produce a float value.
1772
1773 * dired.c (make_uid, make_gid): New functions.
1774 (Ffile_attributes): Use them to avoid negative UID and GID.
1775
f761d6b6
JB
17762009-03-20 Juanma Barranquero <lekktu@gmail.com>
1777
1778 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
1779 (syms_of_keyboard) <command-hook-internal, input-method-function>:
1780 Fix typos in docstrings.
1781
d507f8d7
KH
17822009-03-19 Kenichi Handa <handa@m17n.org>
1783
1784 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
1785 changed, use font_load_for_lface to get a new font object.
1786 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
1787
1788 * frame.c (x_set_font): Handle the case that ARG is a cons.
1789
c68845e0
GM
17902009-03-19 Glenn Morris <rgm@gnu.org>
1791
1792 * fileio.c (Fsubstitute_in_file_name): Doc fix.
1793
bfa49dd1
CY
17942009-03-19 Chong Yidong <cyd@stupidchicken.com>
1795
1796 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
1797
8458d4c1
KH
17982009-03-19 Kenichi Handa <handa@m17n.org>
1799
1800 * charset.c (load_charset_map_from_file): When a mapfile can't be
1801 loaded, signal an error.
1802
78e7d1fe
EZ
18032009-03-18 Eli Zaretskii <eliz@gnu.org>
1804
1805 * dired.c (Ffile_attributes): Make sure UID and GID are always
1806 positive, even if the value is too large for a positive EMACS_INT.
1807 Doc fix.
1808
1809 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
1810
5da9fdfa
YM
18112009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1812
1813 * xmenu.c (xdialog_show): Move Fredisplay call ...
1814 (Fx_popup_dialog): ... here.
1815
7519c40d
SM
18162009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
1817
1818 * dired.c (file_name_completion): Disable the first optimization just
1819 installed, since it is not implemented correctly.
1820
2cd298e2
SM
18212009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
1822
1823 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 1824 only if the entry can affect bestmatch.
2cd298e2
SM
1825 Stop the search early, as Ftry_completion already does.
1826
48d37adf
CY
18272009-03-17 Chong Yidong <cyd@stupidchicken.com>
1828
e10c9c93 1829 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 1830
9286b16a
CY
18312009-03-15 Chong Yidong <cyd@stupidchicken.com>
1832
1833 * keyboard.c (parse_menu_item): Don't display remappings as menu
1834 equivalent bindings (Bug#788).
1835
f7b146dc
JR
18362009-03-15 Jason Rumney <jasonr@gnu.org>
1837
1838 * w32term.h (WM_EMACS_PAINT): New message.
1839 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
1840 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
1841 before passing to lisp thread. (Bug#950)
1842
f761d6b6 18432009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 1844
d93f9575
CY
1845 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
1846 variable as it was never reset.
1847 (ns_term_init): Remove initialization of Lisp-settable defaults
1848 and ns_expand_space.
1849 (-setPanelFromDefaultValues): Remove ns_expand_space.
1850 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
1851 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
1852 i.e. no additional spacing, similar to Carbon port.
1853
d93f9575
CY
1854 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
1855 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 1856
305018ec
JD
18572009-03-14 Jan Djärv <jan.h.d@swipnet.se>
1858
1859 * sound.c (alsa_configure): Remove call to deprecated
1860 snd_pcm_sw_params_set_xfer_align.
1861
f761d6b6 18622009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
1863
1864 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
1865 after clicking in a detached tool bar.
1866 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
1867
46e722a9
SM
18682009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
1869
348db3dd
SM
1870 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
1871 int/Lisp_Object mixup).
46e722a9 1872
a3d16f39
KH
18732009-03-13 Kenichi Handa <handa@m17n.org>
1874
1875 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 1876 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
1877 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
1878 (set_fontset_font): Change ARG to a vector. Handle range_list in
1879 ARG correctly.
1880 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 1881 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
1882 the above change.
1883 (fontset_from_font): Fix previous change.
fe24f56a 1884 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
1885 entry. If FONTSET is the default fontset, don't set the extra
1886 slot of the returning char-table.
1887
b066e6b6
JB
18882009-03-12 Juanma Barranquero <lekktu@gmail.com>
1889
1890 * nsfns.m (Fx_close_connection): Doc fix.
1891 (Fns_do_applescript): Reflow docstring.
1892 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
1893 (Fx_display_pixel_width, Fx_display_pixel_height)
1894 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
1895 Fix typos in docstrings.
1896 (Fns_set_alpha): Fix typos in error messages.
1897
d472514e 18982009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 1899
d472514e 1900 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
1901 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
1902 were used for such events.
1903
d472514e
JB
1904 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
1905 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 1906
d472514e 1907 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
1908 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
1909
fb930676
KH
19102009-03-11 Kenichi Handa <handa@m17n.org>
1911
ff85581a
KH
1912 * font.h (font_open_by_spec): Extern it.
1913
c50b7e98
KH
1914 * font.c (font_open_by_spec): New function.
1915 (font_open_by_name): Use font_open_by_spec.
1916
fb930676
KH
1917 * frame.c (x_set_font): When ARG is a font-object, don't alter the
1918 fontset of the frame.
1919
1920 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
1921 modify the default font of frames that use this fontset.
1922 (num_auto_fontsets): New variable.
1923 (fontset_from_font): Use num_auto_fontsets to decide a fontset
1924 name. Be sure to set FONTSET_ASCII to the correct font name.
1925 (update_auto_fontset_alist): New function.
1926
df4e8455
JB
19272009-03-11 Juanma Barranquero <lekktu@gmail.com>
1928
1929 * makefile.w32-in: Update dependencies.
1930
0a375797
AR
19312009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
1932
1933 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
1934
61313fa3
SM
19352009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
1936
1937 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
1938
b55103fb
CY
19392009-03-10 Chong Yidong <cyd@stupidchicken.com>
1940
1941 * lread.c (Feval_buffer): Doc fix.
1942
dde2559c
KH
19432009-03-09 Kenichi Handa <handa@m17n.org>
1944
1945 * charset.c (Qfile_name_handler_alist): Extern it.
1946 (load_charset_map_from_file): Temporarily bind
1947 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
1948
df4e8455 19492009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 1950
47f588bb
GM
1951 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
1952 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 1953
4ddf94bd
AR
19542009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
1955
4c9bdfc2
AR
1956 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
1957 (x_set_window_size): Change back to calculated method of setting
1958 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
1959 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
1960 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
1961
fe41ae9e
AR
1962 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
1963
4c9bdfc2
AR
1964 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
1965 accelerator in parens under GNUstep.
1966
825d0875
KH
19672009-03-06 Kenichi Handa <handa@m17n.org>
1968
1969 These changes are to detect incorrect composition sequence without
f3b3be74 1970 looking ahead the source. (Bug#2370)
825d0875
KH
1971
1972 * coding.h: Include "composite.h".
1973 (enum compisition_state): New enum.
1974 (struct compisition_status): New struct.
1975 (struct iso_2022_spec): New member cmp_status.
1976 (struct emacs_mule_spec): New struct.
1977 (struct coding_system): New members ctext_extended_segment_len and
1978 embedded_utf_8. Change the union member
1979 spec.emacs_mule_full_support to spec.emacs_mule.
1980
1981 * coding.c (CODING_ISO_CMP_STATUS): New macro.
1982 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 1983 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
1984 (ADD_COMPOSITION_DATA): New arg nbytes.
1985 (emacs_mule_char): New arg cmp_status.
1986 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
1987 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
1988 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
1989 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
1990 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
1991 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
1992 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
1993 (EMACS_MULE_COMPOSITION_END): New macro.
1994 (emacs_mule_finish_composition): New function.
1995 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
1996 (decode_coding_emacs_mule): Avoid long looking ahead while
1997 handling composition.
1998 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
1999 (ENCODE_COMPOSITION_RULE): New macro.
2000 (finish_composition): New function.
2001 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
2002 (DECODE_COMPOSITION_START): New implementation.
2003 (DECODE_COMPOSITION_END): Likewise.
2004 (STORE_COMPOSITION_RULE): New macro.
2005 (decode_coding_iso_2022): Avoid long looking ahead while handling
2006 composition, CTEXT extended segment, and embedded UTF-8.
2007 (setup_coding_system): For a coding of type iso-2022, reset
2008 CODING_ISO_EXTSEGMENT_LEN (coding) and
2009 CODING_ISO_EMBEDDED_UTF_8 (coding).
2010 (get_translation): Delete arguments last_block, from_nchars,
2011 to_nchars. Callers changed.
2012 (produce_chars): Don't modify charbuf. Adjusted for the change of
2013 get_translation.
98a326f7 2014 (produce_composition): Adjust for the new annotation sequence.
825d0875 2015 (handle_composition_annotation): Likewise.
98a326f7 2016 (consume_chars): Adjust for the change of get_translation.
825d0875 2017
ccbc4452
AR
20182009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
2019
4ddf94bd 2020 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 2021
988a7ddb
KH
20222009-03-05 Kenichi Handa <handa@m17n.org>
2023
2024 * font.c (font_select_entity): New function.
2025 (font_find_for_lface): Use font_select_entity to select a font.
2026
2027 * fontset.c (fontset_find_font): If a font found without
a8a3728b 2028 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
2029 font with C restriction.
2030
98a326f7 20312009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 2032
be1bce46 2033 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 2034
10ea2b82
JR
20352009-03-04 Jason Rumney <jasonr@gnu.org>
2036
2c93b248 2037 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 2038 characters that have already been read. (Bug#2569)
2c93b248 2039
10ea2b82
JR
2040 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
2041 Log an error message if check_image_size failed.
2042 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 2043 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 2044
71a0c011
EZ
20452009-03-02 Eli Zaretskii <eliz@gnu.org>
2046
2047 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
2048 when decoding process output.
2049
2f63bba8
RS
20502009-03-01 Richard M Stallman <rms@gnu.org>
2051
2052 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
2053
2054 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
2055
0a9564cb
EZ
20562009-02-28 Eli Zaretskii <eliz@gnu.org>
2057
2058 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
2059 (decode_coding_emacs_mule, decode_coding_iso_2022)
2060 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
2061 (decode_coding_raw_text, decode_coding_charset)
2062 (setup_coding_system, decode_eol, decode_coding, consume_chars):
2063 Honor inhibit-eol-conversion. (Bug #2186)
2064
449148b3
JR
20652009-02-28 Jason Rumney <jasonr@gnu.org>
2066
2067 * coding.c (detect_coding_charset): If not checking latin extra,
2068 fail on characters between 0x80 and 0xA0. (Bug#2354)
2069
a4aee864
EZ
20702009-02-28 Eli Zaretskii <eliz@gnu.org>
2071
2072 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 2073 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 2074
d88bee5a
GM
20752009-02-27 Glenn Morris <rgm@gnu.org>
2076
2077 * callint.c (Finteractive): Doc fix.
2078
a808f22d
KH
20792009-02-27 Kenichi Handa <handa@m17n.org>
2080
2081 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
2082
caf8d60c
CY
20832009-02-27 Chong Yidong <cyd@stupidchicken.com>
2084
2085 * font.c (font_style_to_value): Set value for unknown symbols to
2086 100 instead of 255.
b61137ea
CY
2087 (weight_table, slant_table, width_table): Treat "unspecified" as
2088 the default value.
caf8d60c 2089
1a0de25c
JB
20902009-02-26 Juanma Barranquero <lekktu@gmail.com>
2091
2092 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
2093
8fc45744
JB
20942009-02-25 Juanma Barranquero <lekktu@gmail.com>
2095
107bd7d1
JB
2096 * lread.c (Fload): Stop checking Vloads_in_progress and signal
2097 error as soon as a recursive load is detected.
8fc45744 2098
f097e223
AR
20992009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2100
2101 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
2102 before caching.
2103
8810a12f
KH
21042009-02-24 Kenichi Handa <handa@m17n.org>
2105
2106 * fontset.c (fontset_find_font): Fix the condition for checking
2107 unavailable font.
2108
2c7d1565
GM
21092009-02-24 Glenn Morris <rgm@gnu.org>
2110
2111 * xfaces.c (Finternal_set_font_selection_order): Remove leading
2112 whitespace that confuses documentation.
2113
a20878b6
MB
21142009-02-23 Miles Bader <miles@gnu.org>
2115
2116 * process.c (Flist_system_processes, Fprocess_attributes)
2117 (syms_of_process): Rename `system-process-attributes' to
2118 `process-attributes'.
2119
b3b58c01
AS
21202009-02-22 Andreas Schwab <schwab@linux-m68k.org>
2121
1b3b981b
AS
2122 * coding.h (struct coding_system): Make safe_charsets a pointer to
2123 unsigned char.
2124 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
2125 being 255.
2126 (SAFE_CHARSET_P): Likewise.
2127 (setup_iso_safe_charsets): Properly setup safe_charsets.
2128 (Fdefine_coding_system_internal): Likewise.
2129 (setup_coding_system): Likewise. Remove unneeded casts.
2130 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
2131 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
2132 unneeded casts.
2133
b3b58c01
AS
2134 * insdel.c (del_range_2): Don't modify gap contents when called
2135 from decode_coding_object. (Bug#1809)
2136
0b6f228c
CY
21372009-02-21 Chong Yidong <cyd@stupidchicken.com>
2138
2139 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
2140 Qfont_object.
2141 (Ftype_of): Recognize font objects.
2142
2143 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
2144
2145 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
2146 moved to data.c.
2147
52f8870b
AR
21482009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
2149
2150 * nsterm.m (x_make_frame_invisible): Unset async_visible,
2151 async_iconified. Based on a patch by Christian Lynbech
2152 <christian.lynbech@tieto.com>.
2153 (EmacsView-windowDidMiniaturize:): Unset async_visible.
2154
7087d5e9
GM
21552009-02-20 Glenn Morris <rgm@gnu.org>
2156
2157 * syntax.c (Fskip_chars_forward): Fix doc typo.
2158
41d2ceef
CY
21592009-02-20 Chong Yidong <cyd@stupidchicken.com>
2160
2161 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
2162
1a3b7ca6
CY
21632009-02-19 Chong Yidong <cyd@stupidchicken.com>
2164
2165 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
2166
73cce38d
KH
21672009-02-19 Kenichi Handa <handa@m17n.org>
2168
2169 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 2170 Don't overflow coding->carryover. (Bug#2370)
73cce38d 2171
a51092ee
DN
21722009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
2173
2174 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
2175
c423ecca
KH
21762009-02-18 Kenichi Handa <handa@m17n.org>
2177
2178 * font.c (font_check_otf_features): Fix handling of `nil' element.
2179 (Ffont_spec): Describe :lang and :otf in the docstring.
2180
4c1958f4
AS
21812009-02-16 Andreas Schwab <schwab@suse.de>
2182
2183 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
2184 string.
2185
5704f39a
KH
21862009-02-16 Kenichi Handa <handa@m17n.org>
2187
2188 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 2189 (Bug#1723)
5704f39a 2190
8f0085aa
CY
21912009-02-14 Chong Yidong <cyd@stupidchicken.com>
2192
a057d86a 2193 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
2194
2195 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
2196 (handle_line_prefix): Suppress wrapping of wrap prefixes.
2197
aff01dd9
EZ
21982009-02-14 Eli Zaretskii <eliz@gnu.org>
2199
2200 * msdos.c (MAX_SCREEN_BUF): New macro.
2201 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
2202 Encode the entire run of glyphs sharing the same face, instead of
2203 doing that one glyph at a time (fixes a bug with displaying
2204 double-size characters).
2205
ba301db3
AR
22062009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
2207
2208 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
2209
2210 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
2211 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 2212 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
2213
2214 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 2215 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 2216
51d861de
SM
22172009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
2218
2219 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
2220 invisible areas.
2221
7fed8996
JR
22222009-02-12 Jason Rumney <jasonr@gnu.org>
2223
631ea4fb
JR
2224 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
2225 (add_font_entity_to_list): Call check_face_name even when family
2226 is unspecified.
2227
cb4a3e42
JR
2228 * w32term.c (x_display_pixel_height, x_display_pixel_width):
2229 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 2230 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 2231
7fed8996 2232 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 2233 raster fonts. (Bug#2219)
7fed8996 2234
895416e3
KH
22352009-02-12 Kenichi Handa <handa@m17n.org>
2236
2237 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
2238 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
2239 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 2240 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
2241 (find_automatic_composition): While looking forward and backward,
2242 check static composition. Fix where to stop looking forward.
2243 (composition_adjust_point): Fix checking of static composition.
2244 (Fcomposition_get_gstring): Pay attention to
1dacf998 2245 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
2246
2247 * lisp.h (fast_looking_at): Extern it.
2248
2249 * search.c (fast_looking_at): New function.
2250
51d861de 2251 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
2252 <struct glyph>.u.cmp.to.
2253 (append_composite_glyph): Likewise.
2254
51d861de 2255 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
2256 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
2257 composition.
51d861de 2258 (append_composite_glyph): Adjust for the change of
895416e3
KH
2259 <strcut glyph>.u.cmp.to.
2260
8510724d
JB
22612009-02-11 Juanma Barranquero <lekktu@gmail.com>
2262
2263 * casetab.c (init_casetab_once):
2264 * coding.c (ALLOC_CONVERSION_WORK_AREA):
2265 * font.c (font_update_lface):
2266 * fontset.c (Fnew_fontset):
2267 * ftfont.c (ftfont_drive_otf):
2268 * xfont.c (xfont_open):
2269 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
2270
294fa707
SM
22712009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
2272
2273 * fileio.c (Fwrite_region): !NILP -> CONSP.
2274
b5bfebec
AS
22752009-02-10 Andreas Schwab <schwab@suse.de>
2276
2277 * process.c (send_process): Properly relocate pointer into data
adab88bd 2278 when using encoded data. (Bug#2272)
b5bfebec 2279
cb84a2be
KH
22802009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
2281
2282 * coding.c (detect_coding_charset): Fix previous change.
2283
89e09428
JR
22842009-02-08 Jason Rumney <jasonr@gnu.org>
2285
2286 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 2287 disappeared while hourglass was displayed. (Bug #2193)
89e09428 2288
4470a277
AS
22892009-02-07 Andreas Schwab <schwab@suse.de>
2290
2291 * unexelf.c (unexec): Fix error message.
2292
3175b12a
AR
22932009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
2294
2295 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 2296 when modal window is active. (Bug #2152)
3175b12a
AR
2297 (applicationShouldTerminate:): Remove now-unneeded while loop
2298 around NSRunAlertPanel.
2299
2300 * nsmenu.m (popupSession): New file-global variable.
2301 (pop_down_menu): End the popupSession before closing dialog.
2302 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
2303 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
2304 don't query NSApp for events (just sleep instead).
2305
8434d0b8
EZ
23062009-02-07 Eli Zaretskii <eliz@gnu.org>
2307
51d861de
SM
2308 * coding.c (syms_of_coding) <translation-table-for-input>:
2309 Modify doc string to discourage use for character code unification.
8434d0b8 2310
aa82edfd
CY
23112009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2312
2313 * atimer.c (run_timers): Update pending_atimers.
2314
2d283c7c
CY
23152009-02-06 Chong Yidong <cyd@stupidchicken.com>
2316
eb306cab
CY
2317 * image.c (svg_load_image): Fix last change.
2318
2d283c7c
CY
2319 * xfns.c (Fx_create_frame): Signal an error if no font is
2320 found (Bug#2147).
2321
4d8e170e
JB
23222009-02-05 Juanma Barranquero <lekktu@gmail.com>
2323
2324 * character.c (syms_of_character) <script-representative-chars>:
2325 Fix typo in docstring.
2326
c96169a0
AR
23272009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
2328
2329 * nsmenu.m (pop_down_menu): New function.
2330 (ns_popup_dialog): Call it on unwind.
2331 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
2332 call timer_check() (Bug#2154).
2333 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
2334 handling_signal is set.
2335 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
2336
31fd7c5c 2337 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
2338
2339 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
2340
2341 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
2342
51d861de
SM
2343 * keyboard.c (poll_for_input_1, handle_async_input):
2344 Set handling_signal under HAVE_NS.
c96169a0 2345
aacd8ba1
GM
23462009-02-04 Glenn Morris <rgm@gnu.org>
2347
2348 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
2349
4cb75c4b
KH
23502009-02-04 Kenichi Handa <handa@m17n.org>
2351
2352 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
2353
2354 * charset.c (Fchar_charset): New optional arg restriction.
2355
2356 * coding.h (coding_system_charset_list): Extern it.
2357
2358 * coding.c (coding_system_charset_list): New function.
2359
2360 * composite.c: Include coding.h and termhooks.h.
2361 (composition_gstring_p): Fix for the terminal case.
2362 (composition_gstring_width): Likewise.
2363 (fill_gstring_body): Likewise.
2364 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
2365 the frame.
2366 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
2367 is within a composition.
867d4bb3 2368 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
2369
2370 * term.c (encode_terminal_code): Fix handling of composition.
2371 (produce_composite_glyph): For static composition, get pixel_width
2372 from struct composition.
2373
826ba17e
AS
23742009-02-02 Andreas Schwab <schwab@suse.de>
2375
2376 * unexelf.c (unexec): Handle unaligned bss offset.
2377
8ad093db
AR
23782009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
2379
2380 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
2381 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 2382
8ad093db
AR
2383 * keyboard.c (handle_interrupt): Don't call
2384 quit_throw_to_read_char() under NS.
d0a76a6e 2385
8ad093db
AR
2386 * blockinput.h: Remove NS-specific code.
2387
4d18a7a2
DN
23882009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
2389
db878925
DN
2390 * dispnew.c (window_change_signal): Don't try to get the size of a
2391 suspended tty frame.
2392 * term.c (Fresume_tty): Resize if the size has changed while the
2393 tty was suspended.
2394
4d18a7a2
DN
2395 * alloc.c (mark_stack): Properly conditionalize previous change.
2396
8984df7c
JB
23972009-01-30 Juanma Barranquero <lekktu@gmail.com>
2398
2399 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
2400 * w32term.c (w32_read_socket) [SYNC_INPUT]:
2401 Remove; this code is not used on Windows.
2402
75f4f1ac
EZ
24032009-01-30 Eli Zaretskii <eliz@gnu.org>
2404
2405 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
2406 EOLs that also has stray ^M characters.
2407
07a1e794
JB
24082009-01-30 Juanma Barranquero <lekktu@gmail.com>
2409
2410 * atimer.c (run_timers, alarm_signal_handler):
2411 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
2412 * w32inevt.c (w32_console_read_socket):
2413 * w32term.c (w32_read_socket):
2414 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
2415
a8b11cc9
CY
24162009-01-30 Chong Yidong <cyd@stupidchicken.com>
2417
2418 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
2419 Initialize it as a relative filename pattern.
2420 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
2421 (Fcall_process_region): Simplify temp file creation using
2422 temporary-file-directory.
2423
c279587b
EZ
24242009-01-29 Eli Zaretskii <eliz@gnu.org>
2425
2426 * msdos.c: Rename pending_signals to msdos_pending_signals.
2427 (sig_suspender, sigprocmask): Adjust.
2428
a8fe3242
CY
24292009-01-29 Chong Yidong <cyd@stupidchicken.com>
2430
2431 * keyboard.c (pending_signals): New var.
2432 (poll_for_input, input_available_signal, init_keyboard): Set it.
2433 (process_pending_signals): New function.
2434
2435 * lisp.h (QUIT): Check pending_signals instead of
2436 interrupt_input_pending. Use process_pending_signals.
2437
51d861de 2438 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 2439
51d861de 2440 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
2441
2442 * sysdep.c (emacs_write): Use process_pending_signals.
2443
2444 * xterm.c (XTread_socket): Update pending_signals.
2445
2446 * w32term.c (w32_read_socket): Update pending_signals.
2447
2448 * w32inevt.c (w32_console_read_socket): Update pending_signals.
2449
6570a1c4
KH
24502009-01-29 Kenichi Handa <handa@m17n.org>
2451
2452 * xftfont.c (xftfont_has_char): New function.
2453 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
2454
d72a4afa
AR
24552009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
2456
2457 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
2458 under GNUstep.
2459 (ns_query_color): New declaration.
2460
2461 * nsterm.m (ns_confirm_quit): New variable.
2462 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
2463 (EmacsApp-applicationShouldTerminate:): Use it.
2464 (EmacsPrefsController): Let user set it.
2465 (ns_query_color): New function.
2466 (ns_defined_color): Use it.
2467 (ns_initialize): Drop.
2468 (ns_term_init): Add two lines from ns_initialize(), and set
2469 input_interrupt_mode to nil.
2470
2471 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 2472 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 2473
9fe78804
KH
24742009-01-28 Kenichi Handa <handa@m17n.org>
2475
2476 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
2477 (fontset_get_font_group): Remember that no font-group is specified
2478 for C.
9fe78804 2479
fa57de36
CY
24802009-01-27 Chong Yidong <cyd@stupidchicken.com>
2481
930600e9
CY
2482 * fns.c (concat): Check for string overflow (bug#1787).
2483
fa57de36
CY
2484 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
2485 Quadruple undo limits (bug#1501).
2486
7179ce7b
KH
24872009-01-27 Kenichi Handa <handa@m17n.org>
2488
2489 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
2490 directly use GT_Get_Char_index.
2491
2492 * xftfont.c (struct xftfont_info): New member `index'.
2493
2494 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 2495 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 2496
5be8fcc0
CY
24972009-01-26 Kenichi Handa <handa@m17n.org>
2498
2499 * fontset.c (fontset_find_font): Fix handling of non-cons return
2500 value of fontset_get_font_group.
2501 (fontset_font): Revert last change.
2502
19ae3e61
JR
25032009-01-26 Jason Rumney <jasonr@gnu.org>
2504
2505 * w32font.c (w32font_list_internal): Return quickly if registry is
2506 unknown. Simplify final return.
2507 (add_font_entity_to_list): Break complex logic down into more
2508 manageable chunks. Move unknown registry check to
2509 w32font_list_internal.
2510
8612b71a
AR
25112009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
2512
2513 Changes to remove Feval calls from GUI under NS.
2514
d8038940
JB
2515 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
2516 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
2517 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
2518
2519 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
2520 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
2521 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
2522 instead of NON_ASCII_KEYSTROKE_EVENT.
2523 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
2524 (EmacsApp-applicationShouldTerminate:): Query user.
2525 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
2526 instead of Feval.
2527
2528 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
2529
2530 * keyboard.c (kbd_buffer_get_event): Check for it.
2531 (keys_of_keyboard): Define lispy keys for
2532 ns-put/unput-working-text.
2533
2534 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
2535 versions.
2536 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
2537
6288ae55
CY
25382009-01-25 Chong Yidong <cyd@stupidchicken.com>
2539
2540 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 2541 setting current_buffer directly. (Bug#2044)
6288ae55 2542
289e7f8f
CY
25432009-01-24 Chong Yidong <cyd@stupidchicken.com>
2544
5ce87308 2545 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 2546 any work. (Bug#1952, bug#1990).
5ce87308 2547
64cc3cf6 2548 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 2549
b3243e6f
AR
25502009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2551
2552 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
2553 (ns_no_defaults): New declaration.
2554 (main): Use it.
e0d2e69a 2555
d900b2af 2556 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 2557
d900b2af 2558 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 2559
d900b2af
AR
2560 * nsterm.m (ns_no_defaults): New variable.
2561 (ns_initialize): Don't read defaults when ns_no_defaults.
2562 (EmacsView-readSelectionFromPasteboard:)
2563 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 2564 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
2565 (ns_dumpglyphs_stretch): New function.
2566 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 2567 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 2568
e0d2e69a
AR
2569 * nsimage.m (setPixmapData:): Set to ignore image DPI.
2570
3ac71f5d
CY
25712009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
2572
2573 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
2574 call for Sparc64.
2575
3fe53a83
AR
25762009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
2577
2578 * nsfns.m:
2579 * nsgui.h:
2580 * nsmenu.m:
2581 * nsselect.m:
2582 * nsterm.h:
2583 * nsterm.m: Remove '23' comments that indicated code added during
2584 update from emacs-20 -> emacs-23.
2585
10f87c6f 25862009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
2587
2588 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 2589 ns_alternate_modifier. (Bug#1217)
a3b53a85 2590
c7cef62d
AR
2591 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
2592 Display all shortcuts, including those w/o super modifier.
2593
575fb8bd
AR
2594 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
2595
918b848b
CY
25962009-01-22 Chong Yidong <cyd@stupidchicken.com>
2597
2598 * fileio.c (Vwrite_region_post_annotation_function)
2599 (Vwrite_region_annotation_buffers): New vars.
2600 (build_annotations_unwind): Just reset
2601 Vwrite_region_annotation_buffers.
2602 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
2603 Call write-region-post-annotation-function.
2604 (build_annotations): Add to Vwrite_region_annotation_buffers if
2605 buffer changes.
2606
a39e2539
AR
26072009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
2608
2609 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
2610 Tiger.
51d861de
SM
2611 * nsfns.m (ns_do_applescript):
2612 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 2613
35ed44db
AR
26142009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
2615
2616 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
2617
cbe0b5bf
AR
26182009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
2619
2620 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 2621
6049d3a0
AR
2622 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
2623
2624 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
2625 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
2626 handle Ctrl-tab. (Bug#1841)
2627 (ns_get_color): Use unsigned long long for scanned hex string value.
2628 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 2629 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 2630 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 2631 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 2632 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 2633 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 2634 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 2635
d3810c21 2636 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 2637 DPI. (Bug#1316)
d3810c21
AR
2638 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
2639 values in onTiger section.
4c7077c3 2640
e301e634
CY
26412009-01-19 Chong Yidong <cyd@stupidchicken.com>
2642
7f82490b
CY
2643 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
2644 Check return value of font_spec_from_name.
64cc3cf6 2645 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
2646
2647 * font.c (font_spec_from_name): Return Qnil if font name could not
2648 be parsed.
2649 (font_parse_name): Treat a `?' character as part of an XLFD.
2650
e301e634
CY
2651 * fns.c (Fsubstring): Doc fix.
2652
1c0db158
KH
26532009-01-19 Kenichi Handa <handa@m17n.org>
2654
51d861de 2655 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
2656 (ftfont_list): Likewise.
2657
acf20901
JB
26582009-01-18 Juanma Barranquero <lekktu@gmail.com>
2659
fff4e459
JB
2660 * dbusbind.c (Fdbus_register_signal):
2661 * process.c (conv_sockaddr_to_lisp):
2662 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
2663
acf20901
JB
2664 * callproc.c (Fgetenv_internal): Doc fix.
2665
e7abcdfb
CY
26662009-01-16 Chong Yidong <cyd@stupidchicken.com>
2667
2668 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
2669 it is not even used.
2670
b60861e6
GM
26712009-01-16 Glenn Morris <rgm@gnu.org>
2672
2673 * font.c (Ffont_variation_glyphs): Silence compiler.
2674
8db52afe
JB
26752009-01-15 Juanma Barranquero <lekktu@gmail.com>
2676
2677 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
2678 Reported by David Robinow <drobinow@gmail.com>.
2679
4cddb209
KH
26802009-01-15 Kenichi Handa <handa@m17n.org>
2681
51d861de 2682 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 2683
f247f67b
JR
26842009-01-14 Jason Rumney <jasonr@gnu.org>
2685
2686 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 2687 never a fontset. (Bug#1562)
f247f67b 2688
f56a4450
KH
26892009-01-14 Kenichi Handa <handa@m17n.org>
2690
2691 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 2692 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 2693
4e99855e
CY
26942009-01-13 Chong Yidong <cyd@stupidchicken.com>
2695
2696 * font.c (font_clear_prop): If clearing the family, clear the font
2697 width index too.
2698
fff4e459 2699 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 2700
24f01470
JB
27012009-01-12 Juanma Barranquero <lekktu@gmail.com>
2702
2703 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
2704 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
2705 functions, use sizeof.
2706
a41240a3
MR
27072009-01-12 Martin Rudalics <rudalics@gmx.at>
2708
2709 * keyboard.c (read_char): Fix case where last_nonmenu_event
2710 returned a bad value with submenus. (Bug#447)
2711
944636b8
CY
27122009-01-12 Chong Yidong <cyd@stupidchicken.com>
2713
2714 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
2715 family, clear the font width index too.
2716
0dad7c6f
JR
27172009-01-11 Jason Rumney <jasonr@gnu.org>
2718
2719 * keyboard.c (cmd_error_internal): Exit when errors occur before
2720 frame creation and not in daemon mode. (Bug#1836)
2721
7c2363af
CY
27222009-01-10 Chong Yidong <cyd@stupidchicken.com>
2723
2724 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
2725 of a display vector, backtrack.
2726 (try_window_reusing_current_matrix): Check glyph type before
2727 referencing charpos member.
2728
97b1b294
EZ
27292009-01-10 Eli Zaretskii <eliz@gnu.org>
2730
2731 Fix Bug #876:
2732
2733 * coding.c (inhibit_null_byte_detection): New variable.
2734 (detect_coding, detect_coding_system): Don't pay attention to null
2735 bytes if inhibit_null_byte_detection is non-zero.
51d861de 2736 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
2737 <inhibit-iso-escape-detection>: Doc fix.
2738
4624b6e3
JR
27392009-01-09 Jason Rumney <jasonr@gnu.org>
2740
2741 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 2742 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
2743 Only report Unicode Plane 2 fonts as unicode-sip.
2744
323b840c
CY
27452009-01-09 Chong Yidong <cyd@stupidchicken.com>
2746
51d861de
SM
2747 * xfaces.c (Fx_font_family_list): Delete function.
2748 Move compatibility version to faces.el.
323b840c 2749
51d861de 2750 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 2751
eba7400d
MR
27522009-01-09 Martin Rudalics <rudalics@gmx.at>
2753
2754 * frame.c (x_set_frame_parameters): Remember requested value for
2755 fullscreen before it's reset by the parameter handler.
2756
4b09796d
GM
27572009-01-09 Glenn Morris <rgm@gnu.org>
2758
2759 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 2760 (last_command_event): ... and update all users.
4b09796d
GM
2761 (last_input_char): For clarity, rename to...
2762 (last_input_event): ... and update all users.
2763 (last-command-char, last-input-char): Move to subr.el as aliases.
2764 * cmds.c, commands.h: Update for last_command_char rename.
2765
14ccea62
CY
27662009-01-08 Chong Yidong <cyd@stupidchicken.com>
2767
51d861de 2768 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 2769
5f004711
JR
27702009-01-08 Jason Rumney <jasonr@gnu.org>
2771
2772 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
2773 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
2774 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
2775 Don't declare.
fff4e459 2776 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
2777 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
2778
b71f6f73
KH
27792009-01-07 Kenichi Handa <handa@m17n.org>
2780
50b06221 2781 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 2782 remember the coding system used for decoding in
50b06221
KH
2783 coding_system (Bug#1039).
2784
b71f6f73 2785 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 2786 breaking the loop. (Bug#870)
b71f6f73
KH
2787 (decode_coding_utf_16, decode_coding_emacs_mule)
2788 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
2789 (decode_coding_charset): Likewise.
2790
56f668f7
MR
27912009-01-05 Martin Rudalics <rudalics@gmx.at>
2792
2793 * frame.c (x_set_frame_parameters): Make sure height (width) get
2794 applied when fullwidth (fullheight) is set. (Bug#1522)
2795
5da9424d
JB
27962009-01-04 Juanma Barranquero <lekktu@gmail.com>
2797
2798 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
2799 (utc_base): Declare as ULONGLONG, not long double.
2800 (convert_time_raw): Delete.
2801 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
2802 (initialize_utc_base): New function.
2803 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
2804 (convert_from_time_t): Use initialize_utc_base; compute result with
2805 64-bit arithmetic.
2806 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
2807
c4605e09
EZ
28082009-01-03 Eli Zaretskii <eliz@gnu.org>
2809
9acef61c 2810 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
2811 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
2812 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
2813 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
2814 [!subprocesses]: Define.
2815 (syms_of_process) [!subprocesses]: Intern and staticpro them.
2816 (Flist_system_processes, Fsystem_process_attributes)
2817 [!subprocesses]: Call list_system_processes and
2818 system_process_attributes instead of returning Qnil.
2819
9acef61c
JB
2820 * dosfns.c (system_process_attributes, list_system_processes):
2821 New functions.
c4605e09
EZ
2822
2823 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
2824
2825 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
2826 Don't use the default (no-op) implementation.
2827
8b7d0a16
JR
28282009-01-03 Jason Rumney <jasonr@gnu.org>
2829
a6d46bc1
JR
2830 * keyboard.c (parse_modifiers_uncached): Wheel events are
2831 clicks (bug#687).
2832
8b7d0a16
JR
2833 * w32term.c (x_query_colors, x_query_color): New functions.
2834
2835 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
2836 (svg_load_image): Cast returned pointers from dynamically loaded
2837 functions. Eliminate W32 specific code.
2838
bfe11752
DN
28392009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
2840
89e2438a
DN
2841 * nsfns.m (x_set_foreground_color, x_set_background_color)
2842 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
2843 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
2844 x_ prefix instead of ns_. Update references.
2845 (syms_of_nsfns): Add a FIXME comment.
2846
2847 * nsterm.m (x_set_cursor_type): New prototype.
2848 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
2849
bfe11752
DN
2850 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
2851 for Solaris instead of incorrectly providing Qutime and Qcutime.
2852
031da700
EZ
28532009-01-02 Eli Zaretskii <eliz@gnu.org>
2854
2855 * w32.c (process_times): Compute sum of utime and stime.
2856 (system_process_attributes): Add Qtime to the alist.
2857
2858 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
2859 and add them to the alist.
2860
2861 * process.c (top level) <Qtime, Qctime>: New variables.
2862 (syms_of_process): staticpro them.
2863 (Fsystem_process_attributes): Add their documentation to the doc
2864 string.
2865
2866 * process.h: Declare Qtime and Qctime.
2867
df23bf08
JR
28682009-01-02 Jason Rumney <jasonr@gnu.org>
2869
9acef61c 2870 * image.c (Qgobject): New symbol.
df23bf08
JR
2871 (syms_of_image): Initialize it.
2872 (init_svg_functions): Load some functions from gobject library.
2873
5bbdf7aa
DN
28742009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
2875
2876 * frame.c (make_terminal_frame): Remove redundant code and useless
2877 block.
2878
63136da6
AS
28792009-01-01 Andreas Schwab <schwab@suse.de>
2880
2881 * process.c (conv_sockaddr_to_lisp): Add workaround for
2882 getsockname bug on BSD.
2883
9ef69046
CY
28842009-01-01 Chong Yidong <cyd@stupidchicken.com>
2885
d6fafbe0
CY
2886 * xfns.c (x_create_tip_frame): Set border width of the X window.
2887
51d861de 2888 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 2889
f9c34147
JR
28902009-01-01 Jason Rumney <jasonr@gnu.org>
2891
9acef61c 2892 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
2893 Don't block input, as per earlier xterm.c changes.
2894
f5497e45
AR
28952008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
2896
2897 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
2898 (ns_appkit_version_int): New function.
2899 (x-server-version): Use ns_appkit_version_int and follow 21+
2900 convention of returning 3 integers.
2901
c19cab20
KH
29022008-12-30 Kenichi Handa <handa@m17n.org>
2903
2904 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
2905 (CHAR_SURROGATE_PAIR_P): New macro.
2906
2907 * font.h (struct font_driver): New member get_variation_glyphs.
2908
9acef61c 2909 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
2910 (Ffont_variation_glyphs): New function.
2911 (syms_of_font): Defsubr it.
2912
2913 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
2914 ftfont_variation_glyphs.
2915 (setup_otf_gstring): New function.
2916 (ftfont_drive_otf): Use it.
2917 (ftfont_shape_by_flt): Handle variation selector.
2918 (ftfont_variation_glyphs): New function.
2919
28cd591f
MR
29202008-12-30 Martin Rudalics <rudalics@gmx.at>
2921
2922 * frame.c (Vemacs_iconified): Remove.
2923
7f714baf
JR
29242008-12-30 Jason Rumney <jasonr@gnu.org>
2925
2926 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 2927 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 2928
9d2d22ab
CY
29292008-12-30 Chong Yidong <cyd@stupidchicken.com>
2930
2931 * indent.c (Fvertical_motion): Don't advance iterator if we have
2932 reseated to the desired position.
2933
2934 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
2935 checking for pos match.
2936
545312c2
KH
29372008-12-30 Kenichi Handa <handa@m17n.org>
2938
1ede3eb6
KH
2939 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
2940 just get the low 8-bit of the code.
2941
545312c2
KH
2942 * font.c (font_intern_prop): Validate str as multibyte.
2943
bd7bbf29
DN
29442008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
2945
31e0750e
DN
2946 * dispextern.h (struct face): Move lface and hash from the middle
2947 of bitfields.
2948
bd7bbf29
DN
2949 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
2950
b5672e7c
DN
29512008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
2952
2953 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
2954 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
2955 instead of intervals.h.
2956
d704470f
AS
29572008-12-26 Andreas Schwab <schwab@suse.de>
2958
2959 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
2960 cons.
2961
54b33868
MR
29622008-12-26 Martin Rudalics <rudalics@gmx.at>
2963
2964 * textprop.c (Qminibuffer_prompt): New variable.
2965 (syms_of_textprop): Initialize it.
2966 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
2967 in minibuffer-prompt face. (Bug#1662)
2968
40b615d6
JR
29692008-12-25 Jason Rumney <jasonr@gnu.org>
2970
2971 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
2972
baae5c2d
JR
29732008-12-24 Jason Rumney <jasonr@gnu.org>
2974
2975 * ralloc.c (r_alloc_reset_variable): New function.
2976
2977 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 2978 record of what points where. (Bug#716)
baae5c2d 2979
a9051c88
DN
29802008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
2981
2982 * minibuf.c (read_minibuf): Follow the non-interactive case when
2983 running as a daemon, before detaching.
2984
8b146312
AS
29852008-12-22 Andreas Schwab <schwab@suse.de>
2986
2987 * buffer.c (init_buffer): Use realloc instead of xrealloc.
2988 * gtkutil.c (free_widget_value): Use xfree instead of free.
2989
56f2de10
MR
29902008-12-22 Martin Rudalics <rudalics@gmx.at>
2991
2992 * frame.c (delete_frame): New function derived from
2993 Fdelete_frame to handle Qnoelisp value for FORCE argument.
2994 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
2995 (Fdelete_frame): Call delete_frame. Remove line from doc-string
2996 saying that FORCE non-nil doesn't run `delete-frame-functions'.
2997 * frame.h: Extern delete_frame.
2998 * window.c (window_loop):
2999 * terminal.c (delete_terminal):
3000 * xterm.c (x_connection_closed):
3001 * xfns.c (Fx_hide_tip):
9acef61c 3002 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 3003
1fc200d6
JR
30042008-12-21 Jason Rumney <jasonr@gnu.org>
3005
3006 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
3007 when character maps to .notdef character.
3008
5e252df2
SM
30092008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
3010
3011 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
3012
99b72cc4
JR
30132008-12-20 Jason Rumney <jasonr@gnu.org>
3014
3015 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 3016 a graphical frame on Windows. (Bug#1325)
99b72cc4 3017
acc49a52
JD
30182008-12-20 Jan Djärv <jan.h.d@swipnet.se>
3019
3020 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
3021
6ea15123
CY
30222008-12-20 Chong Yidong <cyd@stupidchicken.com>
3023
3024 * minibuf.c (Fread_buffer): Doc fix.
3025
b2dab6c8
JR
30262008-12-20 Jason Rumney <jasonr@gnu.org>
3027
54ea0c87 3028 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 3029 server name in UNC paths. (Bug#719)
54ea0c87 3030
b2dab6c8 3031 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 3032 charbuf. (Bug#1035)
b2dab6c8 3033
6d1921be
DN
30342008-12-19 Daniel Engeler <engeler@gmail.com>
3035
3036 * sysdep.c (serial_configure): Fix typo.
3037
53934c98
DN
30382008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
3039
3040 * sysdep.c: Include alloca.h.
f4f634e8
DN
3041 (system_process_attributes): Add implementation for Solaris.
3042
3043 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 3044
06e111a6
DN
30452008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
3046
3047 Reorganize implementation of Flist_system_processes and
3048 Fsystem_process_attributes. No functional changes.
3049 * process.c: Don't #include pwd.h, grp.h and limits.h.
3050 (Flist_system_processes): Just call list_system_processes.
3051 (Fsystem_process_attributes): Just call system_process_attributes.
3052 (procfs_list_system_processes, time_from_jiffies)
3053 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
3054 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
3055
3056 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
3057 (list_system_processes): Rename from
3058 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
3059 Provide a do nothing implementation.
3060 (system_process_attributes): Rename from
3061 procfs_list_system_processes.
3062 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 3063 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
3064
3065 * w32.c (list_system_processes): Rename from
3066 w32_list_system_processes.
3067 (system_process_attributes): Rename from
3068 w32_system_process_attributes.
3069
3070 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
3071
3072 * process.h (w32_list_system_processes)
3073 (w32_system_process_attributes): Remove.
3074 (list_system_processes, system_process_attributes): New
3075 prototypes.
3076
6a705b23
KH
30772008-12-19 Kenichi Handa <handa@m17n.org>
3078
3079 * xfont.c (xfont_decode_coding_xlfd): New function.
3080 (xfont_encode_coding_xlfd): New function.
3081 (xfont_list_pattern): Decode XLFD by iso-8859-1.
3082 (xfont_list): Decode and encode XLFD by iso-8859-1.
3083 (xfont_match): Likewise.
3084 (xfont_list_family): Likewise.
3085 (xfont_open): Likewise.
3086
d66c0241 3087 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
3088 names are utf-8.
3089
d66c0241 3090 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
3091 names are utf-8.
3092
5a130941
JD
30932008-12-18 Jan Djärv <jan.h.d@swipnet.se>
3094
3095 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
3096 changed.
bfd20325
JD
3097 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
3098 clicked on a detached tool bar button.
5a130941 3099
fd95644b
DN
31002008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
3101
3102 * emacs.c (main): Print and error and exit when no data is read
3103 from the pipe.
3104
e6eee6ae
JR
31052008-12-17 Jason Rumney <jasonr@gnu.org>
3106
3107 * w32font.c (w32font_has_char): Always return -1.
3108
a35dd56b
KH
31092008-12-16 Kenichi Handa <handa@m17n.org>
3110
3111 * font.c (font_open_entity): Fix previous change.
3112
0e3635c2
DN
31132008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
3114
3115 * process.c: Include <limits.h>.
3116
d4835507 31172008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
3118
3119 * font.c (font_update_drivers): Fix mistake in reconstructing the
3120 driver list.
3121
31222008-12-16 Chong Yidong <cyd@stupidchicken.com>
3123
3124 * font.c (font_clear_cache): Fix format of font cache data.
3125
e2cbc401
CY
31262008-12-15 Chong Yidong <cyd@stupidchicken.com>
3127
3128 * xftfont.c (xftfont_open): Free Xft font pattern if
3129 XftFontOpenPattern fails.
3130
3131 * xterm.c (x_free_frame_resources): Remove extraneous call to
3132 free_frame_faces.
3133
b131d535
CY
31342008-12-13 Chong Yidong <cyd@stupidchicken.com>
3135
3136 * xterm.c (x_delete_display): Move xim_close_dpy call to
3137 x_delete_terminal.
3138 (x_delete_terminal): Call xim_close_dpy.
3139
e6df5336
JR
31402008-12-13 Jason Rumney <jasonr@gnu.org>
3141
3142 * w32font.c (intern_font_name): New function.
3143 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
3144 (w32font_open_internal, Fx_select_font): Decode font name.
3145 (fill_in_logfont, list_all_matching_fonts): Encode font name.
3146
3147 * w32font.h (intern_font_name): Declare new function.
3148
3149 * w32uniscribe.c (add_opentype_font_name_to_list):
3150 Use intern_font_name.
3151
20d68145
CY
31522008-12-13 Chong Yidong <cyd@stupidchicken.com>
3153
9f2554de
CY
3154 * frame.c (Fdelete_frame): Call free_font_driver_list.
3155
3d9bec9a
CY
3156 * font.c (free_font_driver_list): Implement missing function.
3157
20d68145
CY
3158 * w32term.c (w32_term_init): Don't initialize the image cache
3159 here; it will be done in init_frame_faces.
3160
3161 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
3162 (struct x_display_info): Remove unused member null_pixel. New
3163 member xim_callback_data.
3164
3165 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
3166 (xim_initialize): Save pointer to callback function data.
3167 (xim_close_dpy): Free callback function data. Call XCloseIM,
3168 reverting 2008-11-04 change by David Smith.
3169 (x_term_init): Don't initialize the image cache here; it will be
3170 done in init_frame_faces. Remove ancient "null_pixel" cruft.
3171 (x_delete_display): Free x_dnd_atoms member.
3172
96f9306b
KH
31732008-12-13 Kenichi Handa <handa@m17n.org>
3174
6dec9044
JB
3175 * font.c (font_rescale_ratio): Moved from xfaces.c.
3176 Argument type changed. Handle a font-spec too.
96f9306b 3177 (font_score): Check Vface_font_rescale_alist.
6dec9044 3178 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
3179
3180 * xfaces.c (font_rescale_ratio): Moved to font.c.
3181
8d5b4964
CY
31822008-12-13 Chong Yidong <cyd@stupidchicken.com>
3183
3184 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
3185
e6df5336
JR
31862008-12-12 Jason Rumney <jasonr@gnu.org>
3187
3188 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
3189 Vwindow_system_version to the real w32 major version.
3190
97c6058a
DN
31912008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
3192
3193 * term.c (init_tty): Move setting the terminal name before the
3194 potential user: maybe_fatal.
3195
ec4e88d7
CY
31962008-12-11 Chong Yidong <cyd@stupidchicken.com>
3197
d4835507
JB
3198 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
3199 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 3200
b4233ec9
JR
32012008-12-11 Jason Rumney <jasonr@gnu.org>
3202
8ec71e23 3203 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 3204 SYMBOL_CHARSET. (Bug#547)
8ec71e23 3205
b4233ec9 3206 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 3207 size for surrogates. (Bug#1096, bug#872)
b4233ec9 3208
011a0143
JB
32092008-12-11 Juanma Barranquero <lekktu@gmail.com>
3210
3211 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
3212
3c309f34
JB
32132008-12-11 Juanma Barranquero <lekktu@gmail.com>
3214
3215 * process.c (Fsystem_process_attributes, syms_of_process):
3216 Fix typo in name of Ssystem_process_attributes.
3217 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
3218
fedc6ab5
JB
32192008-12-11 Juanma Barranquero <lekktu@gmail.com>
3220
3221 * syntax.c (Fmodify_syntax_entry): Doc fix.
3222
ba3de0e8
JB
32232008-12-10 Juanma Barranquero <lekktu@gmail.com>
3224
3225 * font.c (Ffont_spec): Move usage to end of docstring.
3226
174f1c74
JR
32272008-12-10 Jason Rumney <jasonr@gnu.org>
3228
3229 * w32font.c (Qcham): New symbol.
3230 (font_supported_scripts): Add cham, and comments for other new
3231 scripts in bitfield from OpenType spec.
9d32f818
JR
3232 (add_font_entity_to_list): Limit unicode-sip fonts to those that
3233 contain characters beyond the bmp.
174f1c74 3234
7b649478
KH
32352008-12-10 Kenichi Handa <handa@m17n.org>
3236
3237 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 3238 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
3239 Qunicode_sip.
3240
2133e2d1
JB
32412008-12-10 Juanma Barranquero <lekktu@gmail.com>
3242
3243 * coding.c (QCdefault_char): Rename from QCdefalut_char.
3244 (Fcoding_system_put): Use QCdefault_char.
3245 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
3246
9af886ee
CY
32472008-12-09 Chong Yidong <cyd@stupidchicken.com>
3248
74d819eb
CY
3249 * xftfont.c (syms_of_xftfont): Fix typo.
3250
4ccfa1c0 3251 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 3252
7c19d3ae
DN
32532008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
3254
3255 * emacs.c (main): Close daemon_pipe on exec.
3256
567826bb
CY
32572008-12-08 Chong Yidong <cyd@stupidchicken.com>
3258
3259 * termchar.h (struct tty): New members termcap_term_buffer and
3260 termcap_strings_buffer.
3261
3262 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 3263 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
3264 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
3265 All callers changed.
3266 (init_tty): Store termcap data and string buffers in new struct
3267 tty members termcap_term_buffer and termcap_strings_buffer.
3268 (delete_tty): Free them.
4ccfa1c0 3269 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 3270
aa96c42b
SZ
32712008-12-07 Seiji Zenitani <zenitani@mac.com>
3272
3273 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 3274 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 3275
b7e1d896
CY
32762008-12-06 Chong Yidong <cyd@stupidchicken.com>
3277
3278 * coding.c (make_conversion_work_buffer): Disable buffer
3279 modification hooks in the work buffer.
3280
b5ec91a5
EZ
32812008-12-05 Eli Zaretskii <eliz@gnu.org>
3282
3283 * process.c (procfs_system_process_attributes): If `nread' has a
3284 negative value, assign zero to it.
3285
a5d2a52b
CY
32862008-12-05 Chong Yidong <cyd@stupidchicken.com>
3287
68c5540b 3288 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 3289
7bf1bb21
KH
32902008-12-05 Kenichi Handa <handa@m17n.org>
3291
3292 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
3293 second character is a combining character.
3294
2fdc7d00
EZ
32952008-12-05 Eli Zaretskii <eliz@gnu.org>
3296
3297 * process.c (procfs_system_process_attributes): Don't use cmd,
3298 cmdsize, and q without initializing them first.
3299
bf6bfba8
JR
33002008-12-04 Jason Rumney <jasonr@gnu.org>
3301
3302 * w32font.c (w32font_draw): Initialize orig_clip before getting
3303 it, and delete it when finished.
3304
a3b1a468
DN
33052008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
3306
3307 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
3308 case when running as a daemon before detaching.
3309
8b8be8eb
JB
33102008-12-03 Juanma Barranquero <lekktu@gmail.com>
3311
805f2638 3312 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 3313
b1bde622
KH
33142008-12-03 Kenichi Handa <handa@m17n.org>
3315
e500c47d
KH
3316 * font.c (font_at): Set `multibyte' at first.
3317
ca516334
KH
3318 * coding.c (decode_coding_charset): Check type of an element of
3319 vector VALIDS.
7bf1bb21 3320 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 3321
4ccfa1c0 3322 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
3323 (font_for_char): Likewise.
3324
1e5ecd37
CY
33252008-12-03 Chong Yidong <cyd@stupidchicken.com>
3326
d5b01609 3327 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
3328 (font_update_lface): Handle fonts with corrupted size specs,
3329 i.e. non-int and non-float.
d5b01609 3330
11e3a6e4 3331 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 3332 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 3333 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 3334
ab06788b
CY
3335 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
3336
1e5ecd37 3337 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 3338 underline_minimum_offset for underline position.
1e5ecd37 3339
63c125ab
DN
33402008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
3341
3342 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
3343
3344 * character.c (c_string_width): Specify the type for LEN.
3345
3a8406e1
KH
33462008-12-03 Kenichi Handa <handa@m17n.org>
3347
4ccfa1c0 3348 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 3349 (decode_coding_utf_8): Likewise.
4ccfa1c0 3350 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 3351 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 3352
651df7d9
CY
33532008-12-02 Chong Yidong <cyd@stupidchicken.com>
3354
3355 * keyboard.c (make_lispy_position): Only use PT if the selected
3356 window is current.
3357
1f625c6c
AS
33582008-12-02 Andreas Schwab <schwab@suse.de>
3359
f7741ce9
AS
3360 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
3361
1f625c6c
AS
3362 * doprnt.c (doprnt1): Fix size of charbuf.
3363
92bc2678
CY
33642008-12-02 Chong Yidong <cyd@stupidchicken.com>
3365
3366 * keyboard.c (timer_check): Revert last change.
3367
93b9e8cc
JB
33682008-12-02 Juanma Barranquero <lekktu@gmail.com>
3369
3370 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
3371
fd7a37d5
JB
33722008-12-01 Juanma Barranquero <lekktu@gmail.com>
3373
3374 * makefile.w32-in: Update dependencies.
3375 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
3376
c115043b
AS
33772008-12-01 Andreas Schwab <schwab@suse.de>
3378
3379 * font.c (register_font_driver): Use xmalloc.
3380 (font_put_frame_data): Likewise.
3381
f5668d2a
CY
33822008-12-01 Chong Yidong <cyd@stupidchicken.com>
3383
860d96be
CY
3384 * xfaces.c (realize_x_face): Make abort condition clearer.
3385
f5668d2a
CY
3386 * gtkutil.c (update_frame_tool_bar): Initialize variable.
3387
379c17e7
CY
33882008-11-30 Chong Yidong <cyd@stupidchicken.com>
3389
3390 * keyboard.c (timer_check): After a timer runs, ensure that the
3391 selected window's buffer is current.
3392
35f36d65
JB
33932008-11-30 Juanma Barranquero <lekktu@gmail.com>
3394
f952c61c
JB
3395 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
3396 It was accidentally restored by the Unicode merge.
3397
35f36d65
JB
3398 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
3399
b23077df
JB
34002008-11-29 Juanma Barranquero <lekktu@gmail.com>
3401
3402 * w32proc.c: Include "coding.h".
3403 (Fw32_short_file_name): Encode filename passed to Windows API.
3404 (Fw32_long_file_name): Encode filename passed to Windows API and
3405 decode back the result. (Bug#1433)
3406
b8ebe9dd
KH
34072008-11-29 Kenichi Handa <handa@m17n.org>
3408
8cc53f96
KH
3409 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
3410 not before accessing it.
3411
b8ebe9dd
KH
3412 * charset.c (Fdefine_charset_internal): After calculating
3413 min_char, max_char, and fastmap, copy the charset structure again.
3414 (encode_char): Fix the previous change.
3415
59bc82c0
SZ
34162008-11-28 Seiji Zenitani <zenitani@mac.com>
3417
3418 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
3419
3420 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
3421
3422 * nsterm.m (x_set_frame_alpha): New function.
3423
32247e3d
EZ
34242008-11-27 Eli Zaretskii <eliz@gnu.org>
3425
3426 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
3427
b003e5ff
JB
34282008-11-27 Juanma Barranquero <lekktu@gmail.com>
3429
3430 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
3431 pointer to check_face_name.
3432
708550f5
KH
34332008-11-27 Kenichi Handa <handa@m17n.org>
3434
3435 * category.h (SET_CATEGORY_SET): Call set_category_set.
3436 (set_category_set): Extern it.
3437
3438 * category.c (hash_get_category_set): New function.
3439 (Fmodify_category_entry): Adjusted for the change of
3440 char_table_ref_and_range. Call hash_get_category_set to get a
3441 category set to store in the table.
3442
3443 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
3444 Funify_charset.
3445
2ae37cf0 3446 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
3447 (DECODE_CHAR): Check if the decoder vector is ready.
3448 (ENCODE_CHAR): Check if the encoder char-table is ready.
3449 (maybe_unify_char): Extern it.
3450
3451 * charset.c (Vchar_unified_charset_table): Delete it.
3452 (inhibit_load_charset_map): New variable.
3453 (temp_charset_work): New variable.
3454 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
3455 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
3456 New macros.
3457 (load_charset_map): Meaning of control_flag changed. If
3458 inhibit_load_charset_map is nonzero, setup a table in
3459 temp_charset_work.
3460 (load_charset): New argument control_flag.
3461 (map_charset_for_dump): New function.
3462 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
3463 map_charset_for_dump.
3464 (Fdefine_charset_internal): If the charset method is MAP, load
3465 mapping tables by calling load_charset.
3466 (Funify_charset): Don't load a mapping table but directly set
3467 Vchar_unify_table.
3468 (maybe_unify_char): New function.
3469 (decode_char): Don't handle the deleted method MAP_DEFERRED.
3470 Handle the case of inhibit_load_charset_map being nonzero.
3471 (encode_char): Don't handle the deleted method MAP_DEFERRED.
3472 Handle the case of inhibit_load_charset_map being nonzero.
3473 (Fclear_charset_maps): Just free temp_charset_work.
3474 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
3475 variable.
3476
3477 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
3478 change of char_table_ref_and_range.
3479 (char_table_ref_and_range): Change the meaning of argument FROM
3480 and TO. Now the caller must provide initial values for *FROM
3481 and *TO.
3482
3483 * fontset.c (fontset_add): Adjusted for the change of
3484 char_table_ref_and_range.
3485 (fontset_get_font_group): Likewise.
3486 (Ffontset_info): Likewise.
3487
3488 * keymap.c (describe_vector): Adjusted for the change of
3489 char_table_ref_and_range. For char-table, put boundary between
3490 non-ASCII and 8-bit characters.
3491
3492 * print.c (print_object): For bool-vector, delete unnecessary
3493 check of ASCII_BYTE_P.
3494
9196133b
JR
34952008-11-26 Jason Rumney <jasonr@gnu.org>
3496
3497 * w32font.c (w32font_open_internal): Don't include external
9acef61c 3498 leading in font height. (Bug#879)
9196133b 3499
9f688acf
GM
35002008-11-26 Glenn Morris <rgm@gnu.org>
3501
3502 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
3503 redefinition with ifdef. (Bug#1383)
3504
90d19aff
AR
35052008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3506
3507 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
3508
4ccfa1c0 35092008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
3510
3511 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
3512 New EmacsView methods.
3513 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
3514 Fixes bug #1048,1357,1414.
3515
35162008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3517
3518 Fix bug #1362.
3519 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
3520 is not an indexed color.
3521 * nsterm.m (free_indexed_color): Add argument checking.
3522 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
3523
e7d5ecb3
CY
35242008-11-24 Chong Yidong <cyd@stupidchicken.com>
3525
3526 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
3527 Document confirm-after-completion value for
3528 minibuffer-completion-confirm.
3529
c285743c
JR
35302008-11-24 Jason Rumney <jasonr@gnu.org>
3531
3532 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
3533 warning.
3534
b0857706
JR
35352008-11-23 Jason Rumney <jasonr@gnu.org>
3536
3537 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
3538 restored before returning.
3539
3540 * w32font.c (check_face_name): New function.
3541 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 3542 fonts. (Bug#642)
b0857706 3543
ee50ff07
MR
35442008-11-22 Martin Rudalics <rudalics@gmx.at>
3545
3546 * buffer.c (Fswitch_to_buffer): Reword and mention new option
3547 confirm-nonexistent-file-or-buffer in doc-string.
3548
b8ff72fa
SM
35492008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
3550
3551 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
3552 Fix copy/paste typo. Add checks.
3553
cee53ed4
KH
35542008-11-21 Kenichi Handa <handa@m17n.org>
3555
3556 * coding.c (detect_coding_iso_2022): Reject invalid composition
3557 sequence.
3558 (DECODE_COMPOSITION_START): If the current source is the last
3559 block, and the current composition doesn't end, regard this
3560 sequence as invalid.
3561 (decode_coding_iso_2022): Handle invalid composition sequence.
3562
f6ef1e65
MR
35632008-11-20 Martin Rudalics <rudalics@gmx.at>
3564
3565 * window.c (coordinates_in_window): Don't return
3566 ON_VERTICAL_BORDER for the rightmost position of a mode/header
3567 line when the window is not the rightmost one. (Bug#1372)
3568
e08b1705
MR
35692008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
3570
3571 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
3572
ad98e89f
EZ
35732008-11-15 Eli Zaretskii <eliz@gnu.org>
3574
3575 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
3576 and bright_bg if noninteractive is non-zero.
3577
fb098a4b
CY
35782008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3579
3580 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
3581 x_draw_glyph_string_background.
3582
3583 * w32term.c (x_draw_glyph_string): Likewise.
3584
ce952b6e
CY
35852008-11-15 Chong Yidong <cyd@stupidchicken.com>
3586
3587 * xterm.c (x_draw_glyph_string): Stop drawing the background of
3588 the next glyph string once past the overhang width.
3589
3590 * nsterm.m (ns_draw_glyph_string): Likewise.
3591
3592 * w32term.c (x_draw_glyph_string): Likewise.
3593
26ea7079
CY
35942008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
3595
3596 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
3597 double file close.
3598
1c33c906
MR
35992008-11-14 Martin Rudalics <rudalics@gmx.at>
3600
3601 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
3602 dedicated status of window before attempting to display another
3603 buffer in it.
3604
8fc29035
JB
36052008-11-14 Juanma Barranquero <lekktu@gmail.com>
3606
3607 * msdos.c (Fmsdos_long_file_names):
3608 (syms_of_msdos) <dos-unsupported-char-glyph>:
3609 * dosfns.c (Fint86): Fix typos in docstrings.
3610
55fb4286
EZ
36112008-11-14 Eli Zaretskii <eliz@gnu.org>
3612
3613 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
3614
3fda0315
KY
36152008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
3616
3617 * puresize.h (BASE_PURESIZE): Increase to 1260000.
3618
7e849c17
CY
36192008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
3620
3621 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
3622
3623 * frame.h: Negative alpha means "don't touch".
3624
3625 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
3626
3627 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
3628
b9fd67bd
DN
36292008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
3630
3631 * hftctl.c:
3632 * chpdef.h:
3633 * acldef.h: Remove files used only for systems no longer supported.
3634
3635 * Makefile.in: Fix .o alphabetical ordering.
3636 (hftctl.o): Remove dependency, file removed.
3637 (keymap.o, print.o): Depend on charset.h.
3638
d5998e03
KH
36392008-11-10 Kenichi Handa <handa@m17n.org>
3640
2ae37cf0 3641 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 3642
be70e183
CY
36432008-11-08 Chong Yidong <cyd@stupidchicken.com>
3644
3645 * dired.c (file_name_completion): If completion_ignore_case is
3646 enabled, ignore case when checking completion-regexp-list.
3647
7cf94eac
EZ
36482008-11-08 Eli Zaretskii <eliz@gnu.org>
3649
3650 * vm-limit.c (get_lim_data): Fix last change.
3651
ee107a89
KH
36522008-11-08 Kenichi Handa <handa@m17n.org>
3653
3654 * character.c (Fget_byte): New function.
3655 (syms_of_character): Defsubr Fget_byte.
3656
5fd15622
CY
36572008-11-07 Chong Yidong <cyd@stupidchicken.com>
3658
3659 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
3660 cursor position is valid after scrolling.
3661
13d62fad
JB
36622008-11-06 Juanma Barranquero <lekktu@gmail.com>
3663
3664 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
3665
a1dd2936
GM
36662008-11-06 Glenn Morris <rgm@gnu.org>
3667
3668 * xterm.c (handle_one_xevent): Don't let popup menus cause
3669 mouse-autoselect-window related window switching. (Bug#1261)
3670
860cd236
CY
36712008-11-04 David Smith <davidsmith@acm.org> (tiny change)
3672
3673 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
3674
653a3150
AS
36752008-11-04 Andreas Schwab <schwab@suse.de>
3676
3677 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
3678
870f5cac
CY
36792008-11-03 Chong Yidong <cyd@stupidchicken.com>
3680
3681 * xfns.c (Fx_wm_set_size_hint): New function.
3682
1e02f3cb
MR
36832008-11-03 Martin Rudalics <rudalics@gmx.at>
3684
3685 * textprop.c (Fprevious_single_char_property_change): Return 0
3686 when there's no change in a string. (Bug#1301)
3687
e630dfc6
MR
36882008-11-02 Martin Rudalics <rudalics@gmx.at>
3689
3690 * frame.c (do_switch_frame): New argument NORECORD passed to
3691 Fselect_window.
3692 (Fselect_frame): New argument NORECORD passed to
3693 do_switch_frame.
3694 (Fset_frame_selected_window): New argument NORECORD passed to
3695 Fselect_frame.
3696 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
3697 in call of do_switch_frame.
3698 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
3699 Handle NORECORD argument in call of Fselect_frame.
3700 * lisp.h (do_switch_frame, Fselect_frame)
3701 (Fset_frame_selected_window): Adjust declarations.
3702 * window.c (select_frame_norecord): New function.
3703 (run_window_configuration_change_hook): Use it and call
3704 Fselect_frame with NORECORD set.
3705 (Fselect_window): Pass NORECORD to Fselect_frame.
3706 (Fset_window_configuration): Handle NORECORD argument in call of
3707 do_switch_frame.
3708 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
3709 Fset_frame_selected_window.
3710 * keyboard.c (command_loop_1): Handle NORECORD in call of
3711 Fselect_frame (currently ifdefd).
3712
9020b223
GM
37132008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
3714
3715 * emacs.c (USAGE2): Untabify.
3716
793ffee8
SM
37172008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
3718
3719 * composite.c (fill_gstring_header): Fix copy/paste typo.
3720
ab6d1131
MR
37212008-10-31 Martin Rudalics <rudalics@gmx.at>
3722
3723 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
3724 (Fother_window): Rename argument and rewrite doc-string.
3725 (select_window_norecord): Fix return value. (Bug#1276)
3726
601a9cf1
JB
37272008-10-30 Juanma Barranquero <lekktu@gmail.com>
3728
3729 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
3730 new frames overriding foreground for tooltips. Based on similar patch
3731 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
3732
813b0652
CY
37332008-10-29 Chong Yidong <cyd@stupidchicken.com>
3734
3735 * emacs.c (Fdaemon_initialized): Initialize nfd.
3736
4414f58f
MR
37372008-10-29 Martin Rudalics <rudalics@gmx.at>
3738
3739 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
3740 (Fwindow_text_height): Clarify doc-strings.
3741 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
3742 doc-string of window-scroll-functions.
3743
ecdcaa09
RS
37442008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
3745
3746 * category.c (syms_of_category): Fix typo in docstring.
3747
23fe745a
JB
37482008-10-28 Juanma Barranquero <lekktu@gmail.com>
3749
3750 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
3751 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
3752 Fix typos in docstrings.
3753
ff808935
DN
37542008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
3755
3756 * emacs.c (daemon_pipe): Make non-static.
3757 (IS_DAEMON): Move definition ...
3758 * lisp.h (IS_DAEMON): ... here.
3759 (daemon_pipe): Declare.
3760 (is_daemon): Remove.
3761 * dispnew.c (init_display): Use IS_DAEMON.
3762
fc012771
SM
37632008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
3764
3765 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
3766 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
3767
3768 * emacs.c (is_daemon): Remove.
3769 (main): Don't set is_daemon.
3770 (IS_DAEMON): New macro.
3771 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 3772 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
3773 parent exits.
3774 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
3775
d8bdbe6f
CY
37762008-10-27 Chong Yidong <cyd@stupidchicken.com>
3777
d1a072bf
CY
3778 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
3779 over-sized glyph, draw it with the default glyph width.
3780
e2e325aa
CY
3781 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
3782 glyph, draw it with the default glyph width.
3783
3784 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
3785 glyph, draw it with the default glyph width.
3786
d8bdbe6f
CY
3787 * xdisp.c (try_scrolling): When computing the distance from the
3788 scroll margin to PT, try moving some distance past the window
3789 bottom before giving up.
3790
7bfac547
MR
37912008-10-27 Martin Rudalics <rudalics@gmx.at>
3792
3793 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
3794 (Fset_window_buffer): Explain in doc-string that a window can be
3795 "strongly" dedicated to its buffer.
3796
4ff029f6
DN
37972008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
3798
3799 * emacs.c (daemon_name): New variable.
3800 (main): Deal with --daemon=SERVER_NAME.
3801 (Fdaemonp): Return a name if one was passed to --daemon.
3802
5790ef40
DN
38032008-10-26 Romain Francoise <romain@orebokech.com>
3804
f9bd0df9 3805 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
3806 (main): Create a pipe before forking, make the parent exit only after
3807 the child has closed its end of the pipe. Move closing the
3808 descriptors ...
3809 (Fdaemon_initialized): ... here. New function.
3810
f5385255
SM
38112008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
3812
4d632321
SM
3813 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
3814 the previous unoptimized table.
3815
f5385255
SM
3816 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
3817 the distinction between non-nil and non-t value of `dedicated'.
3818
6c56a0f3
CY
38192008-10-25 Chong Yidong <cyd@stupidchicken.com>
3820
3821 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 3822 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 3823
fec89261
MR
38242008-10-25 Martin Rudalics <rudalics@gmx.at>
3825
3826 * window.c (Fget_buffer_window, Fdelete_windows_on)
3827 (Freplace_buffer_in_windows): Make buffer argument optional and
3828 rename to buffer_or_name.
3829
34fcddd0
CY
38302008-10-24 Chong Yidong <cyd@stupidchicken.com>
3831
f5385255
SM
3832 * xdisp.c (handle_single_display_spec, handle_display_prop):
3833 Undo 2005-05-16 change.
34fcddd0
CY
3834 (handle_stop): Pop iterator if it's loaded with an empty string.
3835 (get_overlay_strings_1): Don't save iterator if it's loaded with
3836 an empty string (bug#1201).
3837
064766f2
KH
38382008-10-24 Kenichi Handa <handa@m17n.org>
3839
3840 * ftfont.c (ftfont_otf_features): Fix previous change.
3841 (ftfont_otf_capability): Check FeatureList.FeatureCount before
3842 calling ftfont_otf_features.
3843
f9bd0df9 38442008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
3845
3846 * font.c (font_match_p): Fix for the case that a vector of
3847 characters is in script-representative-chars.
3848
1dae9197
MA
38492008-10-24 Michael Albinus <michael.albinus@gmx.de>
3850
3851 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 3852 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
3853 (xd_read_queued_messages): Catch Qdbus_error from the macros.
3854 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
3855 macro. (Bug#1186).
3856
f9bd0df9 38572008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
3858
3859 * s/sol2-10.h: New file.
3860
878a4584
JB
38612008-10-23 Juanma Barranquero <lekktu@gmail.com>
3862
3863 * xdisp.c (fill_glyph_string): Fix typo in source (though the
3864 poor beast has survived 9+ years and the jump from xterm.c!).
3865
cd265ca6
MR
38662008-10-23 Martin Rudalics <rudalics@gmx.at>
3867
3868 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
3869 Reword doc-string.
f5385255 3870 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 3871
472a4dc9
JB
38722008-10-23 Juanma Barranquero <lekktu@gmail.com>
3873
3874 * character.c (syms_of_character) <script-representative-chars>:
3875 <unicode-category-table>: Doc fixes.
3876
159bd5a2
NF
38772008-10-23 Noah Friedman <friedman@splode.com>
3878
3879 * coding.c (make_conversion_work_buffer): Check that
3880 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
3881 Fget_buffer_create.
3882
49f9c344
KH
38832008-10-23 Kenichi Handa <handa@m17n.org>
3884
3885 * font.c (font_add_log): Check the values of extra properties.
3886
12bb3111
MR
38872008-10-22 Martin Rudalics <rudalics@gmx.at>
3888
3889 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
3890 Reword doc-string.
3891 (Fset_window_parameter): Use NILP.
3892 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 3893 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 3894
bbeb4e99
JB
38952008-10-22 Juanma Barranquero <lekktu@gmail.com>
3896
3897 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
3898
38992008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
3900
3901 * nsfns.m (ns_appkit_version): New function.
3902 (x-server-version): Use it.
3903 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
3904 (x-server-vendor): Don't check_ns().
3905
3906 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
3907
a9b555d3
JB
39082008-10-22 Juanma Barranquero <lekktu@gmail.com>
3909
3910 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
3911 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
3912
4626499f
KH
39132008-10-22 Kenichi Handa <handa@m17n.org>
3914
e3681952
KH
3915 * syntax.c (scan_words): Call word_boundary_p instead of comparing
3916 scripts.
3917
4626499f
KH
3918 * category.c (word_boundary_p): Check scripts instead of charset.
3919 Handle nil value in word-separating-categories and
3920 word-combining-categories.
3921 (syms_of_category): Fix docstrings of word-separating-categories
3922 and word-combining-categories.
3923
1560f91a
EZ
39242008-10-21 Eli Zaretskii <eliz@gnu.org>
3925
3926 * coding.c (Fencode_coding_region, Fdecode_coding_region)
3927 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
3928
f4668441
MR
39292008-10-21 Martin Rudalics <rudalics@gmx.at>
3930
3931 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
3932 Rename arg "buffer" to "buffer_or_name".
3933 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
3934 it optional.
3935 (no_switch_window): Remove since the return value is not used.
a9b555d3 3936 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
3937 Consider window as dedicated when Fwindow_dedicated_p returns a
3938 non-nil value.
3939 * lisp.h: Remove prototype for no_switch_window.
3940
fd75ddb2
JD
39412008-10-21 Jan Djärv <jan.h.d@swipnet.se>
3942
3943 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 3944 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 3945
07295713
KH
39462008-10-21 Kenichi Handa <handa@m17n.org>
3947
3948 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
3949 check Vlatin_extra_code_table.
3950
712adc82
EZ
39512008-10-20 Eli Zaretskii <eliz@gnu.org>
3952
3953 * fileio.c (Fset_file_modes): Doc fix.
3954
f549eb0b
MA
39552008-10-19 Michael Albinus <michael.albinus@gmx.de>
3956
3957 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
3958 in arrays.
3959
aac0c6e3
MR
39602008-10-19 Martin Rudalics <rudalics@gmx.at>
3961
3962 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
3963 Mention kill-buffer in doc-string.
3964 (Fset_window_buffer): Reinsert tem check removed in last commit.
3965 (Fenlarge_window, Fshrink_window): Have argument names and
3966 doc-string follow Elisp manual more closely.
3967
39682008-10-18 Eli Zaretskii <eliz@gnu.org>
3969
3970 * fileio.c (Fset_file_modes): Doc fix.
3971
39722008-10-18 Martin Rudalics <rudalics@gmx.at>
3973
3974 * window.c (Fwindow_width, Fset_window_start)
3975 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
3976 (Fdelete_windows_on, Freplace_buffer_in_windows):
3977 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
3978 (Fwindow_dedicated_p): Make window argument optional.
3979 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
3980 (Fset_window_buffer): Respect any non-nil dedicated value for
3981 window. Rename "buffer" argument to "buffer_or_name".
3982
39832008-10-18 Ulrich Mueller <ulm@gentoo.org>
3984
3985 * m/sh3.h: New file, machine description for SuperH.
3986
39872008-10-17 Martin Rudalics <rudalics@gmx.at>
3988
3989 * window.c (Fsplit_window): Rename arg horflag to horizontal.
3990
39912008-10-17 Kenichi Handa <handa@m17n.org>
3992
3993 * ftfont.c (ftfont_otf_features): Fix indexing
3994 gsub_gpos->FeatureList.Feature. Check the validity of indices.
3995
39962008-10-16 Magnus Henoch <mange@freemail.hu>
3997
3998 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
3999 (Fdbus_call_method_asynchronously): Ditto.
4000 This change makes C-h f display the argument list.
4001
40022008-10-16 Chong Yidong <cyd@stupidchicken.com>
4003
4004 * fileio.c (Fexpand_file_name): Doc fix.
4005
4006 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
4007 of :foreground and :background equivalent to unspecified (20.x
4008 compatibility).
4009
40102008-10-15 Eli Zaretskii <eliz@gnu.org>
4011
4012 * buffer.c (syms_of_buffer): Doc fix.
4013
40142008-10-14 Kenichi Handa <handa@m17n.org>
4015
4016 * font.c (font_clear_prop): When clearing font width, clear the
4017 average width field too.
4018
40192008-10-12 Andreas Schwab <schwab@suse.de>
4020
4021 * ftfont.c (ftfont_shape_by_flt): Make static.
4022 * ftfont.h (ftfont_shape_by_flt): Don't declare.
4023
4024 * font.c: Don't include <m17n-flt.h>.
4025
40262008-10-10 Eli Zaretskii <eliz@gnu.org>
4027
4028 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
4029
40302008-10-09 Eli Zaretskii <eliz@gnu.org>
4031
4032 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
4033 away code.
4034
40352008-10-09 Chong Yidong <cyd@stupidchicken.com>
4036
4037 * dispnew.c (update_text_area): Avoid looping due to large glyph
4038 overhangs (bug#1070).
4039
40402008-10-09 Kenichi Handa <handa@m17n.org>
4041
4042 * fontset.c (face_for_char): If face->fontset is negative, just
4043 return ascii_face.
4044
f5385255
SM
4045 * font.c (font_delete_unmatched): Fix previous change.
4046 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
4047
40482008-10-09 Martin Rudalics <rudalics@gmx.at>
4049
4050 * frame.c (Fraise_frame): On text-only terminals select frame in
4051 order to make it visible. (Bug#1061)
4052
40532008-10-08 Chong Yidong <cyd@stupidchicken.com>
4054
4055 * fontset.c (fontset_find_font): Check frame validity.
4056
40572008-10-07 Chong Yidong <cyd@stupidchicken.com>
4058
a9b555d3 4059 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
4060 (xg_display_close): Allow Emacs to close all displays (bug#985).
4061
40622008-10-06 Andreas Schwab <schwab@suse.de>
4063
f5385255 4064 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
4065
40662008-10-06 Chong Yidong <cyd@stupidchicken.com>
4067
f5385255 4068 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 4069
a9b555d3 4070 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
4071
4072 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
4073 during initialization.
4074
40752008-10-04 Eli Zaretskii <eliz@gnu.org>
4076
4077 * xdisp.c (redisplay_internal): If frame switched, redisplay the
4078 whole thing on MSDOS frames as well as on a TTY.
4079
4080 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
4081 well as for TTY.
4082 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
4083 well as on a TTY.
4084
4085 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
4086 as well as for TTY.
4087
4088 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
4089
4090 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
4091 MSDOS frames as well.
4092
40932008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
4094
4095 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
4096 correct arguments.
b71ac3dd 4097 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
4098
40992008-10-03 Glenn Morris <rgm@gnu.org>
4100
4101 * emacs.c (USAGE1): Add --daemon.
4102
41032008-10-02 Eli Zaretskii <eliz@gnu.org>
4104
4105 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
4106 100, so it's in percents as advertised.
4107
41082008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
4109
4110 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
4111 (ns_output.current_cursor, ns_output.desired_cursor)
4112 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
4113 (FRAME_NEW_CURSOR_COLOR): Remove.
4114
4115 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 4116 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
4117 enumeration (HOLLOW_BOX_CURSOR, etc.).
4118
4119 * nsterm.m (ns_frame_rehighlight): Remove commented code.
4120 (draw_window_cursor): Simplify code.
f5385255
SM
4121 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
4122 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 4123 updates manually.
a9b555d3
JB
4124 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
4125 Use core Emacs cursor types.
aac0c6e3 4126
b8ff72fa 4127 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
4128
41292008-10-02 Martin Rudalics <rudalics@gmx.at>
4130
4131 * process.c (Faccept_process_output): Fix doc-string.
4132
41332008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
4134
4135 * gmalloc.c (__sbrk): Also define for uClibc.
4136
4137 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
4138 for uClibc.
4139
41402008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4141
4142 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
4143 styles.
4144 (nsfont_open): Reenable the cache.
4145
41462008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4147
4148 * font.c (font_matching_entity): Reflect ATTRS in font selection.
4149 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
4150
41512008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
4152
4153 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
4154 a suspended terminal.
4155
41562008-09-30 Michael Albinus <michael.albinus@gmx.de>
4157
4158 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
4159
41602008-09-30 Eli Zaretskii <eliz@gnu.org>
4161
4162 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
4163
41642008-09-30 Chong Yidong <cyd@stupidchicken.com>
4165
4166 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
4167 in a continued line coincides with a line beginning.
4168
41692008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4170
4171 * nsfont.m (nsfont_trait_distance): Fix bug.
4172 (nsfont_list): Return a list rather than a vector (syncs with Handa
4173 changes of 2008-05-14).
4174 (nsfont_open): Improve logging.
4175
41762008-09-29 Andreas Schwab <schwab@suse.de>
4177
4178 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
4179
41802008-09-28 Martin Rudalics <rudalics@gmx.at>
4181
4182 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
4183 name as char-resolve-modifiers.
4184 Reported by: Markus Triska <markus.triska@gmx.at>
4185
41862008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
4187
4188 * dispnew.c (init_display): Return earlier when running as a daemon.
4189
41902008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
4191
4192 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
4193
41942008-09-27 Eli Zaretskii <eliz@gnu.org>
4195
4196 * composite.c (Fcomposition_get_gstring)
4197 (Fcompose_region_internal, Fcompose_string_internal)
4198 (Ffind_composition_internal): Doc fix.
4199 (syms_of_composite) <compose-chars-after-function>: Doc fix.
4200 (syms_of_composite) <auto-composition-function>: Doc fix.
4201 (syms_of_composite) <composition-function-table>: Doc fix.
4202
42032008-09-25 Chong Yidong <cyd@stupidchicken.com>
4204
4205 * search.c (wordify): New argument for lax word-ends.
4206 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
4207
42082008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
4209
4210 * lisp.h (is_daemon): Declare.
4211 * dispnew.c (init_display): Do not try to initialize the terminal
4212 when running as a daemon.
4213
42142008-09-22 Chong Yidong <cyd@stupidchicken.com>
4215
4216 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
4217 x_display_pixel_height.
4218
42192008-09-22 Martin Rudalics <rudalics@gmx.at>
4220
4221 * undo.c (record_point): Don't call Fundo_boundary for first
4222 change. (Bug#731)
4223
42242008-09-22 Juanma Barranquero <lekktu@gmail.com>
4225
4226 * emacs.c (Fdaemonp): Doc fix.
4227
42282008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
4229
4230 * emacs.c (main): Place #ifdef in the proper place.
4231
42322008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
4233
4234 * emacs.c (standard_args): Add --daemon.
4235 (main): Disconnect from the terminal when --daemon is passed.
4236 (is_daemon): New variable.
4237 (Fdaemonp): New function.
4238 (syms_of_emacs): Defsubr it.
4239
42402008-09-20 Chong Yidong <cyd@stupidchicken.com>
4241
4242 * xdisp.c (get_next_display_element): Handle string display
4243 correctly when checking for the end of a box run.
4244
42452008-09-20 Glenn Morris <rgm@gnu.org>
4246
4247 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
4248 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
4249 (Frename_file): Avoid copying to trash if a rename involves
4250 a delete. (Bug#964).
4251
42522008-09-20 Eli Zaretskii <eliz@gnu.org>
4253
4254 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
4255 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
4256 frames as well as termcap frames.
4257 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
4258 get_named_tty.
4259
42602008-09-19 Eli Zaretskii <eliz@gnu.org>
4261
4262 * process.c (procfs_system_process_attributes): Fix cmdline in
4263 case /proc/PID/cmdline is empty.
4264
4265 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
4266 x_display_pixel_height.
4267
42682008-09-19 Juanma Barranquero <lekktu@gmail.com>
4269
4270 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
4271
4272 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
4273 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
4274
42752008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
4276
4277 * dispextern.h (struct it): Move line_wrap away from the middle of
4278 bitfields. Move voffset in struct iterator_stack_entry after the
4279 bitfields. Move tab_width near after another short.
4280
42812008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
4282
4283 * frame.h (struct frame): Move alpha from the middle of bitfields.
4284
4285 * window.h (struct window): Move frozen_window_start_p after the
4286 rest of the bitfields to reduce padding.
4287
42882008-09-18 Chong Yidong <cyd@stupidchicken.com>
4289
4290 * xterm.h (x_display_info): Remove `height' and `width' members.
4291
4292 * nsterm.h (ns_display_info): Remove `height' and `width' members.
4293
4294 * w32term.h (w32_display_info): Remove `height', `width',
4295 `height_in', and `width_in' members.
4296
b8ff72fa
SM
4297 * xterm.c (x_display_pixel_height, x_display_pixel_width):
4298 New functions.
aac0c6e3
MR
4299 (x_calc_absolute_position): Use them.
4300 (x_term_init): Omit removed `height' and `width' members.
4301
b8ff72fa
SM
4302 * w32term.c (x_display_pixel_height, x_display_pixel_width):
4303 New functions.
aac0c6e3
MR
4304 (w32_read_socket, x_calc_absolute_position): Use them.
4305 (w32_initialize_display_info, w32_term_init): Omit removed members
4306 of w32_display_info.
4307
b8ff72fa
SM
4308 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
4309 New functions.
4310 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 4311
b8ff72fa
SM
4312 * xterm.c (x_display_pixel_height, x_display_pixel_width):
4313 New functions.
aac0c6e3
MR
4314 (x_calc_absolute_position): Use them.
4315 (x_term_init): Omit removed `height' and `width' members.
4316
4317 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
4318 (compute_tip_xy):
4319 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
4320 * xmenu.c (menu_position_func): Use x_display_pixel_height and
4321 x_display_pixel_width.
4322
43232008-09-18 Kenichi Handa <handa@m17n.org>
4324
4325 * composite.c (fill_gstring_header): Don't check FROM and TO here.
4326 (composition_compute_stop_pos): Fix handling of static composition.
4327 (Fcomposition_get_gstring): Check FROM and TO at first.
4328
43292008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
4330
46e722a9 4331 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
4332 mixup (YAILOM).
4333
43342008-09-17 Chong Yidong <cyd@stupidchicken.com>
4335
4336 * indent.c (Fvertical_motion): Use position reported by iterator
4337 instead of PT for determining screen motion (bug#943).
4338
43392008-09-17 Romain Francoise <romain@orebokech.com>
4340
4341 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
4342
43432008-09-17 Kenichi Handa <handa@m17n.org>
4344
4345 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
4346
4347 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
4348 if necessary.
4349
43502008-09-16 Kenichi Handa <handa@m17n.org>
4351
4352 * coding.c (make_conversion_work_buffer): Avoid calling
4353 Fget_buffer_create if it is not necessary.
4354
43552008-09-15 Martin Rudalics <rudalics@gmx.at>
4356
4357 * window.c (Fselect_window): Don't update window_select_count and
4358 use_time when norecord is not nil.
4359
43602008-09-14 Kenichi Handa <handa@m17n.org>
4361
4362 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
4363 specpdl_ptr.
4364
43652008-09-12 Kenichi Handa <handa@m17n.org>
4366
4367 * indent.c (scan_for_column): Don't handle automatic composition
4368 if the current buffer is not associated with a window.
4369
4370 * composite.c (composition_reseat_it): If the current buffer is
4371 not associated with a window, ignore the automatic composition.
4372 (find_automatic_composition): Likewise.
4373
43742008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4375
4376 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
4377 (Fgpm_mouse_stop): Use it.
4378 * termhooks.h (close_gpm): Declare.
4379 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
4380 connection if Gpm_GetEvent fails.
4381
4382 * window.c (set_window_buffer): Always preserve current-buffer.
4383
43842008-09-12 Glenn Morris <rgm@gnu.org>
4385
4386 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
4387
43882008-09-11 Glenn Morris <rgm@gnu.org>
4389
4390 * charset.c (charset-map-path): Doc fix.
4391
43922008-09-10 Kenichi Handa <handa@m17n.org>
4393
4394 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
4395
4396 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
4397 compose a grapheme cluster with the preceding base glyph.
4398
4399 * composite.c (composition_compute_stop_pos): Fix previous change.
4400 Reset cmp_it->id to -1 at first.
4401
44022008-09-10 Glenn Morris <rgm@gnu.org>
4403
4404 * Makefile.in (character.o, chartab.o): Fix config.h typo.
4405
44062008-09-09 Chong Yidong <cyd@stupidchicken.com>
4407
4408 * keyboard.c (read_key_sequence): Reapply translation maps when
4409 switching keyboards.
4410
44112008-09-09 Kenichi Handa <handa@m17n.org>
4412
4413 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
4414 characters.
4415
4416 * composite.c (FORWARD_CHAR): Fix calculation
4417 of (POSITION).pos_byte.
4418 (composition_compute_stop_pos): Limit the search of composition to
4419 at most 500 characters ahead. If we reach the limit or find a
4420 newline, set cmp_it->ch to -2 and return 0.
4421 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
4422
44232008-09-08 Kenichi Handa <handa@m17n.org>
4424
4425 * indent.c (Fvertical_motion): Be sure to set
4426 it_overshoot_expected if it.cmp_it.id is non-negative.
4427
44282008-09-07 Andreas Schwab <schwab@suse.de>
4429
4430 * callproc.c (Fcall_process): Don't hold references to string data
4431 across garbage collection. Move initialisation of new_argv down
4432 to avoid compiler bug.
4433
44342008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
4435
4436 * process.c (Fsystem_process_attributes): Doc fix.
4437
44382008-09-07 Chong Yidong <cyd@stupidchicken.com>
4439
4440 * callproc.c (Fcall_process): Canonicalize current directory name.
4441
4442 * xdisp.c (move_it_to): When moving by vpos, ensure that the
4443 iterator advances to the next line if the current line ends in a
4444 continued tab.
4445
44462008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
4447
4448 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
4449 member to point to cmp_from.
4450
4451 * xdisp.c: Doc fix for references to gidx data member.
4452
44532008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
4454
4455 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
4456
44572008-09-07 Kenichi Handa <handa@m17n.org>
4458
4459 * composite.c (FORWARD_CHAR): Check STOP after
4460 incrementing (POSITION).pos.
4461
44622008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
4463
4464 * process.c (Fsystem_process_attributes): Doc fix.
4465
44662008-09-06 Chong Yidong <cyd@stupidchicken.com>
4467
4468 * keyboard.c (Ftop_level): Doc fix.
4469
44702008-09-06 Eli Zaretskii <eliz@gnu.org>
4471
4472 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
4473 minibuffer, don't let lower part of menu invade the echo area.
4474
4475 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
4476 "char *q" to access menu text and advance through it. Revert the
4477 change that displayed ">" instead of ASCII character 0x10.
4478
44792008-09-05 Eli Zaretskii <eliz@gnu.org>
4480
4481 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
4482 toggle boxes and radio buttons on MS-DOS as well.
4483
44842008-09-05 Kenichi Handa <handa@m17n.org>
4485
4486 * composite.c (autocmp_chars): Check lookback count.
4487 (composition_compute_stop_pos): Set cmp_it->lookback.
4488 (composition_reseat_it): Check lookback count.
4489 (struct position_record): New struct.
4490 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
4491 (find_automatic_composition): New function.
4492 (composition_adjust_point): Use find_automatic_composition.
4493
4494 * dispextern.h (struct composition_it): New member lookback.
4495
44962008-09-02 Chong Yidong <cyd@stupidchicken.com>
4497
4498 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
4499 if moving by a single line.
4500
45012008-09-02 Andreas Schwab <schwab@suse.de>
4502
4503 * xterm.c (x_delete_display): Fix merge error.
4504
4505 * fileio.c (Fexpand_file_name): Remove unused variables.
4506
45072008-09-02 Eli Zaretskii <eliz@gnu.org>
4508
4509 * fileio.c (Fexpand_file_name): Copy argument `name' into local
4510 storage on all platforms, not just on DOS_NT.
4511
45122008-09-02 Jason Rumney <jasonr@gnu.org>
4513
b8ff72fa
SM
4514 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
4515 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
4516
45172008-09-01 Chong Yidong <cyd@stupidchicken.com>
4518
4519 * xfaces.c (Finternal_set_alternative_font_family_alist)
4520 (Finternal_set_alternative_font_registry_alist): Properly copy
4521 entire alist structure.
4522
45232008-09-01 Kenichi Handa <handa@m17n.org>
4524
d66c0241 4525 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 4526 representative chars of the script is a vector.
d66c0241
JB
4527 (ftfont_list): Handle the case where the representative chars of
4528 the script is a vector.
aac0c6e3
MR
4529
4530 * character.c (syms_of_character): Docstring of
4531 script-representative-chars fixed.
4532
45332008-08-31 Eli Zaretskii <eliz@gnu.org>
4534
4535 * msdos.c (BUILD_CHAR_GLYPH): New macro.
4536 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
4537 the menu. Allocate larger buffer for `text', to account for
4538 possible ^C characters.
4539
45402008-08-31 Martin Rudalics <rudalics@gmx.at>
4541
4542 * xdisp.c (prepare_menu_bars): Don't call
4543 Vwindow_size_change_functions with arg Qt.
4544
45452008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
4546
4547 * font.h (font_range):
4548 * fileio.c (report_file_error):
46e722a9
SM
4549 * composite.c (composition_update_it): Yet another int/Lisp_Object
4550 mixup (YAILOM).
aac0c6e3
MR
4551
45522008-08-30 Glenn Morris <rgm@gnu.org>
4553
4554 * data.c (Fmake_variable_frame_local): Doc fix.
4555
4556 * frame.c (Fmodify_frame_parameters): Doc fix.
4557
45582008-08-30 Eli Zaretskii <eliz@gnu.org>
4559
4560 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
4561 needed by GetTokenInformation.
4562 (w32_system_process_attributes): Check return values of all system
4563 APIs.
4564
4565 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
4566 only when the state changes.
4567 (IT_update_begin, IT_update_end): Add termscript trace.
4568
4569 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
4570 clipboard is unavailable. Set dst to NULL if it doesn't point to
4571 malloc'ed data.
4572 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
4573 passing random values to xfree.
4574
4575 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 4576 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
4577
45782008-08-29 Jason Rumney <jasonr@gnu.org>
4579
4580 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
4581
45822008-08-29 Eli Zaretskii <eliz@gnu.org>
4583
4584 * composite.c (fill_gstring_body): Avoid compiler warnings.
4585
4586 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
4587 LGLYPH_SET_CODE to avoid compiler warnings.
4588
2ae37cf0 4589 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
4590
4591 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
4592
4593 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
4594 LGLYPH_SET_CODE.
4595
45962008-08-29 Kenichi Handa <handa@m17n.org>
4597
4598 * fileio.c (report_file_error): Don't downcase the first character
4599 of errstring if it is still unibyte.
4600
46012008-08-29 Kenichi Handa <handa@m17n.org>
4602
4603 These changes are to re-implement the automatic composition so
4604 that it doesn't use text properties.
4605
4606 * Makefile.in (ftfont.o): Depend on composite.h.
4607 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
4608
4609 * character.h (Vunicode_category_table): Extern it.
4610
4611 * character.c (Vunicode_category_table): New variable.
4612 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
4613
4614 * chartab.c (optimize_sub_char_table): Perform more greedy
4615 optimization.
4616
b8ff72fa
SM
4617 * composite.h (enum composition_method):
4618 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
4619 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
4620 (Vcomposition_function_table): Extern it.
4621 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
4622 (composition_gstring_put_cache, composition_gstring_from_id)
4623 (composition_gstring_p, composition_gstring_width)
4624 (composition_compute_stop_pos, composition_reseat_it)
4625 (composition_update_it, composition_adjust_point): Extern them.
4626 (Fcomposition_get_gstring): EXFUN it.
4627
d66c0241 4628 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
4629 (Vcomposition_function_table)
4630 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
4631 (gstring_hash_table, gstring_work, gstring_work_headers):
4632 New variables.
aac0c6e3
MR
4633 (gstring_lookup_cache, composition_gstring_put_cache)
4634 (composition_gstring_from_id, composition_gstring_p)
4635 (composition_gstring_width, fill_gstring_header)
4636 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
4637 (composition_reseat_it, composition_update_it)
b8ff72fa 4638 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
4639 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
4640 and gstring_work_headers. DEFVAR_LISP composition-function-table.
4641 Defsubr compostion_get_gstring.
4642
4643 * dispextern.h (struct glyph): New union u.cmp. Delete the member
4644 cmp_id.
4645 (struct glyph_string): Delete the member gidx. New members
4646 cmp_id, cmp_from, and cmp_to.
4647 (enum it_method): Delete GET_FROM_COMPOSITION.
4648 (struct composition_it): New struct.
4649 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
4650 Delete c, len, cmp_id, cmp_len in u.comp.
4651
4652 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 4653 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 4654 (enum lglyph_indices): Likewise.
b8ff72fa 4655 (font_range): Adjust extern.
aac0c6e3
MR
4656 (font_fill_lglyph_metrics): Extern it.
4657
4658 * font.c (QCf): New variable.
4659 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
4660 (font_prepare_composition): Delete this function.
4661 (font_range): Type and arguments changed.
4662 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
4663 (font_fill_lglyph_metrics): New function.
b8ff72fa 4664 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 4665 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
4666 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
4667 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
4668
4669 * fontset.h (font_for_char): Extern it.
4670
4671 * fontset.c (font_for_char): New function.
4672
4673 * ftfont.c: Include composite.h.
4674 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 4675 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
4676
4677 * indent.c: Include composite.h and dispextern.h.
4678 (check_composition): Delete this function.
4679 (scan_for_column): Handle composition by
4680 composition_compute_stop_pos, composition_reseat_it, and
4681 composition_update_it.
4682 (compute_motion): Likewise.
4683 (Fvertical_motion): Fix checking of composition.
4684
4685 * keyboard.c (adjust_point_for_property): Check composition by
4686 composition_adjust_point.
4687
b8ff72fa 4688 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
4689 struct glyph_string.
4690
b8ff72fa
SM
4691 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
4692 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
4693 struct glyph.
4694 (produce_composite_glyph): Likewise.
4695
b8ff72fa
SM
4696 * w32term.c (x_draw_composite_glyph_string_foreground):
4697 Adjust for the change of struct glyph_string.
aac0c6e3
MR
4698 (x_draw_glyph_string): Likewise.
4699
4700 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
4701 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
4702
4703 * xdisp.c: Include font.h.
4704 (it_props): Delete the entry for Qauto_composed.
4705 (init_iterator): Initialize it->cmp_it.id to -1.
4706 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 4707 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
4708 (handle_auto_composed_prop): Delete it.
4709 (handle_composition_prop): Handle only static composition.
4710 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
4711 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 4712 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
4713 (pop_it): Likewise.
4714 (get_next_element): Delete next_element_from_composition.
4715 (CHAR_COMPOSED_P): New macro.
4716 (get_next_display_element): For automatic composition, get a face
4717 from the font in the glyph-string.
4718 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 4719 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
4720 (next_element_from_string): Check if the character at the current
4721 position is composed by CHAR_COMPOSED_P.
4722 (next_element_from_buffer): Likewise.
d66c0241
JB
4723 (next_element_from_composition): Adjust for the change of struct it.
4724 Update it->cmp_it.
b8ff72fa
SM
4725 (dump_glyph): Adjust for the change of struct glyph.
4726 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
4727 it and struct glyph. Don't handle automatic composition here.
4728 (fill_gstring_glyph_string): New function.
4729 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 4730 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
4731 (BUILD_GSTRING_GLYPH_STRING): New macro.
4732 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
4733 automatic composition.
b8ff72fa 4734 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 4735 struct glyph.
b8ff72fa 4736 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 4737
b8ff72fa 4738 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
4739 the change of struct glyph_string.
4740 (x_draw_glyph_string): Likewise.
4741
47422008-08-29 Glenn Morris <rgm@gnu.org>
4743
4744 * buffer.c (word-wrap): Doc fix.
4745 * xdisp.c (truncate-partial-width-windows): Doc fix.
4746 Increase default to 50.
4747
47482008-08-29 Chong Yidong <cyd@stupidchicken.com>
4749
4750 * xdisp.c (update_tool_bar_unwind): New function.
4751 (update_tool_bar): Temporarily set selected frame before building
4752 tool-bar items.
4753
47542008-08-28 Michael Albinus <michael.albinus@gmx.de>
4755
4756 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
4757 snprintf, respectively.
4758 (xd_append_arg): Convert strings with Fstring_make_unibyte.
4759
47602008-08-28 Chong Yidong <cyd@stupidchicken.com>
4761
4762 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
4763 LDFLAGS to GNUstep CC invocation.
4764
47652008-08-27 Chong Yidong <cyd@stupidchicken.com>
4766
4767 * indent.c (Fvertical_motion): Revert last change. Handle the
4768 general case where we are moving forward, and PT spans multiple
4769 screen lines.
4770
4771 * eval.c (find_handler_clause): Temporarily increase
4772 max-lisp-eval-depth while printing the backtrace buffer, to
4773 guarantee that help-mode code can run.
4774
47752008-08-27 Eli Zaretskii <eliz@gnu.org>
4776
4777 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
4778 colors under -rv.
4779 (IT_set_frame_parameters): Don't swap foreground and background
4780 colors if `(reverse . t)' is present in the frame properties.
4781 (internal_terminal_init): Call init_frame_faces only for the
4782 initial frame.
4783
47842008-08-27 Andreas Schwab <schwab@suse.de>
4785
4786 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
4787
47882008-08-27 Andreas Schwab <schwab@suse.de>
4789
4790 * search.c (search_buffer): Set char_base to zero only at the end.
4791
47922008-08-27 Kenichi Handa <handa@m17n.org>
4793
b8ff72fa 4794 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
4795
47962008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
4797
4798 * xterm.c (x_term_init): Temporarily hide the partially
4799 initialized terminal while calling vendor-specific-keysyms.
4800
48012008-08-26 Eli Zaretskii <eliz@gnu.org>
4802
4803 * msdos.c (internal_terminal_init): Most initializations done only
4804 once, especially initial_screen_colors[] and termscript open.
4805
48062008-08-26 Chong Yidong <cyd@stupidchicken.com>
4807
4808 * eval.c (Fcondition_case): Doc fix.
4809
4810 * widgetprv.h (EmacsFramePart): Change font member to the new font
4811 struct.
4812
4813 * widget.c: Include character.h and font.h for XSETFONT.
4814 (setup_frame_gcs): Compute X font id from font struct, just once.
4815
48162008-08-26 Eli Zaretskii <eliz@gnu.org>
4817
4818 * term.c (get_named_tty): Fix last change.
4819
48202008-08-26 Chong Yidong <cyd@stupidchicken.com>
4821
4822 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 4823 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
4824
48252008-08-25 Eli Zaretskii <eliz@gnu.org>
4826
4827 * frame.c (do_switch_frame): Mark previously displayed frame as
4828 obscured for FRAME_MSDOS_P frames as well.
4829
48302008-08-24 Eli Zaretskii <eliz@gnu.org>
4831
4832 * frame.c (make_terminal_frame): Initialize f->terminal,
4833 f->terminal->reference_count, and scroll bars on MS-DOS as well.
4834 Set the top frame to newly created frame.
4835 (Fmake_terminal_frame): Reuse the_only_display_info.
4836
4837 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
4838 estimating available memory.
4839
b97439ce 48402008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
4841
4842 * nsterm.m (ns_draw_window_cursor): Don't call
4843 NSDisableScreenUpdates and NSEnableScreenUpdates on
4844 non-NS_IMPL_COCOA systems.
4845
48462008-08-23 Andreas Schwab <schwab@suse.de>
4847
4848 * process.c (procfs_system_process_attributes): Fix use of
4849 uninitialized variables.
4850
48512008-08-23 Eli Zaretskii <eliz@gnu.org>
4852
4853 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
4854
4855 * dispnew.c (init_display): Remove MS-DOS specific conditions for
4856 calling tty-set-up-initial-frame-faces.
4857
b8ff72fa
SM
4858 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
4859 Allow MSDOS frames along with X frames.
aac0c6e3
MR
4860
4861 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
4862 addition to output_termcap.
4863
4864 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
4865
4866 * termchar.h (FRAME_TTY): Support output_msdos_raw.
4867 (struct tty_display_info) [MSDOS]: Add fields related to mouse
4868 highlight.
4869
4870 * process.c [!subprocesses]: Define QCname.
4871 (syms_of_process): Intern and staticpro it.
4872
4873 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
4874 Adjust for changes in encoding/decoding routines.
4875 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
4876 encode_coding and decode_coding.
4877
b8ff72fa 4878 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
4879
4880 * dosfns.c: Include frame.h before termhooks.h.
4881 (dos_cleanup): Use CURTTY ()->termscript instead of a global
4882 variable termscript.
4883
4884 * s/msdos.h (USER_FULL_NAME): Define.
4885 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
4886
4887 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
4888 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
4889 pw->pw_gecos.
4890
4891 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
4892 SELECTED_FRAME as additional (1st) argument.
4893 (tty_read_avail_input): Handle output_msdos_raw in
4894 addition to output_termcap.
4895
4896 * msdos.c: Include frame.h before termhooks.h.
4897 (mouse_on, mouse_off, mouse_moveto, mouse_init)
4898 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
4899 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
4900 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
4901 (IT_set_terminal_modes, IT_reset_terminal_modes)
4902 (IT_set_frame_parameters): Use tty->termscript instead of a global
4903 variable termscript.
4904 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
4905 global variable terminal_coding. Don't refer to
4906 Vnonascii_translation_table.
4907 (internal_terminal_init): Set Vwindow_system in current_kboard.
4908 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
4909 Announce date and time of session start, if termscript is open.
4910 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
4911 term.c:init_tty). Open termscript only of not already open.
4912 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
4913 here instead of dos_ttraw. Don't initialize display if this is an
4914 initial tty. Don't set FRAME_FONT.
4915 (Vwindow_system_version): Bump to 23.
4916 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
4917 is available, set up mouse_position_hook.
4918 (dos_ttraw, IT_set_terminal_modes): If called with initial
4919 terminal, do nothing.
4920 (IT_set_frame_parameters): Handle the Qtty_type frame
4921 parameter by calling internal_terminal_init.
4922 (dos_set_window_size, show_mouse_face)
4923 (clear_mouse_face, IT_note_mode_line_highlight)
4924 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
4925 (dos_rawgetc): Use tty_display_info instead of x_display_info.
4926 (initialize_msdos_display): New function.
4927 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
4928 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
4929 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
4930 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 4931 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
4932 (request_sigio, unrequest_sigio): Don't define, now defined on
4933 sysdep.c.
4934 (IT_write_glyphs): Rewrite to use encode_terminal_code.
4935
4936 * term.c [MSDOS]: Include msdos.h.
4937 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
4938 conditional to DOS_NT. Allow only one call to this function in a
4939 session. Don't allocate a new struct tty_display_info; instead,
4940 reuse the_only_display_info. Call get_tty_size to get screen
4941 dimensions. Call init_baud_rate to set bad_rate.
4942 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
4943 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 4944 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
4945 (get_tty_terminal, get_named_tty, Ftty_type)
4946 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
4947 output_termcap.
b8ff72fa
SM
4948 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
4949 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 4950 only when subprocesses are supported.
aac0c6e3
MR
4951
4952 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
4953 f->output_data.x.
4954 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
4955 terminal devices.
4956
5582fbc7 4957 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
4958 x_output.
4959 (FRAME_FONT): Use output_data.tty.
4960 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
4961 (struct x_display_info): Rename from display_info. Update all users in
4962 msdos.c.
aac0c6e3 4963 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 4964 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
4965 (dos_ttraw): Update prototype.
4966
4967 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
4968 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
4969
49702008-08-23 Jason Rumney <jasonr@gnu.org>
4971
4972 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
4973 (fn_TIFFSetDirectory): New library function used.
4974 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
4975 (tiff_load): Use :index to select among multiple images. Set count
4976 property when multiple images exist.
4977 (gif_format): Use :index, not :image.
4978
49792008-08-23 Chong Yidong <cyd@stupidchicken.com>
4980
4981 * xdisp.c (try_scrolling): Check INT_MAX instead of
4982 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
4983 to obtain INT_MAX.
4984
49852008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
4986
4987 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
4988
49892008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
4990
4991 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
4992 GNUstep library location.
4993
49942008-08-21 Chong Yidong <cyd@stupidchicken.com>
4995
4996 * xfaces.c (x_update_menu_appearance): Check validity of menu font
4997 before using it.
4998
4999 * puresize.h (BASE_PURESIZE): Increase to 1250000.
5000
50012008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5002
5003 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
5004 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
5005 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
5006 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
5007 (EmacsApp-cursor_blink_handler): Remove declaration.
5008 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
5009 match 01 Feb 2008 changes in xterm.c.
5010 (ns_read_socket): Add cast to avoid warning.
5011 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
5012 GNUstep.
5013
50142008-08-20 Chong Yidong <cyd@stupidchicken.com>
5015
5016 * xselect.c (x_get_foreign_selection): Return nil if desired
5017 selection could not be obtained, instead of signalling an error.
5018
50192008-08-20 David Reitter <david.reitter@gmail.com>
5020
5021 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
5022 * nsterm.m: Remove ns-specific code for cursor blinking.
5023 (ns_draw_window_cursor): Clear cursor properly rather than
5024 redrawing the area. Respect width of bar cursors.
5025 These changes enable the use of generic blink-cursor-mode and
5026 generic cursor types in NS and support smooth cursor movements (do
5027 not blink off after command).
5028 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
5029 Nextstep, too.
5030
50312008-08-19 Kenichi Handa <handa@m17n.org>
5032
5033 * font.c (Vfont_log_deferred): New variable.
5034 (font_add_log): Check Vfont_log_deferred.
5035 (font_deferred_log): New function.
5036
5037 * font.h (font_deferred_log): Extern it.
5038
5039 * fontset.c (reorder_font_vector): Use encoding charset of fonts
5040 for sorting.
5041 (face_for_char): Use deferred log.
5042
50432008-08-18 Kenichi Handa <handa@m17n.org>
5044
5045 * fontset.c (face_for_char): Add font log.
5046
5047 * font.c (font_add_log): Add the font properties :script, :lang,
5048 and :otf in the log.
5049
50502008-08-17 Chong Yidong <cyd@stupidchicken.com>
5051
5052 * xdisp.c: Remove dead code.
5053 (handle_invisible_prop, next_overlay_string): Defer call to
5054 setup_for_ellipsis.
5055 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
5056
50572008-08-15 Chong Yidong <cyd@stupidchicken.com>
5058
5059 * xfaces.c (lookup_derived_face): Properly handle possible zero
5060 return value of get_lface_attributes.
5061 (merge_faces): Don't tell lookup_derived_face to signal an error
5062 if face is not found.
5063
5064 * dired.c (Fdirectory_files): Doc fix.
5065
5066 * process.c (make_process): Initialize kill_without_query struct
5067 member.
5068
50692008-08-15 Eli Zaretskii <eliz@gnu.org>
5070
5071 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
5072 Alternative calculation of totphys for Visual Studio 6.
5073
5074 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
5075
5076 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
5077 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
5078 All users changed.
5079 (stat): Only root directory passed to GetDriveType. Allow RAM
5080 disk as well as local fixed disk when w32-get-true-file-attributes
5081 is set to `local'.
5082 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
5083 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
5084 (w32_cached_id, w32_add_to_cache): New functions.
5085 (get_name_and_id): Look account names in the cache before calling
5086 lookup_account_sid.
5087 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
5088 New initialization flags.
5089 (globals_of_w32): Initialize them to zero.
5090 (w32_system_process_attributes): Use w32_cached_id and
5091 w32_add_to_cache.
5092
50932008-08-14 Lawrence Mitchell <wence@gmx.li>
5094
5095 * lread.c (Fread_char, Fread_char_exclusive): If no character
5096 event is read before timeout is reached, return nil, rather than
5097 converting to a number.
5098
50992008-08-14 Chong Yidong <cyd@stupidchicken.com>
5100
5101 * fns.c (use_dialog_box): Doc fix.
5102
5103 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
5104 on OS X.
5105
51062008-08-13 Chong Yidong <cyd@stupidchicken.com>
5107
5108 * frame.c (Qns_parse_geometry): New var.
5109 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
5110
51112008-08-11 Chong Yidong <cyd@stupidchicken.com>
5112
5113 * xdisp.c (x_produce_glyphs): Handle the case when font has no
5114 space character in calculating tabs.
5115
51162008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
5117
5118 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
5119
51202008-08-10 Glenn Morris <rgm@gnu.org>
5121
5122 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
5123 silence gcc "limited range of data type" warnings in some
5124 make_fixnum_or_float calls.
5125
51262008-08-09 Eli Zaretskii <eliz@gnu.org>
5127
5128 * w32.c (w32_system_process_attributes): If the process does not
5129 exist, return nil.
5130
5131 * w32.c: Include thelp32.h, psapi.h and coding.h.
5132 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
5133 declarations.
5134 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
5135 (Process32Next_Proc): New typedefs.
5136 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
5137 (g_b_init_process32_next, g_b_init_open_thread_token)
5138 (g_b_init_impersonate_self, g_b_init_revert_to_self)
5139 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
5140 (g_b_init_get_process_working_set_size)
5141 (g_b_init_global_memory_status_ex): New static variables.
5142 (globals_of_w32): Initialize them.
5143 (create_toolhelp32_snapshot, process32_first, process32_next)
5144 (open_thread_token, impersonate_self, revert_to_self)
5145 (get_process_memory_info, get_process_working_set_size)
5146 (global_memory_status, global_memory_status_ex): New wrapper
5147 functions.
5148 (w32_list_system_processes, w32_system_process_attributes)
5149 (enable_privilege, restore_privilege, ltime, process_times):
5150 New functions.
5151 (convert_time_raw): New function.
5152 (convert_time): Remove conversion of FILETIME into time in 100
5153 nsec units, call convert_time_raw instead.
5154
5155 * process.h (w32_list_system_processes, w32_system_process_attributes):
5156 Add prototypes.
5157 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
5158 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
5159 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
5160 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
5161
5162 * process.c (Fsystem_process_attributes): Doc fix.
5163
51642008-08-08 Chong Yidong <cyd@stupidchicken.com>
5165
5166 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
5167 a continued multi-char glyph; if so, advance to the actual glyph.
5168
51692008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
5170
5171 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
5172
5173 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
5174 (.m.o): Use it.
5175 * config.in: Regenerate.
5176
51772008-08-07 Chong Yidong <cyd@stupidchicken.com>
5178
5179 * xdisp.c (redisplay_window): Revert last change.
5180 (try_window): Check bottom scroll margin too.
5181
51822008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
5183
5184 * config.in: Regenerate.
5185
5186 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
5187 -list-load-path-shadows'.
5188 (nsgui.h): Reduce number of things depending on it.
5189
51902008-08-06 Chong Yidong <cyd@stupidchicken.com>
5191
5192 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
5193 instead of window-end which does the wrong thing at eob.
5194 (try_cursor_movement): Minor optimization.
5195 (redisplay_window): If scroll margin is defined, don't assume
5196 window doesn't need scrolling.
5197
51982008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
5199
5200 * config.in: Regenerate.
5201
5202 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
5203 (mostlyclean): Don't delete *.d under NS.
5204
5205 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
5206
52072008-08-06 Kenichi Handa <handa@m17n.org>
5208
5209 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
5210
52112008-08-06 Andreas Schwab <schwab@suse.de>
5212
5213 * config.in: Regenerate.
5214
52152008-08-05 Chong Yidong <cyd@stupidchicken.com>
5216
5217 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
5218 forcing a window start.
5219
5220 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
5221 (auto_save_1): Update modtime when auto-save-list-file-name is on.
5222
52232008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
5224
5225 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
5226 argument.
5227
52282008-08-05 Juanma Barranquero <lekktu@gmail.com>
5229
5230 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
5231 <scroll-down-aggressively, before-change-functions>:
5232 <after-change-functions>: Reflow docstrings.
5233
52342008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
5235 Ken Raeburn <raeburn@gnu.org>
5236
5237 Dock menu customization, based on a patch by Ken Raeburn, plus some
5238 other fixes.
5239 * nsmenu.m (dockMenu): New variable.
5240 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
5241
5242 * nsterm.h (dockMenu): Declare.
5243
5244 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
5245 (ns_term_init): Initialize dockMenu.
5246 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
5247 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
5248 left.
5249
5250 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
5251
52522008-08-04 Chong Yidong <cyd@stupidchicken.com>
5253
5254 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
5255
5256 * config.in: Regenerate.
5257
52582008-08-04 Seiji Zenitani <zenitani@mac.com>
5259
5260 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
5261
52622008-08-04 Chong Yidong <cyd@stupidchicken.com>
5263
5264 * nsterm.h (find_and_call_menu_selection): Fix prototype.
5265
52662008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
5267
5268 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
5269
5270 * keyboard.h: Comment an #endif.
5271
5272 * lisp.h (have_menus_p): Adjust comment.
5273
5274 * menu.c (find_and_return_menu_selection): Fix comparison with
5275 client_data.
5276
5277 * nsmenu.m (popup_activated_flag): New variable.
5278 (popup_activated): New function.
5279 (menu-or-popup-active-p): New exported lisp definition.
5280 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
5281 when popup done.
5282 (ns_popup_dialog): Set popup_activated_flag.
5283
5284 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
5285 version for GNUstep (handled by conditional typedef in nsterm.m).
5286 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
5287 in rgb.txt).
5288
5289 * process.c (init_process): Use DARWIN_OS, not DARWIN.
5290
5291 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
5292
5293 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
5294
5295 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
5296 shortcircuit if popup_activated like GTK and X toolkit.
5297
5298 * m/inter386.h: Change DARWIN to DARWIN_OS.
5299
5300 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
5301 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
5302 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
5303 comment on NO_SOCK_SIGIO.
5304
53052008-08-03 Chong Yidong <cyd@stupidchicken.com>
5306
5307 * nsterm.m (windowDidResize): Remove stopModal call.
5308
53092008-08-03 Andreas Schwab <schwab@suse.de>
5310
5311 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
5312 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
5313
53142008-08-02 Chong Yidong <cyd@stupidchicken.com>
5315
5316 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
5317 Don't use uninitialized pointer variable when using getrlimit.
5318
53192008-08-02 Jason Rumney <jasonr@gnu.org>
5320
5321 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
5322
53232008-08-02 Eli Zaretskii <eliz@gnu.org>
5324
5325 * alloc.c (NSTATICS): Bump to 0x640.
5326
5327 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
5328
5329 * lisp.h: Add prototype for directory_files_internal.
5330
5331 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
5332 New functions.
5333 (syms_of_process): Defsubr them. Add initializations for various
5334 Q* symbols used in procfs_system_process_attributes.
5335 (procfs_list_system_processes, procfs_system_process_attributes)
5336 [HAVE_PROCFS]: New functions.
5337 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
5338 (procfs_get_total_memory): New functions.
5339
53402008-08-01 Juanma Barranquero <lekktu@gmail.com>
5341
5342 * xfaces.c (Fx_load_color_file): Fix previous change;
5343 it is #ifdef WINDOWSNT, not WINDOWS_NT.
5344
53452008-08-01 Michael Albinus <michael.albinus@gmx.de>
5346
5347 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
5348
53492008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5350
5351 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
5352
53532008-08-01 Chong Yidong <cyd@stupidchicken.com>
5354
5355 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
5356
5357 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
5358 define NSApplicationDelegateReplySuccess.
5359 (EmacsView -converstationIdentifier): Use long instead of
5360 NSInteger for GNUstep, since it doesn't have NSInteger.
5361
5362 * xmenu.c: Revert last change.
5363
5364 * keyboard.h: Fix last change.
5365
53662008-08-01 Juanma Barranquero <lekktu@gmail.com>
5367
5368 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
5369 on Windows.
5370
53712008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5372
5373 Warning clearing and clean-up in NS port.
5374 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
5375 Add prototypes.
5376 * nsgui.h (FACE_DEFAULT): Remove, unused.
5377 (XGCValues): Change colors to unsigned long.
5378 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
5379 nsterm.m.
5380 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
5381 (ns_list_fonts): Remove, unused.
5382 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
5383 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
5384 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
5385 (nsfont_draw): Compare face colors to 0, not nil.
5386 * nsmenu.m (struct widget_value): Drop unneeded declaration.
5387 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
5388 (-addSubmenuWithTitle:): Use NSMenuItem class.
5389 (ns_popup_menu): Use NO, not NULL, for enabled setting.
5390 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
5391 (ns_clip_to_row): Make gc arg a BOOL.
5392 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
5393 ns_clip_to_row() call.
5394 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
5395 used). Cast FRAME_FONT assignments.
5396 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
5397 (ns_string_to_lispmod): Change arg to const char.
5398 (ns_term_init): Use NSMenuItem class.
5399 (EmacsApp -openFile:): Move to different section of file.
5400 (EmacsApp -application:openFiles:): Don't return a value, call
5401 -replyToOpenOrPrint:.
5402 (EmacsView -keyDown:): Fix up cast.
5403 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
5404 (EmacsView -menuDown:): Cast tag in call to
5405 find_and_call_menu_selection().
5406 (ns_list_fonts): Remove, unused.
5407 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
5408 (ns_fontname_to_xlfd): Make static.
5409 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
5410 Remove prototypes (now in keyboard.h).
5411 (next_menubar_widget_id): Remove, unused.
5412 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
5413 Remove prototypes (now in keyboard.h).
5414 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
5415
54162008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
5417
5418 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
5419 (floatfns.o): Depend on syssignal.h.
5420 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
5421
5422 * systty.h: Fix previous change that removed BSD_TERMIOS.
5423 Add comments to #ifdefs.
5424
54252008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5426
5427 * w32fns.c (w32-load-color-file): Remove.
5428 (x-open-connection): Use renamed Fx_load_color_file.
5429 * xfaces.c (x-load-color-file): Add.
5430 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
5431 Emacs.clr.
5432 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
5433
54342008-07-31 Michael Albinus <michael.albinus@gmx.de>
5435
5436 * dbusbind.c (Fdbus_call_method_asynchronously)
5437 (Fdbus_method_error_internal): New defuns.
5438 (xd_read_message): Handle also reply messages.
5439 (Vdbus_registered_functions_table): Extend docstring.
5440
54412008-07-31 Juanma Barranquero <lekktu@gmail.com>
5442
5443 * keyboard.c (gobble_input): Fix previous change.
5444
54452008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
5446
5447 * bitmaps/README:
5448 * xfns.c:
5449 * termcap.c:
5450 * term.c:
5451 * syswait.h:
5452 * systty.h:
5453 * systime.h:
5454 * syssignal.h:
5455 * sysdep.c:
5456 * process.h:
5457 * process.c:
5458 * print.c:
5459 * ndir.h:
5460 * lread.c:
5461 * keyboard.c:
5462 * getpagesize.h:
5463 * floatfns.c:
5464 * fileio.c:
5465 * emacs.c:
5466 * doc.c:
5467 * dispnew.c:
5468 * dired.c:
5469 * data.c:
5470 * callproc.c:
5471 * buffer.c:
5472 * README:
5473 * Makefile.in:
5474 * s/template.h:
5475 * s/msdos.h:
5476 * m/vax.h: Remove VMS support.
5477 * s/vms.h:
5478 * vlimit.h:
5479 * uaf.h:
5480 * temacs.opt:
5481 * param.h:
5482 * ioctl.h: Remove file.
5483
54842008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
5485
5486 * s/ms-w32.h (MULTI_KBOARD): Remove.
5487 * xterm.c:
5488 * xselect.c:
5489 * xfns.c:
5490 * window.c:
5491 * w32term.c:
5492 * w32fns.c:
5493 * terminal.c:
5494 * termhooks.h:
5495 * term.c:
5496 * sysdep.c:
5497 * keyboard.h:
5498 * keyboard.c:
5499 * frame.h:
5500 * frame.c:
5501 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
5502 * config.in: Regenerate.
5503
55042008-07-30 Jason Rumney <jasonr@gnu.org>
5505
5506 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
5507
5508 * w32font.c (w32font_encode_char): Leave as unicode if in range.
5509 (w32font_open_internal): Get unicode version of textmetrics.
5510 Don't enable or disable glyph indices here.
5511 (w32font_open): Disable use of glyph indices.
5512
5513 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
5514
55152008-07-30 Chong Yidong <cyd@stupidchicken.com>
5516
5517 * minibuf.c (Vread_buffer_function): Doc fix.
5518
55192008-07-30 John Paul Wallington <jpw@pobox.com>
5520
5521 * minibuf.c (read_buffer_completion_ignore_case): New var.
5522 (Fread_buffer): Use it.
5523
55242008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
5525
5526 * systty.h (sensemode): Remove empty #if. Remove reference to
5527 BSD_TERMIOS, unused.
5528
5529 * sysdep.c: Remove reference to DGUX.
5530 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
5531
5532 * config.in: Regenerate.
5533
55342008-07-30 Jason Rumney <jasonr@gnu.org>
5535
5536 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
5537
55382008-07-29 Jason Rumney <jasonr@gnu.org>
5539
5540 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
5541 is populated.
5542 (uniscribe_encode_char): Always use uniscribe.
5543 Avoid using context if cache is populated.
5544
55452008-07-29 Jan Djärv <jan.h.d@swipnet.se>
5546
5547 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
5548 open menu.
5549
5550 * gtkutil.c (menu_nav_ended): Remove.
5551 (create_menus): Remove signal connect for menu_nav_ended.
5552
55532008-07-28 Chong Yidong <cyd@stupidchicken.com>
5554
5555 * xdisp.c (redisplay_window): Check return value of
5556 compute_window_start_on_continuation_line before forcing a window
5557 start.
5558
55592008-07-28 Jason Rumney <jasonr@gnu.org>
5560
5561 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
5562
5563 * w32term.c (w32_enable_unicode_output, cleartype_active):
5564 Remove obsolete display options.
5565 (x_draw_glyph_string_background): Don't use old cleartype_active
5566 workaround.
5567 (w32_initialize): Remove cleartype_active initialization.
5568 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
5569
55702008-07-28 Andreas Schwab <schwab@suse.de>
5571
5572 * lisp.h (init_weak_hash_tables, syms_of_font)
5573 (xd_read_queued_messages, syms_of_dbusbind): Declare.
5574 (remove_hash_entry): Don't declare.
5575 * eval.c (maybe_call_debugger): Make static and move before use.
5576 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
5577 * xdisp.c: Include "gtkutil.h" if USE_GTK.
5578 * xterm.h (x_set_frame_alpha): Declare.
5579
55802008-07-28 Jan Djärv <jan.h.d@swipnet.se>
5581
5582 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
5583 (create_menus): Connect selection-done to menu_nav_ended.
5584
55852008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5586
5587 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
5588 Set Vx_resource_name to a fallback. Replace read of 'buffered'
5589 parameter with read of 'alpha' one.
5590 (Qns_frame_parameter): Remove.
5582fbc7 5591 * nsselect.m (selection-coding-system)
aac0c6e3
MR
5592 (next-selection-coding-system, Vselection_coding_system)
5593 (Vnext_selection_coding_system): Drop.
5594
55952008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5596
5597 * nsfns.m (do-applescript, do_applescript): Rename to
5598 ns-do-applescript, ns_do_applescript, and move within file.
5599
56002008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
5601
5602 Remove support for Mac Carbon.
5603 * mactoolbox.c:
5604 * macterm.h:
5605 * macterm.c:
5606 * macselect.c:
5607 * macmenu.c:
5608 * macgui.h:
5609 * macfns.c:
5610 * mac.c: Remove file.
5611 * s/darwin.h:
5612 * m/intel386.h:
5613 * xfaces.c:
5614 * xdisp.c:
5615 * window.c:
5616 * tparam.c:
5617 * termhooks.h:
5618 * termcap.c:
5619 * term.c:
5620 * syssignal.h:
5621 * sysselect.h:
5622 * sysdep.c:
5623 * process.c:
5624 * lread.c:
5625 * lisp.h:
5626 * keyboard.c:
5627 * image.c:
5628 * fringe.c:
5629 * frame.h:
5630 * frame.c:
5631 * fontset.c:
5632 * font.h:
5633 * font.c:
5634 * fns.c:
5635 * fileio.c:
5636 * emacs.c:
5637 * dispnew.c:
5638 * dispextern.h:
5639 * config.in:
5640 * atimer.c:
2ae37cf0 5641 * Makefile.in: Remove code for Carbon.
aac0c6e3 5642
f0131492 56432008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
5644
5645 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
5646
56472008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5648
5649 * macterm.h (kCGBitmapByteOrder32Host): New define for
5650 non-universal SDKs.
5651
5652 * image.c (mac_create_cg_image_from_image, image_load_image_io)
5653 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
5654
5655 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
5656 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
5657
56582008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
5659
5660 * w32inevt.c: Include dispextern.h.
5661
56622008-07-26 Andreas Schwab <schwab@suse.de>
5663
5664 * print.c (print_object): Fix off-by-one in last change.
5665
56662008-07-25 Juanma Barranquero <lekktu@gmail.com>
5667
5668 * term.c (syms_of_term): Don't initialize default_orig_pair,
5669 default_set_foreground and default_set_background on Windows.
5670
56712008-07-25 Jason Rumney <jasonr@gnu.org>
5672
5673 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
5674 ScriptItemize. Clean up return value checking. Remove unused
5675 variables.
5676 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
5677 shaping engine.
5678
5679 * w32font.c (w32font_has_char): Handle the case where we can't
5680 determine the script for a character.
5681
56822008-07-25 Chong Yidong <cyd@stupidchicken.com>
5683
5684 * term.c (syms_of_term): Initialize default_orig_pair,
5685 default_set_foreground, and default_set_background.
5686
5687 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
5688 clash (bug#86).
5689 (getloadavg): Callers changed.
5690
5691 * image.c (svg_load_image): Fix last change.
5692 (svg_load_image): Use rsvg_handle_get_dimensions to check that
5693 image size is valid. Use g_object_unref instead of deprecated
5694 rsvg_handle_free to free rsvg handle.
5695 (x_from_xcolors): Don't initialize pixmap (silence compiler).
5696
56972008-07-25 Jason Rumney <jasonr@gnu.org>
5698
5699 * w32font.c (w32font_encode_char): Encode characters outside BMP as
5700 surrogates before looking up glyph index.
5701 (w32font_text_extents): Encode as surrogates if falling back to
5702 functions that need UTF-16 wide chars.
5703
5704 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
5705 BMP as surrogates before looking up glyph index.
5706
57072008-07-25 Chong Yidong <cyd@stupidchicken.com>
5708
5709 * image.c (svg_load_image): Check for failure in return value of
5710 rsvg_handle_get_pixbuf. Free rsvg handle when done.
5711
57122008-07-25 Jason Rumney <jasonr@gnu.org>
5713
5714 * w32font.c (Fx_select_font): Reverse sense of second arg.
5715
57162008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
5717
5718 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
5719 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
5720
5721 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
5722 (PURESIZE): Use it.
5723
57242008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
5725
5726 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
5727 * m/alpha.h (TEXT_END):
5728 * m/ibmrs6000.h (TEXT_END):
5729 * m/macppc.h (TEXT_END):
5730 * s/darwin.h (TEXT_END):
5731 * s/msdos.h (TEXT_END): Remove, unused.
5732 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
5733 * s/cygwin.h: Remove comment.
5734
5735 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
5736 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
5737 * m/intel386.h (DOT_GLOBAL_START):
5738 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
5739 (USG): Remove, file not used on USG platforms.
5740
5741 * Makefile.in (HAVE_X11): Remove empty #else.
5742
57432008-07-24 Andreas Schwab <schwab@suse.de>
5744
5745 * fileio.c (Finsert_file_contents): Properly adjust undo list
5746 after format conversion.
5747
57482008-07-24 Jan Djärv <jan.h.d@swipnet.se>
5749
5750 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
5751 (menu_nav_ended): Remove.
5752 (create_menus): Remove signal connect for menu_nav_ended.
5753 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
5754 create_menus.
5755 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
5756
57572008-07-23 Jason Rumney <jasonr@gnu.org>
5758
5759 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
5760 with opened font.
5761 (w32font_open): Set font type to gdi.
5762
5763 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
5764
57652008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
5766
5767 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
5768 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
5769 defines it.
5770 * unexec.c (ADDR_CORRECT): Define unconditionally.
5771
5772 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
5773
5774 * unexec.c: Remove code depending on !COFF and USG, the file is
5775 not used for such systems.
5776
5777 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
5778 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
5779 (LD_SWITCH_SYSTEM_1): Remove, update users.
5780
5781 * s/darwin.h (DATA_END):
5782 * m/intel386.h (DATA_END):
5783 * m/ibmrs6000.h (DATA_END):
5784 * m/alpha.h (DATA_END): Remove, unused.
5785
5786 * config.in: Regenerate.
5787 * s/ms-w32.h (subprocesses): Define unconditionally.
5788 * s/template.h (subprocesses): Update comment.
5789 * s/vms.h (subprocesses):
5790 * s/usg5-4.h (subprocesses):
5791 * s/hpux10-20.h (subprocesses):
5792 * s/gnu-linux.h (subprocesses):
5793 * s/cygwin.h (subprocesses):
5794 * s/bsd-common.h (subprocesses):
5795 * s/aix4-2.h (subprocesses):
5796 * s/darwin.h (subprocesses): Do not define, defined by default now.
5797
5798 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
5799 Remove all references.
5800 (temacs): Add GNUstep specific ld flags.
5801
5802 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
5803 similarly to what X does.
5804
58052008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5806
5807 * nsfns.m (x-list-fonts): Remove.
5808 (syms_of_nsfns): Drop the x-list-fonts declaration.
5809 * nsterm.m: Get rid of remaining "//" comments.
5810
58112008-07-22 Chong Yidong <cyd@stupidchicken.com>
5812
5813 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
5814
5815 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
5816 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
5817 (Fns_own_selection_internal, Fx_disown_selection_internal)
5818 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
5819
5820 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
5821 ... */' style of docstrings. Doc fixes.
5822
58232008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
5824
5825 * terminfo.c (UP, BC, PC): Undo previous change.
5826
5827 * nsfns.m: Rename ns prefixed functions/variables to the
5828 corresponding x versions. Update references.
5829
58302008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
5831
5832 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
5833
58342008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
5835
5836 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
5837 Remove forwarding functions.
5838 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
5839 non-static.
5840 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
5841 non-static.
5842 (ns_frame_parm_handlers): Use the new names.
5843 (syms_of_nsfns): Move to the end of file.
5844
5845 * nsterm.m (syms_of_nsterm): Move to the end of file.
5846
5847 * dispnew.c (init_display): Remove code for X10.
5848
58492008-07-22 Jason Rumney <jasonr@gnu.org>
5850
5851 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
5852 bare drive.
5853
58542008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5855
5856 * nsterm.m (syms_of_nsterm): Remove debugging println.
5857
58582008-07-22 David Reitter <david.reitter@gmail.com>
5859
5860 * nsfns.m (do_applescript, F_do_applescript): NS version of the
5861 Carbon implementation of the same functionality: execute arbitrary
5862 AppleScript code.
5863
58642008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5865
5866 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
5867 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
5868 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
5869 (Fx_display_mm_height, Fx_display_mm_width)
5870 (Fx_display_backing_store, Fx_display_visual_class)
5871 (Fx_display_save_under, Fx_open_connection)
5872 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
5873 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
5874 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
5875 (Fx_display_pixel_width, Fx_display_pixel_height)
5876 (Fx_display_usable_bounds, Fx_display_planes)
5877 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
5878 ... */' style of docstrings.
5879
58802008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
5881
5882 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
5883 on this platform.
5884 (mips):
5885 * m/iris4d.h (mips): Do not define.
5886 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
5887
5888 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
5889
5890 * image.c:
5891 * nsfns.m:
5892 * nsselect.m:
5893 * nsterm.h:
5894 * nsterm.m: Rename ns prefixed functions/variables to the
5895 corresponding x versions. Update references.
5896
5897 * m/ibms390x.h (NO_REMAP): Do not undefine.
5898
5899 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
5900
59012008-07-21 Chong Yidong <cyd@stupidchicken.com>
5902
5903 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
5904 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
5905 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
5906 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
5907 (Fns_display_mm_height, Fns_display_mm_width)
5908 (Fns_display_backing_store, Fns_display_visual_class)
5909 (Fns_display_save_under, Fns_open_connection)
5910 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
5911 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
5912 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
5913 (Fns_display_pixel_width, Fns_display_pixel_height)
5914 (Fns_display_usable_bounds, Fx_display_planes)
5915 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
5916
59172008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
5918
5919 * print.c (print_object): Check print_depth before searching for
5920 circularities.
5921
59222008-07-21 Michael Albinus <michael.albinus@gmx.de>
5923
5924 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
5925 only sprintf.
5926
59272008-07-21 Kenichi Handa <handa@m17n.org>
5928
5929 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
5930
59312008-07-20 Andreas Schwab <schwab@suse.de>
5932
5933 * syntax.c (find_start_pos, find_start_value)
5934 (find_start_value_byte, find_start_begv, find_defun_start)
5935 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
5936
59372008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
5938
5939 * s/sol2-3.h: Insert contents of s/sol2.h.
5940 (LD_SWITCH_SYSTEM): Remove redundant definition.
5941 * s/sol2.h: Remove, unused.
5942
59432008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5944
5945 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
5946
59472008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5948
5949 * Makefile.in (ns_appdir): Fix typo in find command.
5950
59512008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
5952
5953 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
5954
5955 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
5956 added not supported anymore.
5957
5958 * s/usg5-4-2.h (LIBS_SYSTEM):
5959 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
5960
5961 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
5962 * s/lynxos.h (GETPGRP_NO_ARG):
5963 * s/hpux10-20.h (NO_SIOCTL_H):
5964 * s/gnu.h (GETPGRP_NO_ARG):
5965 * s/gnu-linux.h (NO_SIOCTL_H):
5966 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
5967 * s/cygwin.h (GETPGRP_NO_ARG):
5968 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
5969 (C_DEBUG_SWITCH): Remove duplicate definition.
5970
5971 * m/ibms390.h: Remove boilerplate comments.
5972
5973 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
5974
5975 * process.c (HAVE_SERIAL): Consolidate ifdefs.
5976 (wait_reading_process_output): Remove code for SunOS, platform not
5977 supported anymore. Use SOLARIS2 instead of sun.
5978
59792008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
5980
5981 * font.c (font_open_by_name): Under NS, default lface height to zero.
5982 (font_open_for_lface): Under NS, set size based on frame fontsize.
5983 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
5984 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
5985
59862008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
5987
5988 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
5989 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
5990 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
5991 YES/NO.
5992 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
5993 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
5994 * Makefile.in (clean): Clear out build destination dir.
5995
59962008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
5997
5998 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
5999 xterm, xselect.
6000 * lisp.h: Remove declaration of hash_remove.
6001 * nsgui.h: Remove redefinitions of hash_remove.
6002 * fns.c (hash_remove): Rename to hash_remove_from_table.
6003
60042008-07-19 Seiji Zenitani <zenitani@mac.com>
6005
6006 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
6007 strdup() the family UTF8String before modifying it.
6008
60092008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
6010
6011 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
6012 NS_FACE_BACKGROUND with 0 instead of nil.
6013 * nsfont.m (nsfont_draw): Same.
6014
60152008-07-19 Chong Yidong <cyd@stupidchicken.com>
6016
6017 * nsfns.m (ns_set_background_color): Fix crash.
6018
60192008-07-18 Chong Yidong <cyd@stupidchicken.com>
6020
6021 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
6022
60232008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
6024
6025 * puresize.h (BASE_PURESIZE): Increase to 1240000.
6026
60272008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6028
6029 * gtkutil.c: Include <config.h> instead of "config.h".
6030
6031 * lisp.h (Foverlay_buffer): Add EXFUN.
6032
6033 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
6034 child process to complete child_setup. Undo 2005-09-21 change.
6035
6036 * s/darwin.h: Mention setsid after vfork.
6037
60382008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6039
6040 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
6041 Depend on macgui.h.
6042
6043 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
6044 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
6045
6046 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
6047 and f19.
6048 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
6049
6050 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
6051 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
6052 Remove enumerators.
6053
6054 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
6055 Check if FACE_FROM_ID returns NULL.
6056
60572008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
6058
6059 * w32inevt.c (change_frame_size): Remove extern declaration.
6060 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
6061 change_frame_size.
6062
60632008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
6064
6065 * getloadavg.c: Revert last change (2008-07-15).
6066
60672008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
6068
6069 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
6070 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc) set
6071 from configure.
6072
60732008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
6074
6075 * s/sol2.h:
6076 * s/sol2-4.h: Reorganize conditionals.
6077
6078 * ecrt0.c: Remove code depending on m68000, not used anymore.
6079
6080 * fns.c (hash_remove): Make static.
6081 * lisp.h (hash_remove): Don't prototype.
6082
6083 * m/ibmrs6000.h:
6084 * m/ibms390x.h:
6085 * m/macppc.h: Remove boilerplate comments.
6086
6087 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
6088 Solaris, which does not need them.
6089
6090 * m/vax.h: Remove comments about unsupported systems.
6091
6092 * s/darwin.h: Reorganize ifdefs.
6093
60942008-07-17 Andreas Schwab <schwab@suse.de>
6095
6096 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
6097
60982008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
6099
6100 Use SDATA. Follow coding convention of placing operators at
6101 beginning of next line rather than end of previous line, and placing
6102 spaces around infix operators.
6103
6104 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
6105 in case it was defined already.
6106 USE @GNUSTEP_MAKEFILES@ rather than envvars.
6107 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
6108 ns_default.
6109 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
6110 Lisp_Objects.
6111 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
6112 (ns_defined_color, ns_color_to_lisp): Declare.
6113 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
6114 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
6115 it's accepted even with USE_LISP_UNION_TYPE.
6116 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
6117 (update_frame_tool_bar): Remove apparently obsolete tests for
6118 non-integerness of f->tool_bar_lines.
6119 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
6120 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
6121 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
6122 (nsfont_open): Don't confuse NULL for Qnil.
6123 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
6124 * menu.h (find_and_call_menu_selection):
6125 * menu.c (find_and_call_menu_selection): Use just int for vector size.
6126 (find_and_return_menu_selection): Always return something.
6127 * frame.h: Include dispextern.h for Display_Info.
6128 (display_x_get_resource): Declare.
6129
61302008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
6131
6132 * syntax.c: Remove stdio.h include accidentally introduced in
6133 Emacs.app commit.
6134 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
6135 NS_IMPL_COCOA.
6136 * keyboard.c (handle_async_input, input_available_signal): Remove
6137 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
6138
61392008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
6140
6141 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
6142 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
6143 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
6144 Use SDATA.
6145
6146 * keymap.c: Remove all NS-specific code.
6147 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
6148 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
6149 where_is_preferred_modifier, return a different value depending on how
6150 preferred is the binding.
6151 (where_is_internal): Adjust accordingly.
6152 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
6153 Adjust to new preferred_sequence_p.
6154 (syms_of_keymap): Declare `where-is-preferred-modifier'.
6155 * keyboard.c (parse_solitary_modifier): Not static any more.
6156 * keyboard.h (parse_solitary_modifier): Declare.
6157
61582008-07-16 Andreas Schwab <schwab@suse.de>
6159
6160 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
6161 of easymenu.
6162
61632008-07-16 Chong Yidong <cyd@stupidchicken.com>
6164
6165 * xdisp.c (move_it_in_display_line): Account for word wrap, so
6166 that we don't move off the line.
6167
61682008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
6169
6170 * keyboard.c (Qsuper): Remove.
6171 (parse_menu_item): Don't call where_is_internal specially for NS.
6172
61732008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
6174
6175 * s/gnu-linux.h: Remove boilerplate comments.
6176
6177 * m/alpha.h (__ELF__): Consolidate conditions.
6178
6179 * m/m68k.h (linux): Use GNU_LINUX instead.
6180 Remove boilerplate comments.
6181
6182 * m/intel386.h: Undo refactoring from previous change.
6183 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
6184 too, remove dead code.
6185 (linux): Use GNU_LINUX instead.
6186
61872008-07-16 Jason Rumney <jasonr@gnu.org>
6188
6189 * w32gui.h: Repeat 26 June changes lost by last change.
6190
61912008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
6192
6193 * systty.h: Remove code for Aix on 386, unsupported platform.
6194
6195 * s/ms-w32.h: Remove boilerplate comments.
6196 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
6197
6198 * s/gnu-linux.h (TERM): Remove support.
6199 (HAVE_SYSVIPC): Remove, unused.
6200 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
6201 for this system.
6202
6203 * process.c: Remove support for IRIS, unused.
6204 Remove support for TERM, not relevant anymore.
6205
6206 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
6207 used with the definition.
6208
6209 * s/aix4-2.h (static): Do not undef.
6210
6211 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
6212 only used on Aix.
6213 (HAVE_SYSVIPC): Remove, unused.
6214
6215 * m/hp800.h (CANNOT_DUMP): Do not undef.
6216
6217 * m/alpha.h: Fix comment.
6218
6219 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
6220 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
6221 used by this configuration.
6222 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
6223 * unexec.c: Remove code depending on HPUX and
6224 USG_SHARED_LIBRARIES, not used with this file. Remove code
6225 depending on IRIS, unused. Remove if 0-ed code.
6226
6227 * s/template.h: Remove comments about static.
6228
6229 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
6230 Remove if 0-ed code.
6231 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
6232 were the same as the default.
6233 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
6234 Remove boilerplate comments.
6235 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
6236 (HAVE_SYSVIPC): Remove, unused.
6237 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
6238
6239 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
6240 Remove boilerplate comments.
6241 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
6242 Remove boilerplate comments.
6243 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
6244 Remove boilerplate comments.
6245 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
6246
6247 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
6248 USG systems which do not use DATA_SEG_BITS.
6249 Refactor code. Remove boilerplate comments.
6250
6251 * m/ibms390.h:
6252 * m/m68k.h:
6253 * s/bsd-common.h:
6254 * s/cygwin.h:
6255 * s/darwin.h:
6256 * s/freebsd.h:
6257 * s/gnu.h:
6258 * s/msdos.h: Remove boilerplate comments.
6259
6260 * m/iris4d.h: Remove boilerplate comments and code for systems that
6261 do not use this file.
6262 (IRIS_4D): Remove, unused.
6263
6264 * m/mips.h: Remove boilerplate comments and code for systems that
6265 do not use this file.
6266 (SIGN_EXTEND_CHAR):
6267 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
6268 * unexmips.c: Remove file, unused.
6269
6270 * editfns.c (Fuser_full_name): Replace the only use of
6271 USER_FULL_NAME with its value.
6272 * config.in: Regenerate.
6273
62742008-07-16 David Reitter <david.reitter@gmail.com>
6275
6276 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
6277 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
6278
62792008-07-16 Glenn Morris <rgm@gnu.org>
6280
6281 * emacs.c (system-type): Doc fix.
6282
62832008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
6284
6285 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
6286 If the cache doesn't work, let's fix it, rather than work around it.
6287
62882008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
6289
6290 * Makefile.in: Correct additions for nsfont.o in last commit.
6291 * nsfont.m: New file (forgot last commit).
6292
62932008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
6294
6295 * callproc.c (set_initial_environment): Initialize
6296 Vprocess_environment under CANNOT_DUMP (fixes crash when
6297 batch-compiling for bootstrap).
6298
62992008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
6300 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6301
6302 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
6303 fix crash due to different init order.
6304
63052008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
6306
6307 Changes and additions for NeXTstep windowing system (Cocoa and
6308 GNUstep) support.
6309
6310 * Makefile.in:
6311 * config.in: Support defines and build commands for NS port.
6312 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
6313 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
6314 * dispextern.h: Include nsgui.h and add needed typedefs under NS
6315 windowing.
6316 (struct face): Add synth_ital field.
6317 * dispnew.c: Include nsterm.h when compiling under NS windowing.
6318 (init_display): Initialize Vinitial_window_system to "ns" when so
6319 compiled.
6320 * emacs.c: Include GSConfig.h when compiling under GNUstep.
6321 (display_arg): Use under NS.
6322 (main): Under NS, allocate autorelease pool and handle command line
6323 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
6324 (standard_args): Add NS-specific args.
6325 (shut_down_emacs): Shut down NS terminal if compiled under NS.
6326 * font.c (DEFAULT_ENCODING): New variable.
6327 (font_find_for_lface): Use it.
6328 (syms_of_font): Load syms_of_nsfont under NS.
6329 * font.h: Declare nsfont_driver when compiled under NS.
6330 * fontset.c: When compiling under NS, include nsterm.h.
6331 (fontset_from_font): Autoconstruct fontset under NS.
6332 * frame.c (various): Under NS, include nsterm.h, add Qns window system
6333 symbol, document and use it.
6334 (do_switch_frame): When for_deletion under Cocoa, add
6335 Fraise_frame(Qnil).
6336 (x_set_frame_parameters): Ensure font attribute changes are picked up.
6337 (x_get_arg): Allow "yes" and "no" as boolean values.
6338 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
6339 Qright under Cocoa.
6340 (focus-follows-mouse): Default to 0 under NS.
6341 * frame.h (enum output_method): Add output_ns.
6342 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
6343 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
6344 (FRAME_WINDOW_P): NS-specific definition.
6345 * fringe.c (max_used_fringe_bitmap): Make public.
6346 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
6347 (getloadavg): Use NeXT code under descendant OS's.
6348 * image.c (includes and header section, x_create_bitmap_from_data)
6349 (x_create_bitmap_from_file, free_bitmap_record, image_background)
6350 (image_background_transparent, x_clear_image_1)
6351 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
6352 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
6353 (x_to_xcolors, x_from_xcolors, x_disable_image)
6354 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
6355 other GUIs, including XPM support using code originally written for
6356 Carbon GUI.
6357 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
6358 using NS API.
6359 (image_ascent): Use font metrics macros instead of direct struct field
6360 access.
6361 * keyboard.c (includes): Add nsterm.h when compiling under NS.
6362 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
6363 Also, handle NS as GTK for menu bar purposes.
6364 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
6365 toolkit where they differ.
6366 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
6367 use cachelist, still needed under NS.
6368 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
6369 (struct widget_value): Define it here for menu.c.
6370 * keymap.c (includes): Include modifier internals.
6371 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
6372 NS.
6373 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
6374 support for preferring sequences using certain modifiers, specified by
6375 the FIRSTONLY argument.
6376 * lisp.h (hash_remove): Rename to avoid name clash when compiling
6377 under NS GNUstep implementation.
6378 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
6379 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
6380 * menu.c: Include nsterm.h under NS.
6381 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
6382 (free_menubar_widget_tree_value, update_submenu_strings)
6383 (find_and_call_menu_selection): Treat NS as X and NT.
6384 (find_and_return_menu_selection): New function, used for popup menus.
6385 * nsgui.h:
6386 * nsterm.h:
6387 * nsfns.m:
6388 * nsimage.m:
6389 * nsmenu.m:
6390 * nsselect.m:
6391 * nsterm.m: New files.
6392 * process.c (wait_reading_process_output): Under NS, call ns_select()
6393 instead of plain select().
6394 * syntax.c (char_quoted): Under NS, avoid a crash when called near
6395 beginning of buffer.
6396 * sysselect.h (init_process): Rename when compiling under Cocoa to
6397 avoid name conflict.
6398 * termhooks.h (display_info): Add ns_display_info to union.
6399 * terminal.c (Fterminal_live_p): Add ns to terminal types.
6400 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
6401 COCOA environment.
6402 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
6403 unexec() signature. (Note, this will dump, but the resulting file
6404 crashes; unexosx is used instead; keeping around for reference and
6405 possible aid in getting dump working under GNUstep.)
6406 * w32gui.h (button_type, widget_value): Remove definitions (now in
6407 keyboard.h).
6408 * window.c: Include nsterm.h when compiling under NS.
6409 * xdisp.c (includes): Include nsterm.h when compiling under NS.
6410 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
6411 other GUI windowing systems.
6412 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
6413 GTK.
6414 (x_consider_frame_title): Under NS, set icon type and frame
6415 modified-state indicator; use ns_set_name_as_filename() when using
6416 formatted title.
6417 (update_window_cursor): Make public when compiling under NS.
6418 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
6419 (hourglass_atimer, Vhourglass_delay
6420 * xfaces.c (header section, init_frame_faces, clear_font_table)
6421 (defined_color, unload_color, x_face_list_fonts)
6422 (prepare_face_for_display): Add NS support parallel to other GUIs.
6423 Emulate GCs like other non-X GUIs.
6424 (split_font_name): Don't lowercase font name under NS.
6425 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
6426 under NS.
6427 * s/darwin.h: Add support for compilation under NS.
6428
64292008-07-15 Jason Rumney <jasonr@gnu.org>
6430
6431 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
6432 (w32_show_hourglass): Rename from show_hourglass.
6433 (w32_hide_hourglass): Rename from hide_hourglass.
6434 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
6435 (Vhourglass_delay): Declare extern.
6436 (hourglass_started): Remove.
6437
6438 * xdisp.c (Vhourglass_delay): Remove static.
6439 (hourglass_started, start_hourglass, cancel_hourglass):
6440 Don't include these versions on WINDOWSNT.
6441
64422008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
6443
6444 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
6445 variables (formerly in xfns.c).
6446 (show_hourglass, hide_hourglass): New prototypes (same).
6447 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
6448 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
6449 in xfns.c).
6450 (syms_of_xdisp): Declare/initialize display-hourglass,
6451 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
6452 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
6453 formerly in xfns.c.
6454 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
6455 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
6456 (start_hourglass, cancel_hourglass): Remove.
6457 (show_hourglass, hide_hourglass): Remove prototypes and static
6458 modifiers.
6459 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
6460 hourglass_atimer, hourglass_shown_p declaration/initialization.
6461 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
6462 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
6463 (start_hourglass, cancel_hourglass): Remove.
6464 (show_hourglass, hide_hourglass): Remove prototypes and static
6465 modifiers.
6466 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
6467 hourglass_atimer, hourglass_shown_p declaration/initialization.
6468 * w32fns.c (display_hourglass_p, Vhourglass_delay)
6469 (DEFAULT_HOURGLASS_DELAY): Remove.
6470 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
6471 hourglass_shown_p declaration/initialization.
6472
64732008-07-14 Jason Rumney <jasonr@gnu.org>
6474
6475 * w32fns.c (w32_get_arg): Remove wrapper function.
6476 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
6477 directly.
6478 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
6479
64802008-07-14 Kenichi Handa <handa@m17n.org>
6481
6482 * xfont.c (xfont_open): Add workaround for X's bug.
6483
64842008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
6485
6486 * fontset.c: Include <stdio.h> unconditionally.
6487
64882008-07-13 Michael Albinus <michael.albinus@gmx.de>
6489
6490 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
6491 for filtering.
6492
64932008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
6494
6495 * s/vms.h: Use __GNUC__ instead of _GNUC_.
6496
6497 * m/macppc.h:
6498 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
6499
6500 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
6501 (SPECIAL_EMACS_INT):
6502 * m/ia64.h (SPECIAL_EMACS_INT):
6503 * m/amdx86-64.h (SPECIAL_EMACS_INT):
6504 * s/gnu.h (NLIST_STRUCT):
6505 * s/aix4-2.h (X11R5_INHIBIT_I18N):
6506 * s/gnu-linux.h (LINUX):
6507 * s/msdos.h (HAVE_FACES):
6508 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
6509
6510 * systty.h:
6511 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
6512 anymore.
6513
65142008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
6515
6516 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
6517 always defined as int.
6518
6519 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
6520 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
6521 * s/gnu-linux.h (HAVE_WAIT_HEADER):
6522 * s/freebsd.h (HAVE_WAIT_HEADER):
6523 * s/bsd-common.h (HAVE_UNION_WAIT):
6524 * s/aix4-2.h (HAVE_WAIT_HEADER):
6525 * m/mips.h (HAVE_UNION_WAIT):
6526 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
6527 (COFF, static): Do not define, they are undefined later in the file.
6528
6529 * process.c (update_status): Don't use a union.
6530 (status_convert):
6531 (sigchld_handler): Use int instead of WAITTYPE.
6532
65332008-07-12 Chong Yidong <cyd@stupidchicken.com>
6534
6535 * indent.c (Fvertical_motion): Restore hscroll before moving to
6536 goal column.
6537
65382008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
6539
6540 * lisp.h: Remove left over code.
6541
65422008-07-11 Andreas Schwab <schwab@suse.de>
6543
6544 * lisp.h: Fix logic in last change.
6545
6546 * menu.h: New file.
6547 * menu.c: Include it.
6548 * xmenu.c: Likewise.
6549 * Makefile.in: Update dependencies.
6550
65512008-07-11 Kenichi Handa <handa@m17n.org>
6552
6553 * fontset.c (fontset_from_font): Cancel the previous change.
6554
65552008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
6556
6557 * lisp.h:
6558 * w32heap.c:
6559 * emacs.c:
6560 * alloc.c: Replace all references of NO_UNION_TYPE with
6561 USE_LISP_UNION_TYPE.
6562
6563 * m/xtensa.h (NO_UNION_TYPE):
6564 * m/vax.h (NO_UNION_TYPE):
6565 * m/template.h (NO_UNION_TYPE):
6566 * m/sparc.h (NO_UNION_TYPE):
6567 * m/mips.h (NO_UNION_TYPE):
6568 * m/macppc.h (NO_UNION_TYPE):
6569 * m/m68k.h (NO_UNION_TYPE):
6570 * m/iris4d.h (NO_UNION_TYPE):
6571 * m/intel386.h (NO_UNION_TYPE):
6572 * m/ibms390x.h (NO_UNION_TYPE):
6573 * m/ibms390.h (NO_UNION_TYPE):
6574 * m/ibmrs6000.h (NO_UNION_TYPE):
6575 * m/ia64.h (NO_UNION_TYPE):
6576 * m/hp800.h (NO_UNION_TYPE):
6577 * m/arm.h (NO_UNION_TYPE):
6578 * m/amdx86-64.h (NO_UNION_TYPE):
6579 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
6580 defining it the same.
6581
65822008-07-10 Chong Yidong <cyd@stupidchicken.com>
6583
6584 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
6585
65862008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
6587
6588 * fileio.c:
6589 * sysdep.c
6590 * systty.h:
6591 * m/ibmrs6000.h:
6592 * m/iris4d.h:
6593 * s/aix4-2.h:
6594 * s/freebsd.h:
6595 * s/gnu-linux.h:
6596 * s/hpux10-20.h:
6597 * s/hpux11.h:
6598 * s/netbsd.h:
6599 * s/sol2-3.h:
6600 * s/sol2-4.h:
6601 * s/sol2.h:
6602 * s/usg5-4.h:
6603 * s/vms.h: Remove references to unused variables.
6604
66052008-07-10 Andreas Schwab <schwab@suse.de>
6606
6607 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
6608 pattern before matching the generic family.
6609
66102008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
6611
6612 * unexec.c:
6613 * s/vms.h:
6614 * s/usg5-4-2.h:
6615 * s/sol2-5.h:
6616 * s/freebsd.h:
6617 * s/darwin.h: Remove dead code.
6618
6619 * m/template.h:
6620 * m/sparc.h:
6621 * m/mips.h:
6622 * m/m68k.h:
6623 * m/iris4d.h:
6624 * m/intel386.h:
6625 * m/ibms390x.h:
6626 * m/ibms390.h:
6627 * m/ia64.h:
6628 * m/hp800.h:
6629 * m/arm.h:
6630 * m/amdx86-64.h: Remove dead code and references to unused
6631 and compiler defined symbols.
6632
6633 * unexmips.c:
6634 * unexelf.c: Remove references to desupported systems.
6635
6636 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
6637
6638 * m/powermac.h: Remove boilerplate comments.
6639 (NO_REMAP): Remove unused definition.
6640
6641 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
6642 define them.
6643
66442008-07-10 Kenichi Handa <handa@m17n.org>
6645
6646 * xfont.c (xfont_open): Log the reason of failure.
6647
66482008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
6649
6650 * fontset.c (fontset_get_font_group):
6651 * font.c (font_check_otf): Specify argument types.
6652
66532008-07-09 Kenichi Handa <handa@m17n.org>
6654
6655 * coding.c (detect_coding_utf_8): Set detect_info->found only when
6656 non-ASCII char is found.
6657
6658 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
6659 (reorder_font_vector): Change the arg preferred_family to font.
6660 Prefer the spec matching with font.
6661 (fontset_get_font_group): New function.
6662 (fontset_find_font): Change the format of an element of a realized
6663 fontset. Use fontset_get_font_group.
6664 (fontset_font): Try the current fontset, the default fontset, the
6665 fallbacks of the current fontset, and the fallbacks of the default
6666 fontset in this order.
6667 (face_for_char): Delete the shortcut to use the current font.
6668 (fontset_from_font): Don't set fonts for Latin in the fontset.
6669
6670 * font.h (font_make_object, font_match_p): Adjust prototypes.
6671
6672 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
6673
6674 * font.c (font_make_object): New arg entity and pixelsize.
6675 (font_check_otf_features, font_check_otf): New functions.
6676 (font_match_p): Check :lang, :script, and :otf properties.
6677
6678 * xfont.c (xfont_open): Adjust it for the change of
6679 font_make_object.
6680 (xfont_text_extents): Fix initial setting of metrics.
6681
6682 * ftfont.c (struct ftfont_info): New member index, delete member
6683 fc_charset_idx. Make the member order compatible with struct
6684 xftfont_info.
6685 (fc_charset_table): Change charset names to registry names.
6686 (ftfont_pattern_entity): Delete the args registry and
6687 fc_charset_idx. Change the value of :font-entity property
6688 to (FONTNAME . INDEX). Always set :registry property to
6689 `iso10646-1'.
6690 (struct ftfont_cache_data): New struct.
6691 (ftfont_lookup_cache): New arg for_face.
6692 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
6693 (ftfont_driver): Set the member otf_capability.
6694 (ftfont_get_charset): Adjust it for the change of
6695 fc_charset_table.
6696 (OTF_TAG_SYM): New macro.
6697 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
6698 for the change of fc_charset_table.
6699 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
6700 ftfont_pattern_entity. Add FC_INDEX to objset.
6701 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
6702 and ftfont_pattern_entity.
6703 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
6704 font_make_object, struct ftfont_info.
6705 (ftfont_has_char): Use ftfont_get_fc_charset.
6706 (ftfont_otf_features, ftfont_otf_capability): New functions.
6707 (ftfont_shape): Use ftfont_get_otf.
6708 (ftfont_text_extents): Fix initial setting of metrics.
6709
6710 * xftfont.c (struct xftfont_info): New member ft_size. Make the
6711 member order compatible with struct ftfont_info.
6712 (xftfont_open): Add FC_CHARSET to the pattern. Set
6713 xftfont_info->ft_size. Don't unlock the face. Check BDF
6714 properties if appropriate.
6715 (xftfont_close): Unlock the face.
6716 (xftfont_anchor_point, xftfont_shape): Deleted.
6717 (syms_of_xftfont): Don't set members anchor_point and shape of
6718 xftfont_driver.
6719
6720 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
6721 font_make_object.
6722
6723 * w32font.c (w32font_open): Adjust it for the change of
6724 font_make_object.
6725 (w32font_open_internal): Don't set properties of font_object here.
6726
67272008-07-08 Chong Yidong <cyd@stupidchicken.com>
6728
6729 * macfns.c (x_create_tip_frame):
6730 * w32fns.c (x_create_tip_frame):
6731 * xfns.c (x_create_tip_frame): Pass parameter argument to
6732 face-set-after-frame-default.
6733
6734 * xfaces.c (Finternal_merge_in_global_face): Save merged
6735 attributes for the default face back into the face vector.
6736
67372008-07-08 Andreas Schwab <schwab@suse.de>
6738
6739 * fontset.h: Declare fontset_from_font. Don't declare
6740 new_fontset_from_font and fontset_from_font_name.
6741 * xterm.c: Include "fontset.h".
6742 * Makefile.in (xterm.o): Update dependencies.
6743
67442008-07-08 Glenn Morris <rgm@gnu.org>
6745
6746 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
6747 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
6748
67492008-07-07 Chong Yidong <cyd@stupidchicken.com>
6750
6751 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
6752 (x_set_frame_parameters): Don't bind it.
6753
67542008-07-07 Juanma Barranquero <lekktu@gmail.com>
6755
6756 * w32fns.c (map_w32_filename): Declare extern.
6757
67582008-07-07 Jason Rumney <jasonr@gnu.org>
6759
6760 * w32term.c (WS_EX_LAYERED): Define if not already.
6761
67622008-07-06 Chong Yidong <cyd@stupidchicken.com>
6763
6764 * xfaces.c (set_font_frame_param): Don't try to set the font
6765 parameter if it is still unspecified in the lface.
6766
67672008-07-05 Chong Yidong <cyd@stupidchicken.com>
6768
6769 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
6770 face if it didn't already exist.
6771
6772 * xdisp.c (try_window_id): Give up if word-wrapping is on.
6773
67742008-07-05 Andreas Schwab <schwab@suse.de>
6775
6776 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
6777
67782008-07-05 Chong Yidong <cyd@stupidchicken.com>
6779
6780 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
6781 word-wrapping.
6782 (IT_DISPLAYING_WHITESPACE): New macro.
6783 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
6784 when word-wrapping. Simplify word-wrapping logic. Use correct
6785 pixel positions when saving copies of the iterator.
6786 (display_line): Use proper wrap point if the last character on a
6787 line was preceded by whitespace.
6788
67892008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
6790
6791 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
6792
67932008-07-04 Kenichi Handa <handa@m17n.org>
6794
6795 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
6796
6797 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
6798
67992008-07-02 Jason Rumney <jasonr@gnu.org>
6800
6801 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 6802 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
6803
6804 * xdisp.c (next_element_from_display_vector): Move assignment out
6805 of if statement.
6806
68072008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
6808
6809 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
6810
6811 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
6812 (syms_of_fileio): Initialize and export them.
6813 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
6814
6815 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
6816 (Fsystem_move_file_to_trash): New function.
6817 (syms_of_w32fns): Export it to lisp.
6818
68192008-07-01 Jason Rumney <jasonr@gnu.org>
6820
6821 * w32font.c (w32font_text_extents): Don't count overhang as part
6822 of width.
6823
68242008-06-30 Miles Bader <miles@gnu.org>
6825
6826 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
6827 Add `avoid_cursor_p' field.
6828
6829 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
6830 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
6831 (append_glyph, append_composite_glyph, produce_image_glyph)
6832 (append_stretch_glyph): Initialize avoid_cursor_p.
6833 (get_it_property): Rename from `get_line_height_property'.
6834 (x_produce_glyphs): Use get_it_property.
6835 (handle_line_prefix, push_display_prop): New functions.
6836 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
6837 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
6838 New variables.
6839 (syms_of_xdisp): Initialize them.
6840
68412008-06-30 Kenichi Handa <handa@m17n.org>
6842
6843 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
6844 XftDefaultSubstitute (they are called in XftFontMatch).
6845 (xftfont_open): Fix args to ftfont_font_format.
6846
6847 * ftfont.c (fc_charset_table): New member lang.
6848 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 6849 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
6850 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
6851 (ftfont_open): Fix args to ftfont_font_format.
6852 (ftfont_font_format): New arg filename.
6853
68542008-06-30 Chong Yidong <cyd@stupidchicken.com>
6855
6856 * xfaces.c (Finternal_merge_in_global_face): If default face was
6857 modified, realize it again. Update the font face attribute.
6858
68592008-06-29 Jason Rumney <jasonr@gnu.org>
6860
6861 * w32term.c (x_set_frame_alpha): Fix logic.
6862
68632008-06-29 Kenichi Handa <handa@m17n.org>
6864
6865 * fontset.c (Finternal_char_font): Return font-object instead of
6866 font-name.
6867
6868 * composite.c (get_composition_id): Fix the width calculation for TAB.
6869
68702008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
6871
6872 * indent.c (Fvertical_motion): Properly handle float column arg.
6873
68742008-06-28 Jason Rumney <jasonr@gnu.org>
6875
6876 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
6877 (pfnSetLayeredWindowAttributes): New function pointer.
6878 (w32_initialize): Initialize it when supported.
6879 (x_set_frame_alpha): New function.
6880
6881 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
6882 (w32_frame_parm_handlers): Set alpha handler.
6883
6884 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
6885
68862008-06-27 Jason Rumney <jasonr@gnu.org>
6887
6888 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
6889 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
6890 (w32_to_x_charset, x_to_w32_charset)
6891 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
6892 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
6893 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
6894 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
6895 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
6896 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
6897 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
6898 (Qw32_charset_unicode): Remove.
6899 (syms_of_w32fns): Update for above changes.
6900
6901 * w32font.c (w32_to_x_charset, x_to_w32_charset)
6902 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
6903 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
6904 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
6905 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
6906 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
6907 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
6908 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
6909 (syms_of_w32font): Update for above changes.
6910
69112008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
6912
6913 * s/usg5-4.h: Fix previous change: keep the correct branch of a
6914 removed #if.
6915 (USG_SHARED_LIBRARIES): Remove duplicate definition.
6916
69172008-06-26 Juanma Barranquero <lekktu@gmail.com>
6918 Eli Zaretskii <eliz@gnu.org>
6919
6920 * makefile.w32-in (LOCAL_FLAGS):
6921 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
6922
6923 * sysdep.c (_spawnlp, _getpid):
6924 Declare with explicit _cdecl instead of _CRTAPI1.
6925
6926 * editfns.c (Fget_internal_run_time):
6927 Check for WINDOWSNT with #ifdef, not #if.
6928
69292008-06-26 Jason Rumney <jasonr@gnu.org>
6930
6931 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
6932
6933 * w32term.c (x_draw_glyph_string_foreground)
6934 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
6935 Use FONT_HANDLE macro.
6936 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
6937
6938 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
6939 (uniscribe_encode_char): Use FONT_HANDLE macro.
6940
6941 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
6942 (w32font_text_extents): Use precast w32_font.
6943 (w32font_close): Free cached metrics.
6944 (w32font_open_internal): Allocate space for name on stack.
6945
69462008-06-26 Chong Yidong <cyd@stupidchicken.com>
6947
6948 * xdisp.c (extend_face_to_end_of_line): Fix last change.
6949
69502008-06-26 Jason Rumney <jasonr@gnu.org>
6951
6952 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
6953 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
6954
69552008-06-26 Juanma Barranquero <lekktu@gmail.com>
6956
6957 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
6958
69592008-06-26 Jason Rumney <jasonr@gnu.org>
6960
6961 * w32bdf.c, w32bdf.h: Remove obsolete files.
6962
6963 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
6964
6965 * w32gui.h: Don't include w32bdf.h.
6966 (XCharStruct, enum w32_char_font_type, W32FontStruct):
6967 Remove obsolete font support.
6968
6969 * w32font.h (struct w32font_info): Remove compat_w32_font.
6970 Add hfont member.
6971 (FONT_COMPAT): Remove obsolete macro.
6972
6973 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
6974 (w32font_encode_char, w32font_text_extents): Use new hfont member.
6975 (w32font_open_internal): Remove compat code. Set new hfont member.
6976 (Fx_select_font): Use new hfont member.
6977
6978 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
6979 (uniscribe_encode_char): Use new hfont member.
6980
6981 * w32term.c (x_draw_glyph_string_foreground)
6982 (x_draw_composite_glyph_string_foreground): Use new hfont member.
6983 (x_draw_glyph_string): Use metrics in w32font_info.
6984
69852008-06-26 Kenichi Handa <handa@m17n.org>
6986
6987 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
6988
69892008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
6990
6991 * unexnext.c:
6992 * m/ews4800.h:
6993 * m/hp9000s300.h:
6994 * m/ibm370aix.h:
6995 * m/mips-siemens.h:
6996 * m/ncr386.h:
6997 * m/next.h:
6998 * m/pmax.h:
6999 * m/powerpcle.h:
7000 * m/tandem-s2.h:
7001 * s/386bsd.h:
7002 * s/bsd386.h:
7003 * s/bsd4-1.h:
7004 * s/bsd4-2.h:
7005 * s/bsdos2-1.h:
7006 * s/bsdos2.h:
7007 * s/bsdos3.h:
7008 * s/bsdos4.h:
7009 * s/nextstep.h:
7010 * s/ultrix4-3.h:
7011 * s/usg5-0.h:
7012 * s/usg5-2-2.h:
7013 * s/usg5-2.h:
7014 * s/usg5-4-3.h:
7015 * s/ux4800.h:
7016 * s/uxpds.h:
7017 * s/uxpv.h: Remove support for obsolete systems.
7018 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 7019 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
7020 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
7021 Remove, insert contents in s/aix4-2.h.
7022 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
7023 * s/bsd4-3.h: Rename to ...
7024 * s/bsd-common.h: ... this.
7025 * data.c:
7026 * doc.c:
7027 * ecrt0.c:
7028 * emacs.c:
7029 * fileio.c:
7030 * floatfns.c:
7031 * keyboard.c:
7032 * mem-limits.h:
7033 * print.c:
7034 * process.c:
7035 * sysdep.c:
7036 * syssignal.h:
7037 * systty.h:
7038 * syswait.h:
7039 * term.c:
7040 * unexec.c:
7041 * unexelf.c:
7042 * unexhp9k800.c:
7043 * m/hp800.h:
7044 * m/ibmrs6000.h:
7045 * m/mips.h:
7046 * m/vax.h:
7047 * s/darwin.h:
7048 * s/freebsd.h:
7049 * s/gnu.h:
7050 * s/ms-w32.h:
7051 * s/msdos.h:
7052 * s/netbsd.h:
7053 * s/template.h: Remove references to obsolete variables.
7054
7055 * Makefile.in: Add dependencies for all unexec files.
7056 (admindir): Remove unused variable.
7057 (UNEXEC_SRC): Remove references.
7058
70592008-06-25 Chong Yidong <cyd@stupidchicken.com>
7060
7061 * xfns.c (x_default_font_parameter): If Xft is available, first
7062 try Monospace-12 for the default font.
7063
70642008-06-25 Jason Rumney <jasonr@gnu.org>
7065
7066 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
7067
70682008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
7069
7070 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
7071
7072 * buffer.c (syms_of_buffer): Remove default-word-wrap.
7073
70742008-06-25 Juanma Barranquero <lekktu@gmail.com>
7075
7076 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
7077 <scroll-conservatively>: Fix typo in docstring.
7078
7079 * xselect.c (Fx_send_client_event): Doc fix.
7080
70812008-06-25 Kenichi Handa <handa@m17n.org>
7082
7083 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
7084
7085 * font.c (font_parse_fcname): Remove unused variables.
7086 (font_sort_entites): Delete the arg SPEC. Caller changed.
7087 Fix for the case of ! best_only.
7088 (font_delete_unmatched): Check DPI and AVGWIDTH too.
7089
7090 * lisp.h (Fstring_to_unibyte): EXFUN it.
7091
7092 * character.h (str_to_unibyte): Extern it.
7093
7094 * character.c (str_to_unibyte): New function.
7095
7096 * fns.c (Fstring_to_unibyte): New function.
7097 (syms_of_fns): Defsubr it.
7098
70992008-06-24 Kenichi Handa <handa@m17n.org>
7100
7101 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
7102 DPI too.
7103 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
7104
71052008-06-24 Andreas Schwab <schwab@suse.de>
7106
7107 * Makefile.in (${lispsource}loaddefs.el): Rename from
7108 ../lisp/loaddefs.el.
7109 (bootstrap-clean): Do what distclean does but don't remove
7110 Makefile.
7111 (distclean): Depend on bootstrap-clean and remove Makefile.
7112
71132008-06-24 Chong Yidong <cyd@stupidchicken.com>
7114
7115 * buffer.h (struct buffer): New member word_wrap.
7116
7117 * buffer.c (syms_of_buffer): New variables default-word-wrap and
7118 word-wrap.
7119 (init_buffer_once): Initialize them.
7120
7121 * dispextern.h (struct it): Replace bool truncate_lines_p with a
7122 line_wrap enum possessing three possible values.
7123
7124 * termopts.h: Replace truncate_partial_width_windows with
7125 Vtruncate_partial_width_windows.
7126
7127 * dispnew.c (direct_output_for_insert): Avoid direct output when
7128 inserting a space with word wrap on.
7129
7130 * indent.c (compute_motion): Obey integer values of
7131 truncate-partial-width-windows.
7132
7133 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
7134 replacing truncate_partial_width_windows.
7135 (init_iterator): If Vtruncate_partial_width_windows is an integer,
7136 truncate only if the window width is below that integer.
7137 (start_display, resize_mini_window, produce_stretch_glyph)
7138 (display_string, move_it_in_display_line_to): Use line_wrap.
7139 (back_to_previous_visible_line_start, reseat_1): Reset
7140 string_from_display_prop_p.
7141 (display_line): Extend default face to end of line when wrapping.
7142
71432008-06-24 Kim F. Storm <storm@cua.dk>
7144
7145 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
7146 to wrap continued lines at word boundaries.
7147
71482008-06-24 Jason Rumney <jasonr@gnu.org>
7149
7150 * font.c (Ffont_face_attributes): Multiply pixel size before point
7151 conversion to avoid multiplying rounding error.
7152
71532008-06-23 Jason Rumney <jasonr@gnu.org>
7154
7155 * w32term.c (x_draw_glyph_string_background)
7156 (x_draw_glyph_string): Remove old bdf font code.
7157
7158 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
7159
71602008-06-22 Kenichi Handa <handa@m17n.org>
7161
7162 * font.c (font_find_for_lface): Try the adstyle specified in
7163 the property of LFACE_FONT of LFACE (if any).
7164
71652008-06-21 Seiji Zenitani <zenitani@mac.com>
7166 Ryo Yoshitake <ryo@shiftmode.net>
7167
7168 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
7169
71702008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
7171
7172 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
7173 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
7174 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
7175 (witness-emacs): Remove.
7176 (lisp, shortlisp): Move loaddefs.el earlier.
7177 (mostlyclean): Forget about witness-emacs.
7178
71792008-06-22 Glenn Morris <rgm@gnu.org>
7180
7181 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
7182 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
7183
71842008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
7185
7186 * Makefile.in (PRECOMP): Remove.
7187 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
7188 (witness-emacs): Run `compile-first'.
7189 (.el.elc): Use the new compile-onefile target.
7190
71912008-06-21 Kenichi Handa <handa@m17n.org>
7192
7193 * xftfont.c (xftfont_open): Handle QCembolden only when
7194 FC_EMBOLDEN is defined.
7195
71962008-06-21 Andreas Schwab <schwab@suse.de>
7197
7198 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
7199 (.el.elc): Likewise.
7200
72012008-06-21 Miles Bader <miles@gnu.org>
7202
7203 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
7204 build dir, not the lisp source dir.
7205
72062008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
7207
7208 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
7209 (bootstrapclean): Remove.
7210 (.el.elc): New rule.
7211 (PRECOMP): New var.
7212 (../lisp/subdirs.el): Remove.
7213 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
7214 (witness-emacs): New target.
7215 (mostlyclean): Remove witness-emacs as well.
7216 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
7217 Add witness-emacs dependency.
7218
72192008-06-20 Chong Yidong <cyd@stupidchicken.com>
7220
7221 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
7222 defined by the font.
7223
72242008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
7225
7226 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
7227 (bootstrap-clean): New target that keeps TAGS around.
7228 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
7229 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
7230
72312008-06-20 Jason Rumney <jasonr@gnu.org>
7232
7233 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
7234 Remove obsolete font code.
7235
7236 * w32font.c (font_matches_spec): Use csb bitfield from font signature
7237 to determine language support.
7238
72392008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
7240
7241 * sysdep.c (cfsetspeed): New fun extracted from the code.
7242 (cfmakeraw): Move before first use.
7243
72442008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
7245
7246 * sysdep.c (cfmakeraw): Provide fallback implementation.
7247 (serial_configure): Provide fallback implementation of cfsetspeed.
7248
72492008-06-20 Kenichi Handa <handa@m17n.org>
7250
7251 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
7252 the pattern.
7253
7254 * fontset.c (fontset_from_font): Copy font_spec before changing
7255 the elements.
7256
7257 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
7258
72592008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
7260
7261 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
7262 for explicit `font' parameters.
7263
7264 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
7265
72662008-06-19 Kenichi Handa <handa@m17n.org>
7267
7268 * frame.c: Include <ctype.h>.
7269 (x_set_font_backend): Allow spacing characters in the X resource
7270 for FontBackend.
7271
72722008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
7273
7274 * w32fns.c, xfns.c (Qfont_param): New var.
7275 (syms_of_w32fns): Initialize it.
7276 (x_default_font_parameter): Record explicit `font' into
7277 `font-parameter'.
7278
72792008-06-18 Kenichi Handa <handa@m17n.org>
7280
7281 * font.c (font_parse_xlfd): Fix previous change.
7282 (font_parse_fcname): Don't use :fc-unknown-spec.
7283 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
7284 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
7285 (font_add_log): Prepend the driver name to the resulting fonts.
7286
7287 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
7288 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
7289 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
7290
7291 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
7292 (QCembolden): New variables.
7293 (syms_of_xftfont): DEFSYM them.
7294 (xftfont_open): Call XftFontMatch. Don't trust the result of
7295 XftTextExtents8 if the pixel_size is less than 5.
7296
72972008-06-18 Andreas Schwab <schwab@suse.de>
7298
7299 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
7300 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
7301
73022008-06-18 Jason Rumney <jasonr@gnu.org>
7303
7304 * w32font.c (w32font_list, w32font_match): Add logging.
7305
7306 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
7307
73082008-06-17 Chong Yidong <cyd@stupidchicken.com>
7309
7310 * font.c (font_parse_fcname): Store divider characters for
7311 unknown-spec list. For known key symbols, intern using correct
7312 symbol name.
7313
73142008-06-17 Kenichi Handa <handa@m17n.org>
7315
7316 * xfaces.c (realize_default_face): If the frame is not on window
7317 system, set the fontset of face to nil.
7318
73192008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
7320
7321 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
7322
73232008-06-16 Juanma Barranquero <lekktu@gmail.com>
7324
7325 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
7326 (build_font_name_from_vector): Delete externs.
7327
7328 * xfaces.c (struct font_name): Don't declare.
7329
73302008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
7331
7332 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
7333
73342008-06-16 Chong Yidong <cyd@stupidchicken.com>
7335
7336 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
7337
73382008-06-16 Juanma Barranquero <lekktu@gmail.com>
7339
7340 * font.c (Ffont_spec): Fix usage in docstring.
7341 (Ffont_face_attributes): Doc fix.
7342
73432008-06-16 Andreas Schwab <schwab@suse.de>
7344
7345 * font.c (Ffont_face_attributes): Fix definition.
7346
73472008-06-16 Jason Rumney <jasonr@gnu.org>
7348
7349 * font.h (font_style_symbolic_from_value): Remove.
7350
7351 * font.c (font_style_symbolic_from_value): Remove.
7352 (font_style_symbolic): Revert to pre 2008-06-13 version.
7353
7354 * w32font.c (w32_to_fc_weight): New function.
7355 (w32font_full_name, logfont_to_fcname): Use it.
7356
73572008-06-16 Kenichi Handa <handa@m17n.org>
7358
7359 * font.c (font_check_object): Delete it.
7360 (font_clear_cache): Check if a font-object is alive.
7361 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
7362 font-object to nil.
7363 (font_close_object): Don't check FONT_CLOSE_OBJECT.
7364 (font_at): Don't call font_check_object.
7365 (Ffont_get): Return a symbol for :weight, :slant, and :width.
7366
73672008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
7368
7369 * puresize.h (BASE_PURESIZE): Increase to 1230000.
7370
73712008-06-16 Chong Yidong <cyd@stupidchicken.com>
7372
7373 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
7374
73752008-06-15 Chong Yidong <cyd@stupidchicken.com>
7376
7377 * font.c (font_parse_fcname): Only one decimal point.
7378 (font_unparse_fcname): Handle data in family and foundry indices
7379 as symbols, not strings.
7380 (font_unparse_gtkname, Ffont_face_attributes): New functions.
7381
7382 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
7383
7384 * font.h (font_unparse_gtkname): Add prototype.
7385
73862008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
7387
7388 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
7389
73902008-06-15 Andreas Schwab <schwab@suse.de>
7391
7392 * font.c (font_update_drivers): Fix crash when no drivers match.
7393
73942008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
7395
7396 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
7397 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
7398
73992008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
7400
7401 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
7402
74032008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
7404
7405 * process.c (Fserial_process_configure, Fprocess_send_eof):
7406 Use EQ to compare Lisp_Objects.
7407
74082008-06-13 Jason Rumney <jasonr@gnu.org>
7409
7410 * w32fns.c (Fw32_select_font): Remove old font API function.
7411
7412 * w32font.c (logfont_to_fcname): New function.
7413 (Fx_select_font): New font dialog function compatible with
7414 GTK/fontconfig version.
7415
7416 * font.c (font_style_symbolic_from_value): New function.
7417 (font_style_symbolic): Use it.
7418
7419 * font.h (font_style_symbolic_from_value): Declare new function.
7420
74212008-06-13 Juanma Barranquero <lekktu@gmail.com>
7422
7423 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
7424 <font-width-table>: Fix typos in docstrings.
7425
74262008-06-13 Daniel Engeler <engeler@gmail.com>
7427
7428 These changes add serial port access.
7429 * process.c: Add HAVE_SERIAL.
7430 (Fdelete_process, Fprocess_status, Fset_process_buffer)
7431 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
7432 (list_processes_1, select_wrapper, Fstop_process)
7433 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
7434 (status_notify): Modify to handle serial processes.
7435 [HAVE_SERIAL] (Fserial_process_configure)
7436 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
7437 New functions.
7438 * process.h (struct Lisp_Process): Add `type'.
7439 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
7440 New functions.
7441 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
7442 serial ports.
b71ac3dd 7443 (serial_open, serial_configure): New functions.
aac0c6e3
MR
7444 * w32.h: Add FILE_SERIAL.
7445 (struct _child_process): Add ovl_read, ovl_write.
7446
74472008-06-13 Kenichi Handa <handa@m17n.org>
7448
7449 * dispextern.h (enum lface_attribute_index): New member
7450 LFACE_FOUNDRY_INDEX.
7451
7452 * font.c (font_score): Delete arg alternate_families. Check only
7453 weight, slant, width, and size. Ignore the difference of alias
7454 style symbols.
7455 (font_sort_entites): Adjust for the above change. Reflect the
7456 order of font-driver to scores.
7457 (font_list_entities): Don't check alternate_familes here.
7458 (font_clear_prop): Handle foundry.
7459 (font_update_lface): Don't parse "foundry-family" form here.
7460 Handle FONT_FOUNDRY_INDEX.
7461 (font_find_for_lface): Likewise. Handle alternate families here.
7462 If registry is nil, try iso8859-1 and ascii-0.
7463 (font_open_for_lface): Pay attention to size in ENTITY.
7464 (font_open_by_name): Simplify by calling font_load_for_lface.
7465 (free_font_driver_list): Delete it.
7466 (font_update_drivers): Preserve the order of backends.
7467 (syms_of_font): Setting of sort_shift_bits adjusted for the change
7468 of font_score and font_sort_entites.
7469 (font_update_sort_order): Likewise.
7470
7471 * xfaces.c (LFACE_FOUNDRY): New macro.
7472 (check_lface_attrs): Check foundry.
7473 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
7474 (merge_face_vectors): Check foundry.
7475 (merge_face_ref): Likewise.
7476 (Finternal_set_lisp_face_attribute): Likewise.
7477 (x_update_menu_appearance): Likewise.
7478 (Finternal_get_lisp_face_attribute): Likewise.
7479 (lface_hash): Likewise.
7480 (lface_same_font_attributes_p): Likewise.
7481 (x_supports_face_attributes_p): Likewise.
7482 (tty_supports_face_attributes_p): Likewise.
7483 (Finternal_set_alternative_font_family_alist): Intern strings.
7484 (Finternal_set_alternative_font_registry_alist): Downcase strings.
7485 (realize_default_face): Set LFACE_FOUNDRY (lface).
7486
7487 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
7488 font-driver at first.
7489
7490 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
7491
74922008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7493
7494 * lread.c (Fload): Use xfree, not free on saved_doc_string.
7495
74962008-06-12 Jim Meyering <meyering@redhat.com>
7497
7498 Make unexec_free handle NULL the same way free does.
7499 * unexmacosx.c (unexec_free): Ignore a NULL argument.
7500
75012008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
7502
7503 * character.h (CHAR_TO_BYTE_SAFE): New macro.
7504 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
7505 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
7506 (WEAK_ALIAS): Simplify.
7507 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
7508 when searching a unibyte buffer.
7509
75102008-06-12 Chong Yidong <cyd@stupidchicken.com>
7511
7512 * xfns.c (Fx_select_font): Rename from x-font-dialog.
7513
75142008-06-12 Juanma Barranquero <lekktu@gmail.com>
7515
7516 * w32font.c: Include ctype.h.
7517
75182008-06-11 Jason Rumney <jasonr@gnu.org>
7519
7520 * w32font.c (w32font_encode_char): Detect missing glyphs that are
7521 misreported as space.
7522 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
7523 as aliases for registry iso10646-1.
7524
75252008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
7526
7527 * buffer.c (clone_per_buffer_values): Skip `name'.
7528
75292008-06-11 Chong Yidong <cyd@stupidchicken.com>
7530
7531 * font.c (font_parse_fcname): Fix last change; accept decimal
7532 points in font size.
7533
75342008-06-10 Jason Rumney <jasonr@gnu.org>
7535
7536 * w32uniscribe.c (add_opentype_font_name_to_list):
7537 Skip non unicode fonts.
7538
75392008-06-10 Chong Yidong <cyd@stupidchicken.com>
7540
7541 * xfns.c (Fx_font_dialog): New function.
7542
7543 * gtkutil.c (xg_dialog_response_cb): Rename from
7544 xg_file_response_callback.
7545 (pop_down_dialog): Rename from pop_down_file_dialog.
7546 (xg_get_file_name): Callers changed.
7547 (xg_get_font_name): New function.
7548
7549 * gtkutil.h (xg_get_font_name): Insert prototype.
7550
75512008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
7552
7553 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
7554 x_underline_minimum_display_offset.
7555 (syms_of_xdisp): Declare it here rather than in xterm.c.
7556 * dispextern.h (underline_minimum_offset): Declare it.
7557 * w32term.c (x_draw_glyph_string): Use it.
7558 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
7559 (syms_of_xterm): Don't declare it any more.
7560 (x_draw_glyph_string): Adjust to the new name.
7561
75622008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
7563
7564 * xterm.c (x_underline_minimum_display_offset): New var.
7565 (x_draw_glyph_string): Use it.
7566 (syms_of_xterm): Declare it.
7567
75682008-06-10 Chong Yidong <cyd@stupidchicken.com>
7569
7570 * font.c (font_parse_fcname): Accept GTK-style font names too.
7571
75722008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
7573
7574 * dired.c (file_name_completion): Don't return t if the match is exact
7575 but with different capitalization.
7576 * minibuf.c (Ftry_completion): Simplify.
7577
7578 * window.c (Vwindow_point_insertion_type): New var.
7579 (set_window_buffer): Use it.
7580 (syms_of_window): Init and export it to Lisp.
7581
75822008-06-10 Kenichi Handa <handa@m17n.org>
7583
7584 * font.h (font_intern_prop): Prototype adjusted.
7585
7586 * font.c (font_intern_prop): New arg force_symbol.
7587 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
7588 Adjust for the change of font_intern_prop.
7589
7590 * ftfont.c (ftfont_pattern_entity):
7591 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
7592 (w32_registry):
7593 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
7594 the change of font_intern_prop.
7595
75962008-06-09 Juanma Barranquero <lekktu@gmail.com>
7597
7598 * w32menu.c (digest_single_submenu): Declare extern.
7599
76002008-06-09 Jason Rumney <jasonr@gnu.org>
7601
7602 * w32term.c (x_make_frame_visible): Use alternate restore flags.
7603
7604 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
7605 (parse_single_submenu): Remove.
7606 (digest_single_submenu): Remove.
7607 (syms_of_w32menu): Don't initialise variables that have moved
7608 to menu.c.
7609 (set_frame_menubar): Sync with version in xmenu.c.
7610 (w32_menu_show): Sync with xmenu_show in xmenu.c.
7611
7612 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
7613 Make static again.
7614
76152008-06-09 Jason Rumney <jasonr@gnu.org>
7616
7617 Changes to w32 files related to the move of common menu code
7618 to menu.c on 2008-06-08 by Chong Yidong.
7619
7620 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
7621 defs to w32gui.h.
7622 (single_keymap_panes, push_menu_item, push_menu_pane):
7623 Make globally visible.
7624
7625 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
7626 (local_free, malloc_widget_value, free_widget_value)
7627 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
7628 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
7629 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
7630 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
7631 (menu_items, menu_items_allocated, menu_items_used)
7632 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
7633 (init_menu_items, finish_menu_items, discard_menu_items)
7634 (grow_menu_items, push_submenu_start, push_submenu_end)
7635 (push_left_right_boundary, push_menu_pane, push_menu_item)
7636 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
7637 (free_menubar_widget_tree_value, parse_single_submenu)
7638 (update_submenu_strings): Remove functions.
7639 (xmalloc_widget_value): Remove and declare extern.
7640
7641 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
7642 (OBJ1): Build it.
7643
7644 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
7645 (local_heap, local_alloc, local_free, malloc_widget_value)
7646 (free_widget_value): Define here.
7647
76482008-06-09 Kenichi Handa <handa@m17n.org>
7649
7650 * font.h (Qascii_0): Extern it.
7651
7652 * font.c (Qascii_0): New variable.
7653 (syms_of_font): DEFSYM it.
7654 (font_open_by_name): If the registry "iso8859-1" fails, try also
7655 "ascii-0".
7656
7657 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
7658
76592008-06-08 Kenichi Handa <handa@m17n.org>
7660
7661 * .gdbinit (xfont): New command.
7662
76632008-06-08 Andreas Schwab <schwab@suse.de>
7664
7665 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
7666 * Makefile.in (menu.o): Update dependencies.
7667
7668 * Makefile.in (obj): Always add menu.o.
7669 * emacs.c (main): Always call syms_of_menu.
7670 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
7671
76722008-06-08 Chong Yidong <cyd@stupidchicken.com>
7673
7674 * Makefile.in: Compile menu.c.
7675
7676 * lisp.h: Declare syms_of_menu.
7677
7678 * emacs.c (main): Call syms_of_menu.
7679
7680 * keyboard.h: Relocate platform-independent menu definitions from
7681 xmenu.c.
7682
7683 * menu.c: New file. Relocate platform-independent menu
7684 definitions from xmenu.c. Suggested by Adrian Robert.
7685
7686 * xmenu.c: Remove platform-independent menu definitions.
7687 (menu_items menu_items_inuse, menu_items_allocated)
7688 (menu_items_used, menu_items_n_panes)
7689 (menu_items_submenu_depth): Move to keyboard.h.
7690 (init_menu_items, finish_menu_items, unuse_menu_items)
7691 (discard_menu_items, restore_menu_items, save_menu_items)
7692 (grow_menu_items, push_submenu_start, push_submenu_end)
7693 (push_left_right_boundary, push_menu_pane, push_menu_item)
7694 (keymap_panes, single_keymap_panes, single_menu_item)
7695 (list_of_panes, list_of_items, find_and_call_menu_selection)
7696 (xmalloc_widget_value, free_menubar_widget_value_tree)
7697 (parse_single_submenu, digest_single_submenu)
7698 (update_submenu_strings): Move to menu.c.
7699
77002008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
7701
7702 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
7703
77042008-06-06 Miles Bader <miles@gnu.org>
7705
7706 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
7707 face, not frame default.
7708
77092008-06-05 Martin Rudalics <rudalics@gmx.at>
7710
7711 * window.c (pop_up_windows, pop_up_frames)
7712 (display_buffer_reuse_frames, Vpop_up_frame_function)
7713 (Vdisplay_buffer_function, Veven_window_heights)
7714 (Vspecial_display_buffer_names, Vspecial_display_regexps)
7715 (Vspecial_display_function, Vsame_window_buffer_names)
7716 (Vsame_window_regexps, split_height_threshold)
7717 (Vsplit_window_preferred_function): Move those vars to window.el.
7718 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
7719 (Fdisplay_buffer): Move those functions to window.el.
7720 (syms_of_window): Remove corresponding declarations.
7721 (display_buffer): New function.
7722 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
7723 * dispnew.c (Flast_nonminibuf_frame): New function.
7724 * buffer.c (Fpop_to_buffer): Move to window.el.
7725
77262008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
7727
7728 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
7729
77302008-06-05 Kenichi Handa <handa@m17n.org>
7731
7732 * coding.c (detect_coding): Fix previous change.
7733 (detect_coding_system): Likewise.
7734
77352008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
7736
7737 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
7738
7739 * keymap.c (Vminibuffer_local_filename_must_match_map):
7740 Rename from Vminibuffer_local_must_match_filename_map.
7741 (syms_of_keymap):
7742 * minibuf.c (Fcompleting_read): Adjust accordingly.
7743 * commands.h: Rename declaration as well.
7744
77452008-06-05 Kenichi Handa <handa@m17n.org>
7746
7747 * font.c (Ffont_spec): Don't use font_parse_family_registry for
7748 family name.
7749 (Ffont_put): Likewise.
7750
7751 * fontset.c (fontset_find_font): Call font_open_for_lface with the
7752 current font-spec.
7753
7754 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
7755 is unspecified.
7756
7757 * xfaces.c (realize_x_face): If the font-related face attributes
7758 are the same as those of default face, realize a new fontset from
7759 default->fontset.
7760 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
7761
77622008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
7763
7764 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
7765 (move_it_in_display_line): New wrapper.
7766
7767 * window.c (window_scroll_pixel_based_preserve_x)
7768 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
7769 (window_scroll_pixel_based, window_scroll_line_based):
7770 Use them to preserve column positions.
7771 (syms_of_window): Initialize them.
7772
7773 * indent.c (Fvertical_motion): Extend first arg to allow passing an
7774 (HPOS . VPOS) pair.
7775
7776 * dispextern.h (move_it_in_display_line): Declare.
7777
77782008-06-05 Juanma Barranquero <lekktu@gmail.com>
7779
7780 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
7781 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
7782 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
7783
77842008-06-04 Juanma Barranquero <lekktu@gmail.com>
7785
7786 * window.c (Fset_window_parameter): Doc fix.
7787 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
7788
77892008-06-04 Joakim Verona <joakim@verona.se>
7790
7791 * window.h (struct window): Add new member window_parameters.
7792
7793 * window.c (Fwindow_parameters, Fwindow_parameter)
7794 (Fset_window_parameter): New defuns.
7795 (syms_of_window): Defsubr the new defuns.
7796 (make_window): Initialize window_parameters to nil.
7797
77982008-06-04 John Paul Wallington <jpw@pobox.com>
7799
7800 * eval.c (Fdefmacro): Doc fix.
7801
78022008-06-04 Kenichi Handa <handa@m17n.org>
7803
7804 * coding.c (detect_coding): Fix handling of coding->head_ascii.
7805 Be sure to call setup_coding_system when we find a proper coding system.
7806 (detect_coding_system): Fix handling of coding->head_ascii.
7807
78082008-06-03 Andreas Schwab <schwab@suse.de>
7809
7810 * font.c (font_prop_validate_spacing): Fix last change.
7811
78122008-06-03 Kenichi Handa <handa@m17n.org>
7813
7814 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
7815 (font_parse_fcname): Fix handling of unknown key.
7816
7817 * xfont.c (xfont_list): Try an alias.
7818
7819 * charset.c (char_charset): Return NULL if the arg charset_list is
7820 specified and C doesn't belong to any of them.
7821
78222008-06-02 Chip Coldwell <coldwell@redhat.com>
7823
7824 * font.c (font_pixel_size): Don't take cdr of an integer.
7825
78262008-06-02 Jim Meyering <meyering@redhat.com>
7827
7828 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
7829 * alloc.c (xfree): Return right away for a NULL arg.
7830 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
7831 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
7832 * mac.c (create_apple_event_from_event_ref): Likewise.
7833 (create_apple_event_from_drag_ref, cfstring_create_normalized):
7834 Likewise.
7835 * doprnt.c (doprnt1): Likewise.
7836 * frame.c (frame): Likewise.
7837 * keyboard.c (wipe_kboard): Likewise.
7838 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
7839 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
7840 * term.c (tty_default_color_capabilities, maybe_fatal)
7841 (delete_tty): Likewise.
7842 * w16select.c (string): Likewise.
7843 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
7844 * w32bdf.c (w32_free_bdf_font): Likewise.
7845 * w32fns.c (w32_unload_font): Likewise.
7846 * w32font.c (w32font_close): Likewise.
7847 * window.c (size_window): Likewise.
7848 * xselect.c (receive_incremental_selection): Likewise.
7849 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
7850 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
7851 * w32.c (stat): Likewise.
7852
7853 Remove useless if-before-free tests.
7854 * editfns.c (Fset_time_zone_rule): Likewise.
7855 * lread.c (nosuffix): Likewise.
7856 * ralloc.c (get_bloc): Likewise.
7857 * regex.c (reg_free): Likewise.
7858 * xftfont.c (xftfont_open, xftfont_close): Likewise.
7859 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
7860 * xsmfns.c (smc_save_yourself_CB): Likewise.
7861
78622008-06-02 Kenichi Handa <handa@m17n.org>
7863
7864 * font.c (font_find_for_lface): Handle float font size.
7865 (font_open_for_lface): Likewise.
7866
7867 * xfaces.c (x_supports_face_attributes_p): Check face->font before
7868 comparing the properties.
7869
78702008-06-01 Jason Rumney <jasonr@gnu.org>
7871
7872 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
7873 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
7874 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
7875 Don't add empty script list.
7876 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
7877
78782008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
7879
7880 * Makefile.in (dot, dotdot): Remove, update users.
7881 ".." has been used elsewhere in the file for a long time.
7882 (LIBXT_STATIC): Remove conditional based on unused variable.
7883
78842008-06-01 Miles Bader <miles@gnu.org>
7885
7886 * xfaces.c (Vface_remapping_alist): New variable.
7887 (syms_of_xfaces): Initialize it.
7888 (enum named_merge_point_kind): New type.
7889 (struct named_merge_point): Add `named_merge_point_kind' field.
7890 (push_named_merge_point): Make cycle detection respect different
7891 named-merge-point kinds.
7892 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
7893 Remove face-name alias resolution.
7894 (lface_from_face_name): New definition using
7895 `lface_from_face_name_no_resolve'.
7896 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
7897 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
7898 (get_lface_attributes): New definition that layers face-remapping on
7899 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
7900 (lookup_basic_face): New function.
7901 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
7902 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
7903 `get_lface_attributes'.
7904 (face_at_buffer_position): Use `lookup_basic_face' to lookup
7905 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
7906 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
7907
7908 * xdisp.c (init_iterator): Pass base_face_id through
7909 `lookup_basic_face' when we actually use it as a face-id.
7910 (handle_single_display_prop): Use `lookup_basic_face' to lookup
7911 DEFAULT_FACE_ID.
7912
7913 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
7914 lookup the initial face-id.
7915
7916 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
7917
79182008-06-01 Juanma Barranquero <lekktu@gmail.com>
7919
7920 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
7921 (Fremove_text_properties): Fix typos in docstrings.
7922
79232008-05-31 Kenichi Handa <handa@m17n.org>
7924
7925 * font.c (font_list_entities): Fix the car part of data to be
7926 stored in the cache.
7927
7928 * ftfont.c (ftfont_font_format): Don't use strcasestr.
7929
79302008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
7931
7932 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
7933 Add a `test' argument so another predicate than `equal' can be used.
7934 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
7935 (map_char_table): Remove unused vars `c' and `i'.
7936 * lisp.h (Foptimize_char_table): Adjust declaration.
7937 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
7938
79392008-05-30 Kenichi Handa <handa@m17n.org>
7940
7941 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
7942 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
7943 defined.
7944
79452008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
7946
7947 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
7948 (Fmake_variable_frame_local): Disallow mixing buffer-local and
7949 frame-local settings for the same variable.
7950
79512008-05-30 Kenichi Handa <handa@m17n.org>
7952
7953 * fontset.c (Ffont_info): Move to font.c.
7954 (syms_of_fontset): Delete defsubr of Sfont_info.
7955
7956 * font.c (font_style_to_value, font_score): Delete casting of the
7957 args to xstcasecmp.
7958 (register_font_driver): Increment num_font_drivers only when
7959 registering the driver globally.
7960 (Ffont_info): Move from fontset.c. Handle a font object too.
7961 (syms_of_font): Defsubr Sfont_info.
7962
79632008-05-29 Kenichi Handa <handa@m17n.org>
7964
7965 * coding.h (enum define_coding_utf8_arg_index): New enum.
7966 (enum coding_attr_index): Change coding_attr_utf_16_bom to
7967 coding_attr_utf_bom.
7968 (enum utf_bom_type): Rename from utf_16_bom_type.
7969 (struct utf_16_spec): Adjust for the above change.
7970 (struct coding_system): Add utf_8_bom in `spec' union.
7971
7972 * coding.c (CODING_UTF_8_BOM): New macro.
7973 (enum coding_category): Delete coding_category_utf_8, add
7974 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
7975 coding_category_utf_8_sig.
7976 (CATEGORY_MASK_UTF_8): Delete it.
7977 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
7978 (CATEGORY_MASK_UTF_8_SIG): New macros.
7979 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
7980 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
7981 CATEGORY_MASK_UTF_8_SIG.
7982 (CATEGORY_MASK_UTF_8): New macro.
7983 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
7984 (detect_coding_utf_8): Check BOM.
7985 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
7986 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
7987 (encode_coding_utf_16): Likewise.
7988 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
7989 (detect_coding, detect_coding_system): Handle utf-8-auto.
7990 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
7991 (syms_of_coding): Fix setting up of Vcoding_category_table.
7992
79932008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
7994
7995 * process.c (Faccept_process_output): If `millisec' is non-nil,
7996 `seconds' default to 0.
7997 (wait_reading_process_output): Also return non-nil if we read output
7998 from a non-running process.
7999
80002008-05-29 Jason Rumney <jasonr@gnu.org>
8001
8002 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
8003 `raster' specified.
8004 (add_font_entity_to_list): Allow non-opentype truetype fonts back
8005 in the uniscribe backend, but disallow any font that has no
8006 unicode subrange support.
8007
80082008-05-29 Juanma Barranquero <lekktu@gmail.com>
8009
8010 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
8011 Fix typos in docstrings.
8012
80132008-05-29 Kenichi Handa <handa@m17n.org>
8014
8015 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
8016 (Fx_family_fonts): Set frame correctly.
8017
80182008-05-28 Jason Rumney <jasonr@gnu.org>
8019
8020 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
8021
80222008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
8023
8024 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
8025 calling build_annotations.
8026
80272008-05-28 Juanma Barranquero <lekktu@gmail.com>
8028
8029 * coding.c (Fdecode_coding_region, Fencode_coding_region)
8030 (Fencode_coding_string):
8031 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
8032 <latin-extra-code-table>: Fix typos in docstrings.
8033 (syms_of_coding) <coding-system-alist>: Doc fix.
8034 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
8035
80362008-05-28 Kenichi Handa <handa@m17n.org>
8037
8038 * fontset.c (Ffont_info): Don't call font_close_object.
8039
8040 * font.c (font_parse_family_registry): Use Ffont_put to validate
8041 foundry and family.
8042 (font_delete_unmatched): Don't check spacing.
8043 (font_list_entities): Add spacing to the spec to list fonts.
8044
8045 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
8046 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
8047
8048 * coding.c (encode_coding_raw_text): Fix previous change.
8049 (encode_coding_object): When the dst_object is a buffer and is
8050 different from src_object, move gap to PT.
8051
80522008-05-27 Chong Yidong <cyd@stupidchicken.com>
8053
8054 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
8055
80562008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
8057
8058 * coding.c (encode_coding_raw_text): Set coding->produced_char for
8059 all branches. Compute it differently.
8060
8061 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
8062
80632008-05-27 Juanma Barranquero <lekktu@gmail.com>
8064
8065 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
8066 into "else if () ... else ...".
8067
80682008-05-27 Jason Rumney <jasonr@gnu.org>
8069
8070 * w32font.c (w32font_open_internal): Determine if glyph indices
8071 are likely to work here.
8072
80732008-05-27 Chong Yidong <cyd@stupidchicken.com>
8074
8075 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
8076 draw overlap glyphs with appropriate highlighting.
8077
80782008-05-27 Kenichi Handa <handa@m17n.org>
8079
8080 * xfont.c (xfont_open): Fix calculation of font->average_width.
8081
80822008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
8083
8084 * casefiddle.c (casify_object): Try to guess better whether the
8085 argument is a byte or a char.
8086
80872008-05-26 Andreas Schwab <schwab@suse.de>
8088
8089 * xselect.c (x_reply_selection_request): Properly handle format == 32.
8090 Always send multiples of format size.
8091
8092 * xterm.c (x_set_frame_alpha): Fix type mismatch.
8093
80942008-05-26 Jason Rumney <jasonr@gnu.org>
8095
8096 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
8097 (compute_metrics): Don't set failure if we just cleared the cache.
8098 (w32_weight_table): Remove unused variable.
8099 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
8100 backwards compatibility.
8101
81022008-05-25 Kenichi Handa <handa@m17n.org>
8103
8104 * w32term.c (x_draw_glyph_string):
8105 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
8106
8107 * xfaces.c: Delete unused function prototypes.
8108 (xstrlwr, font_frame): Delete them.
8109 (clear_face_cache): Delete unused variable.
8110
8111 * xftfont.c (xftfont_open): Delete unused variable.
8112 If underline_thickness is not 1, adjust underline_position.
8113
8114 * ftxfont.c (ftxfont_open): Delete unused variable.
8115
8116 * fontset.c (face_for_char): Optimize for the case of no charset
8117 property.
8118
8119 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
8120 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
8121 (otf_open, font_otf_capability, generate_otf_features)
8122 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
8123 Comment out by surrounding "#if 0" and "#endif" for the moment.
8124 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
8125 (syms_of_font): Codes for accessing above commented out.
8126
81272008-05-24 Eli Zaretskii <eliz@gnu.org>
8128
8129 * w32proc.c: Include dispextern.h.
8130
8131 * w32.c: Include dispextern.h.
8132
81332008-05-23 Juanma Barranquero <lekktu@gmail.com>
8134
8135 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
8136 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
8137 Fix typos in docstrings.
8138
81392008-05-23 Jason Rumney <jasonr@gnu.org>
8140
8141 * xsmfns.c: Remove includes that are already included by config.h.
8142
81432008-05-23 Kenichi Handa <handa@m17n.org>
8144
8145 * charset.c (Qemacs, charset_emacs): New variables.
8146 (char_charset): Fix for non-Unicode characters.
8147 (syms_of_charset): Define charset_emacs.
8148
8149 * w32term.c (x_draw_glyph_string): Be sure to update
8150 s->underline_thickness and s->underline_position. Be sure to draw
8151 underline within the current line area.
8152
8153 * xterm.c (x_draw_glyph_string): Be sure to update
8154 s->underline_thickness and s->underline_position. Be sure to draw
8155 underline within the current line area.
8156
8157 * fontset.c: Delete unused variables and add casting for char *
8158 throughout the file.
8159 (fontset_font): Try the fallback fonts of the current fontset
8160 before consulting the default fontset.
8161
8162 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
8163
8164 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
8165
81662008-05-22 Jason Rumney <jasonr@gnu.org>
8167
8168 * font.c: Don't include strings.h.
8169
8170 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
8171
8172 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
8173 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
8174 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
8175 to call xstrcasecmp.
8176
8177 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
8178
8179 * fontset.c (fs_query_fontset): Use xstrcasecmp.
8180
8181 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
8182
8183 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
8184
81852008-05-22 Kenichi Handa <handa@m17n.org>
8186
8187 * puresize.h (BASE_PURESIZE): Increase to 1220000.
8188
8189 * font.c (font_prop_validate_style): Adjust for the format
8190 change of font_style_table.
8191
8192 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
8193 two args.
8194
8195 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
8196 two args.
8197
81982008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
8199
8200 * minibuf.c (keys_of_minibuf): Delete.
8201 * lisp.h (keys_of_minibuf): Delete.
8202 * emacs.c (main): Don't call keys_of_minibuf.
8203
82042008-05-22 Kenichi Handa <handa@m17n.org>
8205
8206 * ftfont.c (ftfont_resolve_generic_family): Rename from
8207 ftfont_list_generic_family. Return a single family for each
8208 generic family.
8209 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
8210 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
8211 Call font_add_log.
8212 (ftfont_match): Call font_add_log.
8213
8214 * font.h (Ffont_xlfd_name): EXFUN adjusted.
8215 (FONT_DEBUG): Define it.
8216 (font_add_log): Extern it.
8217 (font_assert): Rename from xassert.
8218
8219 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
8220 (xfont_list_family): Call font_add_log.
8221 (xfont_match): Likewise.
8222 (memq_no_quit): Delete.
8223
8224 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
8225 call of Ffont_xlfd_name.
8226
8227 * xfaces.c (struct table_entry, slant_table, weight_table)
8228 (swidth_table): Move to font.c.
8229
8230 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
8231 xassert are changed to font_assert. Delete many unused variables.
8232 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
8233 New variables.
8234 (struct table_entry): Move from xfaces.c and modified.
8235 (weight_table, slant_table, width_table): Move from xfaces.c and
8236 contents adjusted for the change of struct table_entry.
8237 (font_style_to_value, font_style_symbolic): Adjust for the
8238 format change of font_style_table.
8239 (font_parse_family_registry): Don't overwrite existing foundry and
8240 family of font_spec.
8241 (font_score): Fix calculation of diff for sizes.
8242 (font_sort_entites): Call font_add_log.
8243 (font_delete_unmatched): Return a newly created list.
8244 (font_list_entities): Fix previous change. Call font_add_log.
8245 (font_matching_entity, font_open_entity, font_close_entity):
8246 Call font_add_log.
8247 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
8248 (Finternal_set_font_style_table): Delete.
8249 (BUILD_STYLE_TABLE): New macro.
8250 (build_style_table): New function.
8251 (Vfont_log, font_log_env_checked): New variables.
8252 (font_add_log): New function.
8253 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
8254 Declare Lisp variables "font-weight-table", "font-slant-table",
8255 "font-width-table", and "font-log". Initialize font_style_table.
8256
82572008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
8258
8259 * xterm.c (x_set_frame_alpha): Move declarations before statements.
8260
82612008-05-21 Seiji Zenitani <zenitani@mac.com>
8262 Ryo Yoshitake <ryo@shiftmode.net>
8263
8264 * frame.c (Qalpha): Add a new frame parameter `alpha'.
8265 (Vframe_alpha_lower_limit): New variable.
8266 (x_set_alpha): New function.
8267
8268 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
8269
8270 * xfns.c (x-create-frame, Qalpha):
8271 Initialize the frame parameter `alpha'.
8272 * xterm.c (OPAQUE, OPACITY): New.
8273 (x_set_frame_alpha): New function.
8274 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
8275
8276 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
8277 * w32fns.c (w32_frame_parm_handlers): Likewise.
8278
82792008-05-20 Jason Rumney <jasonr@gnu.org>
8280
8281 * w32font.c (add_font_entity_to_list): Don't add non-opentype
8282 truetype fonts to opentype list.
8283
82842008-05-20 Juanma Barranquero <lekktu@gmail.com>
8285
8286 * fontset.c (Ffontset_info): Doc fix.
8287 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
8288 <ignore-relative-composition>: Fix typos in docstrings.
8289
8290 * font.c (syms-of-font) <font-encoding-alist>:
8291 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
8292 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
8293 (Ffont_otf_alternates): Doc fixes.
8294
82952008-05-20 Kenichi Handa <handa@m17n.org>
8296
8297 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
8298 font.h through out the file.
8299 (FONT_DRIVERS): Rename from FONTOBJ.
8300 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
8301 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
8302
8303 * emacs.c (main): Call syms_of_font unconditionally.
8304
8305 * font.h (find_font_encoding): Extern it.
8306
8307 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
8308 fontset.c.
8309 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
8310 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
8311 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
8312 only when HAVE_WINDOW_SYSTEM is defined.
8313 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
8314 when HAVE_WINDOW_SYSTEM is defined.
8315
8316 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
8317 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
8318
8319 * xfaces.c: Include font.h unconditionally.
8320 (merge_face_ref, merge_face_vectors)
8321 (Finternal_set_lisp_face_attribute): Cancel the previous change.
8322
83232008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
8324
8325 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
8326 indirect_variable.
8327 * eval.c (lisp_indirect_variable): New fun.
8328 (Fuser_variable_p): Use it.
8329
83302008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
8331
8332 * lisp.h (indirect_variable):
8333 * data.c (indirect_variable, let_shadows_buffer_binding_p):
8334 Use Lisp_Symbol pointers rather than Lisp_Object.
8335 Adjust callers.
8336 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
8337 To this end, change calling-convention.
8338
8339 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
8340 if some non-hidden buffers are selected by string&pred.
8341
83422008-05-19 Chong Yidong <cyd@stupidchicken.com>
8343
8344 * process.c (wait_reading_process_output): Always check status
8345 when in batch mode.
8346
83472008-05-19 Kenichi Handa <handa@m17n.org>
8348
8349 * font.c (font_list_entities): Fix handling of cache.
8350 (font_matching_entity): Likewise.
8351
8352 * ftfont.c (cs_iso8859_1): Delete.
8353 (ft_face_cache): New variable.
8354 (struct ftfont_info): New member fc_charset_idx.
8355 (ftfont_build_basic_charsets): Delete.
8356 (fc_charset_table): New variable.
8357 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
8358 . FC_CHARSET_IDX) as :font-entity property in the font entity.
8359 Callers changed.
8360 (ftfont_lookup_cache, ftfont_get_charset): New functions.
8361 (ftfont_spec_pattern): New argument fc_charset_idx.
8362 Check registry more rigidly. Change callers.
8363 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
8364 change of :font-entity property of the font.
8365
8366 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
8367 property of the font.
8368
83692008-05-18 Juanma Barranquero <lekktu@gmail.com>
8370
8371 * coding.c (Fcoding_system_p): Rename argument to match docstring.
8372 (Funencodable_char_position, Fcheck_coding_systems_region)
8373 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
8374 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
8375 (Ffind_operation_coding_system, Fset_coding_system_priority)
8376 (Fcoding_system_eol_type): Doc fixes.
8377
83782008-05-17 Glenn Morris <rgm@gnu.org>
8379
8380 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
8381
83822008-05-16 Eli Zaretskii <eliz@gnu.org>
8383
8384 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
8385 and st_gid.
8386
8387 * frame.c (Fdelete_frame): Don't call font_update_drivers if
8388 HAVE_WINDOW_SYSTEM is not defined.
8389
8390 * xfaces.c (merge_face_ref, merge_face_vectors)
8391 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
8392 HAVE_WINDOW_SYSTEM is defined.
8393 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
8394
83952008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
8396
8397 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
8398
83992008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8400
8401 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
8402
84032008-05-15 Kenichi Handa <handa@m17n.org>
8404
8405 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
8406 preference.
8407
84082008-05-15 Glenn Morris <rgm@gnu.org>
8409
8410 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
8411
84122008-05-15 Chong Yidong <cyd@stupidchicken.com>
8413
8414 * fns.c (init_fns): Don't initialize weak_hash_tables here.
8415 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
8416
8417 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
8418
84192008-05-15 Kenichi Handa <handa@m17n.org>
8420
8421 * ftfont.c (ftfont_list): Downcase family name to check generic
8422 families.
8423
8424 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
8425 font-spec for QCfont value.
8426
8427 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
8428 buffer. Check the return value of it.
8429
84302008-05-14 Jason Rumney <jasonr@gnu.org>
8431
8432 * w32term.c (w32_get_glyph_overhangs): Remove.
8433 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
8434
84352008-05-14 Kenichi Handa <handa@m17n.org>
8436
8437 * font.c (font_prop_validate): Make nil a valid value.
8438 (font_clear_cache): Check if the cached vector of entities is nil
8439 or not.
8440
84412008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8442
8443 * emacs.c (main_thread): Conditionalize on
8444 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
8445 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
8446
8447 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
8448 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
8449 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
8450
84512008-05-14 Kenichi Handa <handa@m17n.org>
8452
8453 * coding.c (detect_coding_iso_2022): Ignore a coding category that
8454 has no corresponding coding system.
8455
84562008-05-14 Jason Rumney <jasonr@gnu.org>
8457
8458 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
8459
8460 * w32font.h (w32font_open_internal): Update declaration.
8461
8462 * w32font.c (w32font_open_internal): Change last argument from
8463 w32font_info struct to font object. Fill in font object from
8464 font_entity. Get Outline metrics if possible. Use them to
8465 calculate underline position and thickness. Use xlfd name as name
8466 property. Don't set codepage.
8467 (w32font_open): Pass font_object to w32font_open_internal. Don't
8468 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
8469 (w32font_draw): Use s->font.
8470 (clear_cached_metrics): Don't clear non-existent blocks.
8471
8472 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
8473 font was not found.
8474 (x_draw_glyph_string): Use underline position and thickness from font.
8475
8476 * w32uniscribe.c (uniscribe_open): Pass font_object to
8477 w32font_open_internal.
8478
84792008-05-14 Kenichi Handa <handa@m17n.org>
8480
8481 These changes are to delete all legacy font-handling codes, and
8482 make Emacs use only font-backends.
8483
8484 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
8485 (frame.o, image.o, print.o): Depend on $(FONTSRC).
8486
8487 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
8488
8489 * charset.h (Vcharset_non_preferred_head)
8490 (Vcurrent_iso639_language): Extern them.
8491
8492 * charset.c (Vcharset_non_preferred_head): New variable.
8493 (Vcurrent_iso639_language): New variable.
8494 (syms_of_charset): Declare it as a Lisp variable.
8495 (char_charset): Don't check non preferred charsets. As a last
8496 resort, return charset_unicode.
8497 (Fset_charset_priority): Update Vcharset_non_preferred_head.
8498
8499 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
8500 conditionals. Don't check enable_font_backend. Delete all codes
8501 used only when USE_FONT_BACKEND is not defined.
8502
8503 * dispextern.h (struct glyph_string): Change type of `font' to
8504 `struct font *'.
8505 (struct glyph_string): New member underline_position and
8506 underline_thickness.
8507 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
8508 (struct face): Change type of `font' to `struct font *'. Remove
8509 members `font_name', `font_info_id'.
8510 (per_char_metric, encode_char): Delete externs.
8511 (calc_pixel_width_or_height): Adjust the prototype.
8512
8513 * emacs.c (enable_font_backend): Delete extern.
8514 (main): Don't set enable_font_backend. Don't check the command
8515 line argument "-disable-font-backend".
8516
8517 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
8518 (enum font_property_index): New members FONT_DPI_INDEX,
8519 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
8520 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
8521 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
8522 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
8523 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
8524 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
8525 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
8526 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
8527 (struct font_spec, struct font_entity): New structs.
8528 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
8529 (struct font): Many members from old "struct font_info" moved to
8530 here. Members font and entity deleted.
8531 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
8532 the new font-related objects.
8533 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
8534 (CHECK_FONT_GET_OBJECT): Likewise.
8535 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
8536 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
8537 (struct font_driver): New members case_sensitive anc check. Type
8538 of the member list and open changed.
8539 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
8540 (font_symbolic_width, font_find_object, font_get_spec)
8541 (font_set_lface_from_name): Delete extern.
8542 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
8543
8544 * font.c: Include <strings.h>.
8545 (enable_font_backend): Delete it.
8546 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
8547 (CHECK_VALIDATE_FONT_SPEC): Delete it.
8548 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
8549 (null_string): Delete it.
8550 (null_vector): Make it static.
8551 (font_family_alist): Delete it.
8552 (Qnormal): Extern it.
8553 (QCextra, QClanguage): Delete it.
8554 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
8555 (font_make_spec, font_make_entity, font_make_object)
8556 (font_intern_prop): Renamed from intern_downcase. Don't downcase
8557 the string. Callers changed.
8558 (font_pixel_size): Adjusted for the format change of font-related
8559 objects.
8560 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
8561 (font_style_to_value, font_style_symbolic): New function.
8562 (build_font_family_alist): Delete it.
8563 (font_registry_charsets): Use Fassoc_string instead of
8564 assq_no_quit.
8565 (font_prop_validate_symbol): Don't return null_string.
8566 (font_prop_validate_style): Adjusted for the change of
8567 style-related values in a font vector.
8568 (font_property_table): Delete entries for QClanguage and
8569 QCantialias, add entries for QCavgwidth.
8570 (get_font_prop_index): Delete the 2nd argument FROM.
8571 (font_prop_validate): Arguments changed.
8572 (font_put_extra): Adjusted for the change of font-related objects.
8573 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
8574 (font_parse_fcname, font_unparse_fcname)
8575 (font_prepare_composition): Likewise.
8576 (font_parse_family_registry): Renamed from font_merge_old_spec.
8577 (otf_open): Delete the 1st arg entity.
8578 (font_otf_capability): Adjusted for the above change.
8579 (font_score): New arg alternate_families. Adjusted for the change
8580 of font-related objects.
8581 (font_sort_entites): New arg best_only.
8582 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
8583 Delete them.
8584 (font_match_p): Check alternate families.
8585 (font_find_object): Delete it.
8586 (font_check_object): New function.
8587 (font_clear_cache): Adjusted for the change of font-related objects.
8588 (font_delete_unmatched): New arg.
8589 (font_list_entities): Call font_driver->list with a spec that
8590 doesn't specify style-related properties.
8591 (font_matching_entity): Arguments changed. Caller changed.
8592 (font_open_entity): Adjusted for the change of font-related objects.
8593 (font_close_object, font_has_char, font_encode_char)
8594 (font_get_name, font_get_spec): Likewise.
8595 (font_spec_from_name, font_clear_prop, font_update_lface):
8596 New functions.
8597 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
8598 (font_prepare_for_face, font_done_for_face, font_open_by_name)
8599 (font_at): Adjusted for the change of font-related objects.
8600 (font_range): New function.
8601 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
8602 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
8603 (Fcopy_font_spec, Fmerge_font_spec): New function.
8604 (Ffont_family_list): Renamed from list-families.
8605 (Finternal_set_font_style_table): Arguments changed.
8606 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
8607 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
8608 change of font-related objects.
8609 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
8610
8611 * fontset.h (struct font_info): Delete it. Most members go to
8612 struct font.
8613 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
8614 (enum FONT_SPEC_INDEX): Delete it.
8615 (font_info, list_fonts_func, load_font_func, query_font_func)
8616 (set_frame_fontset_func, find_ccl_program_func)
8617 (get_font_repertory_func, new_fontset_from_font_name): Delete
8618 externs.
8619 (fontset_from_font_name): Extern it.
8620 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
8621 (FONT_INFO_FROM_FACE): Deleted.
8622 (face_for_font): Adjust prototype.
8623
8624 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
8625 conditionals. Don't check enable_font_backend. Delete all codes
8626 used only when USE_FONT_BACKEND is not defined.
8627 (get_font_info_func, list_font_func, load_font_func)
8628 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
8629 (get_font_repertory_func): Delete them.
8630 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
8631 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
8632 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
8633 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
8634 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
8635 (fontset_compare_rfontdef): New function.
8636 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
8637 rfont-defs by qsort. Adjusted for the change of font-group vector.
8638 (load_font_get_repertory): Deleted.
8639 (fontset_find_font): Use new macros to ref/set elements of
8640 font-def and rfont-def.
8641 (fontset_font): Fix the timing of remembering that no font for C.
8642 (free_face_fontset): Do nothing if the face has no fontset.
8643 (face_suitable_for_char_p): Use new macros to ref/set elements of
8644 rfont-def.
8645 (face_for_char): Likewise. Call face_for_char with font_object.
8646 (fs_load_font): Delete. Delete #pragma surrounding it.
8647 (fs_query_fontset): Use strcasecmp instead of strcmp.
8648 (generate_ascii_font_name): Adjusted for the format change of
8649 font-spec.
8650 (Fset_fontset_font): Likewise. Use new macros to set elements of
8651 font-def.
8652 (Fnew_fontset): Use font_unparse_xlfd to generate
8653 FONTSET_ASCII (fontset).
8654 (new_fontset_from_font_name): Deleted.
8655 (fontset_from_font): Renamed from new_fontset_from_font. Check if
8656 a fontset is already created for the font. FIx updating of
8657 Vfontset_alias_alist.
8658 (fontset_ascii_font): Deleted.
8659 (Ffont_info): Adjusted for the format change of font-spec.
8660 (Finternal_char_font): Likewise.
8661 (Ffontset_info): Likewise.
8662 (syms_of_fontset): Don't check load_font_func.
8663
8664 * fns.c (internal_equal): Handle PREV_FONT.
8665
8666 * frame.h: Delete USE_FONT_BACKEND conditional.
8667
8668 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
8669 conditionals. Don't check enable_font_backend. Delete all codes
8670 used only when USE_FONT_BACKEND is not defined.
8671 (x_set_font): Call x_new_font, not x_new_fontset2.
8672 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
8673 already set for the frame.
8674
8675 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
8676 a font-entity by font_make_entity. Use font_intern_prop instead
8677 of intern_downcase. Use FONT_SET_STYLE to set a style-related
8678 font property. If a font is scalable, set avgwidth property to 0.
8679 Set font-entity property by font_put_extra.
8680 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
8681 (ffont_driver): Adjusted for the change of struct font_driver.
8682 (ftfont_spec_pattern): New function.
8683 (ftfont_list): Return a list, not vector.
8684 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
8685 (ftfont_list_family): Don't downcase names.
8686 (ftfont_free_entity): Deleted.
8687 (ftfont_open): Return a font-object. Adjusted for the change of
8688 struct font. Get underline_thickness and underline_position from
8689 font property. Don't update dpyinfo->smallest_font_height and
8690 dpyinfo->smallest_char_width.
8691 (ftfont_close): Don't free `struct font'.
8692 (ftfont_has_char): Adjusted for the format change of font-entity.
8693 (ftfont_encode_char, ftfont_text_extents): Likewise.
8694
8695 * ftxfont.c (ftxfont_list): Return a list, not vector.
8696 (ftxfont_open): Return a font-object. Adjusted for the change of
8697 struct font. Get underline_thickness and underline_position from
8698 font property. Don't update dpyinfo->smallest_font_height and
8699 dpyinfo->smallest_char_width.
8700 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
8701 (ftxfont_draw): Adjusted for the change of struct font.
8702
8703 * image.c (image_ascent): Don't include "charset.h". Include
8704 "character.h" and "font.h".
8705
8706 * lisp.h (enum pvec_type): New member PREV_FONT.
8707 (Fassoc_string): EXFUN it.
8708
8709 * print.c: Include font.h.
8710 (print_object): Handle font-related objects.
8711
8712 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
8713 conditionals. Don't check enable_font_backend. Delete all codes
8714 used only when USE_FONT_BACKEND is not defined.
8715 (handle_auto_composed_prop): Do nothing if it->f is not on a
8716 window system. Check how many following characters can be
8717 displayed by the same font.
8718 (calc_pixel_width_or_height): Type of the 4th arg is changed to
8719 'struct font *'.
8720 (get_char_face_and_encoding): Assign the whole encoding task to
8721 the `encode-char' method of a font driver.
8722 (fill_composite_glyph_string): Adjusted for the change of `struct
8723 face' and `struct glyph_string'.
8724 (fill_glyph_string): Likewise.
8725 (get_per_char_metric): Arguments changed.
8726 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
8727 and `struct glyph_string'.
8728 (produce_stretch_glyph, calc_line_height_property)
8729 (x_produce_glyphs): Likewise.
8730
8731 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
8732 conditionals. Don't check enable_font_backend. Delete all codes
8733 used only when USE_FONT_BACKEND is not defined. Use
8734 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
8735 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
8736 (Qp): Extern them.
8737 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
8738 Deleted.
8739 (struct font_name): Deleted.
8740 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
8741 (compare_fonts_by_sort_order): New function.
8742 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
8743 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
8744 Deleted.
8745 (Fx_family_fonts): Use font_list_entities, and sort fonts by
8746 compare_fonts_by_sort_order.
8747 (Fx_font_family_list): Call Ffont_family_list.
8748 (face_numeric_value, face_numeric_weight, face_numeric_slant)
8749 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
8750 (face_symbolic_slant, face_symbolic_swidth)
8751 (split_font_name_into_vector, build_font_name_from_vector)
8752 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
8753 (font_rescale_ratio, split_font_name, build_font_name)
8754 (free_font_names, sort_fonts, x_face_list_fonts)
8755 (face_font_available_p, sorted_font_list, cmp_font_names)
8756 (font_list_1, concat_font_list, font_list, remove_duplicates):
8757 Deleted.
8758 (Fx_list_fonts): Use Ffont_list.
8759 (LFACE_AVGWIDTH): Deleted.
8760 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
8761 by FONTP.
8762 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
8763 (set_lface_from_font_name): Delete it.
8764 (set_lface_from_font): Renamed from
8765 set_lface_from_font_and_fontset. Caller changed. Don't set
8766 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
8767 for face.
8768 (merge_face_vectors): Copy font-spec if necessary.
8769 Clear properties of the font-spec if necessary.
8770 (merge_face_ref): Clear properties of the font-spec if necessary.
8771 (Finternal_set_lisp_face_attribute): Likewise.
8772 (set_font_frame_param): Use font_load_for_lface to load a
8773 font-object, and call Fmodify_frame_parameters with it.
8774 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
8775 font name by Ffont_xlfd_name.
8776 (Finternal_lisp_face_attribute_values): Don't check QCweight,
8777 QCslant, and QCwidth.
8778 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
8779 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
8780 Compare fonts by EQ.
8781 (lookup_non_ascii_face): Deleted.
8782 (face_for_font): The 2nd argument changed.
8783 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
8784 Check atomic font properties by case insensitive.
8785 (realize_non_ascii_face): Set face->overstrike correctly.
8786 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
8787 (dump_realized_face): Get font name from
8788 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
8789
8790 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
8791 conditionals. Don't check enable_font_backend. Delete all codes
8792 used only when USE_FONT_BACKEND is not defined.
8793 (xic_create_xfontset): Original code deleted and renamed from
8794 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
8795 (x_make_gc): Don't set GCFont in GCs.
8796 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
8797 opened by "fixed".
8798 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
8799 find_ccl_program_func, query_font_func, set_frame_fontset_func,
8800 get_font_repertory_func.
8801
8802 * xfont.c: Include <stdlib.h> and "ccl.h".
8803 (struct xfont_info): New structure.
8804 (xfont_query_font): Deleted.
8805 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
8806 moved from xterm.c.
8807 (xfont_driver): Adjusted for the change of struct font_driver.
8808 (compare_font_names): New function.
8809 (xfont_list_pattern): Sort font names case insensitively. Make
8810 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
8811 (xfont_list): Return a list, not vector.
8812 (xfont_match): If the font doesn't have QCname property, generate
8813 a name from the other font properties.
8814 (xfont_open): Return a font-object. Adjusted for the change of
8815 struct font. Get underline_thickness and underline_position from
8816 font property. Don't update dpyinfo->smallest_font_height and
8817 dpyinfo->smallest_char_width.
8818 (xfont_close): Don't free struct font.
8819 (xfont_prepare_face): Adjusted for the change of struct font.
8820 (xfont_done_face): Deleted.
8821 (xfont_has_char): Adjusted for the change of struct font.
8822 (xfont_encode_char, xfont_draw): Likewise.
8823 (xfont_check): New function.
8824
8825 * xftfont.c (xftfont_list): Adjusted for the change of `list'
8826 callback function.
8827 (xftfont_match): Adjusted for the format change of font-entity.
8828 (xftfont_open): Adjusted for the format change of font-entity and
8829 font-object. Adjusted for the change of struct font. Return a
8830 font-object. Don't update dpyinfo->smallest_font_height and
8831 dpyinfo->smallest_char_width.
8832 (xftfont_close): Block input while calling XftFontClose.
8833 (xftfont_prepare_face): Don't block input while calling
8834 xftfont_get_colors. Adjusted for the change of struct font.
8835 (xftfont_shape): Return value of error case fixed.
8836
8837 * xrdb.c (x_load_resources): Don't setup a fontset resource.
8838
8839 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
8840 conditionals.
8841 (FONT_WIDTH): Return (f)->max_width.
8842 (struct x_display_info): Delete member `font'.
8843 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
8844 (x_find_ccl_program, x_get_font_repertory): Delete externs.
8845 (struct x_output): Change type of `font' to `struct font *'.
8846
8847 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
8848 conditionals. Don't check enable_font_backend. Delete all codes
8849 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
8850 (x_per_char_metric, x_encode_char): Deleted.
8851 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
8852 (x_compute_glyph_string_overhangs): Adjusted for the change of
8853 `struct face'.
8854 (x_draw_glyph_string_foreground)
8855 (x_draw_composite_glyph_string_foreground): Likewise.
8856 (x_draw_glyph_string): Likewise. Use font->underline_position and
8857 font->underline_thickness.
8858 (x_new_font): Renamed from x_new_fontset2.
8859 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
8860 (x_check_font): Call `check' method of a font driver.
8861 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
8862 (x_query_font, x_get_font_repertory): Deleted.
8863 (x_find_ccl_program): Renamed and moved to xfont.c.
8864 (x_redisplay_interface): Adjusted for the change of `struct
8865 redisplay_interface'.
8866
8867 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
8868 conditionals. Don't check enable_font_backend. Delete all codes
8869 used only when USE_FONT_BACKEND is not defined. Surround non-used
8870 code by "#ifdef OLD_FONT" and "endif".
8871 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
8872
8873 * w32font.h (struct w32font_info): New member.
8874 (FONT_COMPAT): New macro.
8875 (w32font_open_internal): Prototype adjusted.
8876
8877 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
8878 OLD_FONT" and "endif".
8879
8880 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
8881 conditionals. Don't check enable_font_backend. Delete all codes
8882 used only when USE_FONT_BACKEND is not defined.
8883 (w32font_open): Return a font-object. Make a font-object by
8884 font_make_object. Adjusted for the change of struct w32font_info.
8885 (w32font_close): Don't free struct font. Adjusted for the change
8886 of struct w32font_info.
8887 (w32font_encode_char, w32font_text_extents, w32font_draw):
8888 Adjusted for the change of struct w32font_info.
8889 (w32font_draw): Likewise.
8890 (w32font_list_internal): Return a list, not vector.
8891 (w32font_open_internal): Change the 4th arg to font-object.
8892 Adjusted for the change of struct w32font_info and font-object format.
8893 (add_font_name_to_list): Don't downcase names.
8894 (w32_enumfont_pattern_entity): Make a font-entity by
8895 font_make_entity. Adjusted for the format change of font-entity.
8896 Use FONT_SET_STYLE to set a style-related font property. If a
8897 font is scalable, set avgwidth property to 0. Set font-entity
8898 property by font_put_extra.
8899 (font_matches_spec): Adjusted for the format change of font-entity.
8900 (w32_weight_table, w32_decode_weight): New variables.
8901 (w32_encode_weight): New function.
8902 (fill_in_logfont): Adjusted for the format change of font-spec.
8903 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
8904 weight value.
8905 (w32font_driver): Adjusted for the change of struct font_driver.
8906
8907 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
8908 conditionals. Don't check enable_font_backend. Surround non-used
8909 code by "#ifdef OLD_FONT" and "endif".
8910 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
8911 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
8912
8913 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
8914 conditionals. Don't check enable_font_backend. Delete all codes
8915 used only when USE_FONT_BACKEND is not defined. Surround non-used
8916 code by "#ifdef OLD_FONT" and "endif".
8917
8918 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
8919 (uniscribe_open): Return value changed to font-object.
8920 Adjusted for the format change of font-object.
8921 (uniscribe_otf_capability): Adjusted for the change of struct font.
8922 (add_opentype_font_name_to_list): Don't downcase names.
8923 (uniscribe_font_driver): Adjusted for the change of struct
8924 font_driver.
8925
89262008-05-13 Chong Yidong <cyd@stupidchicken.com>
8927
8928 * dispnew.c (update_frame_1): Check if tty output is still valid
8929 before flushing it.
8930
89312008-05-13 Jan Djärv <jan.h.d@swipnet.se>
8932
8933 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
8934 to Gtk+ menus.
8935
89362008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
8937
8938 * dired.c (file_name_completion): Tweak the code so as to always do it
8939 in a single pass. Tighten the scope of some variables.
8940
8941 * dired.c (Qdefault_directory): New var.
8942 (file_name_completion): Use it instead of Fexpand_file_name.
8943 (syms_of_dired): Initialize it.
8944
89452008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
8946
8947 * fileio.c (double_dollars): Remove dead code.
8948
89492008-05-10 Eli Zaretskii <eliz@gnu.org>
8950
8951 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
8952 Mention w32-get-true-file-attributes in doc string.
8953
8954 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
8955
89562008-05-09 Glenn Morris <rgm@gnu.org>
8957
8958 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
8959 2008-04-23.
8960
89612008-05-09 Eli Zaretskii <eliz@gnu.org>
8962
8963 Support for reporting owner and group of each file on MS-Windows:
8964 * dired.c (stat_uname, stat_gname): New functions, with special
8965 implementation for w32.
8966 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
8967
8968 * w32.c: Rename the_passwd_* to dflt_passwd_*.
8969 (dflt_group_name): New static variable.
8970 (dflt_group): Rename from the_group.
8971 (init_user_info): Init dflt_group fields. Get user's group name
8972 from LookupAccountSid.
8973 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
8974 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
8975 New initialization states.
8976 (globals_of_w32): Initialize them to zero. Initialize the default
8977 group name to "None".
8978 (GetFileSecurity_Name): New global var, the name of the function
8979 to call for GetFileSecurity.
8980 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
8981 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
8982 (get_file_security, get_security_descriptor_owner)
8983 (get_security_descriptor_group, is_valid_sid)
8984 (get_file_security_desc, get_rid, get_name_and_id)
8985 (get_file_owner_and_group): New functions.
8986 (stat): Use get_file_security_desc and get_file_owner_and_group to
8987 report the owner and primary group of each file. Don't ignore the
8988 high 32 bits of file's size, now that st_size is 64-bit wide.
8989 Fix test when to get true file attributes.
8990 (init_user_info): Use get_rid instead of equivalent inline code.
8991 (fstat): Don't ignore the high 32 bits of file's size.
8992
89932008-05-09 Chong Yidong <cyd@stupidchicken.com>
8994
8995 * image.c (png_load): Use correct bit-depth for setting background
8996 color.
8997
89982008-05-08 Eli Zaretskii <eliz@gnu.org>
8999
9000 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
9001 epa-hook.elc.
9002
90032008-05-08 Juanma Barranquero <lekktu@gmail.com>
9004
9005 * font.c (Ffont_match_p): Don't use `iff' in docstring.
9006
90072008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
9008
9009 * macfns.c (Fx_create_frame): Make a copy of frame parameters
9010 because the original parameters are in pure storage now.
9011 (mac_window): Remove unused params. Update callers.
9012
90132008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
9014
9015 * lread.c (substitute_object_recurse): Use lower-level primitives.
9016 Don't signal errors when traversing sub-char-tables.
9017 Don't loop over all the possible characters when traversing char-tables.
9018
9019 * print.c (print_preprocess): Add sub-char-tables to the print-table,
9020 just like we do in print.c.
9021
90222008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
9023
9024 * minibuf.c (Ftry_completion): Remove code left over from when we used
9025 scmp instead of Fcompare_strings.
9026
90272008-05-04 Juanma Barranquero <lekktu@gmail.com>
9028
9029 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
9030
90312008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9032
9033 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
9034 Create bitmap context in native byte order.
9035
9036 * macterm.c (XDrawLine)
9037 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
9038 context in native byte order.
9039
90402008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9041
9042 * config.in: Regenerate.
9043
9044 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
9045 New definitions for Image I/O support.
9046 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
9047 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
9048 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
9049 (mac_data_provider_release_data, image_load_image_io)
9050 [USE_MAC_IMAGE_IO]: New functions.
9051 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
9052 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
9053 (init_image_func_pointer) [MAC_OSX]: Remove function.
9054 (image_load_quartz2d) [MAC_OSX]: Check availability of
9055 CGImageCreateWithPNGDataProvider at compile time.
9056 Use lowercase `false' for boolean constant.
9057 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
9058 Use image_load_image_io.
9059 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
9060 Don't check MyCGImageCreateWithPNGDataProvider.
9061 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
9062 Don't call init_image_func_pointer.
9063
9064 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
9065
9066 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
9067 Make variable non-static.
9068 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
9069 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
9070
9071 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
9072 (RED_FROM_ULONG): Mask off higher bits.
9073 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
9074
9075 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
9076 Include AvailabilityMacros.h.
9077 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
9078 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
9079
90802008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
9081
9082 * chartab.c (Fset_char_table_range): If range is t, really set all
9083 chars to that value.
9084
90852008-05-03 Eli Zaretskii <eliz@gnu.org>
9086
9087 * dired.c (Ffile_attributes): Don't allow the device number become
9088 negative.
9089
90902008-05-02 Daiki Ueno <ueno@unixuser.org>
9091
9092 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
9093
90942008-05-02 Juri Linkov <juri@jurta.org>
9095
9096 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
9097 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
9098 DEFAULT argument as a list of default values in docstrings.
9099
91002008-05-01 Chong Yidong <cyd@stupidchicken.com>
9101
9102 * puresize.h (BASE_PURESIZE): Increase to 1210000.
9103
91042008-05-01 Martin Rudalics <rudalics@gmx.at>
9105
9106 * dispnew.c (change_frame_size_1): Preserve small windows when
9107 shrinking frames by calling set_window_height|width with third
9108 arg 2.
9109
9110 * window.h (struct window): Replace field too_small_ok by field
9111 resize_proportionally.
9112
9113 * window.c (make_window): Initialize resize_proportionally.
9114 (enlarge_window): Temporarily set resize_proportionally to make
9115 sure that shrink_windows does scale the window proportionally.
9116 (shrink_windows): When window has resize_proportionally set try
9117 to shrink it proportionally by stealing from other windows.
9118 (struct saved_window, Fset_window_configuration)
9119 (compare_window_configurations): Handle resize_proportionally.
9120 (WINDOW_TOTAL_SIZE): New macro.
9121 (window_min_size, shrink_windows, size_window): Use it.
9122 (check_min_window_sizes): Remove. Invalid values of
9123 window-min-height|width are handled by window_min_size_2 now.
9124 (size_window, Fsplit_window, enlarge_window)
9125 (adjust_window_trailing_edge, grow_mini_window): Don't call
9126 check_min_window_sizes.
9127 (window_min_size_2, window_min_size_1, window_min_size):
9128 New argument safe_p for retrieving "safe" minimum sizes.
9129 (Fdisplay_buffer, Fsplit_window, enlarge_window)
9130 (adjust_window_trailing_edge, grow_mini_window):
9131 Adjust arguments of window_min_size... functions.
9132 (shrink_windows): Argument min_size removed. New argument
9133 safe_p allows shrinking windows to their safe minimum sizes.
9134 Calculate minimum size and decide whether a window shall be
9135 deleted for each window individually.
9136 (size_window): When nodelete_p equals 2, tell shrink_windows to
9137 delete windows only if their new minimum size is no more safe.
9138 (shrink_window_lowest_first): Call window_min_size_1 to make
9139 sure to preserve modeline of bottom-most window when resizing
9140 the minibuffer.
9141 (Fset_window_configuration, Fcurrent_window_configuration)
9142 (compare_window_configurations): Do not handle
9143 window-min-height|width any more.
9144 (syms_of_window): Clarify window-min-height|width doc-strings.
9145
91462008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
9147
9148 * dired.c (file_name_completion): Fix up the encoding/decoding issue
9149 some more. Copy some of the code from Ftry_completions.
9150 Remove special case code that dates back to initial revision when the
9151 slash was only added when necessary and that can't trigger nowadays.
9152
91532008-04-27 Kenichi Handa <handa@m17n.org>
9154
9155 * font.c (font_prop_validate): Signal `error' instead of `font'.
9156
91572008-04-29 Jason Rumney <jasonr@gnu.org>
9158
9159 * w32fns.c (Fw32_battery_status): New defun.
9160 (syms_of_w32fns): Defsubr it.
9161
91622008-04-28 Andreas Schwab <schwab@suse.de>
9163
9164 * dired.c (file_name_completion): Fix another mixing of encoded
9165 and decoded names.
9166
91672008-04-28 Juanma Barranquero <lekktu@gmail.com>
9168
9169 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
9170
91712008-04-27 Juanma Barranquero <lekktu@gmail.com>
9172
9173 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
9174
91752008-04-27 Andreas Schwab <schwab@suse.de>
9176
9177 * dired.c (file_name_completion): Fix inappropriate mixing of
9178 encoded and decoded names.
9179
9180 * xterm.c (XTread_socket): Fix use of uninitialized variable.
9181
9182 * puresize.h (BASE_PURESIZE): Increase to 1200000.
9183
91842008-04-26 Eli Zaretskii <eliz@gnu.org>
9185
9186 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
9187 2008-03-31, it's not needed anymore with `struct stat' definition
9188 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
9189 for the same reasons.
9190
91912008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
9192
9193 * m/sparc.h: Additional redefinitions for GNU/Linux.
9194
91952008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9196
9197 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
9198 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
9199 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
9200 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
9201 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
9202 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
9203 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
9204 Likewise.
9205
9206 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
9207 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
9208 (mac_ax_number_of_characters): Add externs.
9209 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
9210 [USE_MAC_TSM]: Likewise.
9211 (mac_handle_text_input_event) [MAC_OSX]:
9212 Handle kEventTextInputOffsetToPos for no active input area case.
9213 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
9214 (mac_handle_document_access_event)
9215 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
9216 (install_application_handler) [MAC_OSX]: Register handlers for
9217 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
9218 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
9219 Register mac_handle_document_access_event.
9220
9221 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
9222 Make functions non-static.
9223
92242008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
9225
9226 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
9227 (read_file_name_completion_ignore_case, insert_default_directory)
9228 (Qdefault_directory): Move to minibuffer.el.
9229 (Fread_file_name): Call the new `read-file-name' instead.
9230
92312008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9232
9233 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
9234 Make function non-static.
9235 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
9236 Remove function.
9237 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
9238 Move to mactoolbox.c.
9239 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
9240
9241 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
9242 (mac_rect_make): New macro.
9243
9244 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
9245 instead of float.
9246 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
9247 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
9248 (XSetBackground) [USE_CG_DRAWING]: Likewise.
9249 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
9250 CGRectMake.
9251 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
9252 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
9253 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
9254 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
9255 instead of WindowRef in argument type.
9256 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
9257 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
9258 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
9259 instead of DISPLAY. All uses changed.
9260 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
9261 (x_calc_absolute_position): Simplify so as not to use
9262 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
9263
9264 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
9265 instead of WindowRef in argument type.
9266 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
9267 [TARGET_API_MAC_CARBON]: Remove externs.
9268 (create_apple_event, mac_event_parameters_to_lisp)
9269 [TARGET_API_MAC_CARBON]: Add externs.
9270
9271 * mactoolbox.c (Vmac_ts_script_language_on_focus)
9272 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
9273 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
9274 is clicked.
9275 (x_activate_menubar): Remove extern for saved_menu_event_location.
9276 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
9277 Move from mac.c.
9278
92792008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9280
9281 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
9282 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
9283
92842008-04-23 Jason Rumney <jasonr@gnu.org>
9285
9286 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
9287 attributes only for local files.
9288
9289 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
9290 default to Qlocal.
9291
92922008-04-22 Juri Linkov <juri@jurta.org>
9293
9294 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
9295 read-buffer-to-switch instead of using the letter "B".
9296
92972008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
9298
9299 * fileio.c (Qdefault_directory): New variable.
9300 (Fread_file_name): Use it to pass `dir' to the completion functions.
9301
93022008-04-20 Chong Yidong <cyd@stupidchicken.com>
9303
9304 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
9305
93062008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
9307
9308 * keyboard.c (Vpre_help_message): Remove.
9309 (show_help_echo): Remove default C code.
9310
9311 * dired.c (directory_files_internal, file_name_completion):
9312 Only call ENCODE_FILE if the string is indeed decoded.
9313
93142008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
9315
9316 * Makefile.in (TOOLKIT_DEFINES): Remove.
9317 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
9318
93192008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9320
9321 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
9322 (mactoolbox.o): New target.
9323
9324 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
9325 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
9326
9327 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
9328 Use mac_set_frame_window_background instead of XSetWindowBackground.
9329 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
9330 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
9331 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
9332 instead of SetWindowTitleWithCFString.
9333 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
9334 Move function to mactoolbox.c.
9335 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
9336 Use mac_set_window_modified instead of SetWindowModified.
9337 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
9338 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
9339 (Fx_focus_frame): Use mac_front_non_floating_window instead of
9340 FrontNonFloatingWindow. Use mac_activate_window instead of
9341 ActivateWindow. Use mac_active_non_floating_window instead of
9342 ActiveNonFloatingWindow.
9343 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
9344 Use mac_show_hourglass and mac_hide_hourglass.
9345 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
9346 instead of GetGlobalMouse.
9347 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
9348 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
9349 Use mac_bring_window_to_front instead of BringToFront.
9350 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
9351 mactoolbox.c.
9352 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
9353 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
9354 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
9355 mactoolbox.c.
9356
9357 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
9358 (XtPointer): Move typedef from macmenu.c.
9359 (enum button_type): Move enum from macmenu.c.
9360 (widget_value): Move typedef from macmenu.c.
9361 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
9362 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
9363 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
9364 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
9365 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
9366 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
9367 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
9368 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
9369 (Selection): Move typedef from macselect.c.
9370 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
9371 macterm.c.
9372 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
9373 (mac_is_window_collapsed, mac_bring_window_to_front)
9374 (mac_send_window_behind, mac_hide_window, mac_show_window)
9375 (mac_collapse_window, mac_front_non_floating_window)
9376 (mac_active_non_floating_window, mac_activate_window)
9377 (mac_move_window_structure, mac_move_window, mac_size_window)
9378 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
9379
9380 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
9381 (enum mac_menu_kind): Move enum to mactoolbox.c.
9382 (min_menu_id): Move variable to mactoolbox.c.
9383 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
9384 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
9385 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
9386 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
9387 [TARGET_API_MAC_CARBON]: Likewise.
9388 (XtPointer): Move typedef to macgui.h.
9389 (enum button_type): Move enum to macgui.h.
9390 (widget_value): Move typedef to macgui.h.
9391 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
9392 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
9393 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
9394 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
9395 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
9396 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
9397 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
9398 (popup_activated_flag): Make variable non-static.
9399 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
9400 (add_menu_item, fill_menu, dispose_menus):
9401 Move functions to mactoolbox.c.
9402 (restore_show_help_function, menu_target_item_handler)
9403 (install_menu_target_item_handler, mac_handle_dialog_event)
9404 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
9405 [TARGET_API_MAC_CARBON]: Likewise.
9406 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
9407 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
9408 (find_and_call_menu_selection, name_is_separator): Make function
9409 non-static.
9410 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
9411 to mactoolbox.c.
9412 (set_frame_menubar): Don't call install_menu_quit_handler.
9413 (menu_item_selection): New variable.
9414 (mac_menu_show): Use create_and_show_popup_menu.
9415 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
9416 selection but set variable menu_item_selection. All uses changed.
9417 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
9418 Call install_menu_quit_handler. Move to mactoolbox.c.
9419
9420 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
9421 (Selection): Move typedef to macgui.h.
9422 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
9423 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
9424 Make variables non-static.
9425 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
9426 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
9427 Make functions non-static.
9428 (Vmac_service_selection) [MAC_OSX]: Likewise.
9429 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
9430 (mac_valid_selection_target_p, mac_clear_selection)
9431 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
9432 (mac_put_selection_value, mac_selection_has_target_p)
9433 (mac_get_selection_value, mac_get_selection_target_list)
9434 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
9435 Move functions to mactoolbox.c.
9436 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
9437 Likewise.
9438 (copy_scrap_flavor_data, mac_handle_service_event)
9439 (install_service_handler) [MAC_OSX]: Likewise.
9440 (syms_of_macselect) <Vmac_dnd_known_types>:
9441 Use mac_dnd_default_known_types.
9442
9443 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
9444 Move to mactoolbox.c.
9445 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
9446 (Fx_selection_owner_p): Add EXFUN.
9447 (install_window_handler, remove_window_handler, XSetWindowBackground):
9448 Remove externs.
9449 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
9450 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
9451 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
9452 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
9453 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
9454 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
9455 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
9456 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
9457 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
9458 (create_and_show_popup_menu, mac_get_selection_from_symbol)
9459 (mac_valid_selection_target_p, mac_clear_selection)
9460 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
9461 (mac_put_selection_value, mac_selection_has_target_p)
9462 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
9463 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
9464 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
9465 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
9466 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
9467 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
9468 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
9469 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
9470 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
9471
9472 * mactoolbox.c: New file.
9473
94742008-04-18 Jason Rumney <jasonr@gnu.org>
9475
9476 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
9477
94782008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
9479
9480 * character.c (Fmultibyte_char_to_unibyte):
9481 Return latin1 chars unchanged.
9482
9483 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
9484 relocated if it points to `name'.
9485
94862008-04-17 Kenichi Handa <handa@m17n.org>
9487
9488 * data.c (Faset): Allow setting a multibyte character in an
9489 ASCII-only unibyte string.
9490
9491 * lisp.h (STRING_SET_MULTIBYTE): New macro.
9492
94932008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
9494
9495 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
9496 done in config.h.
9497
94982008-04-16 Juanma Barranquero <lekktu@gmail.com>
9499
9500 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
9501 (Fchar_direction): Add usage in the docstring.
9502
95032008-04-15 Chong Yidong <cyd@stupidchicken.com>
9504
9505 * keyboard.c (read_key_sequence): Remove always-true checks.
9506
95072008-04-14 Jason Rumney <jasonr@gnu.org>
9508
9509 * w32font.c (w32font_open_internal): Set max_bounds.descent in
9510 compatibility struct, for better underline positioning.
9511
95122008-04-13 David Hansen <david.hansen@gmx.net>
9513
9514 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
9515 string.
9516
95172008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
9518
9519 * m/hp800.h (XUINT, XSET): Remove.
9520
95212008-04-12 Juanma Barranquero <lekktu@gmail.com>
9522
9523 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
9524 previous change.
9525
95262008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
9527
9528 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
9529 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
9530
95312008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
9532
9533 * keymap.h (map_keymap_canonical): Declare.
9534 * xmenu.c (single_keymap_panes): Use it.
9535
95362008-04-11 Glenn Morris <rgm@gnu.org>
9537
9538 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
9539 set the target's value to that of the alias.
9540
95412008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
9542
9543 * term.c (set_tty_color_mode): Left over typo.
9544
95452008-04-10 Michael Albinus <michael.albinus@gmx.de>
9546
9547 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
9548 only after check for file name handler functions. Signal, when
9549 native functionality is not supported.
9550 (syms_of_fileio): Declare it unconditionally.
9551
95522008-04-10 Jason Rumney <jasonr@gnu.org>
9553
9554 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
9555 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
9556
9557 * w32.c (logon_network_drive): Also logon to remote drives that
9558 are mapped to drive letters.
9559
95602008-04-10 Glenn Morris <rgm@gnu.org>
9561
9562 * xdisp.c (truncate-partial-width-windows): Doc fix.
9563
95642008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
9565
9566 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
9567 Move functions to minibuffer.el.
9568 (syms_of_fileio): Don't declare them.
9569
95702008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
9571
9572 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
9573 (syms_of_minibuf): Remove its initialization.
9574
9575 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
9576
95772008-04-09 Juanma Barranquero <lekktu@gmail.com>
9578
9579 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
9580
95812008-04-09 Jason Rumney <jasonr@gnu.org>
9582
9583 * makefile.w32-in (distclean): Delete makefile too.
9584 (maintainer-clean): New target.
9585
9586 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
9587
9588 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
9589 for new font backend and composite cases.
9590
95912008-04-09 Jan Djärv <jan.h.d@swipnet.se>
9592
9593 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
9594 Most of the code moved to run_timers.
9595 (do_pending_atimers): Call run_timers.
9596 (run_timers): New function.
9597
9598 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
9599 run atimers.
9600
9601 * process.c (wait_reading_process_output): The same as above.
9602
96032008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
9604
9605 * minibuf.c (last_exact_completion): Remove variable.
9606 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
9607 (complete_and_exit_1, complete_and_exit_2)
9608 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
9609 (Fdisplay_completion_list, display_completion_list_1)
9610 (Fminibuffer_completion_help, Fself_insert_and_exit)
9611 (Fexit_minibuffer, Fminibuffer_message): Move functions to
9612 minibuffer.el.
9613 (syms_of_minibuf): Remove corresponding initializations.
9614
9615 * keyboard.c (Qdeactivate_mark): New var.
9616 (command_loop_1): Use it to call `deactivate-mark'.
9617 (syms_of_keyboard): Initialize it.
9618
9619 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
9620 to another frame.
9621 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
9622 Don't call set_tty_color_mode.
9623 (store_frame_param): Reset previous_frame rather than call
9624 set_tty_color_mode.
9625 * term.c (set_tty_color_mode): Rewrite.
9626 * dispextern.h (set_tty_color_mode): New type.
9627 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
9628
96292008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
9630
9631 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
9632 for generic chars, which do not exist any more in emacs-unicode.
9633
96342008-04-08 Michael Albinus <michael.albinus@gmx.de>
9635
9636 * coding.c (detect_coding_emacs_mule)
9637 (Ffind_operation_coding_system): Fix typo.
9638
96392008-04-08 Jason Rumney <jasonr@gnu.org>
9640
9641 * w32uniscribe.c (SNAME): Extract only symbol name.
9642
9643 * w32font.h (struct w32_metric_cache): New struct.
9644 (w32font_info): Use it.
9645 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
9646 (CACHE_BLOCKSIZE): New constants.
9647
9648 * w32font.c (Qja, Qko, Qzh): New symbols.
9649 (syms_of_w32font): Initialise them.
9650 (font_matches_spec): Use them to filter by language.
9651 (recompute_cached_metrics): Remove function.
9652 (compute_metrics, clear_cached_metrics): New functions.
9653 (w32font_encode_char): Use them to manage metric cache.
9654 (w32font_text_extents): Cache metrics for all glyphs on demand.
9655 Delay converting glyph indices to WORD until needed.
9656 (w32font_open_internal): Initialize metric cache to empty.
9657 (registry_to_w32_charset): Charset should always be a symbol.
9658 (fill_in_logfont, list_all_matching_fonts): Family should
9659 always be a symbol.
9660
96612008-04-06 Jason Rumney <jasonr@gnu.org>
9662
9663 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
9664 Give up if glyph indices not supported. Use uniscribe obtained
9665 ABC widths for individual metrics. Map glyph clusters back to
9666 characters using fClusterStart flag. Return number of glyphs
9667 produced, not chars processed.
9668 (uniscribe_shape): Map char at FROM to current glyph.
9669
96702008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9671
9672 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
9673 Use SetMenuItemHierarchicalMenu.
9674
96752008-04-05 Jason Rumney <jasonr@gnu.org>
9676
9677 * image.c (pbm_load): Allow color values up to 65535.
9678 Throw an error if max_color_idx is outside the supported range.
9679 Report an error when image size is invalid.
9680 Read two bytes at a time when raw images have max_color_idx above 255.
9681
96822008-04-05 Eli Zaretskii <eliz@gnu.org>
9683
9684 * w32.c (readdir): If FindFirstFile/FindNextFile return in
9685 cFileName a file name that includes `?' characters, use the 8+3
9686 alias in cAlternateFileName instead.
9687
96882008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
9689
9690 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
9691 append "CCL: Quitted" when the CCL program is quitted.
9692 (setup_ccl_program): Initialize ccl->quit_silently to zero.
9693
9694 * ccl.h (struct ccl_program): New member quit_silently.
9695
96962008-04-05 Chong Yidong <cyd@stupidchicken.com>
9697
9698 * search.c (compile_pattern_1): Treat non-nil and non-string of
9699 search-spaces-regexp as nil.
9700
9701 * minibuf.c (Fassoc_string): Tweak docstring.
9702
97032008-04-05 Eli Zaretskii <eliz@gnu.org>
9704
9705 * dired.c (Ffile_attributes): Support inode numbers wider than 32
9706 bits. Remove ugly WINDOWSNT-specific kludge introduced on
9707 2008-03-14 to force inode be positive.
9708
9709 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
9710 _S_* ones, since we now use our own sys/stat.h.
9711 (stat, fstat): Don't mangle the inode number.
9712 (init_user_info): Don't restrict UID and GID to 0-60000 range.
9713
97142008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
9715
9716 * frame.h (struct frame): Give one more bit to `visible' since we use
9717 values larger than 1 to indicate obscured frames on ttys.
9718
9719 * keymap.c (Qkeymap_canonicalize): New var.
9720 (Fmap_keymap_internal): New fun.
9721 (describe_map): Use keymap-canonicalize.
9722
9723 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
9724 (Fundo_boundary): Set them.
9725 (syms_of_undo): Initialize them.
9726 (record_point): Use them instead of last_point_position*.
9727 (last_undo_buffer): Change type.
9728
97292008-04-04 Jason Rumney <jasonr@gnu.org>
9730
9731 * w32font.c (w32font_text_extents): Use font's ascent and descent.
9732 (recompute_cached_metrics): Don't set ascent and descent per char.
9733
9734 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
9735 (uniscribe_check_otf): Add GC protection before consing.
9736 Rearrange loop for counting features.
9737
97382008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
9739
9740 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
9741 buffer with byte-size of source buffer.
9742
97432008-04-03 Chong Yidong <cyd@stupidchicken.com>
9744
9745 * callint.c (Fcall_interactively): Handle temporary region even
9746 when shift-select-mode is off.
9747
97482008-04-03 Jason Rumney <jasonr@gnu.org>
9749
9750 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
9751
97522008-04-03 Kenichi Handa <handa@m17n.org>
9753
9754 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
9755 (CATEGORY_MASK_UTF_16): Likewise.
9756 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
9757 binary file.
9758 (detect_coding): Add null-byte detection for a binary file.
9759 (detect_coding_system): Likewise.
9760
97612008-04-03 Jason Rumney <jasonr@gnu.org>
9762
9763 * w32uniscribe.c: New file.
9764
9765 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
9766
9767 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
9768
9769 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
9770 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
9771 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
9772 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
9773 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
9774 (Qphonetic): New symbols.
9775 (syms_of_w32font): Initialize them.
9776 (font_supported_scripts): Use them.
9777 (w32font_list_family): List all charsets.
9778 (w32font_text_extents, recompute_cached_metrics): Fix metric
9779 calculations.
9780 (w32_enumfont_pattern_entity): Make full_type a DWORD.
9781 Give opentype fonts their own format.
9782 (font_matches_spec): New arguments backend and logfont.
9783 Handle :otf spec for uniscribe backend.
9784 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
9785 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
9786
9787 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
9788 font backend.
9789 (globals_of_w32fns): Initialize uniscribe font backend.
9790
9791 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
9792 dependencies.
9793 (w32uniscribe.$(O)): New file to build.
9794 (FONT_OBJ): Include w32uniscribe.$(O).
9795 (LIBS): Add uniscribe libraries.
9796
9797 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
9798
97992008-04-02 Chong Yidong <cyd@stupidchicken.com>
9800
9801 * callint.c (Vshift_select_mode): New var.
9802 (Finteractive): Document new ^ spec.
9803 (Fcall_interactively): Call handle-shift-selection if the ^ spec
9804 is present.
9805
9806 * keyboard.c (Vthis_command_keys_shift_translated): New var.
9807 (command_loop_1): Avoid running the direct display versions of
9808 forward-char and backward-char if shift-selection may occur.
9809 (read_key_sequence): Set Vthis_command_keys_shift_translated if
9810 shift-translation takes place.
9811
9812 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
9813 avoid clobbering by define-minor-mode.
9814
9815 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
9816 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
9817
9818 * syntax.c (Fforward_word): Add ^ interactive spec.
9819
9820 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
9821 (Fscroll_right): Add ^ interactive spec.
9822
98232008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
9824
9825 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
9826
9827 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
9828
9829 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
9830
98312008-03-31 Juri Linkov <juri@jurta.org>
9832
9833 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
9834
98352008-03-30 Jan Djärv <jan.h.d@swipnet.se>
9836
9837 * gtkutil.c (xg_set_geometry): Fix indentation.
9838 (xg_resize_outer_widget): Remove.
9839 (x_wm_size_hint_off): Fix indentation.
9840 (xg_frame_set_char_size): Call flush_and_sync after
9841 gtk_window_resize.
9842 (x_wm_set_size_hint): Pass NULL as geometry window to
9843 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
9844 Add menu bar and tool bar height to base height.
9845 (xg_update_frame_menubar, free_frame_menubar)
9846 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
9847 (update_frame_tool_bar, free_frame_tool_bar):
9848 Change xg_resize_outer_widget to xg_frame_set_char_size.
9849
98502008-03-30 Michael Albinus <michael.albinus@gmx.de>
9851
9852 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
9853 (Fdbus_call_method): New parameter TIMEOUT.
9854 (dbus-send-signal): Optimize UNGCPRO call.
9855
98562008-03-29 Juri Linkov <juri@jurta.org>
9857
9858 * window.c (Fdisplay_buffer): Move call to
9859 Vsplit_window_preferred_function out of conditions that check
9860 if window is eligible for vertical splitting.
9861 When Vsplit_window_preferred_function is non-nil, call it and use
9862 its non-nil return value as window. Otherwise, continue doing
9863 vertical splitting using Fsplit_window with arg horflag=nil.
9864 (syms_of_window) <Vsplit_window_preferred_function>: Change the
9865 default value from `split-window' to nil.
9866
98672008-03-29 Juri Linkov <juri@jurta.org>
9868
9869 * callint.c (Fcall_interactively): Revert 2008-03-16 change
9870 for interactive code letters 'b' and 'B'.
9871
98722008-03-29 Eli Zaretskii <eliz@gnu.org>
9873
9874 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
9875 multibyte string.
9876
98772008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
9878
9879 * keyboard.c (pending_funcalls): New var.
9880 (timer_check): Run it.
9881 (syms_of_keyboard): Initialize it.
9882 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
9883 (Vdelete_terminal_functions): New vars.
9884 (syms_of_terminal): Initialize them.
9885 (Fdelete_terminal): Run delete-terminal-functions.
9886 * xdisp.c (safe_eval): Rewrite.
9887 (safe_call2): New fun.
9888 * frame.c (Qdelete_frame_functions): New var.
9889 (syms_of_frame): Initialize it.
9890 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
9891 * lisp.h (safe_call2, pending_funcalls): Declare.
9892
98932008-03-28 Andreas Schwab <schwab@suse.de>
9894
9895 * indent.c (Fmove_to_column): Move declaration before statements.
9896
98972008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
9898
9899 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
9900 (struct frame): Use bit fields for boolean vars.
9901
9902 * process.c (server_accept_connection): Simplify naming.
9903 (emacs_get_tty_pgrp): Use SDATA.
9904
9905 * coding.c (decode_coding_object): Fix last change.
9906
99072008-03-27 Jason Rumney <jasonr@gnu.org>
9908
9909 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
9910
99112008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
9912
9913 * charset.c (Fdefine_charset_internal): Change the way of
9914 registering charsets in Vcharset_order_list.
9915 (syms_of_charset): Make the charset `eight-bit' supplementary.
9916
99172008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
9918
9919 * regex.c (EXTEND_BUFFER): Change order of pointer addition
9920 operations, to avoid having the difference between pointers
9921 overflow.
9922
99232008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
9924
9925 * indent.c (check_display_width): New fun.
9926 (scan_for_column): Use it.
9927
9928 * data.c (syms_of_data): Mark most-positive-fixnum and
9929 most-negative-fixnum as constants.
9930
9931 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
9932
9933 * indent.c (scan_for_column): Extract from current_column_1.
9934 Merge with the same code from Fmove_to_column.
9935 (current_column_1, Fmove_to_column): Use it.
9936
99372008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
9938
9939 * keymap.c (map_keymap_internal): New fun.
9940 (map_keymap): Use it.
9941 (Fmap_keymap_internal): New fun.
9942 (Fmap_keymap): Remove left-out test from before make_save_value.
9943
9944 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
9945
9946 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
9947 Use XCAR/XCDR.
9948
9949 * process.h (struct Lisp_Process): Remove filter_multibyte.
9950 * process.c (QCfilter_multibyte): Remove.
9951 (setup_process_coding_systems): Don't use filter_multibyte.
9952 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
9953 (read_process_output): Don't adjust multibyteness to filter_multibyte.
9954 (Fset_process_filter_multibyte): Change the coding-system to
9955 approximate the previous behavior.
9956 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
9957 coding-system.
9958
9959 * coding.c (decode_coding_object): When not decoding into a buffer,
9960 obey the coding system's preference of (uni|multi)byte.
9961
99622008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
9963
9964 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
9965 every char is changed and has a different byte-length.
9966 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
9967 Fix int -> EMACS_INT.
9968
99692008-03-23 David Hansen <david.hansen@gmx.net>
9970
9971 * dbusbind.c (xd_read_message): Remove extra copying of message
9972 strings. Check for NULL `interface' or `member'.
9973
99742008-03-22 Eli Zaretskii <eliz@gnu.org>
9975
9976 * w32.c (readdir): If FindFirstFile/FindNextFile return in
9977 cFileName a file name that includes `?' characters, use the 8+3
9978 alias in cAlternateFileName instead.
9979
99802008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
9981
9982 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
9983
99842008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
9985
9986 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
9987 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
9988 work on current_buffer only instead (that was already the case
9989 for some of the code anyway).
9990 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
9991 (temp_set_point, temp_set_point_both): Use EMACS_INT.
9992 (SET_PT, SET_PT_BOTH): Adjust.
9993 * intervals.h (set_point, temp_set_point, set_point_both)
9994 (temp_set_point_both): Remove redundant declarations.
9995
99962008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
9997
9998 * fileio.c (Finsert_file_contents):
9999 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
10000 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
10001 when buffer != current_buffer anyway.
10002
100032008-03-20 Andreas Schwab <schwab@suse.de>
10004
10005 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
10006 as default.
10007
100082008-03-19 Jason Rumney <jasonr@gnu.org>
10009
10010 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
10011 (syms_of_w32fns): Initialize them.
10012 (HOURGLASS_ID): New constant.
10013 (x_window_to_frame): Don't check hourglass_window.
10014 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
10015 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
10016 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
10017 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
10018 Only change the cursor if hourglass is not active.
10019 (Fx_create_frame): Initialize frame's current_cursor.
10020 (hourglass_atimer): Remove.
10021 (hourglass_started): New function.
10022 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
10023 (show_hourglass): Adapt to w32, changing argument to frame.
10024
10025 * w32term.h (struct w32_output): Remove hourglass_window.
10026 Add current_cursor.
10027
10028 * eval.c (call_debugger, Fsignal):
10029 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
10030 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
10031 (Fexecute_extended_command, cancel_hourglass_unwind):
10032 * minibuf.c (read_minibuf):
10033 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
10034
100352008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
10036
10037 * window.c (run_funs): New fun.
10038 (run_window_configuration_change_hook): Use it to run the buffer-local
10039 and the global part of the hook.
10040
10041 * xdisp.c (format_mode_line_unwind_data): Add window argument.
10042 (unwind_format_mode_line): Restore selected window.
10043 (x_consider_frame_title, Fformat_mode_line): Set selected window.
10044
100452008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
10046
10047 * editfns.c (Fchar_equal): Check they are valid characters.
10048
10049 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
10050
100512008-03-17 Andreas Schwab <schwab@suse.de>
10052
10053 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
10054 against a charset.
10055
10056 * lisp.h (Fbuffer_list): Declare.
10057
100582008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 10059
aac0c6e3
MR
10060 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
10061 handlebox_widget is != 0.
10062
100632008-03-16 Juri Linkov <juri@jurta.org>
10064
10065 * callint.c (Fcall_interactively): For interactive code letters
10066 'b' and 'B' put the buffer list into the list of default "future"
10067 values of the minibuffer.
10068
100692008-03-16 Andreas Schwab <schwab@suse.de>
10070
10071 * keyboard.c (read_key_sequence): Fix downcasing of letters with
10072 modifiers.
10073
10074 * regex.c (re_match_2_internal): Correct matching of a charset
10075 against latin-1 characters.
10076
100772008-03-16 Kenichi Handa <handa@m17n.org>
10078
10079 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
10080 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
10081 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
10082 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
10083 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
10084 CHAR_STRING_ADVANCE.
10085 (produce_chars): Fix for the case that the source and the
10086 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
10087 instead of CHAR_STRING_ADVANCE.
10088 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
10089 STRING_CHAR_ADVANCE.
10090
100912008-03-15 Andreas Schwab <schwab@suse.de>
10092
10093 * regex.c (re_match_2_internal): Correct matching of eight bit
10094 characters in unibyte strings.
10095
100962008-03-15 Martin Rudalics <rudalics@gmx.at>
10097
10098 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
10099 at end of range when it coincides with the end of the buffer.
10100
101012008-03-14 Eli Zaretskii <eliz@gnu.org>
10102
10103 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
10104
10105 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
10106
101072008-03-14 Jason Rumney <jasonr@gnu.org>
10108
10109 * editfns.c (initial_tz): New variable.
10110 (syms_of_editfns): Initialize it.
10111 (Fset_time_zone_rule): Set it when first called.
10112 Use it when TZSTRING is nil.
10113
10114 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
10115 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
10116 (monitor_from_point_fn, get_monitor_info_fn): New globals.
10117 (globals_of_w32fns): Initialize them.
10118 (compute_tip_xy): Use them to position tooltips.
10119
101202008-03-14 Glenn Morris <rgm@gnu.org>
10121
10122 * emacs.c (main): Revert previous change.
10123 (standard_args): Revert -internal-script back to -scriptload,
10124 and remove the long-option form.
10125
101262008-03-13 Glenn Morris <rgm@gnu.org>
10127
10128 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
10129 Remove option -enable-font-backend.
10130
101312008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
10132
10133 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
10134
101352008-03-11 Jan Djärv <jan.h.d@swipnet.se>
10136
10137 * xterm.c (x_connection_closed): For GTK: If this is the last
10138 terminal just exit without closing the display.
10139
101402008-03-11 Jason Rumney <jasonr@gnu.org>
10141
10142 * w32font.c (w32font_full_name): Use floor to round.
10143
f0131492 101442008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
10145
10146 * sound.c (alsa_configure): Declare vol at beginning of block.
10147
10148 * fontset.c (Ffontset_info): Remove extra semicolon.
10149
101502008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
10151
10152 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
10153 size of resulting string.
10154
101552008-03-10 Jason Rumney <jasonr@gnu.org>
10156
10157 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
10158
101592008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10160
10161 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
10162 Don't pretend as if characters with display property haven't been
10163 consumed for string-replacing-string case.
10164
101652008-03-08 Kim F. Storm <storm@cua.dk>
10166
10167 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
10168 (get_next_display_element, next_element_from_string)
10169 (next_element_from_ellipsis, next_element_from_buffer): Use it.
10170
101712008-03-08 Andreas Schwab <schwab@suse.de>
10172
10173 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
10174
101752008-03-06 Jason Rumney <jasonr@gnu.org>
10176
10177 * w32font.c (w32_registry): Take font_type argument. Use ANSI
10178 when charset not specified. Only translate ANSI to unicode when
10179 font_type is truetype.
10180 (w32font_coverage_ok): New function.
10181 (add_font_entity_to_list): Use it to filter unsuitable fonts.
10182
101832008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
10184
10185 * lread.c (Fread_char): Resolve modifiers.
10186 (Fread_char_exclusive): Likewise.
10187
10188 * character.c (char_resolve_modifier_mask): New function.
10189 (char_string): Use char_resolve_modifier_mask.
10190 (Fchar_resolve_modifiers): New function.
10191 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
10192 function.
10193
101942008-03-04 Jason Rumney <jasonr@gnu.org>
10195
10196 * makefile.w32-in: Always include w32font.c in the build.
10197 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
10198
101992008-03-04 Andreas Schwab <schwab@suse.de>
10200
10201 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
10202 (versionclean): Likewise.
10203
102042008-03-04 Juanma Barranquero <lekktu@gmail.com>
10205
10206 * .cvsignore: Add oo.
10207
102082008-03-03 Andreas Schwab <schwab@suse.de>
10209
10210 * coding.c (decode_coding_object): Inhibit gap shrinking while
10211 decoding in place.
10212
102132008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
10214
10215 * w32term.c: Remove unused include "gnu.h".
10216 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
10217
10218 * gnu.h: Rename to ...
10219 * emacs-icon.h: ... this.
10220 * xterm.c: Use emacs-icon.h instead of gnu.h.
10221 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
10222
102232008-03-03 Juanma Barranquero <lekktu@gmail.com>
10224
10225 * w32font.c: Include math.h.
10226
102272008-03-03 Jason Rumney <jasonr@gnu.org>
10228
10229 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
10230 Compute options separately.
10231 (w32font_open_internal): Set glyph_idx before caching metrics.
10232
10233 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
10234 Define if system headers don't.
10235 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
10236 (w32font_encode_char): Don't declare here.
10237
10238 * w32font.c (Quniscribe, QCformat): New symbols.
10239 (syms_of_w32font): Define them.
10240 (w32font_has_char): Indicate uncertainty.
10241 (w32font_encode_char): Encode as glyph point. Make static.
10242 (recompute_cached_metrics): New function.
10243 (w32font_open_internal): Use it. Set font to use glyph points
10244 initially. Set format based on type of font.
10245 (w32font_text_extents, w32font_draw): Optionally use glyph points.
10246 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
10247 on it. Set format based on information available here.
10248 (add_font_entity_to_list): Identify backend based on opentype_only.
10249
102502008-03-02 Andreas Schwab <schwab@suse.de>
10251
10252 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
10253
10254 * coding.c (decode_coding_big5, produce_chars):
10255 Fix typos in last change.
10256
102572008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
10258
10259 * gnu.h: New icon.
10260
102612008-03-02 Kenichi Handa <handa@m17n.org>
10262
10263 * coding.c (decode_coding_utf_8): When eol-type of CODING is
10264 `dos', don't decode '\r' if that is the last in the source.
10265 (decode_coding_utf_16, decode_coding_emacs_mule)
10266 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
10267 (decode_coding_raw_text, decode_coding_charset): Likewise.
10268 (produce_chars): Don't decode EOL here. Use EMACS_INT.
10269
102702008-03-01 Jason Rumney <jasonr@gnu.org>
10271
10272 * w32font.c (w32font_full_name): Report point size for scalable fonts.
10273
102742008-03-01 Kim F. Storm <storm@cua.dk>
10275
10276 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
10277
102782008-03-01 Jason Rumney <jasonr@gnu.org>
10279
10280 * w32font.c (w32font_full_name): New function.
10281 (w32font_open_internal): Use it.
10282
102832008-03-01 Kim F. Storm <storm@cua.dk>
10284
10285 * dispnew.c (line_draw_cost): Fix invalid glyph check.
10286
102872008-03-01 Jason Rumney <jasonr@gnu.org>
10288
10289 * font.c (font_unparse_fcname): Increase len when style is a symbol.
10290
102912008-03-01 Jan Djärv <jan.h.d@swipnet.se>
10292
10293 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
10294 xg_frame_resized when the event is for the edit widget.
10295
10296 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
10297
10298 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
10299 set_char_size.
10300 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
10301 operations on widgets here. Just set frame size if needed.
10302 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
10303 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
10304 (x_wm_set_size_hint): Set size hints on the edit widget only, not
10305 the whole frame.
10306 (xg_create_tool_bar): Move attachment of the tool bar to
10307 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
10308 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
10309
103102008-03-01 Jason Rumney <jasonr@gnu.org>
10311
10312 * w32fns.c (w32_msg_pump): Disable debug code.
10313
103142008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10315
10316 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
10317
103182008-02-29 Chong Yidong <cyd@stupidchicken.com>
10319
10320 * xdisp.c (next_overlay_string): Don't set
10321 overlay_strings_at_end_processed_p if we're currently reading from
10322 a display string.
10323
103242008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
10325
10326 * xdisp.c (get_overlay_strings_1): Fix typo.
10327
103282008-02-29 Chong Yidong <cyd@stupidchicken.com>
10329
10330 * xdisp.c (get_overlay_strings_1): Add missing argument type.
10331
103322008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
10333
10334 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
10335
10336 * xdisp.c (display_mode_element): Cancel the previous change.
10337 (decode_mode_spec): Likewise.
10338 (handle_auto_composed_prop): Don't make composition if it->string
10339 is a string.
10340
103412008-02-27 Kim F. Storm <storm@cua.dk>
10342
10343 * lisp.h (GLYPH): Change type from int to struct with separate char
10344 and face_id members.
10345 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
10346 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
10347 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
10348 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
10349 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
10350 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
10351 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
10352 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
10353 handle new Lisp glyph code encoding, either an integer or a cons.
10354
10355 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
10356 (GLYPH_ALIAS): Delete.
10357 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
10358 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
10359 (GLYPH_FROM_CHAR): Replace macro by ...
10360 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
10361
10362 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
10363 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
10364 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
10365 (GLYPH_INVALID_P): New macro.
10366 (spec_glyph_lookup_face): Update prototype.
10367
10368 * dispnew.c (line_draw_cost): Adapt to new glyph type.
10369 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
10370 new glyph code encoding.
10371 (spec_glyph_lookup_face): No return value; update passed glyph instead.
10372 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
10373
10374 * xdisp.c (get_next_display_element, next_element_from_display_vector):
10375 Adapt to new glyph type and new glyph code encoding.
10376
10377 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
10378
10379 * indent.c (current_column, current_column_1, Fmove_to_column)
10380 (compute_motion): Adapt to new glyph code encoding.
10381
10382 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
10383
103842008-02-27 Chong Yidong <cyd@stupidchicken.com>
10385
10386 * process.c (wait_reading_process_output): Check for window
10387 changes caused by timers.
10388 Suggested by Johan Bockgård.
10389
103902008-02-27 Glenn Morris <rgm@gnu.org>
10391
10392 * emacs.c (USAGE1): Add `--disable-font-backend'.
10393
103942008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
10395
10396 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
10397 is made to the buffer.
10398
103992008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
10400
10401 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
10402 (face_at_string_position):
10403 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
10404 (face_at_string_position):
10405 * xdisp.c (display_string, next_overlay_change):
10406 * buffer.h (overlays_at):
10407 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
10408 Update callers.
10409
104102008-02-26 Chong Yidong <cyd@stupidchicken.com>
10411
10412 * editfns.c (Fformat): Doc fix.
10413
104142008-02-26 Juanma Barranquero <lekktu@gmail.com>
10415
10416 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
10417 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
10418 (Ffont_otf_alternates, Fquery_font): Doc fixes.
10419
104202008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
10421
10422 * buffer.c (Fbuffer_swap_text): New function.
10423 (syms_of_buffer): Defsubr it.
10424
104252008-02-25 Chong Yidong <cyd@stupidchicken.com>
10426
10427 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
10428
104292008-02-25 Jason Rumney <jasonr@gnu.org>
10430
10431 * w32font.c (w32font_draw): Draw one character at a time when padding.
10432
104332008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
10434
10435 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
10436 Handle a nil arg. Use run_window_configuration_change_hook.
10437 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
10438 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
10439 Use run_window_configuration_change_hook.
10440
104412008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
10442
10443 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
10444 1-pixel width.
10445
104462008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
10447
10448 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
10449 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
10450 if the glyph in the font is zero pixel with.
10451
10452 * dispextern.h (struct glyph_string): New member padding_p.
10453
10454 * w32font.c (w32font_draw): Pay attention to s->padding_p.
10455
10456 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
10457
10458 * xfont.c (xfont_draw): Pay attention to s->padding_p.
10459
10460 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
10461
10462 * font.c: If the font driver doesn't have `shape' function, return Qnil.
10463
104642008-02-25 Jason Rumney <jasonr@gnu.org>
10465
10466 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
10467
104682008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
10469
10470 Allow fine-grained image-cache flushing.
10471 * dispextern.h (struct image): Add `dependencies' field.
10472 (clear_image_caches): Change arg to Lisp_Object.
10473 * image.c (make_image): Initialize `dependencies' field.
10474 (clear_image_cache): Change arg to allow fine-grained flushing.
10475 Perform the flush even if image-cache-eviction-delay is nil.
10476 (clear_image_caches): Change arg to Lisp_Object.
10477 (Fclear_image_cache): Expand meaning of the argument.
10478 (mark_image): Mark `dependencies' field.
10479 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
10480 (lface_hash): Use XHASH rather than XFASTINT.
10481 (face_at_buffer_position): Fix int -> EMACS_INT position.
10482 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
10483 (select_frame_for_redisplay): Remove code duplication.
10484 (redisplay_internal): Adapt arg to call to clear_image_caches.
10485
104862008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
10487
10488 * s/vms4-0.h:
10489 * s/vms4-2.h:
10490 * s/vms4-4.h:
10491 * s/vms5-5.h: Remove, unused.
10492
10493 * s/irix5-2.h:
10494 * s/irix6-0.h:
10495 * s/riscos5.h:
10496 * s/mach-bsd4-3.h:
10497 * m/mips4.h: Remove files for obsolete systems.
10498
10499 * Makefile.in:
10500 * filelock.c:
10501 * unexmips.c:
10502 * m/hp9000s300.h:
10503 * m/iris4d.h:
10504 * s/aix3-1.h:
10505 * s/hpux.h:
10506 * s/msdos.h:
10507 * s/usg5-0.h:
10508 * s/usg5-2-2.h:
10509 * s/usg5-2.h:
10510 * s/usg5-3.h: Remove references to obsolete variables.
10511
10512 * s/irix5-0.h: Remove, move all the contents ...
10513 * s/irix6-5.h: ... here. Simplify.
10514 * config.in: Regenerate.
10515
105162008-02-24 Jason Rumney <jasonr@gnu.org>
10517
10518 * w32term.c (x_draw_glyph_string_background): Clear the background
10519 manually when cleartype is in use.
10520 (x_draw_glyph_string_foreground): Draw text transparently when
10521 cleartype is in use.
10522
10523 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
10524 a font into it unless we have to.
10525
105262008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
10527
10528 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
10529 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 10530
aac0c6e3
MR
105312008-02-18 Jason Rumney <jasonr@gnu.org>
10532
10533 * w32fns.c (Fw32_shell_execute): Encode parameters.
10534
105352008-02-09 Eli Zaretskii <eliz@gnu.org>
10536
10537 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
10538
105392008-02-05 Juanma Barranquero <lekktu@gmail.com>
10540
10541 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
10542
105432008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
10544
10545 * xterm.c (x_set_offset): Don't change the gravity if
10546 CHANGE_GRAVITY is -1.
10547
105482008-02-23 Chong Yidong <cyd@stupidchicken.com>
10549
10550 * fileio.c (auto_save_error_occurred): New var.
10551 (auto_save_error): Set it.
10552 (Fdo_auto_save): Don't overwrite the error message if an auto-save
10553 error occurred.
10554
105552008-02-23 Eli Zaretskii <eliz@gnu.org>
10556
10557 * w32.c (globals_of_w32): Add initializations for
10558 g_b_init_get_sid_sub_authority and
10559 g_b_init_get_sid_sub_authority_count.
10560
105612008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
10562
10563 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
10564 (font_parse_xlfd): Use them for sanity check.
10565 (Finternal_set_font_style_table): Make sure the table is bijective.
10566
10567 Consolidate the image_cache to the terminal struct.
10568 * termhooks.h (P_): Remove redundant def.
10569 (struct terminal): New field `image_cache'.
10570 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
10571 of FRAME_X_IMAGE_CACHE.
10572 * xterm.h (struct x_display_info): Remove image_cache field.
10573 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
10574 * w32term.h (struct w32_display_info): Remove image_cache field.
10575 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
10576 * macterm.h (struct mac_display_info): Remove image_cache field.
10577 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
10578 * xterm.c (x_term_init):
10579 * w32term.c (w32_term_init):
10580 * macterm.c (mac_term_init): Set the image_cache in the terminal.
10581 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
10582 Remove declarations.
10583 (clear_image_caches, mark_image_cache): New declarations.
10584 * xfaces.c (clear_face_cache):
10585 * xdisp.c (redisplay_internal): Use clear_image_caches.
10586 * image.c (clear_image_cache): Don't check that a frame is on
10587 a window-system before checking if it shares the same cache.
10588 (clear_image_caches): New function.
10589 (Fclear_image_cache): Use it.
10590 (mark_image): Move from allo.c.
10591 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
10592 * alloc.c (mark_image, mark_image_cache): Move to image.c.
10593 (mark_object): Don't call mark_image_cache for frames.
10594 (mark_terminals): Call mark_image_cache.
10595
10596 * lisp.h (Fdelete_terminal): Declare.
10597
10598 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
10599 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
10600 wrong_type_argument.
10601
106022008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
10603
10604 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
10605 malayalam.el, and tamil.el. Add sinhala.el.
10606
106072008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
10608
10609 * xterm.c (x_connection_closed): Consolidate identical tests.
10610 (x_delete_terminal): Don't crash if called via x_connection_closed.
10611
106122008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
10613
10614 * xdisp.c (decode_mode_spec): New arg string.
10615 (display_mode_element): Adjust for the above change.
10616
106172008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
10618
10619 * callint.c (Fcall_interactively): Use AREF.
10620
106212008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
10622
10623 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
10624
106252008-02-18 Jan Djärv <jan.h.d@swipnet.se>
10626
10627 * xfns.c (Fx_show_tip): Set string to " " if empty.
10628
106292008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
10630
10631 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
10632 with Qt.
10633
106342008-02-17 Kenichi Handa <handa@m17n.org>
10635
10636 * ftfont.c (ftfont_shape): Return Lispy number.
10637
10638 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
10639 for GCs.
10640 (Finternal_set_font_selection_order): Call font_update_sort_order
10641 only when enable_font_backend is set.
10642 (realize_x_face): Set face->font_info to that of default face only
10643 when enable_font_backend is set.
10644
10645 * xdisp.c (handle_composition_prop): Set it->c to the fist
10646 character of the composed region.
10647 (fill_composite_glyph_string): Set base_face->font_info to
10648 s->font_info. Get a face for ascii from base_face->ascii_face.
10649 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
10650 with a face already decided.
10651 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
10652 non-negative.
10653 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
10654 call font_prepare_composition unconditionally.
10655
10656 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
10657
10658 * xterm.h (struct x_display_info): New member font.
10659
10660 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
10661 (x_set_mouse_face_gc, x_new_font): Likewise.
10662 (x_term_init): Setup display_info->font.
10663 (x_delete_terminal): Free display_info->font.
10664
10665 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
10666
10667 * ftxfont.c (ftxfont_default_fid): Delete it.
10668 (ftxfont_open): Set xfont->fid to 0.
10669 (ftxfont_end_for_frame): Clear data specific to the frame and the
10670 font-driver.
10671
10672 * xftfont.c (xftfont_default_fid): Delete it.
10673 (xftfont_open): Set xfont->fid to 0.
10674
10675 * fontset.c (FONTSET_OBJLIST): New macro.
10676 (fontset_find_font): Update font-object list of the fontset.
10677 (free_realized_fontset): New function.
10678 (free_face_fontset): Call free_realized_fontset.
10679 (Ffont_info): Call font_close_object only when enable_font_backend
10680 is set.
10681
10682 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
10683 [HAVE_NTGUI]: Include w32term.h.
10684 [MAC_OS]: Include macterm.ch.
10685 (font_otf_ValueRecord): Use make_number.
10686 (font_finish_cache): Fix handling of reference count.
10687 (font_clear_cache): Update num_fonts.
10688 (font_open_entity): Update smallest_char_width and
10689 smallest_font_height of the frame.
10690 (font_close_object): Update num_fonts.
10691 (Fclear_font_cache): Fix finding the target cache data.
10692
106932008-02-16 Glenn Morris <rgm@gnu.org>
10694
10695 * fontset.c (Finternal_char_font): Fix compilation warning.
10696
106972008-02-16 Eli Zaretskii <eliz@gnu.org>
10698
10699 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
10700 instead of char arrays. Enlarge the size of array passed to
10701 get_token_information.
10702
10703 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
10704 warnings.
10705
107062008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
10707
10708 * .gdbinit: Don't set `args', it breaks gdb --args.
10709
107102008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
10711
10712 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
10713 within a narrowed buffer.
10714
107152008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
10716
10717 * coding.c (decode_coding_object, encode_coding_object):
10718 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
10719
107202008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
10721
10722 * coding.c (coding_set_destination): Use BEG_BYTE rather than
10723 hardcoding 1.
10724 (detect_coding_system):
10725 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
10726 (string_char_to_byte, string_byte_to_char, insert_from_gap):
10727 * insdel.c (insert_from_gap):
10728 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
10729 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
10730 (string_to_multibyte):
10731 * character.c (chars_in_text, multibyte_chars_in_text):
10732 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
10733
10734 * character.h (FETCH_STRING_CHAR_ADVANCE)
10735 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
10736 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
10737 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
10738
10739 * casefiddle.c (casify_region): Only call after-change and composition
10740 functions on the part of the region that was changed.
10741
10742 * keyboard.c (read_avail_input):
10743 * frame.c (Fdelete_frame): Call Fdelete_terminal.
10744
107452008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
10746
10747 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
10748 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
10749
107502008-02-11 Juanma Barranquero <lekktu@gmail.com>
10751
10752 * w32menu.c (push_submenu_start, push_submenu_end)
10753 (push_left_right_boundary, push_menu_pane, push_menu_item):
10754 * keyboard.c (read_key_sequence): Don't pass args with side effects
10755 to AREF, it fails when compiling with -DENABLE_CHECKING.
10756
107572008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
10758
10759 * Makefile.in (${lispsource}international/charprop.el):
10760 Delete this target.
10761
10762 * search.c (boyer_moore): Fix incorrect synching of the trunk and
10763 emacs-unicode-2.
10764
107652008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
10766
10767 * terminal.c (Fdelete_terminal): Clean up the `force' path.
10768
107692008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
10770
10771 * frame.c (Qnoelisp): New symbol.
10772 (syms_of_frame): Initialize it.
10773 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
10774 harmless Elisp code, from a strong `force' from x_connection_closed.
10775 * frame.h (Qnoelisp): Declare.
10776 * xterm.c (x_connection_closed): Pass `noelisp'.
10777
10778 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
10779 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
10780 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
10781 rather than `int' for the type of `type'.
10782
107832008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
10784
10785 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
10786
10787 * Makefile.in (GNUC): Remove support for gcc-1.x.
10788
107892008-02-10 Richard Stallman <rms@gnu.org>
10790
10791 * lisp.h (ASET): Use AREF, not ASLOT.
10792
107932008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
10794
10795 * lisp.h (ASET): Check bounds.
10796
107972008-02-10 Glenn Morris <rgm@gnu.org>
10798
10799 * buffer.c (mode-name): Doc fix.
10800
108012008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
10802
10803 * Makefile.in:
10804 * emacs.c:
10805 * gmalloc.c:
10806 * keyboard.c:
10807 * lisp.h:
10808 * m/ibm370aix.h:
10809 * process.c:
10810 * regex.c:
10811 * s/hpux.h:
10812 * sysdep.c:
10813 * sysselect.h:
10814 * systty.h:
10815 * unexec.c:
10816 * w32term.c:
10817 * xsmfns.c:
10818 * xterm.c: Remove code that deals with obsolete variables.
10819
10820 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
10821
10822 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
10823 nothing else needs it anymore.
10824
108252008-02-09 Eli Zaretskii <eliz@gnu.org>
10826
10827 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
10828 instead of unibyte_char_to_multibyte.
10829
108302008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
10831
10832 * s/gnu-linux.h: Remove commented out code.
10833
10834 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
10835
10836 * Makefile.in: Update what RMS says about using autoconf.
10837 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
10838 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
10839 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
10840 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
10841
108422008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
10843
10844 * keymap.c (Fkey_description): Move side effect outside of macro call.
10845
10846 * xfaces.c (Finternal_make_lisp_face):
10847 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
10848
10849 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
10850 (syms_of_fontset): Use ASET.
10851
10852 * fns.c (concat): Move side effect outside of macro call.
10853 (hash_clear): Use ASET.
10854
108552008-02-08 Richard Stallman <rms@gnu.org>
10856
10857 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
10858 If FORCE, and frame has a surrogate minibuffer for another frame,
10859 delete the other frame first.
10860
108612008-02-07 Timo Savola <timo.savola@iki.fi>
10862
10863 * xterm.c (x_detect_focus_change): Handle embed client message.
10864 (handle_one_xevent): Ditto.
10865 (handle_one_xevent): If embedded and we get a button press/release,
10866 request focus.
10867 (xembed_set_info, xembed_send_message): New functions.
10868 (x_make_frame_visible): Call xembed_set_info if embedded.
10869 (x_make_frame_invisible): Call xembed_set_info if embedded.
10870 (x_term_init): Initialize Xatom_XEMBED.
10871 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
10872 (x_iconify_frame): Ditto.
10873
10874 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
10875 (enum xembed_info, enum xembed_message, enum xembed_focus)
10876 (enum xembed_modifier, enum xembed_accelerator): New.
10877 (xembed_set_info, xembed_send_message): Declare.
10878 (FRAME_X_EMBEDDED_P): New.
10879
10880 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
10881 gtk_plug_new.
10882
10883 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
10884 window ID of a frame.
10885 (x_window): Reparent frame if embedded.
10886 (Fx_create_frame): Don't set border width if embedded.
10887
10888 * emacs.c (USAGE3): Add --parent-id.
10889 (standard_args): Ditto.
10890
108912008-02-07 Jan Djärv <jan.h.d@swipnet.se>
10892
10893 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
10894
108952008-02-07 Jim Meyering <meyering@redhat.com>
10896
10897 Use "do...while (0)", not "if (1)...else" in macro definitions.
10898 The latter provokes a warning from gcc about the empty else, when
10899 followed by ";". Also, without that trailing semicolon, it would
10900 silently swallow up any following statement.
10901 * syntax.h (SETUP_SYNTAX_TABLE)
10902 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
10903 * buffer.h (DECODE_POSITION): Likewise.
10904 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
10905 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
10906 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
10907 (FETCH_CHAR_ADVANCE): Likewise.
10908 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
10909
109102008-02-07 Jim Meyering <meyering@redhat.com>
10911
10912 * lread.c [lint]: Don't include <sys/inode.h>.
10913
109142008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
10915
10916 * xselect.c (x_handle_dnd_message):
10917 * xmenu.c (digest_single_submenu, xmenu_show):
10918 * xdisp.c (with_echo_area_buffer_unwind_data)
10919 (format_mode_line_unwind_data, unwind_format_mode_line)
10920 (display_menu_bar):
10921 * eval.c (Ffetch_bytecode):
10922 * doc.c (store_function_docstring):
10923 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
10924 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
10925 * buffer.c (add_overlay_mod_hooklist): Use ASET.
10926
109272008-02-07 Kenichi Handa <handa@m17n.org>
10928
10929 * ftxfont.c (ftxfont_open): Don't set
10930 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
10931
10932 * ftfont.c (ftfont_open): Fix previous change.
10933
109342008-02-06 Jason Rumney <jasonr@gnu.org>
10935
10936 * w32font.c (w32font_text_extents): Fill in lbearing metric.
10937 Use cached metrics for ASCII characters.
10938 (w32font_open_internal): Don't set font's owning_frame.
10939 Cache metrics for ASCII characters.
10940
10941 * w32font.h (struct w32font_info): Add ascii_metrics.
10942 Remove owning_frame.
10943
109442008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
10945
10946 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
10947 to negative value.
10948
10949 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
10950
10951 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
10952
10953 * charset.c (syms_of_charset): Set QCtest and Qeq.
10954
109552008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
10956
10957 * process.c (Fstart_process):
10958 * callproc.c (Fcall_process): Handle the case where
10959 Funhandled_file_name_directory returns nil.
10960
10961 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
10962 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
10963 * font.c (check_gstring): Use them and AREF to access the vector before
10964 we know it's really a gstring.
10965 (Ffont_shape_text): Fix typo.
46e722a9 10966 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
10967
10968 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
10969 Declare.
10970
10971 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
10972
109732008-02-05 Jason Rumney <jasonr@gnu.org>
10974
10975 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
10976 Set smallest_font_height and smallest_char_width in display info.
10977
109782008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
10979
10980 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
10981
109822008-02-05 Miles Bader <miles@gnu.org>
10983
10984 * xfaces.c (get_lface_attributes, merge_named_face)
10985 (lookup_named_face, lookup_derived_face, realize_named_face):
10986 Revert 2008-02-01 change by cyd@stupidchicken.com.
10987
109882008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
10989
10990 * fontset.c (Ffontset_info): Handle the case of inhibitting the
10991 fallback fonts.
10992 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
10993
109942008-02-04 Jason Rumney <jasonr@gnu.org>
10995
10996 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
10997 set full_name.
10998 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
10999
110002008-02-03 Jason Rumney <jasonr@gnu.org>
11001
11002 * makefile.w32-in (OBJ1): Include font.o here.
11003 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
11004
110052008-02-02 Jason Rumney <jasonr@gnu.org>
11006
11007 * makefile.w32-in (temacs): Bump EMHEAP to 21.
11008
110092008-02-01 Jason Rumney <jasonr@gnu.org>
11010
11011 * s/cygwin.h: Define VIRT_ADDR_VARIES.
11012
11013 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
11014
110152008-02-01 Andreas Schwab <schwab@suse.de>
11016
11017 * Makefile.in (shortlisp, lisp): Update for rename of
11018 ../lisp/language/myanmar.el.
11019
110202008-02-01 Chong Yidong <cyd@stupidchicken.com>
11021
11022 * xfaces.c (get_lface_attributes): Delete function.
11023 (merge_named_face, lookup_named_face, lookup_derived_face)
11024 (realize_named_face): Call lface_from_face_name directly, and use
11025 the fact that merge_face_vectors does not alter its FROM argument.
11026
110272008-02-01 Jason Rumney <jasonr@gnu.org>
11028
11029 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
11030 input in the default locale. Handle non-Unicode multibyte input.
11031
110322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11033
11034 * fontset.c (reorder_font_vector): Exclude nil elements from the
11035 font group. Don't try multiple fonts.
11036 (fontset_font): Adjust for the above change.
11037 (Finternal_char_font): Return nil if the found font doesn't
11038 contain the character ch.
11039
11040 * Makefile.in (lisp, shortlisp): Add cham.el.
11041
110422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11043
11044 * font.h (FONTP): Make it return 1 also for a font-object.
11045
11046 * .gdbinit (xfontset): New function.
11047
11048 * font.c (font_find_for_lface): Check if the character C is
11049 supported or not only for the first font.
11050
11051 * fontset.c (reorder_font_vector): Fix typo.
11052 (fontset_find_font): Don't add a font-spec specifying a script.
11053 Use 0 (not Qt) for the indication of empty font-group. Change the
11054 format of RFONT-DEF. Return Qt if no font in the font-group
11055 support the character.
11056 (fontset_font): Adjust for the above change. If no font was
11057 found the character, remember that.
11058 (face_for_char): Adjust for the change of RFONT-DEF.
11059 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
11060 no font for the target.
11061 (Finternal_char_font): Adjust for the change of RFONT-DEF.
11062
110632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11064
11065 * font.c (font_load_for_face): Handle the case that the font in
11066 face->lface is a string.
11067
110682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11069
11070 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
11071
110722008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11073
11074 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
11075 Fix previous change. If the frame is not on a window system,
11076 signal an error.
11077
110782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11079
11080 * coding.c (decode_coding_object, encode_coding_object): Adjust
11081 marker positions after conversion.
11082
11083 * lisp.h (struct Lisp_Marker): New member need_adjustment.
11084
110852008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11086
11087 * font.c (font_find_for_lface): Fix the handling of the return
11088 value of font_has_char.
11089 (Ffont_shape_text): Fix previous change.
11090
11091 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
11092 (fontset_ref_and_range): Delete it.
11093 (fontset_find_font): Call char_table_ref_and_range instead of
11094 FONTSET_REF_AND_RANGE.
11095 (make_fontset): Don't setup font groups of Latin here.
11096 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
11097 (new_fontset_from_font): Make the specified font the default for
11098 all Latin characters.
11099
111002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11101
11102 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
11103 is on a window system before accessing the fontset of the frame.
11104
111052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11106
11107 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
11108
11109 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
11110 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
11111
11112 * font.c (Ffont_shape_text): If the font driver doesn't have a
11113 shaper function, make zero-width glyphs to have at least one-pixel
11114 width. Fix setting of `to' field of glyphs.
11115
111162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11117
11118 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
11119 glyphs.
11120
11121 * font.h (struct font_driver): Improve docstring of member `shape'.
11122
111232008-02-01 Kenichi Handa <handa@m17n.org>
11124
11125 * composite.c (syms_of_composite): Fix docstring of
11126 auto-composition-function.
11127
11128 * font.h (LGLYPH_SIZE): New macro.
11129
11130 * font.c (Ffont_fill_gstring): Stop filling when a character not
11131 supported by the font is found.
11132 (Ffont_shape_text): When a shape callback function returns nil,
11133 try at most two more times with larger gstring.
11134 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
11135
11136 * xdisp.c (handle_auto_composed_prop): Change the argument to
11137 auto-composition-function.
11138
11139 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
11140 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
11141 Lispy glyph and store it in the lgstring.
11142
11143 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
11144
11145 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
11146
111472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11148
11149 * font.c (Ffont_shape_text): Avoid unnecessary composition.
11150
11151 * fontset.c (Vfont_encoding_charset_alist): New variable.
11152 (syms_of_fontset): DEFVAR it.
11153 (reorder_font_vector, fontset_find_font): Optimize for the case of
11154 no need of reordering.
11155 (face_for_char): Map the charset property by
11156 Vfont_encoding_charset_alist.
11157
111582008-02-01 Jason Rumney <jasonr@gnu.org>
11159
11160 * w32font.c (logfonts_match): Don't check adstyle here.
11161 (font_matches_spec): Check here against physical font instead.
11162 (add_font_entity_to_list): Avoid some substitutions.
11163
11164 * font.c (font_parse_fcname): Default weight and slant to normal.
11165 (font_score): Prefer normal fonts if weight or slant unspecified.
11166 (font_score) [WINDOWSNT]: Scale weight difference down to closer
11167 match freetype scores.
11168
111692008-02-01 Jason Rumney <jasonr@gnu.org>
11170
11171 * w32font.c (w32font_text_extents): Don't use the frame stored in the
11172 font, as it may have been deleted.
11173 (w32_enumfont_pattern_entity): Map generic family to adstyle using
11174 most common hyphenless variation.
11175 (logfonts_match): Check generic family.
11176 (font_matches_spec): Don't check generic family here.
11177 (fill_in_logfont): Set generic family based on adstyle.
11178
11179 * w32font.h (w32font_get_cache): Update declaration.
11180
111812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11182
11183 * ftfont.c (ftfont_get_cache): Adjust the argument type.
11184
11185 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
11186 If none of the new drivers are available, call font_update_drivers
11187 with the old drivers.
11188
11189 * w32font.c (w32font_get_cache): Adjust the argument type.
11190
11191 * xfont.c (xfont_get_cache): Adjust the argument type.
11192
11193 * font.h (struct font_driver): Change argument type of get_cache.
11194
11195 * xftfont.c (xftfont_start_for_frame): Delete prototype.
11196
11197 * font.c (Ffont_get): Fix arguments to Fassoc.
11198 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
11199 (font_clear_cache): New function.
11200 (font_list_entities, font_matching_entity): Use font_get_cache.
11201 (font_update_drivers): Call font_clear_cache when finishing a driver.
11202
11203 * fontset.c (fontset_find_font): Fix previous change.
11204
112052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11206
11207 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
11208 dpyinfo->font_table.
11209 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
11210 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
11211
11212 * font.c (font_at): Handle the case that the arg C is negative.
11213 Handle the unibyte case.
11214 (Ffont_at): Call font_at with the arg C -1.
11215
11216 * xdisp.c (handle_auto_composed_prop): Don't get a character at
11217 the position here, and call font_at with the arg C -1.
11218 Don't check the range of the existing composition at the point.
11219
112202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11221
11222 * fontset.c (fontset_add): New args charset_id and family.
11223 Change caller.
11224 (load_font_get_repertory, fontset_find_font): Assume that
11225 font_spec is always a font-spec object.
11226 (Fset_fontset_font): Always store a font-spec object in a fontset.
11227
11228 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
11229 instead of get_property_and_range.
11230
112312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11232
11233 * xftfont.c (struct xftfont_info): Delete the member ft_face.
11234 (xftfont_open): Don't keep locking face.
11235 (xftfont_close): Don't unlock face.
11236 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
11237
11238 * fontset.c (fontset_find_font): Don't prefer a font of
11239 supplementary charset.
11240
112412008-02-01 Kenichi Handa <handa@m17n.org>
11242
11243 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
11244 script, langsys_tag to langsys, new member script.
11245 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 11246 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
11247 listing to the script specified in that property. Fix arg to
11248 OTF_check_features.
11249
112502008-02-01 Jason Rumney <jasonr@gnu.org>
11251
11252 * w32font.h: New file.
11253
11254 * w32font.c: Include it.
11255 (struct w32font_info): Add owning_frame field. Move to w32font.h.
11256 (w32font_open): Set owning_frame.
11257 (w32font_text_extents): Use owning_frame.
11258 (struct font_callback_data): Add opentype_only field.
11259 (add_font_entity_to_list): Use it to filter fonts.
11260 Don't check against full name.
11261 (w32font_list_internal): New function.
11262 (w32font_list): Use it.
11263 (w32font_match_internal): New function.
11264 (w32font_match): Use it.
11265 (w32font_open_internal): New function.
11266 (w32font_open): Use it.
11267 (w32font_get_cache, w32font_close, w32font_has_char)
11268 (w32font_encode_char, w32font_text_extents, w32font_draw):
11269 Make non-static.
11270
11271 * makefile.w32-in (w32font.o): Depend on w32font.h.
11272
112732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11274
11275 * charset.c (Fdefine_charset_internal): Record a supplementary
11276 charset at the tail of Vcharset_order_list.
11277
11278 * font.c (Ffont_shape_text): Fix the return value.
11279
11280 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
11281
11282 * xdisp.c (handle_auto_composed_prop): Fix previous change.
11283
112842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11285
11286 * ftfont.c (struct OpenTypeSpec): New struct.
11287 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
11288 (ftfont_get_open_type_spec): New function.
11289 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
11290
11291 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
11292
112932008-02-01 Jason Rumney <jasonr@gnu.org>
11294
11295 * w32font.c (add_font_entity_to_list): Compare only the beginning
11296 of full name.
11297
112982008-02-01 Kenichi Handa <handa@m17n.org>
11299
11300 * xdisp.c (handle_auto_composed_prop): Simplify the code.
11301 Never return HANDLED_RECOMPUTE_PROPS.
11302
113032008-02-01 Kenichi Handa <handa@m17n.org>
11304
11305 * font.c (font_gstring_produce): Delete it.
11306
11307 * composite.h (COMPOSITION_METHOD):
11308 Handle COMPOSITION_WITH_GLYPH_STRING.
11309
113102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11311
11312 * xfont.c (Qx): Delete.
11313 (syms_of_xfont): Don't initialize Qx.
11314
11315 * composite.h (enum composition_method):
11316 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
11317
113182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11319
11320 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
11321 (choose_face_font): Accept new form of font-spec.
11322
11323 * frame.h (font_driver_list): Declare it unconditionally.
11324 (struct frame): Define members font_driver_list and font_data_list
11325 unconditionally.
11326
11327 * fontset.c: Include "font.h" unconditionally.
11328 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
11329 (Fset_fontset_font): Accept a font-spec object.
11330
11331 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
11332 PIXEL_SIZE part a wild card.
11333
11334 * dispextern.h (struct glyph_string): Define members clip and
11335 num_clips unconditionally.
11336 (struct face): Define members font_info and extra unconditionally.
11337
11338 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
11339 ftfont_info only when HAVE_LIBOTF is defined.
11340
113412008-02-01 Andreas Schwab <schwab@suse.de>
11342
11343 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
11344 and end.
11345
113462008-02-01 Jason Rumney <jasonr@gnu.org>
11347
11348 * w32font.c (w32font_driver): Add new fields.
11349
113502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11351
11352 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
11353 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
11354 (LIBES): Add @M17N_FLT_CFLAGS@.
11355
11356 * composite.c (compose_text): Don't treat the new style
11357 composition specially.
11358
11359 * emacs.c (main): Call syms_of_font unconditionally.
11360
11361 * font.h (FONT_ENTITY_NOT_LOADABLE)
11362 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
11363 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
11364 (struct font_driver): New member shape.
11365 (font_registry_charsets): Extern it.
11366 (font_find_for_lface, font_prepare_composition): Adjust prototype.
11367 (font_otf_capability, font_drive_otf): Delete their externs.
11368
11369 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
11370 (font_charset_alist, font_registry_charsets): Move from xfont.c
11371 and rename.
11372 (font_prop_validate_otf): New function.
11373 (font_property_table): Register it for QCotf.
11374 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
11375 (font_drive_otf): Delete.
11376 (font_prepare_composition): New arg F. Adjust for the change of
11377 lispy gstring.
11378 (font_find_for_lface): New arg C.
11379 (font_load_for_face): Adjust for the change of font_find_for_lface.
11380 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
11381 lispy gstring.
11382 (Ffont_shape_text): New function.
11383 (Fopen_font): If the font size is not given, use 12-pixel.
11384 (Ffont_at): New arg STRING.
11385 (syms_of_font): Initalize font_charset_alist.
11386 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
11387 conditionally.
11388
11389 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
11390 fonts of the same font-spec. Change the format of RFONT-DEF.
11391 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
11392 Adjust for the change of RFONT-DEF.
11393 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
11394
11395 * ftfont.h: New file.
11396
11397 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
11398 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
11399 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
11400 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
11401 font_otf_capability and font_drive_otf, set ftfont_shape.
11402 (ftfont_list): Adjust for the change of :otf property value.
11403 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
11404 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
11405 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
11406 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
11407 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
11408 (otf_gstring, gstring, m17n_flt_initialized): New variables.
11409
11410 * w32term.c (x_draw_composite_glyph_string_foreground):
11411 Adjust for the change of lispy gstring.
11412
11413 * xdisp.c (handle_composition_prop): Adjust for the change of
11414 lispy gstring. Call a function for auto-composition with the
11415 third arg it->window.
11416 (fill_composite_glyph_string): Adjust for the change of lispy string.
11417 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
11418
11419 * xfaces.c (set_font_frame_param): Adjust for the change of
11420 font_find_for_lface.
11421
11422 * xfont.c (x_font_charset_alist): Move to font.c and rename.
11423 (xfont_registry_charsets): Likewise. Change caller.
11424 (syms_of_xfont): Don't handle x_font_charset_alist.
11425
11426 * xftfont.c: Include "ftfont.h".
11427 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
11428 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
11429 (xftfont_close) [HAVE_LIBOTF]: Close otf.
11430 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
11431 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
11432 Set xftfont_driver.shape to xftfont_shape.
11433
11434 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
11435 the change of lispy gstring.
11436
114372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11438
11439 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
11440
114412008-02-01 Jason Rumney <jasonr@gnu.org>
11442
11443 * w32font.c (w32font_draw): Fill background manually.
11444
114452008-02-01 Jason Rumney <jasonr@gnu.org>
11446
11447 * font.c (Qfontp): Remove unused symbol.
11448 (QCantialias): New symbol.
11449 (syms_of_font): Define it.
11450 (font_property_table): Set a validator for QCantialias.
11451
11452 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
11453 Define if not already.
11454 (QCfamily): Share with xfaces.c.
11455 (Qstandard, Qsubpixel, Qnatural): New symbols.
11456 (syms_of_w32font): Define them. Don't define QCfamily here.
11457 (w32_antialias_type, lispy_antialias_type): New functions.
11458 (w32_enumfont_pattern_entity): New arg requested_font.
11459 Set antialias parameter if non-default was requested.
11460 (fill_in_logfont): Fill in lfQuality if :antialias specified.
11461
114622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11463
11464 * lread.c (read1): Undo the previous change.
11465
114662008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
11467
11468 * frame.c (Fdelete_frame): Call font_update_drivers only when
11469 USE_FONT_BACKEND is defined.
11470
114712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11472
11473 * font.h (struct font_bitmap): New member bits_per_pixel.
11474 (struct font_driver): New members start_for_frame and end_for_frame.
11475 (struct font_data_list): New struct.
11476 (font_put_frame_data, font_get_frame_data): Extern them.
11477
11478 * frame.h (struct frame): New member font_data_list.
11479
11480 * font.c (font_update_drivers): Call driver->start_for_frame and
11481 driver->end_for_frame at proper timings.
11482 (font_put_frame_data, font_get_frame_data): New functions.
11483 (Ffont_spec): Add usage in the docstring.
11484
11485 * frame.c (make_frame): Initialize f->font_data_list to NULL.
11486 (Fdelete_frame): Call font_update_drivers.
11487
11488 * xftfont.c (struct xftface_info): Delete the member xft_draw.
11489 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
11490 (xftfont_get_xft_draw): New function.
11491 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
11492 (xftfont_end_for_frame): New function.
11493 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
11494
11495 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
11496 Change argument. Cache GCs in the per-frame data.
11497 (struct ftxfont_frame_data): New struct.
11498 (ftxfont_draw_bitmap): New arg gc_fore and flush.
11499 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
11500 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
11501 (ftxfont_end_for_frame): New function.
11502 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
11503
11504 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
11505
115062008-02-01 Kenichi Handa <handa@m17n.org>
11507
11508 * xselect.c (Vselection_coding_system)
11509 (Vnext_selection_coding_system): Delete them.
11510 (syms_of_xselect): Don't declare selection-coding-system and
11511 next-selection-coding-system. They are declared in select.el.
11512
115132008-02-01 Jason Rumney <jasonr@gnu.org>
11514
11515 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
11516
11517 * w32fns.c: Include imm.h.
11518 (get_composition_string_fn, get_ime_context_fn): New optional
11519 system functions.
11520 (globals_of_w32fns): Load them from imm32.dll.
11521 (ignore_ime_char): New flag.
11522 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
11523 WM_IME_ENDCOMPOSITION messages.
11524
11525 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
11526 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
11527
115282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11529
11530 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
11531 (READCHAR_REPORT_MULTIBYTE): New macro.
11532 (readchar): New 2nd arg MULTIBYTE.
11533 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
11534 Make symbol's name multibyte according to the multibyteness of the
11535 source.
11536
115372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11538
11539 * xfaces.c (face_for_overlay_string): Call lookup_face with
11540 correct arguments (fix of synching with the trunk).
11541
115422008-02-01 Kenichi Handa <handa@m17n.org>
11543
11544 * font.c (font_prop_validate_symbol, font_prop_validate_style)
11545 (font_prop_validate_non_neg, font_prop_validate_spacing):
11546 Delete argument prop_index.
11547 (font_property_table): Change arguments to validater. Change Callers.
11548 (font_lispy_object): Delete.
11549 (font_at): Use font_find_object instead fo font_lispy_object.
11550
115512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11552
11553 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
11554 and file names.
11555
115562008-02-01 Jason Rumney <jasonr@gnu.org>
11557
11558 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
11559 (font_matches_spec): Remove debug output.
11560 (add_font_entity_to_list): Avoid using substituted fonts.
11561
115622008-02-01 Jason Rumney <jasonr@gnu.org>
11563
11564 * doc.c (Fsnarf_documentation):
11565 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
11566
115672008-02-01 Miles Bader <miles@gnu.org>
11568
11569 * dispextern.h (struct glyph_row): Only define "clip" field if
11570 HAVE_WINDOW_SYSTEM is defined.
11571
115722008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
11573
11574 Fix up multi-tty merge.
11575
11576 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
11577 and indentation.
11578
11579 * xfaces.c (free_realized_face, clear_face_gcs):
11580 Include font_done_for_face in the input_blocked section, just in case.
11581
11582 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
11583 (get_char_face_and_encoding): Undo last change and remove the *other*
11584 duplicate definition (i.e. keep the one that's better scoped and that
11585 includes code for the font-backend).
11586
11587 * terminal.c (create_terminal): Default keyboard_coding to
11588 `no-conversion' and terminal_coding to `undecided'.
11589
11590 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
11591
11592 * fontset.c (free_realized_fontsets): Check that the table entry does
11593 contain a fontset before trying to compare it to `base'.
11594
11595 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
11596 syms_of_charset, and syms_of_coding earlier because init_window_once
11597 now needs Vcoding_system_hash_table to be setup.
11598
11599 * coding.h (default_buffer_file_coding): Remove.
11600
11601 * coding.c (default_buffer_file_coding): Remove.
11602 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
11603 than ->symbol, and use the terminal-local coding system.
11604 (syms_of_coding): Don't setup the coding-systems that are not
11605 terminal-local.
11606 (Fdefine_coding_system_internal): Use XCAR/XCDR.
11607
11608 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
11609 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
11610
11611 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
11612 in chartab.c and were re-added here by mistake.
11613 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
11614
11615 * doc.c (Fsnarf_documentation):
11616 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
11617 src to etc.
11618
11619 * ChangeLog.10: Add mistakenly removed entry.
11620
116212008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
11622
11623 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
11624
116252008-02-01 Miles Bader <miles@gnu.org>
11626
11627 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
11628 Add extra args to FACE_FOR_CHAR.
11629
116302008-02-01 Kenichi Handa <handa@m17n.org>
11631
11632 * keymap.c (where_is_internal_1): If key is a cons, store the copy
11633 in sequence.
11634
11635 * chartab.c (map_sub_char_table, map_char_table): If the range
11636 contains just one character, call the function with that character
11637 even if the depth is not 3.
11638
116392008-02-01 Jason Rumney <jasonr@gnu.org>
11640
11641 * w32font.c (w32font_text_extents): Calculate metrics for the
11642 whole string.
11643
116442008-02-01 Jason Rumney <jasonr@gnu.org>
11645
11646 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
11647
116482008-02-01 Jason Rumney <jasonr@gnu.org>
11649
11650 * w32term.c (x_set_glyph_string_clipping): Use
11651 get_glyph_string_clip_rects.
11652 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
11653 Adjust for the change of struct glyph_string.
11654
11655 * w32font.c (w32font_draw): Do clipping here.
11656
116572008-02-01 Kenichi Handa <handa@m17n.org>
11658
11659 * xftfont.c (xftfont_draw): Adjust for the change of struct
11660 glyph_string.
11661
11662 * xterm.c (x_set_glyph_string_clipping): Use
11663 get_glyph_string_clip_rects.
11664 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
11665 Adjust for the change of struct glyph_string.
11666
11667 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
11668 the resulting clip(s}.
11669 (expose_overlaps): Add arg r. Change callers. Set it to
11670 row->clip temporarily.
11671 (expose_window): Redraw rows overlapping the exposed area.
11672
11673 * dispextern.h (struct glyph_row): New member clip.
11674 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
11675 clip_height, new member clip, and num_clips.
11676
116772008-02-01 Kenichi Handa <handa@m17n.org>
11678
11679 * data.c (Fchar_or_string_p): Fix docstring.
11680
116812008-02-01 Kenichi Handa <handa@m17n.org>
11682
11683 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
11684 create a temporary XftDraw object.
11685
116862008-02-01 Kenichi Handa <handa@m17n.org>
11687
11688 * font.c (Ffontp): Fix docstring.
11689
11690 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
11691 strong evidence of ISO-2022.
11692
116932008-02-01 Kenichi Handa <handa@m17n.org>
11694
11695 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
11696 SYNTAX_ENTRY_FOLLOW_PARENT.
11697
116982008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
11699
11700 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
11701 its type.
11702 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
11703 Update to the new type of weak_hash_tables and next_weak.
11704
11705 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
11706 a plain C pointer to Lisp_Hash_Table.
11707
11708 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
11709 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
11710 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
11711 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
11712 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
11713 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
11714 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
11715 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
11716 (GC_EQ): Remove since they've been identical to their non-GC_
11717 alter-egos ever since the markbit was eradicated.
11718
11719 * alloc.c:
11720 * buffer.c:
11721 * buffer.h:
11722 * data.c:
11723 * fileio.c:
11724 * filelock.c:
11725 * fns.c:
11726 * frame.h:
11727 * lisp.h:
11728 * macterm.c:
11729 * print.c:
11730 * process.c:
11731 * w32fns.c:
11732 * w32menu.c:
11733 * w32term.c:
11734 * xfns.c:
11735 * xmenu.c:
11736 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
11737
117382008-02-01 Kenichi Handa <handa@m17n.org>
11739
11740 * chartab.c (map_sub_char_table): Make it work for the top-level
11741 char-table. Fix handling of parent char-table.
11742 (map_char_table): Adjust for the above change.
11743
117442008-02-01 Jason Rumney <jasonr@gnu.org>
11745
11746 * w32font.c (Qgdi): Rename from Qw32.
11747
117482008-02-01 Jason Rumney <jasonr@gnu.org>
11749
11750 * w32bdf.c (get_quoted_string): Make function static.
11751
117522008-02-01 Kenichi Handa <handa@m17n.org>
11753
11754 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
11755 bigger ascent and descent than those of the font, use them as
11756 font's ascent and descent.
11757
117582008-02-01 Kenichi Handa <handa@m17n.org>
11759
11760 * Makefile.in (${lispsource}international/charprop.el): Move this
11761 target within "#ifdef HAVE_UNIDATA" and "#endif".
11762
117632008-02-01 Kenichi Handa <handa@m17n.org>
11764
11765 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
11766 (shortlisp): Add ../lisp/language/tai-viet.el.
11767
117682008-02-01 Ulrich Mueller <ulm@gentoo.org>
11769
11770 * Makefile.in (${lispsource}international/charprop.el): Depend on
11771 temacs${EXEEXT}.
11772
117732008-02-01 Jason Rumney <jasonr@gnu.org>
11774
11775 * w32font.c (w32font_close): Delete the GDI font object.
11776
11777 * w32menu.c: Include character.h.
11778
11779 * w32proc.c: Likewise.
11780
11781 * w32select.c: Likewise.
11782
11783 * makefile.w32-in (w32proc.o): Depend on character.h.
11784
117852008-02-01 Jason Rumney <jasonr@gnu.org>
11786
11787 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
11788
11789 * w32menu.c (syms_of_w32menu): Likewise.
11790
11791 * w32proc.c (syms_of_ntproc): Likewise.
11792
11793 * w32select.c (syms_of_w32select): Likewise.
11794
11795 * w32term.c (syms_of_w32term): Likewise.
11796
117972008-02-01 Jason Rumney <jasonr@gnu.org>
11798
11799 * w32font.c (w32font_draw): Delete brush after using it.
11800
118012008-02-01 Jason Rumney <jasonr@gnu.org>
11802
11803 * w32font.c (w32font_open): Don't set font_idx.
11804 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
11805 to font settings.
11806 (w32font_draw): Fill background explicitly.
11807
118082008-02-01 Jason Rumney <jasonr@gnu.org>
11809
11810 * w32term.c (w32_initialize): Don't call w32font_initialize.
11811
11812 * w32font.c (w32font_info): Remove subranges.
11813 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
11814 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
11815 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
11816 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
11817 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
11818 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
11819 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
11820 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
11821 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
11822 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
11823 New symbols.
11824 (font_callback_data): New struct.
11825 (w32font_list, w32font_match): Use it.
11826 (w32font_open): Don't populate subranges.
11827 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
11828 (w32font_encode_char): Always return unicode code-point as-is.
11829 (w32font_text_extents): Supply a transformation matrix to
11830 GetGlyphOutline. Never look up by glyph index. Avoid looping
11831 twice. Use unicode version of GetTexExtentPoint32 instead of
11832 glyph index version.
11833 (set_fonts_frame): Remove.
11834 (w32_enumfont_pattern_entity): Add frame parameter, use it to
11835 set frame parameter. Use backward compatible fake foundries.
11836 Save generic family in extra slot under QCfamily. Make width slot
11837 constant. Save QCspacing value. Save list of scripts instead of
11838 binary subranges.
11839 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
11840 (add_font_entity_to_list): Use font_callback_data struct. Filter
11841 unwanted fonts.
11842 (add_one_font_entity_to_list): Use font_callback_data struct.
11843 (w32_registry): Default to iso10646_1.
11844 (fill_in_logfont): Use dpi from extra slot. Don't bother with
11845 string font registries. Don't fill in font name if it is a generic
11846 family name, fill family instead. Use spacing, family and script
11847 extra info to fill pitch, family and charset fields.
11848 (list_all_matching_fonts): Use font_callback_data struct.
11849 (unicode_range_for_char): Remove.
11850 (font_supported_scripts): New function.
11851 (w32font_initialize): Remove.
11852 (syms_of_w32font): Update which symbols are defined.
11853
118542008-02-01 Jason Rumney <jasonr@gnu.org>
11855
11856 * font.c (font_pixel_size): Reverse assq_no_quit args.
11857
11858 * w32term.h (FONT_WIDTH): Report max width, not average.
11859 (FONT_MAX_WIDTH): Remove.
11860 (FONT_AVG_WIDTH): New macro.
11861
11862 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
11863 redefinition of FONT_WIDTH.
11864
11865 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
11866 (w32_cache_char_metrics): Use FONT_WIDTH.
11867
11868 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
11869
118702008-02-01 Jason Rumney <jasonr@gnu.org>
11871
11872 * w32font.c (w32font_open): Make lfHeight negative.
11873
11874 * w32fns.c (x_default_font_parameter): Use new style font name.
11875 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
11876
118772008-02-01 Jason Rumney <jasonr@gnu.org>
11878
11879 * w32font.c (QCsubranges): New symbol.
11880 (w32font_open, w32font_has_char): Get subranges from subproperty
11881 of extra.
11882 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
11883 (syms_of_w32font): Define :subranges symbol.
11884
11885 * font.c (font_put_extra): Expose externally.
11886
11887 * font.h (font_put_extra): Move declaration from font.c.
11888
11889 * font.c (Ffont_get): Use font driver to determine otf capability.
11890 (adjust_anchor): Check if driver defines anchor_point before using.
11891
11892 * w32font.c (w32font_open): Handle size, height and pixel_size better.
11893 (w32font_draw): Use options.
11894 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
11895 Fix detection of truetype fonts.
11896 (registry_to_w32_charset): Handle charsets other than iso8859-1
11897 expressed as lisp symbols.
11898 (w32_registry): Express charset as lisp symbol.
11899 (fill_in_logfont): Reverse pixel and point height logic.
11900 Don't set width here. Set quality to default.
11901
11902 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
11903 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
11904
11905 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
11906 Remove redundant loop and allocation.
11907
11908 * makefile.w32-in (font.o, w32font.o): New objects.
11909 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
11910 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
11911
11912 * xdisp.c (fill_composite_glyph_string): Make the first arg to
11913 STORE_XCHARB a valid l-value.
11914
11915 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
11916 calculations for non-Truetype fonts.
11917 (x_draw_glyph_string): Sync with xterm.c.
11918 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
11919 Remove redundant code.
11920 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
11921
11922 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
11923 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
11924
11925 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
11926 (x_to_w32_charset, w32_to_x_charset): Expose externally.
11927
11928 * w32font.c: New file for w32 font backend.
11929
119302008-02-01 Kenichi Handa <handa@m17n.org>
11931
11932 * term.c: Don't include "buffer.h" twice.
11933
119342008-02-01 Kenichi Handa <handa@m17n.org>
11935
11936 * character.c (Funibyte_string): New function.
11937 (syms_of_character): Defsubr it.
11938
119392008-02-01 Jason Rumney <jasonr@gnu.org>
11940
11941 * w32term.c [USE_FONT_BACKEND]:
11942 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
11943 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
11944 (x_draw_glyph_string, x_draw_glyph_string_foreground)
11945 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
11946 (x_free_frame_resources): Sync with xterm.c.
11947
119482008-02-01 Andreas Schwab <schwab@suse.de>
11949
11950 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
11951 char-table size.
11952
119532008-02-01 Kenichi Handa <handa@m17n.org>
11954
11955 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
11956
119572008-02-01 Kenichi Handa <handa@m17n.org>
11958
11959 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
11960 font_otf_gpos, add font_drive_otf.
11961
11962 * fontset.c (fontset_find_font): Pay attention to font size
11963 specified for a font.
11964 (reorder_font_vector): Check contents of font_def.
11965
11966 * font.c (struct otf_list): Delete it.
11967 (otf_list): Make it a lisp variable.
11968 (otf_open): Use lispy otf_list.
11969 (generate_otf_features): Rename from parse_gsub_gpos_spec.
11970 (check_otf_features): New function.
11971 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
11972 New functions.
11973 (font_drive_otf): New function merging font_otf_gsub and
11974 font_otf_gpos.
11975 (font_open_for_lface): New arg spec. Change argument order.
11976 (font_load_for_face): Adjust for the change of font_open_for_lface.
11977 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
11978 Ffont_otf_gpos.
11979 (syms_of_font): Staticpro otf_list. Delete defsubr of
11980 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
11981
11982 * xfaces.c (set_font_frame_param): Adjust for the change of
11983 font_open_for_lface.
11984
11985 * font.h (font_open_for_lface): Adjust prototype.
11986 (struct font_driver): Delete members otf_gsub and otf_gpos, add
11987 member otf_drive.
11988 (font_otf_gsub, font_otf_gpos): Delete externs.
11989 (font_drive_otf): Extern it.
11990
119912008-02-01 Kenichi Handa <handa@m17n.org>
11992
11993 * font.c (font_at): If the window W is not on a window system,
11994 return Qnil.
11995
11996 * coding.c (produce_chars, encode_coding): Don't call
11997 insert_from_gap if no characters to produce.
11998
119992008-02-01 Kenichi Handa <handa@m17n.org>
12000
12001 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
12002 Fclear_face_cache.
12003
12004 * xfaces.c (face_for_font): Check also face->font==font->font.font.
12005
120062008-02-01 Miles Bader <miles@gnu.org>
12007
12008 * emacs.c (main): Change default value of `enable_font_backend' to 1.
12009 Parse "--disable-font-backend" option.
12010 (standard_args): Add "--disable-font-backend" option.
12011
120122008-02-01 Kenichi Handa <handa@m17n.org>
12013
12014 * fontset.c (fontset_find_font): New function.
12015 (fontset_font): Use fontset_find_font.
12016 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
12017 Register the specified font for all Latin characters.
12018 (new_fontset_from_font): Register the specified font for all Latin
12019 characters.
12020 (dump_fontset): For a realized fontset, include the base fontset
12021 name in the returned vector.
12022
120232008-02-01 Kenichi Handa <handa@m17n.org>
12024
12025 * character.h (CHAR_STRING): Cast C to unsigned on calling
12026 char_string.
12027
12028 * character.c (char_string): Type of arg C changed to unsigned.
12029 Signal an error if C is an invalid character code.
12030
12031 * editfns.c (general_insert_function, Fchar_to_string):
12032 Use CHARACTERP, not INTEGERP.
12033
120342008-02-01 Kenichi Handa <handa@m17n.org>
12035
12036 * character.h (MIN_MULTIBYTE_LEADING_CODE)
12037 (MAX_MULTIBYTE_LEADING_CODE): New macros.
12038
12039 * regex.c (analyse_first): Fix for multibyte characters in "case
12040 charset:" and "case categoryspec:".
12041
120422008-02-01 Andreas Schwab <schwab@suse.de>
12043
12044 * Makefile.in (LIBES): Move standard libraries to the end.
12045
120462008-02-01 Kenichi Handa <handa@m17n.org>
12047
12048 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
12049 nonzero, don't shrink the buffer nextb.
12050
12051 * buffer.h (struct buffer_text): New member inhibit_shrinking.
12052
12053 * coding.c (coding_alloc_by_making_gap): New arg offset.
12054 (alloc_destination): Call coding_alloc_by_making_gap with the arg
12055 offset.
12056 (decode_coding_iso_2022): Update coding->safe_charsets.
12057 (decode_coding_gap): Temporarily set
12058 current_buffer->text->inhibit_shrinking to 1.
12059
120602008-02-01 Kenichi Handa <handa@m17n.org>
12061
12062 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
12063 indexing into elements of s->cmp and s->char2b.
12064
120652008-02-01 Juanma Barranquero <lekktu@gmail.com>
12066
12067 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
12068
120692008-02-01 Kenichi Handa <handa@m17n.org>
12070
12071 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
12072 target_multibyte instead of multibyte.
12073 (re_match_2_internal): Call bcmp_translate with target_multibyte.
12074 (bcmp_translate): Change the argument name from multibyte to
12075 target_multibyte.
12076
120772008-02-01 Kenichi Handa <handa@m17n.org>
12078
12079 These changes are to compile a regexp into a pattern that can be
12080 used both for multibyte and unibyte targets.
12081
12082 * Makefile.in (search.o): Depend on charset.h.
12083
12084 * character.c (multibyte_char_to_unibyte_safe): New function.
12085
12086 * search.c: Include "charset.h".
12087 (compile_pattern_1): Delete argument multibyte. Don't set
12088 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
12089 (compile_pattern): Don't compare cp->buf.target_multibyte.
12090 Compare cp->buf.charset_unibyte.
12091 (compile_pattern): Set cp->buf.target_multibyte.
12092
12093 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
12094
12095 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
12096
12097 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
12098 multibyte. Change callers.
12099 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
12100 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
12101 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
12102 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
12103 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
12104 (regex_compile): Make the compiled pattern usable both for
12105 multibyte and unibyte targets.
12106 (analyse_first): Make the fastmap usable both for multibyte and
12107 unibyte targets.
12108 (TRANSLATE_VIA_MULTIBYTE): Delete.
12109 (re_match_2_internal): Pay attention to the case that the
12110 multibyteness of bufp and target may be different.
12111
121122008-02-01 Kenichi Handa <handa@m17n.org>
12113
12114 * xdisp.c (x_produce_glyphs): When a font is not found, make the
12115 empty box occupy at least one column width.
12116
121172008-02-01 Miles Bader <miles@gnu.org>
12118
12119 * Makefile.in: Remove redundant HAVE_XFT clause.
12120
121212008-02-01 Kenichi Handa <handa@m17n.org>
12122
12123 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
12124
121252008-02-01 Kenichi Handa <handa@m17n.org>
12126
12127 * fontset.c (Finternal_char_font): Fix for the case of POSITION
12128 being nil.
12129
121302008-02-01 Kenichi Handa <handa@m17n.org>
12131
12132 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
12133
121342008-02-01 Kenichi Handa <handa@m17n.org>
12135
12136 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
12137
121382008-02-01 Kenichi Handa <handa@m17n.org>
12139
12140 * search.c (simple_search): Fix previous change.
12141
121422008-02-01 Kenichi Handa <handa@m17n.org>
12143
12144 * xftfont.c (ftfont_font_format): Extern declaration.
12145
12146 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
12147
12148 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
12149 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
12150
12151 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
12152 (ftfont_font_format): Fix previous change.
12153
12154 * font.h (Ffont_xlfd_name): EXFUN it.
12155
12156 * font.c (font_parse_xlfd): Fix the array size of `f'.
12157 (register_font_driver): Use EQ to compare driver->type.
12158
12159 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
12160 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
12161 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
12162
121632008-02-01 Kenichi Handa <handa@m17n.org>
12164
12165 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
12166 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
12167
121682008-02-01 Kenichi Handa <handa@m17n.org>
12169
12170 * xfont.c (xfont_open): Set font->format.
12171
12172 * xftfont.c (xftfont_open): Set font->format.
12173
12174 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
12175 (ftfont_list): Include FC_FONTFORMAT in FcObject.
12176 (ftfont_open): Set font->format.
12177 (ftfont_font_format): New function.
12178
12179 * font.h (struct font): New member format.
12180
12181 * font.c (Qopentype): New variable.
12182 (syms_of_font): Defsym it.
12183 (Fquery_font): Change the format of the last element of the return
12184 value.
12185
121862008-02-01 Kenichi Handa <handa@m17n.org>
12187
12188 * xfns.c (xic_create_xfontset): Try the default fontset name as a
12189 last resort.
12190
121912008-02-01 Kenichi Handa <handa@m17n.org>
12192
12193 * coding.c (detect_coding_charset): Fix detection of multi-byte
12194 charset.
12195
121962008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
12197
12198 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
12199
122002008-02-01 Kenichi Handa <handa@m17n.org>
12201
12202 * xdisp.c (get_next_display_element): Set it->face_id for the
12203 first component of a composition.
12204 (x_produce_glyphs): Check if the font is changed or not for composition.
12205
122062008-02-01 Kenichi Handa <handa@m17n.org>
12207
12208 * fontset.c (Qlatin): New variable.
12209 (syms_of_fontset): Define it as a lisp symbol.
12210 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
12211
122122008-02-01 Kenichi Handa <handa@m17n.org>
12213
12214 * font.c (font_unparse_fcname): Pay attention to the case that
12215 some of font property is a null string.
12216
122172008-02-01 Kenichi Handa <handa@m17n.org>
12218
12219 * term.c: Include "composite.h".
12220 (encode_terminal_code): Output all components of composition.
12221 Check the size of encode_terminal_src.
12222 (produce_glyphs): For composition, call produce_composite_glyph.
12223 (append_composite_glyph, produce_composite_glyph): New functions.
12224
12225 * xdisp.c (x_produce_glyphs): In handling composition, if a font
12226 is not found, get font_info from the current ascii face.
12227
122282008-02-01 Kenichi Handa <handa@m17n.org>
12229
12230 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
12231 buffer-file-name to Qnil before calling insert_from_buffer.
12232
12233 * font.c (font_unparse_fcname): Pay attention to the case that
12234 foundry is a null string.
12235
122362008-02-01 Kenichi Handa <handa@m17n.org>
12237
12238 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
12239
12240 * font.c (Qunicode_sip): New variable.
12241 (syms_of_font): Declare it as a Lisp symbol.
12242
12243 * font.h (Qunicode_sip): Extern it.
12244
122452008-02-01 Kenichi Handa <handa@m17n.org>
12246
12247 * composite.c (get_composition_id): Pay attention to TAB component.
12248
12249 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
12250 TAB. Adjust for the change of s->char2b which always points to
12251 the first element of allocated memory.
12252
12253 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
12254
12255 * xdisp.c (handle_composition_prop): Set it->c to the first
12256 non-TAB component.
12257 (fill_composite_glyph_string): Change argument.
12258 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
12259 (x_produce_glyphs): Fix handling of left/right padding.
12260
122612008-02-01 Kenichi Handa <handa@m17n.org>
12262
12263 * coding.c (detect_coding_system): Fix for handling off
12264 inhibit_iso_escape_detection. Fix for the case that no coding
12265 system is defined for a specific coding category.
12266
122672008-02-01 Kenichi Handa <handa@m17n.org>
12268
12269 * font.c (font_matching_entity): Delete unused local var.
12270
12271 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
12272 opening a font.
12273
12274 * fileio.c (Finsert_file_contents): On recovering a file, assume
12275 Unix-like eol.
12276 (choose_write_coding_system): On auto-saving a file, force
12277 Unix-like eol.
12278
12279 * coding.c (setup_coding_system): Fix setting of
12280 coding->common_flags based on eol_type.
12281 (coding_inherit_eol_type): If PARENT is not nil, be sure to
12282 inherit from it.
12283
122842008-02-01 Kenichi Handa <handa@m17n.org>
12285
12286 * alloc.c (NSTATICS): Increas to 0x600.
12287
122882008-02-01 Kenichi Handa <handa@m17n.org>
12289
12290 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
12291 (ftfont_list): Don't check :name property.
12292 (ftfont_match): New function.
12293 (ftfont_pattern_entity): If the pattern doesn't contain
12294 FC_SPACING, don't assume FC_MONO.
12295
12296 * font.h (struct font_driver): New member `match'.
12297 (font_update_drivers): Adjust prototype.
12298
12299 * font.c (font_parse_fcname, font_parse_name): Don't change :name
12300 property of FONT.
12301 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
12302 them unconditionally.
12303 (font_matching_entity): New function.
12304 (font_open_by_name): Try font_matching_entity if exact match is
12305 not found.
12306 (font_update_drivers): Delete the arg FONT. Return a list of
12307 actually used backends. Don't free faces, font caches here.
12308 Don't store data in frame parameters. Don't call x_set_font.
12309 (Ffont_spec): Store :name property as is.
12310 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
12311 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
12312 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
12313 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
12314 Call font->driver->otf_gsub instead of font_otf_gsub.
12315
12316 * frame.c (x_set_font_backend): Do more works that were done in
12317 font_update_drivers before.
12318
12319 * xfont.c (xfont_match): New function.
12320 (xfont_driver): Set xfont_driver.match to xfont_match.
12321 (xfont_draw): Set font in GC if necessary.
12322
12323 * ftxfont.c (ftxfont_match): New function.
12324 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
12325
12326 * xftfont.c (xftfont_match): New function.
12327 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
12328
123292008-02-01 Kenichi Handa <handa@m17n.org>
12330
12331 * font.h (struct font): New member scalable.
12332 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
12333 (font_otf_gsub): Adjust prototype.
12334
12335 * font.c (font_otf_capability): Fix handling of the default langsys.
12336 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
12337 Check the contents of SPEC.
12338 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
12339 (check_gstring): New function.
12340 (REPLACEMENT_CHARACTER): New macro.
12341 (font_otf_gsub): New arg alternate_subst. Be sure to set all
12342 glyph codes of GSTRING.
12343 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
12344 (font_prepare_composition): Set cmp->glyph_len.
12345 (font_open_entity): Set font->scalable.
12346 (Ffont_get): Handle :otf property.
12347 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
12348 functions.
12349 (Fquery_font): Use font->font.full_name.
12350 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
12351 Sfont_otf_alternates.
12352
12353 * ftfont.c (ftfont_open): Set font->font.full_name and
12354 font->font.name properly. Fix calculation of font->font.height
12355 and font->min_width.
12356
12357 * ftxfont.c (ftxfont_create_gcs): New function.
12358 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
12359 (ftxfont_draw_backgrond): Fix filling region.
12360 (ftxfont_default_fid): New function.
12361 (ftxfont_open): Set xfont->fid to the return value of
12362 ftxfont_default_fid.
12363 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
12364 (ftxfont_done_face): Free only GCs that are created by
12365 ftxfont_create_gcs.
12366 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
12367
12368 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
12369 Clip to src->width, etc (not src->clip_XXX).
12370
12371 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
12372 FontBackend frame parameter.
12373
123742008-02-01 Kenichi Handa <handa@m17n.org>
12375
12376 * font.h (struct font_driver_list): New member `on'.
12377 (Fclear_font_cache): EXFUN it.
12378 (font_update_drivers): Extern it.
12379
12380 * font.c (font_unparse_fcname): Fix typo (swidth->width).
12381 (font_list_entities): Check driver_list->on.
12382 (register_font_driver): Initalize `on' member to 0.
12383 (font_update_drivers): New function.
12384 (Fclear_font_cache): Check driver_list->on.
12385
12386 * frame.h (Qfont_backend): Extern it.
12387 (x_set_font_backend): Extern it.
12388
12389 * frame.c (Qfont_backend): New variable.
12390 (frame_parms): New element for font-backend.
12391 (x_set_font_backend): New function.
12392
12393 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
12394 FontBackend frame parameter.
12395 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
12396 x_set_font_backend.
12397
12398 * xfont.c (xfont_list): Don't try listing by :name property if the
12399 name is not for XLFD.
12400
124012008-02-01 Kenichi Handa <handa@m17n.org>
12402
12403 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
12404 (LGLYPH_SET_TO): New macros.
12405 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
12406 element of G is vector or not.
12407 (font_at): Extern it.
12408
12409 * font.c: Include window.h.
12410 (font_lispy_object): New function.
12411 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
12412 end of valid glyph.
12413 (font_close_object): Fix getting (struct font *).
12414 (font_at): New function.
12415 (Ffont_get): If FONT is a font-object, get entity from it.
12416 (Ffont_make_gstring): Initialize elements of glyphs with nil.
12417 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
12418 range check.
12419 (Ffont_at): New function.
12420 (syms_of_font): Defsubr Sfont_at.
12421
12422 * xdisp.c (it_props): Move the entry for Qauto_composed to just
12423 before the entry for Qcomposition.
12424 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
12425 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
12426 the font in gstring.
12427 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
12428 LGLYPH_FORM (g) to detect the end of valid glyph.
12429 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
12430 we are composing with gstring.
12431
12432 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
12433 Check if adjustment is vector or not.
12434
12435 * Makefile.in (font.o): Make it depends on window.h.
12436
124372008-02-01 Kenichi Handa <handa@m17n.org>
12438
12439 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
12440 adjustment is vector or not.
12441
124422008-02-01 Miles Bader <miles@gnu.org>
12443
12444 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
12445
124462008-02-01 Kenichi Handa <handa@m17n.org>
12447
12448 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
12449 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
12450 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
12451
12452 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
12453 (DEVICE_DELTA): Fix typo.
12454 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
12455 LGLYPH format.
12456
12457 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
12458 the change of LGLYPH format.
12459
124602008-02-01 Kenichi Handa <handa@m17n.org>
12461
12462 * ftfont.c (ftfont_list): Fix typo.
12463 (ftfont_build_basic_charsets): Don't include letters with diacritics.
12464
124652008-02-01 Jan Djärv <jan.h.d@swipnet.se>
12466
12467 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
12468
12469 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
12470 xftface_info is non-NULL.
12471
124722008-02-01 Jan Djärv <jan.h.d@swipnet.se>
12473
12474 * ftfont.c (ftfont_list): Move misplaced #endif.
12475
124762008-02-01 Kenichi Handa <handa@m17n.org>
12477
12478 * ftfont.c (ftfont_list): Pay attention to the case that
12479 FC_CAPABILITY is not defined.
12480
124812008-02-01 Kenichi Handa <handa@m17n.org>
12482
12483 * xftfont.c (xftfont_open): Set charset related members to -1.
12484
12485 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
12486 QCname.
12487 (ftfont_open): Set charset related members to -1.
12488
12489 * fontset.c (Votf_script_alist): New variable.
12490 (syms_of_fontset): Initialize it.
12491 (fontset_font): Delete unused variable.
12492
12493 * fontset.h (Votf_script_alist): Extern it.
12494
12495 * font.c (font_find_for_lface): Optimize code.
12496
12497 * font.h (font_close_object, font_merge_old_spec): Extern them.
12498
124992008-02-01 Kenichi Handa <handa@m17n.org>
12500
12501 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
12502 (syms_of_font): Initialize them.
12503 (font_pixel_size): Allow float value in dpi.
12504 (font_prop_validate_type): Delete.
12505 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
12506 Change caller.
12507 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
12508 (font_prop_validate_extra): Delete.
12509 (font_prop_validate_spacing): New function.
12510 (font_property_table): Add elements for all known properties.
12511 (get_font_prop_index): Rename from check_font_prop_name. New
12512 argument FROM. Change caller.
12513 (font_prop_validate): Validate all known properties.
12514 (font_put_extra): Delete argument force. Change caller.
12515 (font_expand_wildcards): Make it static. Fix the way of shrinking
12516 the possible range.
12517 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
12518 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
12519 Change caller.
12520 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
12521 (font_parse_fcname): Delete argument merge. Fix parsing of point
12522 size. Don't validate properties values here. Change caller.
12523 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
12524 (font_open_by_name): Delete unused variable.
12525 (Ffont_spec): Likewise. Validate property values.
12526 (Ffont_match_p): New function.
12527
12528 * font.h (QCscalable): Extern it.
12529 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
12530
12531 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
12532
12533 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
12534 (xfont_list_pattern): New function.
12535 (xfont_list): Use xfont_list_pattern.
12536
125372008-02-01 Kenichi Handa <handa@m17n.org>
12538
12539 * font.h (Flist_fonts): EXFUN it.
12540
125412008-02-01 Jason Rumney <jasonr@gnu.org>
12542
12543 * w32term.c (w32_initialize): Add back smoothing_type and
12544 smoothing_enabled definitions.
12545
125462008-02-01 Kenichi Handa <handa@m17n.org>
12547
12548 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
12549 s->face->font on determining underline position.
12550
125512008-02-01 Kenichi Handa <handa@m17n.org>
12552
12553 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
12554 (font_has_char): Accept font-object too.
12555 (font_find_for_lface): Try at first with a size specified in face.
12556
125572008-02-01 Kenichi Handa <handa@m17n.org>
12558
12559 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
12560 font_open_by_name.
12561
125622008-02-01 Kenichi Handa <handa@m17n.org>
12563
12564 * font.h (QCspacing, QCdpi): Extern them.
12565 (enum font_spacing): New enum.
12566 (FONT_PIXEL_SIZE_QUANTUM): New macro.
12567
12568 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
12569 (QCspacing, QCdpi): New variables.
12570 (syms_of_font): Initialize them.
12571 (font_pixel_size): New function.
12572 (font_put_extra): New function.
12573 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
12574 in FONT_EXTRA.
12575 (font_parse_fcname): Handle enumerated values (e.g. bold).
12576 Fix handling font size. Add QCname property that contains only
12577 unknown properties.
12578 (font_score): Change argument. Change caller. Pay attention to
12579 FONT_PIXEL_SIZE_QUANTUM.
12580 (font_sort_entites, font_list_entities, font_find_for_lface)
12581 (font_open_for_lface, font_open_by_name): Fix handling of font size.
12582 (Ffont_spec): Add QCname property that contains only unknown properties.
12583
12584 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
12585 include weight in listing pattern, instead check weight of each
12586 listed font. Don't include scalable in pattern. Pay attention to
12587 FONT_PIXEL_SIZE_QUANTUM.
12588
125892008-02-01 Kenichi Handa <handa@m17n.org>
12590
12591 * font.c (font_parse_fcname): Fix parsing of point-size.
12592 (font_unparse_fcname): Produce symbolic names for style properties.
12593 (font_list_entities): Handle float size correctly.
12594 (font_open_by_name): Prefer `normal' property values if the name
12595 doesn't specify them.
12596
12597 * fontset.c (Finternal_char_font): Use font_get_name, not
12598 Ffont_xlfd_name.
12599
12600 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
12601 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
12602 pattern. Don't force scalable.
12603
12604 * xftfont.c (xftfont_open): For generating a name, start from
12605 96-byte buffer.
12606
126072008-02-01 Jan Djärv <jan.h.d@swipnet.se>
12608
12609 * frame.h (x_new_fontset2): Fix prototype.
12610
126112008-02-01 Kenichi Handa <handa@m17n.org>
12612
12613 * font.h (struct font_driver): Delete member parse_name.
12614 (font_match_p, font_get_spec, font_parse_fcname)
12615 (font_unparse_fcname): Extern them.
12616 (font_get_name): Adjust prototype.
12617
12618 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
12619 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
12620 (font_expand_wildcards): Fix handling ENCODING field. Avoid
12621 unnecessary checks for weight, slant, and swidth.
12622 (font_parse_fcname): New function.
12623 (font_unparse_fcname): New function.
12624 (font_parse_name): New function.
12625 (font_match_p): New function.
12626 (font_get_name): Change return value to Lisp string.
12627 (font_get_spec): New function.
12628 (Qunspecified, Qignore_defface): Don't extern them.
12629 (font_find_for_lface): Assume that LFACE is fully specified.
12630 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
12631 object, use it for FACE.
12632 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
12633 driver->parse_name.
12634 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
12635
12636 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
12637 prototype.
12638
12639 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
12640 argument F. Don't call Fnew_fontset. Instead, directly call
12641 make_fontset.
12642
12643 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
12644
12645 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
12646 of x_new_fontset2.
12647
12648 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
12649 (Qsans__serif): New variables.
12650 (ftfont_generic_family_list): New variable.
12651 (syms_of_ftfont): Initialize the above variables.
12652 (ftfont_pattern_entity): Delete argument NAME.
12653 (ftfont_list_generic_family): New function.
12654 (ftfont_parse_name): Delete this function.
12655 (ftfont_list): Try generic family only when FcFontList found no font.
12656 (ftfont_list_family): Fix args to FcObjectSetBuild.
12657
12658 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
12659 object in attrs[LFACE_FONT_INDEX].
12660 (set_lface_from_font_name): Cancel all changes for font-backend.
12661 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
12662 function.
12663 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
12664 font object in QCfont attribute.
12665 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
12666 (realize_default_face) [USE_FONT_BACKEND]: Call
12667 set_lface_from_font_and_fontset.
12668
12669 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
12670 "fixed", and signal error here if no suitable font was found.
12671
12672 * xfont.c (xfont_parse_name): Delete this function.
12673
12674 * xftfont.c (xftfont_open): Change coding style of error
12675 handling. Generate fontconfig's fontname pattern.
12676
12677 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
12678 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
12679
12680 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
12681 Both args FONTSET and FONT_OBJECT must be existing ones.
12682
126832008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12684
12685 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
12686
126872008-02-01 Kenichi Handa <handa@m17n.org>
12688
12689 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
12690
12691 * font.h (struct font): Fix typo.
12692
12693 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
12694 XLFD_XXX_INDEX.
12695 (enum xlfd_field_mask): New enum.
12696 (intern_font_field): Changed argument. Change caller. If digits
12697 are followed by non-digits, return a symbol.
12698 (font_expand_wildcards): New function.
12699 (font_parse_xlfd): Fix wildcard handling.
12700 (Ffont_spec): If :name is specified, reflect the info in the other
12701 properties.
12702
12703 * ftfont.c (ftfont_pattern_entity): Fix typo.
12704 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
12705 locale.
12706
127072008-02-01 Kenichi Handa <handa@m17n.org>
12708
12709 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
12710
12711 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
12712 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
12713 registry doesn't specify encoding part.
12714 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
12715 (font_open_by_name): At first try parsing the name.
12716 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
12717 as Lisp symbols.
12718
12719 * fontset.c (reorder_font_vector): Pay attention to the case that
12720 the 3rd element of font_def is nil.
12721 (fontset_font): For the default fontset, append one more fontset
12722 elements for a script-based font specification. Don't add script
12723 attribute on finding a font.
12724 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
12725 font name.
12726 (fontset_ascii_font): If a font can't be opened, return nil.
12727
12728 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
12729 (ftfont_pattern_entity): New function.
12730 (ftfont_get_cache): Assume that freetype_font_cache is already
12731 initialized.
12732 (ftfont_list): Handle the case that a file is specified in font
12733 name. Use ftfont_pattern_entity to generate entities.
12734 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
12735 (syms_of_ftfont): Initialize freetype_font_cache.
12736
12737 * xftfont.c (xftfont_open): Make the font name fontconfig's
12738 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
12739 (xftfont_close): Free font->font.name if not NULL.
12740
12741 * xfont.c (xfont_list): If script is specified for a font, return
12742 null_vector.
12743 (xfont_list_family): Declare argument type.
12744
12745 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
12746 name, set LFACE_FONT (lface) to nil.
12747
12748 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
12749 return Qnil.
12750
127512008-02-01 Kenichi Handa <handa@m17n.org>
12752
12753 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
12754 (standard_args): Add "-enable-font-backend".
12755
127562008-02-01 Kenichi Handa <handa@m17n.org>
12757
12758 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
12759 (struct xftdraw_list, xftdraw_list): Delete them.
12760 (register_xftdraw, check_xftdraw): Delete them.
12761 (xftfont_prepare_face): Don't call register_xftdraw.
12762 (xftfont_done_face): Don't call check_xftdraw.
12763 (xftfont_draw): Get background color only when with_background is
12764 nonzero.
12765
12766 * xfont.c (xfont_encode_char): Fix calculation of char2b.
12767
127682008-02-01 Kenichi Handa <handa@m17n.org>
12769
12770 These changes are for the new font handling codes.
12771
12772 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
12773 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
12774 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
12775 (FONTSRC, FONTOBJ): New variables.
12776 (obj): Add $(FONTOBJ).
12777 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
12778 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
12779 @LIBOTF_LIBS@.
12780 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
12781 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
12782
12783 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
12784
12785 * character.h (Vscript_representative_chars): Extern it.
12786
12787 * character.c (Vscript_representative_chars): New variable.
12788 (syms_of_character): Declare it as a Lisp variable.
12789
12790 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
12791 enable_font_backend is nonzero, accept the composition method
12792 COMPOSITION_WITH_GLYPH_STRING.
12793
12794 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
12795 enumeration COMPOSITION_WITH_GLYPH_STRING.
12796
12797 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
12798 members clip_x, clip_y, clip_width, and clip_height.
12799 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
12800
12801 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
12802 --enable-font-backend. Call syms_of_font.
12803
12804 * fns.c (assoc_no_quit): New function.
12805
12806 * fontset.h (FONT_INFO_FROM_FACE): New macro.
12807 (face_for_font, new_fontset_from_font)
12808 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
12809
12810 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
12811 (fontset_font, fontset_ascii, face_for_char)
12812 (make_fontset_for_ascii_face, Ffont_info)
12813 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
12814 is nonzero, use font-backend mechanism.
12815 (find_font_encoding): Make it non-static.
12816 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
12817 New functions.
12818
12819 * frame.h (struct frame): New members resx and resy.
12820 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
12821 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
12822
12823 * frame.c [USE_FONT_BACKEND]: Include "font.h".
12824 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
12825
12826 * lisp.h (assoc_no_quit): Extern it.
12827
12828 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
12829 Through out the file, use FONT_INFO_FROM_FACE instead of
12830 FONT_INFO_FROM_ID, use get_per_char_metric instead of
12831 rif->per_char_metric.
12832 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
12833 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
12834 (get_glyph_face_and_encoding, fill_composite_glyph_string)
12835 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
12836 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
12837 nonzero, use font-backend mechanism.
12838 (get_per_char_metric): New function.
12839
12840 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
12841 (set_lface_from_font_name)
12842 (set_font_frame_param, free_realized_face)
12843 (prepare_face_for_display, clear_face_gcs)
12844 (Finternal_set_font_selection_order, realize_x_face)
12845 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
12846 font-backend mechanism.
12847 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
12848 (load_face_font) [USE_FONT_BACKEND]: Abort.
12849 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
12850 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
12851
12852 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
12853 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
12854 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
12855 nonzero, register all available font drivers. Call
12856 x_default_font_parameter for deciding a font.
12857 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
12858
12859 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
12860 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
12861 (x_set_glyph_string_clipping_exactly)
12862 (x_compute_glyph_string_overhangs)
12863 (x_draw_glyph_string_foreground)
12864 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
12865 (x_free_frame_resources) [USE_FONT_BACKEND]: If
12866 enable_font_backend is nonzero, use font-backend mechanism.
12867 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
12868
128692008-02-01 Kenichi Handa <handa@m17n.org>
12870
12871 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
12872 system_eol_type.
12873 (syms_of_coding): Initialize system_eol_type.
12874
12875 * process.c (Fset_process_coding_system): Inherit system's eol
12876 format if necessary.
12877
128782008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12879
12880 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
12881
128822008-02-01 Kenichi Handa <handa@m17n.org>
12883
12884 * coding.c (decode_eol): Pay attention to buffer relocation in
12885 del_range_2.
12886 (decode_coding): Call decode_eol before restoring undo_list.
12887
128882008-02-01 Kenichi Handa <handa@m17n.org>
12889
12890 * charset.c (Fdefine_charset_internal): Fix setting of
12891 emacs_mule_bytes.
12892
128932008-02-01 Kenichi Handa <handa@m17n.org>
12894
12895 * keyboard.c (read_char): Check if C is a character or not before
12896 looking up Vkeyboard_translate_table.
12897
128982008-02-01 Kenichi Handa <handa@m17n.org>
12899
12900 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
12901 condition to terminate the loop.
12902
129032008-02-01 Kenichi Handa <handa@m17n.org>
12904
12905 * coding.c (produce_composition): Compare charbuf[i] instead of
12906 args[i] against 0.
12907 (Fterminal_coding_system): Use EQ to compare Lisp objects.
12908
129092008-02-01 Kenichi Handa <handa@m17n.org>
12910
12911 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
12912 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
12913 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
12914 detect_coding.
12915 (emacs_mule_char): Handle old style (Emacs 20) component character
12916 of a composition.
12917 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
12918 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
12919 composition rule.
12920 (decode_coding_emacs_mule): Handle invalid bytes correctly.
12921
129222008-02-01 Kenichi Handa <handa@m17n.org>
12923
12924 * coding.c (encode_coding_ccl): Allocate destination dynamically
12925 when necessary.
12926
129272008-02-01 Kenichi Handa <handa@m17n.org>
12928
12929 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
12930 the loop. When quitted, show a proper error message.
12931
129322008-02-01 Kenichi Handa <handa@m17n.org>
12933
12934 * xterm.c (x_set_glyph_string_clipping_exactly): Set
12935 src->clip_head and src->clip_tail temporarily instead of src->hl.
12936
12937 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
12938 character sequence.
12939 (Fccl_execute_on_string): Use ASET, not XSET.
12940
129412008-02-01 Kenichi Handa <handa@m17n.org>
12942
12943 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
12944
129452008-02-01 Kenichi Handa <handa@m17n.org>
12946
12947 * coding.c (decode_coding): Fix the condition of terminating the
12948 decoding loop.
12949
129502008-02-01 Kenichi Handa <handa@m17n.org>
12951
12952 * data.c (Faset): On setting a character bigger than 255 in a
12953 unibyte string, signal an error instead of make the string multibyte.
12954
129552008-02-01 Kenichi Handa <handa@m17n.org>
12956
12957 * charset.c (map_charset_chars): Fix for ascii-compatible charset
12958 made by a mapping table.
12959
129602008-02-01 Kenichi Handa <handa@m17n.org>
12961
12962 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
12963 not.
12964 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
12965 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
12966
12967 * xterm.c (x_draw_composite_glyph_string_foreground): Check
12968 s->face is NULL or not.
12969
129702008-02-01 Kenichi Handa <handa@m17n.org>
12971
12972 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
12973 (x_draw_glyph_string): Fix drawing of right_overhang and
12974 left_overhang around/on cursor.
12975
12976 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
12977
129782008-02-01 Kenichi Handa <handa@m17n.org>
12979
12980 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
12981
129822008-02-01 Kenichi Handa <handa@m17n.org>
12983
12984 * coding.c (Fdefine_coding_system_internal)
12985 (Fdefine_coding_system_alias): Avoid a duplicated element in
12986 Vcoding_system_alist.
12987
129882008-02-01 Kenichi Handa <handa@m17n.org>
12989
12990 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
12991
12992 * coding.c (Qcoding_system_define_form): New variable.
12993 (syms_of_coding): Intern and staticpro it.
12994 (Fcoding_system_p): Check Qcoding_system_define_form.
12995 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
12996
12997 * coding.h (CODING_SYSTEM_P): If ID is not available, call
12998 Fcoding_system_p.
12999 (CHECK_CODING_SYSTEM): If ID is not available, call
13000 Fcheck_coding_system.
13001 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
13002 Try also Fcheck_coding_system.
13003
130042008-02-01 Kenichi Handa <handa@m17n.org>
13005
13006 * coding.c (code_conversion_restore): GCPRO arg.
13007
130082008-02-01 Kenichi Handa <handa@m17n.org>
13009
13010 * character.c (lisp_string_width): Check multibyteness of STRING.
13011
130122008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13013
13014 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
13015 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
13016 (decode_mac_font_name): Use decode_coding_c_string instead of
13017 decode_coding.
13018 (x_load_font): Initialize fontp->fontset to -1. Set
13019 fontp->encoding_type.
13020
130212008-02-01 Kenichi Handa <handa@m17n.org>
13022
13023 * search.c (search_buffer): Give up BM search on case-fold-search
13024 if one of a target character has a case-equivalence of different
13025 byte length even if that target charcter is an ASCII.
13026 (simple_search): Fix calculation of byte length of matched text.
13027 (boyer_moore): Fix handling of case-equivalent multibyte characters.
13028
130292008-02-01 Kenichi Handa <handa@m17n.org>
13030
13031 * coding.c (decode_coding): Fix handling of invalid bytes.
13032
130332008-02-01 Kenichi Handa <handa@m17n.org>
13034
13035 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
13036 Unicode characters.
13037
130382008-02-01 Kenichi Handa <handa@m17n.org>
13039
13040 * coding.c (encode_coding_object): If a pre-write-conversion
13041 function makes a new buffer, kill it.
13042
130432008-02-01 Kenichi Handa <handa@m17n.org>
13044
13045 * coding.c (QCascii_compatible_p): New variable.
13046 (syms_of_coding): Initialize it.
13047 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
13048 calling string_char.
13049 (record_conversion_result): Add `default:' case.
13050 (coding_charset_list): Delete unused variable `coding_type'.
13051 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
13052 property in the plist of the coding system.
13053 (Fcoding_system_put): Check QCascii_compatible_p.
13054
130552008-02-01 Miles Bader <miles@gnu.org>
13056
13057 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
13058 removed calculation of frame `f', as it's now used.
13059
130602008-02-01 Kenichi Handa <handa@m17n.org>
13061
13062 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
13063 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
13064 (UNIDATA): New variable.
13065 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
13066 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
13067 $(RUN_TEMACS) unconditionally.
13068
130692008-02-01 Kenichi Handa <handa@m17n.org>
13070
13071 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
13072 (admindir): New variable.
13073 ($(lispsource)international/charprop.el): New target.
13074
130752008-02-01 Miles Bader <miles@gnu.org>
13076
13077 * character.c (chars-in-region): Remove obsolete function.
13078 (syms_of_character): Remove its initialization.
13079
130802008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
13081
13082 * w32select.c (validate_coding_system)
13083 (setup_windows_coding_system): New functions.
13084 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
13085 setup_windows_coding_system.
13086 (setup_config, Fw32_get_clipboard_data): Use
13087 validate_coding_system.
13088 (Fx_selection_exists): Move call to setup_config to a place
13089 where signals are allowed.
13090
13091 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
13092 (Fcheck_coding_system): Add declarations.
13093
130942008-02-01 Kenichi Handa <handa@m17n.org>
13095
13096 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
13097
130982008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13099
13100 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
13101 string as the second argument for x_new_fontset.
13102
131032008-02-01 Kenichi Handa <handa@m17n.org>
13104
13105 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
13106 (encode_coding_object): Use safe_call instead of call2.
13107
131082008-02-01 Kenichi Handa <handa@m17n.org>
13109
13110 * fontset.c (Fset_fontset_font): Check family element of a given vector.
13111
13112 * Makefile.in (lisp): Include charprop.el.
13113
131142008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13115
13116 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
13117 Not sure if it's unnecessary.
13118
131192008-02-01 Steven Tamm <steventamm@mac.com>
13120
13121 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
13122 some possibly unnecessary fontset checking code that crashed
13123 when creating a new frame.
13124
131252008-02-01 Kenichi Handa <handa@m17n.org>
13126
13127 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
13128 lookup_face.
13129
13130 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
13131
13132 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
13133
131342008-02-01 Kenichi Handa <handa@m17n.org>
13135
13136 * coding.c: Cancel the change done in HEAD on 2008-02-01.
13137 (coding_charset_list): New function.
13138
13139 * coding.h (coding_charset_list): Extern it.
13140
131412008-02-01 Kenichi Handa <handa@m17n.org>
13142
13143 * fontset.c (Fset_fontset_font): Call find_font_encoding with
13144 concatenation of family and registry.
13145
131462008-02-01 Kenichi Handa <handa@m17n.org>
13147
13148 * character.h (BYTE8_STRING): Fix typo.
13149
13150 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
13151 string to multibyte (sync to HEAD).
13152
13153 * casefiddle.c (casify_region): Handle changes in byte-length
13154 using replace_range_2 (sync to HEAD).
13155
131562008-02-01 Andreas Schwab <schwab@suse.de>
13157
13158 * chartab.c (map_char_table): GCPRO table and arg.
13159
131602008-02-01 Kenichi Handa <handa@m17n.org>
13161
13162 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
13163 already at limit.
13164
131652008-02-01 Kenichi Handa <handa@m17n.org>
13166
13167 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
13168 instead of fast_c_string_match_ignore_case.
13169 (find_font_encoding): Change argument to Lisp_Object. Use
13170 fast_string_match_ignore_case instead of
13171 fast_c_string_match_ignore_case. Change caller.
13172
131732008-02-01 Kenichi Handa <handa@m17n.org>
13174
13175 * xdisp.c (get_next_display_element): In unibyte case, decide to
13176 display in octal form by checking a character by
13177 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
13178
13179 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
13180
13181 * character.c (unibyte_has_multibyte_table): New variable.
13182
13183 * character.h (unibyte_has_multibyte_table): Extern it.
13184 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
13185
131862008-02-01 Kenichi Handa <handa@m17n.org>
13187
13188 * coding.c (encode_coding_iso_2022): Fix handling of charset
13189 annotation.
13190
131912008-02-01 Kenichi Handa <handa@m17n.org>
13192
13193 * coding.c (setup_coding_system): If coding_system is nil, use
13194 Qundecided.
13195 (Fterminal_coding_system): Return nil if terminal coding system is
13196 `undecided'.
13197 (syms_of_coding): Define coding-system `undecided' here. Setup
13198 terminal_coding as `undecided'.
13199
132002008-02-01 Kenichi Handa <handa@m17n.org>
13201
13202 * xdisp.c (message_dolog, set_message_1): Call
13203 unibyte_char_to_multibyte with arg type int.
13204
13205 * lread.c (read1): Fix reading of a char-table.
13206
13207 * print.c (print_object): Include sub char-table in circularities
13208 detection.
13209
132102008-02-01 Kenichi Handa <handa@m17n.org>
13211
13212 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
13213 Append the found sequences in car of ARGS instead of prepending.
13214
132152008-02-01 Kenichi Handa <handa@m17n.org>
13216
13217 * fileio.c (report_file_error): Make a unibyte string from
13218 strerror (errorno).
13219 (Fsubstitute_in_file_name): Fix the arg to
13220 unibyte_char_to_multibyte. It is evaluated twice.
13221
132222008-02-01 Kenichi Handa <handa@m17n.org>
13223
13224 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
13225
132262008-02-01 Kenichi Handa <handa@m17n.org>
13227
13228 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
13229 BOM is not found.
13230 (detect_coding, detect_coding_system): Optimization for ISO-2022
13231 when no 8-bit data is found.
13232
132332008-02-01 Jason Rumney <jasonr@gnu.org>
13234
13235 * w32fns.c (x_to_w32_font): Update to use new coding struct.
13236
132372008-02-01 Kenichi Handa <handa@m17n.org>
13238
13239 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
13240 CHARS.
13241
132422008-02-01 Steven Tamm <steventamm@mac.com>
13243
13244 * macterm.c (mac_encode_char): Add charset argument and update
13245 to use encoding_type.
13246 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
13247 switch to pure fontset.
13248 (decode_mac_font_name): Temporarily remove decoding.
13249 (x_font_name_to_mac_font_name): Temporarily remove encoding.
13250 (x_load_font): Temporarily remove encoding.
13251
132522008-02-01 Kenichi Handa <handa@m17n.org>
13253
13254 * xfaces.c (Fface_font): If frame is not on a window system,
13255 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
13256 refer to face->font.
13257 (split_font_name_into_vector, build_font_name_from_vector)
13258 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
13259 when HAVE_WINDOW_SYSTEM is defined.
13260
132612008-02-01 Kenichi Handa <handa@m17n.org>
13262
13263 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
13264 (x_produce_glyphs): Fix setting of members of cmp in case
13265 cmp->glyph_len is zero.
13266
13267 * fontset.c (Fset_fontset_font): Fix docstring.
13268 (Ffontset_info): Make it backward compatible. New arg ALL.
13269
132702008-02-01 Kim F. Storm <storm@cua.dk>
13271
13272 * process.c (read_process_output): Grow decoding_buf when needed;
13273 this could cause a crash in allocate_string and compact_small_strings.
13274
132752008-02-01 Kenichi Handa <handa@m17n.org>
13276
13277 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
13278
132792008-02-01 Kenichi Handa <handa@m17n.org>
13280
13281 * coding.c (setup_coding_system): Set coding->common_flags
13282 correctly for raw-text.
13283 (consume_chars): On encoding unibyte text by raw-text, don't check
13284 multibyte form.
13285 (encode_coding): On encoding by raw-text, never use translation tables.
13286
13287 * fileio.c (e_write): Short cut for the case of no encoding.
13288
132892008-02-01 Kenichi Handa <handa@m17n.org>
13290
13291 * coding.c (detect_coding, detect_coding_system): Delete unused
13292 variables.
13293
132942008-02-01 Kenichi Handa <handa@m17n.org>
13295
13296 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
13297 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
13298
132992008-02-01 Kenichi Handa <handa@m17n.org>
13300
13301 * coding.c (Ffind_coding_systems_region_internal): Include
13302 raw-text and no-conversion in the result.
13303
133042008-02-01 Kenichi Handa <handa@m17n.org>
13305
13306 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
13307 (load_font_get_repertory): Delete unnecessary check of ENCODING of
13308 FONT_DEF.
13309 (font_def_arg, add_arg, from_arg, to_arg): New args.
13310 (set_fontset_font): Change argument.
13311 (Fset_fontset_font): Fix for the case that TARGET is a script
13312 name and charset name.
13313 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
13314
133152008-02-01 Kenichi Handa <handa@m17n.org>
13316
13317 * fontset.c (fontset_font): Rename from fontset_face. Change return
13318 value.
13319 (face_suitable_for_char_p, face_for_char): Adjust for the change
13320 of fontset_font.
13321 (make_fontset_for_ascii_face): Fix setting of the fontset element
13322 for ASCII.
13323 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
13324 to get a font name.
13325 (Ffontset_info): Adjust for the change of fontset_font.
13326
13327 * coding.c (emacs_mule_char): Check invalid code more rigidly.
13328
13329 * character.h (LEADING_CODE_LATIN_1_MIN)
13330 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
13331
133322008-02-01 Kenichi Handa <handa@m17n.org>
13333
13334 * editfns.c (check_translation): New function.
13335 (Ftranslate_region_internal): Handle M:N mapping.
13336
133372008-02-01 Kenichi Handa <handa@m17n.org>
13338
13339 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
13340
133412008-02-01 Kenichi Handa <handa@m17n.org>
13342
13343 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
13344 goto invalid_code.
13345 (decode_coding_iso_2022): Fix handling of invalid designation.
13346
13347 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
13348 after calling code_conversion_save.
13349
133502008-02-01 Kenichi Handa <handa@m17n.org>
13351
13352 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
13353
13354 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
13355
13356 * fontset.c: Include "intervals.h".
13357 (fontset_face): Fix comparing of Lisp_Objects.
13358 (free_face_fontset, new_fontset_from_font_name): Fix
13359 Lisp_Object/int mixup.
13360
13361 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
13362
13363 * coding.c: Add many prototypes for static functions.
13364 (get_translation_table): Allow max_lookup to be NULL.
13365 (decode_coding, Ffind_coding_systems_region_internal)
13366 (Funencodable_char_position, Fcheck_coding_systems_region): Call
13367 get_translation_table with max_lookup NULL.
13368
133692008-02-01 Kenichi Handa <handa@m17n.org>
13370
13371 * coding.c (get_translation_table): Declare it as Lisp_Object.
13372 (LOOKUP_TRANSLATION_TABLE): New macro.
13373 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
13374 instead of CHAR_TABLE_REF.
13375
133762008-02-01 Kenichi Handa <handa@m17n.org>
13377
13378 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
13379 annotation data format.
13380 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
13381 Change arguments FROM and TO to single argument NCHARS. Change caller.
13382 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
13383 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13384 (decode_coding_ccl, decode_coding_charset): Pay attention to
13385 coding->charbuf_used.
13386 (get_translation): New function.
13387 (produce_chars): New arguments translation_table and last_block.
13388 Translate characters here. Return number of carryover chars.
13389 Change caller.
13390 (produce_composition): New argument pos. Change caller.
13391 Adjust for the change of annotation data format.
13392 (produce_charset, produce_annotation): Likewise.
13393 (decode_coding, encode_coding): Don't call translate_chars.
13394 (consume_chars): New arg translation_table. Change caller.
13395 (translate_chars): Delete.
13396 (syms_of_coding): Make translation-table's number of extra slots 2.
13397
133982008-02-01 Kenichi Handa <handa@m17n.org>
13399
13400 * search.c (simple_search): Fix setting this_pos_byte in backward
13401 search.
13402
13403 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
13404 byte sequence.
13405 (detect_coding_ccl): Fix setting of the variable valids.
13406
134072008-02-01 Kenichi Handa <handa@m17n.org>
13408
13409 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
13410
13411 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
13412
13413 * editfns.c (Ftranslate_region_internal): Rename from
13414 Ftranslate_region. Accept a char-table in TABLE.
13415 (syms_of_editfns): Defsubr Stranslate_region_internal.
13416
13417 * xfaces.c (set_lface_from_font_name): If a font is specified for
13418 a frame, generate a fontset from the font.
13419 (build_scalable_font_name): If the scalable font is requested for
13420 a specific size, don't change that size.
13421 (try_font_list): Try a scalable font also in the case that a
13422 pattern string is specified.
13423
134242008-02-01 Kenichi Handa <handa@m17n.org>
13425
13426 * xfaces.c (Fface_font): New optional arg CHARACTER.
13427
134282008-02-01 Kenichi Handa <handa@m17n.org>
13429
13430 * charset.h (CHARSET_OFFSET): New macro.
13431
134322008-02-01 Kenichi Handa <handa@m17n.org>
13433
13434 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
13435
13436 * fontset.c (fontset_face): Handle the case that repertory is a
13437 char-table.
13438 (find_font_encoding): Return nil for unknown encoding.
13439 (Fset_fontset_font): Ignore a font of unknown encoding.
13440
134412008-02-01 Kenichi Handa <handa@m17n.org>
13442
13443 * keymap.c (describe_vector): Handle default value of a char table.
13444
13445 * fontset.c (fontset_face): Handle fallback fonts correctly.
13446 (Ffontset_info): Return infomation about fallback fonts.
13447
134482008-02-01 Kenichi Handa <handa@m17n.org>
13449
13450 * fontset.c (FONTSET_DEFAULT): New macro.
13451 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
13452 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
13453 the case that it is nil.
13454 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
13455 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
13456
13457 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
13458 subset or superset.
13459
134602008-02-01 Kenichi Handa <handa@m17n.org>
13461
13462 * emacs.c (main): Call init_charset after syms_of_XXX.
13463
13464 * charset.c (Vcharset_map_directory): Delete.
13465 (Vcharset_map_path): New variable.
13466 (load_charset_map_from_file): Use Vcharset_map_path instead.
13467 (init_charset): Initialize Vcharset_map_path.
13468 (syms_of_charset): Delete declaration of "charset-map-directory",
13469 add declaration of "charset-map-path".
13470
134712008-02-01 Kenichi Handa <handa@m17n.org>
13472
13473 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
13474 ASCII only string.
13475
13476 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
13477
13478 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
13479 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
13480
134812008-02-01 Kenichi Handa <handa@m17n.org>
13482
13483 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
13484
13485 * coding.c (QCmnemonic, QCdefalut_char)
13486 (QCdecode_translation_table, QCencode_translation_table)
13487 (QCpost_read_conversion, QCpre_write_conversion): New variables.
13488 (get_translation_table): Return a list of translation tables if
13489 necessary.
13490 (decode_coding): Call get_translation_table with ENCODEP 0.
13491 (char_encodable_p): If translation_table is non-nil, always call
13492 translate_char.
13493 (Fdefine_coding_system_internal): Accept list of translation
13494 tables as :encode-translation-table and :decode-translation-table.
13495 (Fcoding_system_put): New function.
13496 (syms_of_coding): Declare new symbols. Defsubr
13497 Scoding_system_put.
13498 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
13499 typically JISX0212.
13500
13501 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
13502 when the charset is superset type.
13503
13504 * character.c (translate_char): Accept list of translation tables.
13505
135062008-02-01 Kenichi Handa <handa@m17n.org>
13507
13508 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
13509 (CODING_ATTR_TRANS_TBL): New macro.
13510
13511 * coding.c (get_translation_table): New function.
13512 (translate_chars): Fix the bug of skipping annotation data.
13513 (decode_coding, encode_coding): Utilize get_translation_table.
13514 (char_encodable_p, Funencodable_char_position): Translate char if
13515 necessary.
13516 (Ffind_coding_systems_region_internal)
13517 (Fcheck_coding_systems_region): Setup translation table for encode
13518 in a coding system attribute vector in advance.
13519 (Fdefine_coding_system_internal): Allow a symbol as translation
13520 table. For shift-jis type coding system, allow 4th charset.
13521
135222008-02-01 Kenichi Handa <handa@m17n.org>
13523
13524 * coding.c (decode_coding_sjis): Check the first byte rigidly.
13525
13526 * xdisp.c (get_next_display_element): Pass -1 as POS to
13527 FACE_FOR_CHAR if displaying a C-string.
13528
135292008-02-01 Kenichi Handa <handa@m17n.org>
13530
13531 * composite.c (get_composition_id): Handle xoff and yoff in a
13532 composition rule.
13533
13534 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
13535 (struct composition): New member lbearing and rbearing.
13536
13537 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
13538 (x_get_glyph_overhangs): Handle a composition glyph.
13539 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
13540
13541 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
13542 composition glyph.
13543
135442008-02-01 Kenichi Handa <handa@m17n.org>
13545
13546 * print.c: Include charset.h.
13547 (Vprint_charset_text_property): New variable.
13548 (Qdefault): Extern it.
13549 (PRINT_STRING_NON_CHARSET_FOUND)
13550 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
13551 (print_check_string_result): New variable.
13552 (print_check_string_charset_prop): New function.
13553 (print_prune_charset_plist): New variable.
13554 (print_prune_string_charset): New function.
13555 (print_object): Call print_prune_string_charset if
13556 Vprint_charset_text_property is not t.
13557 (print_interval): Print nothing if interval->plist is nil.
13558 (syms_of_print): Declare Vprint_charset_text_property as a lisp
13559 variable. Init and staticpro print_prune_charset_plist.
13560
135612008-02-01 Kenichi Handa <handa@m17n.org>
13562
13563 * fontset.c (new_fontset_from_font_name): Use the specified font
13564 for all characters in the new fontset.
13565
13566 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
13567 OBJECT args.
13568
13569 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
13570 OBJECT args for composition too.
13571
13572 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
13573 OBJECT args.
13574
135752008-02-01 Kenichi Handa <handa@m17n.org>
13576
13577 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
13578
13579 * fontset.c (reorder_font_vector): Adjust for the change of
13580 FONT_DEF format.
13581 (fontset_face): New arg id. Change caller.
13582 (face_for_char): New args pos and object.
13583 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
13584 (fs_query_fontset): Check NAME by Fassoc too.
13585 (Fset_fontset_font): Allow non-XLFD font name.
13586 (Ffontset_info): Adjust for the change of FONT_DEF format.
13587
13588 * fontset.h (face_for_char): Adjust prototype.
13589
13590 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
13591 (append_space, extend_face_to_end_of_line)
13592 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
13593 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
13594
13595 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
13596 POS and OBJECT args.
13597
13598 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
13599 POS and OBJECT args.
13600
136012008-02-01 Jason Rumney <jasonr@gnu.org>
13602
13603 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
13604 of GlobalAlloc'ed memory.
13605
136062008-02-01 Kenichi Handa <handa@m17n.org>
13607
13608 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
13609
13610 * charset.h (charset_table_used): Delete extern.
13611
13612 * charset.c (charset_table_used): Make it static.
13613 (map_charset_chars): Fix args to c_function with.
13614
13615 * chartab.c (map_sub_char_table_for_charset): Fix args to
13616 c_function with.
13617
13618 * coding.h (enum coding_result_code): Delete
13619 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
13620
13621 * coding.c (Qinsufficient_source, Qinconsistent_eol)
13622 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
13623 (Vlast_code_conversion_error): New variables.
13624 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
13625 (ONE_MORE_BYTE): Record error if any instead of signaling an
13626 error. If non-ASCII multibyte char is found, return the negative
13627 value of the code. All callers changed to check it.
13628 (ONE_MORE_BYTE_NO_CHECK): Likewise.
13629 (record_conversion_result): New function. Change all codes setting
13630 coding->result to call this function.
13631 (detect_coding_utf_8, decode_coding_utf_8)
13632 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
13633 Don't use the local variable incomplete.
13634 (emacs_mule_char): Change the second arg to `const'.
13635 (decode_coding): Fix of flushing out unprocessed data.
13636 (make_conversion_work_buffer): Fix making of a work buffer.
13637 (decode_coding_object): Return coding->dst_object.
13638
13639 * fontset.c (set_fontset_font): Fix args.
13640
13641 * lisp.h (CHARACTERBITS): Define as 22.
13642
13643 * process.c (send_process): Be sure to set coding->src_multibyte.
13644
13645 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
13646
136472008-02-01 Kenichi Handa <handa@m17n.org>
13648
13649 * xdisp.c (handle_auto_composed_prop): Give limit to
13650 Fnext_single_char_property_change.
13651
136522008-02-01 Kenichi Handa <handa@m17n.org>
13653
13654 * composite.c (syms_of_composite): Don't make the composition hash
13655 table weak.
13656
13657 * fontset.c (Fset_fontset_font): Fix docstring.
13658
13659 * lisp.h (detect_coding_system): Adjust prototype.
13660
13661 * fileio.c (kill_workbuf_unwind): Delete this function.
13662 (Finsert_file_contents): Adjust the call of detect_coding_system.
13663 Get conversion_buffer by code_conversion_save. Use the macro
13664 CODING_MAY_REQUIRE_DECODING. After decoding, update
13665 coding_system.
13666
13667 * coding.h (make_conversion_work_buffer): Delete extern.
13668 (code_conversion_save): Extern it.
13669
13670 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
13671 (CODING_GET_INFO): Delete argument eol_type. Change callers.
13672 (decode_coding_utf_8): Don't do eol converion.
13673 (detect_coding_utf_16): Check coding->src_chars, not
13674 coding->src_bytes. Add heuristics for those that have no signature.
13675 (decode_coding_emacs_mule, decode_coding_iso_2022)
13676 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
13677 Don't do eol converion.
13678 (adjust_coding_eol_type): Return a new coding system.
13679 (detect_coding): Don't detect eol. Fix for utf-16 detection.
13680 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
13681 each change.
13682 (decode_coding): Pay attention to undo_list. Do eol conversion for
13683 all types of coding-systems (if necessary).
13684 (Vcode_conversion_work_buf_list): Delete it.
13685 (Vcode_conversion_reused_workbuf): Rename from
13686 Vcode_conversion_reused_work_buf.
13687 (Vcode_conversion_workbuf_name): New variable.
13688 (reused_workbuf_in_use): New variable.
13689 (make_conversion_work_buffer): Delete the arg DEPTH.
13690 (code_conversion_restore): Change argument to cons.
13691 (code_conversion_save): Delete the argument BUFFER. Change callers.
13692 (detect_coding_system): New argument src_chars. Change callers.
13693 Fix for utf-16 detection.
13694 (init_coding_once): Don't use ISO_carriage_return.
13695 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
13696 reused_workbuf_in_use.
13697
136982008-02-01 Kenichi Handa <handa@m17n.org>
13699
13700 * keymap.c (store_in_keymap): Pay attention to the case that idx
13701 is a cons specifying a character range.
13702
137032008-02-01 Kenichi Handa <handa@m17n.org>
13704
13705 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
13706 HANDLED_RECOMPUTE_PROPS.
13707
13708 * coding.c (Fdefine_coding_system_internal): Fix checking of
13709 ascii compatibility.
13710
137112008-02-01 Kenichi Handa <handa@m17n.org>
13712
13713 * charset.c (find_charsets_in_text): Delete unused locale variable.
13714 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
13715
13716 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
13717 Resync charset_list to Vemacs_mule_charset_list.
13718
13719 * keymap.c (store_in_keymap): Pay attention to the case that idx
13720 is a cons specifying a character range.
13721
137222008-02-01 Kenichi Handa <handa@m17n.org>
13723
13724 * composite.c (update_compositions): Bind inhibit-read-only, etc
13725 to t before calling remove-list-of-text-properties.
13726
13727 * print.c (print_object): Always print ASCII chars as is.
13728
137292008-02-01 Kenichi Handa <handa@m17n.org>
13730
13731 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
13732
13733 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
13734 is a char table.
13735
137362008-02-01 Kenichi Handa <handa@m17n.org>
13737
13738 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
13739
137402008-02-01 Kenichi Handa <handa@m17n.org>
13741
13742 * xfaces.c (set_lface_from_font_name): Fix for the case that
13743 FONTNAME is not fontset name.
13744
137452008-02-01 Kenichi Handa <handa@m17n.org>
13746
13747 * fns.c (base64_encode_1): Fix previous change.
13748
137492008-02-01 Kenichi Handa <handa@m17n.org>
13750
13751 * fontset.c (set_fontset_font): New function.
13752 (Fset_fontset_font): If a font is specified for a charset, use
13753 map_charset_chars to store the font spec in a fontset.
13754
137552008-02-01 Kenichi Handa <handa@m17n.org>
13756
13757 * fontset.c (fontset_face): Create a fallback fontset on demand.
13758 (make_fontset): Don't create a fallback fontset here.
13759 (free_face_fontset): Free a fallback fontset (if any) too.
13760 (n_auto_fontsets): Delete this variable.
13761 (auto_fontset_alist): New variable.
13762 (new_fontset_from_font_name): Check auto_fontset_alist.
13763 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
13764 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
13765 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
13766 Defsubr Sfontset_list_all.
13767
137682008-02-01 Kenichi Handa <handa@m17n.org>
13769
13770 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
13771
137722008-02-01 Kenichi Handa <handa@m17n.org>
13773
13774 * fontset.c (Fnew_fontset): Check NAME more rigidly.
13775
137762008-02-01 Kenichi Handa <handa@m17n.org>
13777
13778 * editfns.c (Fgoto_char): Fix docstring.
13779
137802008-02-01 Kenichi Handa <handa@m17n.org>
13781
13782 * insdel.c (insert_from_gap): Adjust intervals correctly.
13783
137842008-02-01 Jason Rumney <jasonr@gnu.org>
13785
13786 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
13787 (pfnGetFontUnicodeRanges): New dynamically loaded function.
13788 (w32_initialize): Try to load it.
13789 (x_get_font_repertory): Use it if available.
13790 (w32_encode_char): Add shortcut for unicode output.
13791
13792 * w32fns.c (w32_load_system_font): Default charset to -1.
13793 (x_to_w32_charset): Match all fonts for unicode.
13794 (w32_to_x_charset): New parameter matching. Don't return partial
13795 or wildcard charsets.
13796 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
13797 (w32_codepage_for_font): Return CP_UNICODE for unicode.
13798 (w32_to_x_font): Match charset to real charset.
13799 (enum_font_cb2): Always list unicode versions.
13800
13801 * makefile.w32-in (temacs): Increase EMHEAP.
13802
138032008-02-01 Jason Rumney <jasonr@gnu.org>
13804
13805 * w32term.c (w32_encode_char): New charset parameter.
13806 font_info.encoding becomes encoding_type.
13807 (x_get_font_repertory): New function. Warning: stub only!
13808 (x_new_font): Return quickly if font already set.
13809 (x_new_fontset): fontsetname parameter is Lisp_Object.
13810 Use new fs_query_fontset. Try new_fontset_from_font_name.
13811 Use fontset_name for return value.
13812
13813 * w32term.h: Declare x_get_font_repertory.
13814
13815 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
13816 place of find_charset_in_text. Use encode_coding_object in place
13817 of encode_coding.
13818 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
13819 decode_coding.
13820
13821 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
13822 of x_new_fontset.
13823 (w32_load_system_font): Initialize charset as unicode.
13824 font_info.encoding becomes encoding_type.
13825 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
13826 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
13827 (syms_of_w32fns): Set get_font_repertory_func.
13828
13829 * w32console.c: Include character.h. Use terminal_encode_buffer
13830 from term.c.
13831 (write_glyphs): Use new version of encode_terminal_code. Use
13832 encode_coding_object in place of encode_coding.
13833
13834 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
13835 encoding becomes encoding_type.
13836
13837 * term.c (terminal_encode_buffer): Make externally visible.
13838
13839 * makefile.w32-in: Add character.h dependancies.
13840 (character.o, chartab.o): New targets.
13841
138422008-02-01 Kenichi Handa <handa@m17n.org>
13843
13844 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
13845 CODING_ID_EOL_TYPE.
13846
138472008-02-01 Andreas Schwab <schwab@suse.de>
13848
13849 * coding.c (produce_chars): Revert last change.
13850
138512008-02-01 Kenichi Handa <handa@m17n.org>
13852
13853 * charset.h (charset_unicode): Extern it.
13854
13855 * charset.c (string_xstring_p): Check by (C >= 0x100).
13856 (find_charsets_in_text): Change format of the arc CHARSETS. New
13857 arg MULTIBYTE.
13858 (Ffind_charset_region, Ffind_charset_string): Adjust for the
13859 change of find_charsets_in_text.
13860 (Fsplit_char): Fix doc. Never return unknown.
13861
13862 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
13863
13864 * coding.c (Fdefine_coding_system_alias): Update
13865 Vcoding_system_list.
13866
13867 * fontset.c (load_font_get_repertory): Pay attention to the case
13868 that ENCODING of a font is specified by a char-table.
13869
13870 * xterm.c (x_get_font_repertory): Handle the case that the
13871 encoding of font is other than Unicode.
13872
138732008-02-01 Kenichi Handa <handa@m17n.org>
13874
13875 * term.c (encode_terminal_code): Don't handle glyph-table. Check
13876 if a character is encodable by the terminal coding system. If
13877 not, produces proper number of `?'s. Update
13878 terminal_encode_buffer and terminal_encode_buf_size if necessary.
13879 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
13880
138812008-02-01 Kenichi Handa <handa@m17n.org>
13882
13883 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
13884 variables.
13885 (encode_terminal_code): Change argument. Encode multiple
13886 characters at once. Store the result of encoding in
13887 terminal_encode_buffer.
13888 (write_glyphs, insert_glyphs): Adjust for the change of
13889 encode_terminal_code.
13890 (term_init): Initialize terminal_encode_buffer and
13891 terminal_encode_buf_size.
13892
13893 * coding.c (consume_chars): If coding->src_object is nil, don't
13894 check annotation.
13895
138962008-02-01 Kenichi Handa <handa@m17n.org>
13897
13898 * character.c (char_string): Use ASCII_CHAR_P instead of
13899 SINGLE_BYTE_CHAR_P.
13900
139012008-02-01 Kenichi Handa <handa@m17n.org>
13902
13903 * xdisp.c (handle_auto_composed_prop): Check if the last
13904 characters of auto-composed region is newly composed with the
13905 following characters.
13906 (handle_composition_prop): Fix checking of point being inside
13907 composition.
13908
139092008-02-01 Kenichi Handa <handa@m17n.org>
13910
13911 * fns.c (concat): Don't change multibyteness of the result by
13912 concatenating an 8-bit character.
13913
13914 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
13915 multibyteness of the result when newelt is an 8-bit character.
13916
139172008-02-01 Dave Love <fx@gnu.org>
13918
13919 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
13920 EMACS_INT.
13921
13922 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
13923
13924 * xfaces.c (face_numeric_value): Declare dim size_t.
13925 (Finternal_lisp_face_equal_p): Remove unused f.
13926
13927 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
13928 (MATRIX_ROW): Remove unused vars.
13929 (draw_glyphs, x_insert_glyphs, fast_find_position)
13930 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
13931 byte/char counts.
13932
13933 * regex.c (regex_compile): Remove unused var.
13934
13935 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
13936
13937 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
13938 (Faccessible_keymaps, where_is_internal): Remove unused vars.
13939
13940 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
13941
13942 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
13943
13944 * fileio.c (Fwrite_region): Remove unused var.
13945
13946 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
13947 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
13948
13949 * composite.c (Fremove_list_of_text_properties): Declare.
13950
13951 * coding.c (inhibit_pre_post_conversion): Remove (unused).
13952 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
13953 (coding_inherit_eol_type): Remove unused attrs.
13954 (detect_coding): Cast arg of detect_eol.
13955
13956 * charset.c (syms_of_charset): Remove unused var p.
13957 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
13958 byte/char counts.
13959
13960 * casetab.c (set_case_table): Remove unused var.
13961
13962 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
13963 unused vars.
13964
139652008-02-01 Dave Love <fx@gnu.org>
13966
13967 * xterm.c (x_bitmap_mask): Declare.
13968
139692008-02-01 Dave Love <fx@gnu.org>
13970
13971 * xterm.c (x_term_init): Fix type error.
13972
13973 * lisp.h: Add Funibyte_char_to_multibyte.
13974
13975 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
13976 (Fset_coding_system_priority): Doc fix.
13977
13978 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
13979
13980 * indent.c (check_composition): Make start and end EMACS_INT.
13981
13982 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
13983
13984 * xdisp.c (handle_composition_prop, check_point_in_composition):
13985 Make buffer positions EMACS_INT.
13986
13987 * composite.c (find_composition, run_composition_function)
13988 (update_compositions, Ffind_composition_internal): Make buffer
13989 positions EMACS_INT.
13990
13991 * composite.h (find_composition, update_compositions): Make
13992 position args EMACS_INT.
13993
13994 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
13995
13996 * intervals.c (get_property_and_range):
13997 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
13998
13999 * unexalpha.c: Don't include varargs.h.
14000
140012008-02-01 Dave Love <fx@gnu.org>
14002
14003 * coding.h (ENCODE_UTF_8): New.
14004
14005 * Makefile.in (gtkutil.o): Depend on coding.h.
14006
14007 * coding.c (Fset_coding_system_priority): Doc fix.
14008
140092008-02-01 Kenichi Handa <handa@m17n.org>
14010
14011 * fileio.c (Finsert_file_contents): Call setup_coding_system in
14012 the case of auto saving.
14013
140142008-02-01 Andreas Schwab <schwab@suse.de>
14015
14016 * chartab.c (map_char_table, map_char_table_for_charset): Protect
14017 `range' from GC.
14018
140192008-02-01 Kenichi Handa <handa@m17n.org>
14020
14021 * coding.c (decode_coding_sjis): Check bytes more rigidly.
14022
140232008-02-01 Kenichi Handa <handa@m17n.org>
14024
14025 * fileio.c (choose_write_coding_system): Return a decided coding system.
14026 (Fwrite_region): Set Vlast_coding_system_used to the return value
14027 of choose_write_coding_system.
14028
140292008-02-01 Kenichi Handa <handa@m17n.org>
14030
14031 * charset.c (Fset_charset_priority): Pay attention to duplicated
14032 arguments.
14033
14034 * coding.c (QCcategory): New variable.
14035 (syms_of_coding): Defsym it. Set all elements of
14036 Vcoding_category_table and their symbol values.
14037 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
14038 coding-category-XXX, and coding-category-list.
14039 (Fdefine_coding_system_internal): Add category in the plist.
14040
140412008-02-01 Kenichi Handa <handa@m17n.org>
14042
14043 * callproc.c (Fcall_process): Handle carryover correctly.
14044
14045 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
14046 (raw_text_coding_system): Check NILP (coding_system).
14047 (coding_inherit_eol_type): Check NILP (coding_system) and
14048 NILP (parent).
14049 (consume_chars): Fix for the case of raw-text.
14050
14051 * process.c (read_process_output): Handle carryover correctly.
14052
140532008-02-01 Dave Love <fx@gnu.org>
14054
14055 * regex.c (re_search_2): Fix last change.
14056
140572008-02-01 Kenichi Handa <handa@m17n.org>
14058
14059 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
14060 target_multibyte. Even in a unibyte case, return a converted
14061 multibyte char.
14062 (GET_CHAR_AFTER): New macro.
14063 (PATFETCH): Translate via multibyte char.
14064 (HANDLE_UNIBYTE_RANGE): Delete this macro.
14065 (SETUP_MULTIBYTE_RANGE): New macro.
14066 (regex_compile): Setup compiled code so that its multibyteness
14067 matches that of a target. Fix the handling of "[X-YZ]" using
14068 SETUP_MULTIBYTE_RANGE.
14069 (analyse_first) <charset>: For filling fastmap for all multibyte
14070 characters, don't check by BASE_LEADING_CODE_P.
14071 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
14072 the same as RE_MULTIBYTE_P (bufp) now.
14073 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
14074 (TARGET_CHAR_AND_LENGTH): Delete this macro.
14075 (TRANSLATE_VIA_MULTIBYTE): New macro.
14076 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
14077 It is the same as RE_MULTIBYTE_P (bufp) now.
14078 <exactn>: Translate via multibyte.
14079 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
14080 translate it.
14081 <charset, charset_not>: Fetch a character by
14082 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
14083 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
14084 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
14085 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
14086 by GET_CHAR_AFTER.
14087 (bcmp_translate): Likewise.
14088
14089 * search.c (compile_pattern): Check the member target_multibyte,
14090 not the member multibyte of buf.
14091
14092 * lread.c (read1): While reading a string, set force_singlebyte
14093 and force_multibyte correctly.
14094
14095 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
14096 up of unibyte_to_multibyte_table.
14097
140982008-02-01 Kenichi Handa <handa@m17n.org>
14099
14100 * coding.c (setup_coding_system): If coding has
14101 post-read-conversion or pre-write-conversion, set
14102 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
14103 respectively.
14104 (decode_coding_gap): Run post-read-conversion if any.
14105
14106 * fileio.c (Finsert_file_contents): Even if we read into a
14107 unibyte buffer, check if we must decode the result or not.
14108
141092008-02-01 Kenichi Handa <handa@m17n.org>
14110
14111 * coding.c (make_conversion_work_buffer): Change the work buffer
14112 name to the same one as that of Emacs 21.
14113
141142008-02-01 Kenichi Handa <handa@m17n.org>
14115
14116 * coding.h (make_conversion_work_buffer): Adjust prototype.
14117 (code_conversion_restore): Don't extern it.
14118
14119 * coding.c (detected_mask): Delete unused variable.
14120 (decode_coding_iso_2022): Pay attention to the byte sequence of
14121 CTEXT extended segment, and retain those bytes as is.
14122 (decode_coding_ccl): Delete unused variable `valids'.
14123 (setup_coding_system): Delete unused variable `category'.
14124 (consume_chars): Delete unused variable `category'. Make it work
14125 for non-multibyte case.
14126 (make_conversion_work_buffer): Change argument.
14127 (saved_coding): Delete unused variable.
14128 (code_conversion_restore): Don't check saved_coding->destination.
14129 (code_conversion_save): New function.
14130 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
14131 instead of record_unwind_protect.
14132 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
14133 (detect_coding_system): Delete unused variable `mask'.
14134 (Fdefine_coding_system_internal): Delete unused variable id.
14135
14136 * fileio.c (kill_workbuf_unwind): New function.
14137 (Finsert_file_contents): On replacing, call
14138 make_conversion_work_buffer with correct args, and call
14139 record_unwind_protect with the first arg kill_workbuf_unwind.
14140
14141 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
14142
141432008-02-01 Kenichi Handa <handa@m17n.org>
14144
14145 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
14146 (fontset_add): Fix for the case that TO is less than TO1.
14147 (Ffontset_info): Don't use fallback fontset on checking the
14148 default fontset.
14149 (dump_fontset): New function for debugging.
14150
14151 * coding.c (Fdefine_coding_system_internal): Fix for the case that
14152 coding_type is Qcharset.
14153
141542008-02-01 Kenichi Handa <handa@m17n.org>
14155
14156 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
14157 (map_char_table): Don't inherit the value from the parent on
14158 initializing VAL. Adjust for the above change.
14159
141602008-02-01 Kenichi Handa <handa@m17n.org>
14161
14162 * coding.c (Qsignature, Qendian): Delete these variables.
14163 (syms_of_coding): Don't initialize them.
14164 (CATEGORY_MASK_UTF_16_AUTO): New macro.
14165 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
14166 detect_info->found.
14167 (decode_coding_utf_16): Don't detect BOM here.
14168 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
14169 is NOT utf_16_without_bom.
14170 (setup_coding_system): For a coding system of type utf-16, check
14171 if the attribute :endian is Qbig or not (not nil or not), and set
14172 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
14173 (detect_coding): If coding type is utf-16 and BOM detection is
14174 required, detect it.
14175 (Fdefine_coding_system_internal): For a coding system of type
14176 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
14177
141782008-02-01 Kenichi Handa <handa@m17n.org>
14179
14180 * coding.c (coding_set_source): Fix for the case that the current
14181 buffer is different from coding->src_object.
14182 (decode_coding_object): Don't use the conversion work buffer if
14183 DST_OBJECT is a buffer.
14184
141852008-02-01 Dave Love <fx@gnu.org>
14186
14187 * lread.c (read_emacs_mule_char) [len==2]: Index
14188 emacs_mule_charset correctly.
14189
141902008-02-01 Dave Love <fx@gnu.org>
14191
14192 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
14193 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
14194 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
14195 treated specially.)
14196 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
14197 (detected_mask): Remove Big5 bits.
14198
141992008-02-01 Kenichi Handa <handa@m17n.org>
14200
14201 The following changes are to make the font rescaling facility
14202 compatible with Emacs 21.
14203
14204 * xfaces.c (Vface_font_rescale_alist): Rename from
14205 Vface_resizing_fonts.
14206 (struct font_name): Rename member resizing_ratio to rescale_ratio.
14207 (font_rescale_ratio): Rename from font_resizing_ratio.
14208 (split_font_name): Set font->rescale_ratio.
14209 (better_font_p): Pay attention to font->rescale_ratio.
14210 (build_scalable_font_name): Likewise. Change RESX, and RESY
14211 fields.
14212 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
14213
142142008-02-01 Kenichi Handa <handa@m17n.org>
14215
14216 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
14217 (Qutf_16_le): Remove these variables.
14218 (syms_of_coding): Don't DEFSYM them.
14219 (decode_coding_utf_16): Fix handling of BOM.
14220 (encode_coding_utf_16): Fix handling of BOM.
14221
142222008-02-01 Kenichi Handa <handa@m17n.org>
14223
14224 * fileio.c (Finsert_file_contents): On replacing, before decoding
14225 the file into the work buffer, set point of the work buffer to the end.
14226
142272008-02-01 Dave Love <fx@gnu.org>
14228
14229 * coding.c (Fcheck_coding_systems_region): Fix type errors.
14230
142312008-02-01 Dave Love <fx@gnu.org>
14232
14233 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
14234 and fix C types.
14235
142362008-02-01 Kenichi Handa <handa@m17n.org>
14237
14238 * xdisp.c (SKIP_GLYPHS): New macro.
14239 (set_cursor_from_row): Pay attention to string display properties.
14240
14241 * category.c (copy_category_entry): Fix for the case that RANGE
14242 is an integer.
14243
14244 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
14245
14246 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
14247
142482008-02-01 Kenichi Handa <handa@m17n.org>
14249
14250 * charset.c (Fcharset_id_internal): New function.
14251 (syms_of_charset): Defsubr it.
14252
14253 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
14254 with the last arg charset_list acquired from coding.
14255 (Fdefine_coding_system_internal): For ccl-based coding system, fix
14256 the attribute coding_attr_ccl_valids.
14257
14258 * coding.h (enum define_coding_ccl_arg_index): Set the first
14259 member coding_arg_ccl_decoder to coding_arg_max.
14260
14261 * ccl.h (ccl_driver): Adjust prototype.
14262
14263 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
14264 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 14265 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
14266 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
14267 last arg Qnil.
14268
142692008-02-01 Kenichi Handa <handa@m17n.org>
14270
14271 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
14272 call encode_char.
14273
14274 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
14275
142762008-02-01 Dave Love <fx@gnu.org>
14277
14278 * composite.c (syms_of_composite): Make composition_hash_table weak.
14279
142802008-02-01 Kenichi Handa <handa@m17n.org>
14281
14282 * dispextern.h (check_face_attributes, generate_ascii_font_name)
14283 (font_name_registry): Don't extern them.
14284 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
14285
14286 * fontset.h (Qfontset): Don't extern it.
14287 (new_fontset_from_font_name): Extern it.
14288
14289 * fontset.c: Give 8 extra slots to fontset objects.
14290 (Qfontset_info): New variable.
14291 (syms_of_fontset): Defsym it.
14292 (FONTSET_FALLBACK): New macro.
14293 (fontset_face): Try also the default fontset.
14294 (make_fontset): Realize a fallback fontset from the default fontset.
14295 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
14296 using split_font_name_into_vector and build_font_name_from_vector.
14297 (Fset_fontset_font): Access the elements of font_spec by enum
14298 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
14299 name by using split_font_name_into_vector.
14300 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
14301 generate a proper font name from the fontset name. Update
14302 Vfontset_alias_alist.
14303 (n_auto_fontsets): New variable.
14304 (new_fontset_from_font_name): New function.
14305 (Ffont_info): Store the information about fonts generated from the
14306 default fontset in the first extra slot of the returned char-table.
14307
14308 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
14309 (font_name_registry): Delete function.
14310 (split_font_name_into_vector): New function.
14311 (build_font_name_from_vector): New function.
14312 (font_list): The argument REGISTRY is now a list of registry names.
14313 (choose_face_font): If we are choosing an ASCII font, and ATTRS
14314 specifies an explicit font name, return the name as is. Make a
14315 list of registy names.
14316
14317 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
14318 of x_new_fontset.
14319 (Fx_create_frame): Don't call x_new_fontset here. Just use
14320 x_list_fonts to check the existence of fonts.
14321
14322 * xterm.h (x_new_fontset): Adjust prototype.
14323
14324 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
14325 string. Use new_fontset_from_font_name to create a fontset from a
14326 font name.
14327
143282008-02-01 Kenichi Handa <handa@m17n.org>
14329
14330 * syntax.c (Vfind_word_boundary_function_table): New name for
14331 Vnext_word_boundary_function_table.
14332 (find-word-boundary-function-table): New name for
14333 next-word-boundary-function-table.
14334
143352008-02-01 Dave Love <fx@gnu.org>
14336
14337 * Makefile.in: Fix some dependencies.
14338
14339 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
14340 set it to nil before returning.
14341
14342 * composite.c (update_compositions): Fix type error.
14343
14344 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
14345
143462008-02-01 Kenichi Handa <handa@m17n.org>
14347
14348 * xterm.c (x_new_font): Optimize for the case that the font is
14349 already set for the frame.
14350
143512008-02-01 Kenichi Handa <handa@m17n.org>
14352
14353 * chartab.c (char_table_ascii): Check if the char table contents
14354 is sub-char-table or not.
14355 (char_table_set, char_table_set_range): Fix argument to
14356 char_table_ascii.
14357
14358 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
14359 (detect_coding_utf_8, detect_coding_utf_16)
14360 (detect_coding_emacs_mule, detect_coding_iso_2022)
14361 (detect_coding_sjis, detect_coding_big5)
14362 (detect_coding_ccl, detect_coding_charset): Change argument MASK
14363 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
14364 sequence is valid in this coding system. Change callers.
14365 (MAX_ANNOTATION_LENGTH): New macro.
14366 (ADD_ANNOTATION_DATA): New macro.
14367 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
14368 ADD_ANNOTATION_DATA. Change the format of annotation data.
14369 (ADD_CHARSET_DATA): New macro.
14370 (emacs_mule_char): New argument ID. Change callers.
14371 (decode_coding_emacs_mule, decode_coding_iso_2022)
14372 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
14373 Produce charset annotation data in coding->charbuf.
14374 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
14375 to charset annotation data in coding->charbuf.
14376 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
14377 coding->common_flags if the coding system is iso-2022 based and
14378 uses designation.
14379 (produce_composition): Adjust for the new annotation data format.
14380 (produce_charset): New function.
14381 (produce_annotation): Handle charset annotation.
14382 (handle_composition_annotation, handle_charset_annotation): New
14383 functions.
14384 (consume_chars): Handle charset annotation. Utilize the above two
14385 functions.
14386 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
14387 buffer, get the deleted text as a string and set
14388 coding->src_object to that string.
14389 (detect_coding, detect_coding_system): Use the new struct
14390 coding_detection_info.
14391
14392 * coding.h (struct coding_detection_info): New structure.
14393 (struct coding_system): Adjust prototype of the member `detector'.
14394 (CODING_ANNOTATE_CHARSET_MASK): New macro.
14395
143962008-02-01 Kenichi Handa <handa@m17n.org>
14397
14398 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
14399
144002008-02-01 Dave Love <fx@gnu.org>
14401
14402 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
14403 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
14404 to new local and nullify apropos_accumulate before returning.
14405 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
14406
144072008-02-01 Kenichi Handa <handa@m17n.org>
14408
14409 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
14410 correctly.
e3eea1fc 14411
aac0c6e3
MR
144122008-02-01 Dave Love <fx@gnu.org>
14413
14414 * fns.c (Flanginfo): Call synchronize_system_time_locale.
14415
144162008-02-01 Kenichi Handa <handa@m17n.org>
14417
14418 The following changes are to make character composition happen
14419 automatically on displaying.
14420
14421 * Makefile.in (lisp, shortlisp): Add composite.elc.
14422
14423 * composite.h (Qauto_composed, Vauto_composition_function)
14424 (Qauto_composition_function): Extern them.
14425
14426 * composite.c (Vcomposition_function_table)
14427 (Qcomposition_function_table): Delete variables.
14428 (Qauto_composed, Vauto_composition_function)
14429 (Qauto_composition_function): New variables.
14430 (run_composition_function): Don't call
14431 compose-chars-after-function.
14432 (update_compositions): Clear `auto-composed' text property.
14433 (compose_chars_in_text): Delete this function.
14434 (syms_of_composite): Staticpro Qauto_composed and
14435 Qauto_composition_function. Declare Vauto_composition_function as
14436 a Lisp variable.
14437
14438 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
14439
14440 * xdisp.c (it_props): Add an entry for Qauto_composed.
14441 (handle_auto_composed_prop): New function.
14442
14443 * xselect.c (selection_data_to_lisp_data): Don't call
14444 compose_chars_in_text.
14445
144462008-02-01 Dave Love <fx@gnu.org>
14447
14448 * keyboard.c (read_char): Modify checking around use of
14449 Vkeyboard_translate_table.
14450
14451 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
14452 and fix C types.
14453
144542008-02-01 Kenichi Handa <handa@m17n.org>
14455
14456 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
14457 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14458 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
14459 the case that the last byte is '\r' correctly.
14460 (decode_coding): Flush out the unprocessed data correctly.
14461 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
14462
144632008-02-01 Dave Love <fx@gnu.org>
14464
14465 * xterm.c (XTread_socket): Fix changes for defined keysyms.
14466 Add XK_ISO... case.
14467 (xaw_scroll_callback): Revert last change.
14468
144692008-02-01 Kenichi Handa <handa@m17n.org>
14470
14471 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
14472
144732008-02-01 Kenichi Handa <handa@m17n.org>
14474
14475 * xfaces.c (Vface_resizing_fonts): New variable.
14476 (struct font_name): New member `resizing_ratio'.
14477 (font_resizing_ratio): New function.
14478 (split_font_name): Set font->resizing_ratio.
14479 (better_font_p): Pay attention to font->resizing_ratio.
14480 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
14481 RESX, and RESY fields.
14482 (try_alternative_families): Try scalable fonts if
14483 Vscalable_fonts_allowed is not Qt.
14484 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
14485
144862008-02-01 Dave Love <fx@gnu.org>
14487
14488 * xterm.c (xaw_scroll_callback): Cast correctly.
14489
144902008-02-01 Dave Love <fx@gnu.org>
14491
14492 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
14493 (lispy_kana_keys): Comment out.
14494 (make_lispy_event) [XK_kana_A]: Comment out.
14495
14496 * xterm.c (xaw_scroll_callback): Cast call_data.
14497 (XTread_socket): Deal with ASCII keysyms.
14498 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
14499
145002008-02-01 Dave Love <fx@gnu.org>
14501
14502 * xterm.c (Vx_keysym_table): New.
14503 (syms_of_xterm): Initialize it.
14504 (XTread_socket): Use it.
14505 From head: Eliminate incorrect optimization that tried to avoid
14506 decoding the output of X*LookupString.
14507 (x_get_font_repertory): Delete charset declaration.
14508
145092008-02-01 Kenichi Handa <handa@m17n.org>
14510
14511 * coding.c (detect_coding_charset): If only ASCII bytes are found,
14512 return 0.
14513 (Fdefine_coding_system_internal): Setup
14514 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
14515
145162008-02-01 Dave Love <fx@gnu.org>
14517
14518 * coding.c (Fcheck_coding_system): Doc fix.
14519
14520 * editfns.c (Finsert_byte): Return a proper value.
14521
145222008-02-01 Kenichi Handa <handa@m17n.org>
14523
14524 * coding.c (decode_coding): Fix args to translate_chars. Pay
14525 attention to Vstandard_translation_table_for_decode.
14526 (encode_coding): Fix args to translate_chars. Pay attention to
14527 Vstandard_translation_table_for_encode.
14528
14529 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
14530 SINGLE_BYTE_CHAR_P.
14531
14532 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
14533 not by SINGLE_BYTE_CHAR_P.
14534
14535 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
14536 SINGLE_BYTE_CHAR_P.
14537
14538 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
14539 SINGLE_BYTE_CHAR_P.
14540
14541 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
14542 by SINGLE_BYTE_CHAR_P.
14543
14544 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
14545 SINGLE_BYTE_CHAR_P.
14546
145472008-02-01 Dave Love <fx@gnu.org>
14548
14549 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
14550
145512008-02-01 Dave Love <fx@gnu.org>
14552
14553 * fns.c (Flanginfo): Fix typo.
14554
14555 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
14556
145572008-02-01 Kenichi Handa <handa@m17n.org>
14558
14559 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
14560 (detect_coding_emacs_mule, detect_coding_iso_2022)
14561 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
14562 incomplete byte sequence. Don't update *mask when correctly detected.
14563 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
14564 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
14565 (detect_coding, detect_coding_system): Adjust for the changes above.
14566
145672008-02-01 Kenichi Handa <handa@m17n.org>
14568
14569 * character.c (char_string): Rename from
14570 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
14571 (string_char): Rename from string_char.
14572
14573 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
14574 if C is greater than MAX_3_BYTE_CHAR.
14575 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
14576 string_char instead of string_char_with_unification.
14577
145782008-02-01 Dave Love <fx@gnu.org>
14579
14580 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
14581
145822008-02-01 Kenichi Handa <handa@m17n.org>
14583
14584 * keymap.c (push_key_description): Pay attention to force_multibyte.
14585
14586 * regex.c (re_search_2): Fix for the case of unibyte buffer.
14587
145882008-02-01 Dave Love <fx@gnu.org>
14589
14590 * charset.c (define_charset_internal): Rename `supprementary'.
14591
14592 * Makefile.in (lisp, shortlisp): Remove latin-N.
14593
145942008-02-01 Dave Love <fx@gnu.org>
14595
14596 * xfns.c (x_window, x_window): Use use_xim.
14597
14598 * xterm.c (use_xim): Initialize.
14599 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
14600 (x_term_init): Maybe set use_xim.
14601
14602 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
14603
146042008-02-01 Kenichi Handa <handa@m17n.org>
14605
14606 * search.c (search_buffer): Fix case-fold-search of multibyte
14607 characters.
14608 (boyer_moore): Rename the last argument to char_high_bits.
14609
146102008-02-01 Kenichi Handa <handa@m17n.org>
14611
14612 * xdisp.c (display_string): Fix for the case of zero width glyph.
14613
14614 * xfns.c (x_set_font): Change the error message of the case that
14615 x_new_fontset returns Qt.
14616
14617 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
14618 (Finternal_set_lisp_face_attribute): Use signal_error for the
14619 error of invalid fontset.
14620
14621 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
14622 fontset, return Qt.
14623
146242008-02-01 Dave Love <fx@gnu.org>
14625
14626 * unexelf.c (unexec): Make .got handling not SGI-specific.
14627
14628 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
14629
14630 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
14631
14632 * keyboard.c (read_key_sequence): Fix type error.
14633
14634 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
14635 type error.
14636
14637 * fontset.c (fontset_add): Return Lisp_Object.
14638
146392008-02-01 Dave Love <fx@gnu.org>
14640
14641 * charset.h (charset_ordered_list_tick): Declare extern.
14642
146432008-02-01 Kenichi Handa <handa@m17n.org>
14644
14645 The following changes (and some of 2008-02-01 changes of mine) are
14646 for handling syntax, category, and case conversion for unibyte
14647 characters by converting them to multibyte on the fly. With these
14648 changes, we don't have to setup syntax and case tables for unibyte
14649 characters in each language environment.
14650
14651 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
14652 multibyte if necessary.
14653
14654 * bytecode.c (Fbyte_code): Likewise.
14655
14656 * character.h (LEADING_CODE_LATIN_1_MIN)
14657 (LEADING_CODE_LATIN_1_MAX): New macros.
14658 (unibyte_to_multibyte_table): Extern it.
14659 (unibyte_char_to_multibyte): New macro.
14660 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
14661 (CHAR_LEADING_CODE): New macro.
14662 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
14663
14664 * character.c (unibyte_to_multibyte_table): New variable.
14665 (unibyte_char_to_multibyte): Move to character.h and define as macro.
14666 (multibyte_char_to_unibyte): If C is an eight-bit character,
14667 convert it to the corresponding byte value.
14668
14669 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
14670 not 1, signals an error. Update the elements of
14671 unibyte_to_multibyte_table.
14672 (init_charset_once): Initialize unibyte_to_multibyte_table.
14673 (syms_of_charset): Define the charset `iso-8859-1'.
14674
14675 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
14676 as is without converting it to unibyte. In a unibyte buffer,
14677 convert C to multibyte before checking the syntax.
14678
14679 * lisp.h (unibyte_char_to_multibyte): Delete extern.
14680
14681 * minibuf.c (Fminibuffer_complete_word): Use the macro
14682 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
14683
14684 * regex.h (struct re_pattern_buffer): New member target_multibyte.
14685
14686 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
14687 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
14688 that is zero, convert an eight-bit char to multibyte.
14689 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
14690 non-emacs case.
14691 (PATFETCH): Convert an eight-bit char to multibyte.
14692 (HANDLE_UNIBYTE_RANGE): New macro.
14693 (regex_compile): Setup the compiled pattern for multibyte chars
14694 even if the given regex string is unibyte. Use PATFETCH_RAW
14695 instead of PATFETCH in many places. To handle `charset'
14696 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
14697 only for ASCII chars.
14698 (analyse_first) <exactn>: Simplify because the compiled pattern
14699 is multibyte.
14700 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
14701 <charset>: Use CHAR_LEADING_CODE to get leading codes.
14702 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
14703 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
14704 multibyte always 1.
14705 (re_search_2): In emacs, set the locale variable multibyte to 1,
14706 otherwise to 0. New local variable target_multibyte. Check it
14707 to decide the multibyteness of STR1 and STR2. If
14708 target_multibyte is zero, convert unibyte chars to multibyte
14709 before translating and checking fastmap.
14710 (TARGET_CHAR_AND_LENGTH): New macro.
14711 (re_match_2_internal): In emacs, set the locale variable multibyte
14712 to 1, otherwise to 0. New local variable target_multibyte. Check
14713 it to decide the multibyteness of STR1 and STR2. Use
14714 TARGET_CHAR_AND_LENGTH to fetch a character from D.
14715 <charset, charset_not>: If multibyte is nonzero, check fastmap
14716 only for ASCII chars. Call bcmp_translate with
14717 target_multibyte, not with multibyte.
14718 <begline>: Declare the local variable C as `unsigned'.
14719 (bcmp_translate): Change the last arg name to target_multibyte.
14720
14721 * search.c (compile_pattern_1): Don't adjust the multibyteness of
14722 the regexp pattern and the matching target. Set cp->buf.multibyte
14723 to the multibyteness of the regexp pattern. Set
14724 cp->but.target_multibyte to the multibyteness of the matching target.
14725 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
14726 FETCH_STRING_CHAR_ADVANCE.
14727 (Freplace_match): Convert unibyte chars to multibyte.
14728
14729 * syntax.c (char_quoted, back_comment, scan_words)
14730 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
14731 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
14732 unibyte chars to multibyte.
14733 (skip_chars): Delete the arg syntaxp, and move the code for
14734 handling syntaxes to skip_syntaxes. Change callers.
14735 Fix the case that the multibyteness of STRING and the current
14736 buffer doesn't match.
14737 (skip_syntaxes): New function.
14738 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
14739 SINGLE_BYTE_CHAR_P.
14740
147412008-02-01 Kenichi Handa <handa@m17n.org>
14742
14743 * xfaces.c (QCfontset): New variable.
14744 (LFACE_FONTSET): New macro.
14745 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
14746 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
14747 (Finternal_set_lisp_face_attribute)
14748 (Finternal_get_lisp_face_attribute): Handle QCfontset.
14749 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
14750 check also LFACE_FONTSET_INDEX.
14751 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
14752 attrs[LFACE_FONT_INDEX].
14753 (syms_of_xfaces): Intern and staticpro QCfontset.
14754
14755 * dispextern.h (enum lface_attribute_index): New member
14756 LFACE_FONTSET_INDEX.
14757
14758 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
14759
147602008-02-01 Kenichi Handa <handa@m17n.org>
14761
14762 * coding.c (coding_set_destination): Fix coding->destination for
14763 the case converting a region.
14764 (encode_coding_utf_8): Encode eight-bit chars as single byte.
14765 (encode_coding_object): Fix coding->dst_pos and
14766 coding->dst_pos_byte for the case converting a region.
14767
14768 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
14769
14770 * character.h (BYTE8_STRING): New macro.
14771
14772 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
14773
147742008-02-01 Kenichi Handa <handa@m17n.org>
14775
14776 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
14777 characters by octal form.
14778
14779 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
14780
14781 * buffer.h (_fetch_multibyte_char_len): Delete extern.
14782 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
14783 _fetch_multibyte_char_len.
14784 (FETCH_CHAR_AS_MULTIBYTE): New macro.
14785
14786 * casetab.c (set_canon, set_identity, shuffle): Simplify.
14787
14788 * casefiddle.c (casify_object): Simplify. Handle the case that
14789 the case conversion change the byte length.
14790 (casify_region): Likewise.
14791
14792 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
14793
14794 * character.c (_fetch_multibyte_char_len): Delete this variable.
14795 (syms_of_character): Setup Vprintable_chars.
14796
14797 * editfns.c (Fchar_equal): Fix for the unibyte case.
14798 (Finsert_byte): New function.
14799 (syms_of_editfns): Defsubr it.
14800
14801 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
14802 of direct code 0x3ffff.
14803
14804 * search.c (Freplace_match): Fix for the unibyte case.
14805
148062008-02-01 Kenichi Handa <handa@m17n.org>
14807
14808 * lread.c (safe_to_load_p): Fix the logic.
14809
14810 * syntax.c (scan_words): Don't treat characters belonging to
14811 different scripts as constituting a word.
14812
14813 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
14814
14815 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
14816
14817 * emacs.c (main): In the case of --unibyte, instead of aborting on
14818 finding non-empty buffer, make it unibyte.
14819
148202008-02-01 Kenichi Handa <handa@m17n.org>
14821
14822 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
14823 to create a fontset.
14824
148252008-02-01 Dave Love <fx@gnu.org>
14826
14827 * character.c (Funibyte_char_to_multibyte): Doc fix.
14828
14829 * xfns.c [HAVE_STDLIB_H]: Fix last change.
14830
148312008-02-01 Kenichi Handa <handa@m17n.org>
14832
14833 * fontset.c (fontset_add): Make the type `int'.
14834 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
14835
14836 * character.c (unibyte_char_to_multibyte)
14837 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
14838 charset_unibyte, not charset_primary.
14839
14840 * charset.h (charset_unibyte): Extern it instead of charset_primary.
14841
14842 * charset.c (charset_unibyte): Rename from charset_primary.
14843 (Funibyte_charset): Rename from Fprimary_charset.
14844 (Fset_unibyte_charset): Rename from Fset_primary_charset.
14845 (syms_of_charset): Adjust for the above changes.
14846
14847 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
14848 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
14849 it->multibyte_p is zero.
14850
14851 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
14852 Delete extern.
14853
148542008-02-01 Kenichi Handa <handa@m17n.org>
14855
14856 * coding.c (Fdefine_coding_system_internal): Fix category setting
14857 for a coding system of type iso-2022.
14858
148592008-02-01 Kenichi Handa <handa@m17n.org>
14860
14861 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
14862
148632008-02-01 Kenichi Handa <handa@m17n.org>
14864
14865 * syntax.c (Vnext_word_boundary_function_table): New variable.
14866 (next-word-boundary-function-table): Declare it as a Lisp variable
14867 in syms_of_syntax.
14868 (scan_words): Call functions in Vnext_word_boundary_function_table
14869 if any.
14870
14871 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
14872
14873 * fontset.c (fs_load_font): If fontp->charset is not negative,
14874 return fontp without setting its members.
14875
148762008-02-01 Dave Love <fx@gnu.org>
14877
14878 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
14879
14880 * m/sparc.h (HAVE_ALLOCA): Delete.
14881
14882 * s/irix6-5.h: Don't include strings.h.
14883 (bcopy, bzero, bcmp): Don't undef.
14884
14885 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
14886
14887 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
14888 (TIOCSIGSEND): Don't test IRIX6.
14889 (bcopy, bzero, bcmp): Define conditionally.
14890
148912008-02-01 Kenichi Handa <handa@m17n.org>
14892
14893 * buffer.c (Qas, Qmake, Qto): New variables.
14894 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
14895 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
14896
14897 * callproc.c (Fcall_process): Don't call insert_1_both directly if
14898 we are inserting a process output into a multibyte buffer.
14899
14900 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
14901 multibyte_char_to_unibyte.
14902
14903 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
14904 by the primary charset, make it eight-bit char.
14905 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
14906
14907 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
14908 (charset_8_bit__control, charset_8_bit_graphic)
14909 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
14910 (define_charset_internal): New function.
14911 (syms_of_charset): Call define_charset_internal for pre-defined
14912 charsets.
14913
14914 * charset.h (charset_8_bit): Extern it.
14915
14916 * coding.c (make_conversion_work_buffer): Adjust for the change
14917 of Fset_buffer_multibyte.
14918 (encode_coding_raw_text): Increment p0 in the loop.
14919
14920 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
14921
14922 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
14923 for the change of Fset_buffer_multibyte.
14924
14925 * fns.c (Fstring_to_multibyte): New function.
14926 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
14927
149282008-02-01 Dave Love <fx@gnu.org>
14929
14930 * xfns.c (x_put_x_image): Declare args.
14931
14932 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
14933 (try_font_list): Declare an arg.
14934
14935 * xdisp.c (message2_nolog, set_message): Declare an arg.
14936
14937 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
14938
14939 * syntax.c (scan_sexps_forward): Declare an arg.
14940
14941 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
14942 Declare an arg.
14943
14944 * lisp.h (Fnew_fontset): Declare.
14945
14946 * keymap.c (push_key_description): Call CHARACTERP correctly.
14947
14948 * fontset.c (fontset_add): Declare args. Call make_number correctly.
14949 (face_for_char): Delete unused vars.
14950 (Fset_fontset_font): Doc fix. Delete unused vars.
14951
14952 * doc.c (Fsubstitute_command_keys): Delete unused vars.
14953
14954 * composite.c (update_compositions): Declare arg.
14955
14956 * cm.c (calccost, cmgoto): Declare args.
14957
14958 * charset.c: Remove `emacs' conditional. Doc fixes.
14959 (map_char_table_for_charset): Declare.
14960
14961 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
14962
14963 * ccl.c: Remove `emacs' conditional.
14964
149652008-02-01 Kenichi Handa <handa@m17n.org>
14966
14967 The following changes are to allow specifying multiple font
14968 patterns for a character range (specified by script or charset).
14969
14970 * Makefile.in (abbrev.o): Depend on syntax.h.
14971 (xfaces.o): Depend on charset.h.
14972
14973 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
14974 SINGLE_BYTE_CHAR_P.
14975
14976 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
14977
14978 * character.h (Vchar_script_table): Extern it.
14979
14980 * character.c (Vscript_alist): Delete.
14981 (Vchar_script_table, Qchar_script_table): New variable.
14982 (syms_of_character): Declare Vchar_script_table as a lisp variable
14983 and initialize it.
14984
14985 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
14986 have property char-table-extra-slots, make no extra slot.
14987
14988 * dispextern.h (struct face): Delete member `charset'.
14989 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
14990 SINGLE_BYTE_CHAR_P.
14991 (choose_face_font, lookup_non_ascii_face, font_name_registry):
14992 Add prototypes.
14993 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
14994 (generate_ascii_font_name): Rename from generate_ascii_font.
14995
14996 * fontset.h (get_font_repertory_func): New prototype.
14997 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
14998 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
14999
15000 * fontset.c (Qprepend, Qappend): New variables.
15001 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
15002 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
15003 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
15004 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
15005 (fontset_ref_and_range, fontset_add, reorder_font_vector)
15006 (load_font_get_repertory): New functions.
15007 (fontset_set): Delete.
15008 (fontset_face): New arg FACE. Return face ID, not face.
15009 Complete re-write to handle new fontset structure. Change caller.
15010 (free_face_fontset): Use ASET istead of AREF (X) = Y.
15011 (face_for_char): Don't call lookup_face.
15012 (make_fontset_for_ascii_face): New arg FACE.
15013 (fs_load_font): New arg CHARSET_ID. Don't check
15014 Vfont_encoding_alist here.
15015 (find_font_encoding): New function.
15016 (list_fontsets): Use STRINGP, not ! NILP.
15017 (accumulate_script_ranges): New function.
15018 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
15019 re-written to handle new fontset structure.
15020 (Ffontset_font): Return a copy of element.
15021 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
15022 docstring of font-encoding-alist.
15023
15024 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
15025 (Fset_fotset_font): Fix arguments to 5.
15026
15027 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
15028
15029 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
15030 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
15031 (highlight_trailing_whitespace): Adjust for the change of
15032 lookup_named_face.
15033
15034 * xfaces.c: Include charset.h.
15035 (load_face_font): Delete argument C. Change caller.
15036 (generate_ascii_font_name): Rename from generate_ascii_font.
15037 (font_name_registry): New function.
15038 (cache_face): Store ascii faces before non-ascii faces in buckets.
15039 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
15040 Lookup only ascii faces.
15041 (lookup_non_ascii_face): New function.
15042 (lookup_named_face): Delete argument C. Change caller.
15043 (lookup_derived_face): Delete argument C. Change caller.
15044 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
15045 a string, just call font_list with it.
15046 (choose_face_font): Delete arguments FACE and C. New arg
15047 FONT_SPEC. Change caller.
15048 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
15049 Change caller.
15050 (realize_non_ascii_face): New function.
15051 (realize_x_face): Call load_face_font here.
15052 (realize_tty_face): Delete argument C. Change caller.
15053 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
15054 get a face ID.
15055 (dump_realized_face): Don't print charset of FACE.
15056
15057 * xfns.c (x_set_font): Always call x_new_fontset and
15058 store_frame_parameter.
15059 (Fx_create_frame): Call x_new_fontset, not x_new_font.
15060 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
15061
15062 * xterm.h (x_get_font_repertory): Extern it.
15063
15064 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
15065 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
15066 it->multibyte_p is zero.
15067 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
15068 (x_new_fontset): If FONTSETNAME doesn't match any existing
15069 fontsets, create a new one.
15070 (x_get_font_repertory): New function.
15071
150722008-02-01 Kenichi Handa <handa@m17n.org>
15073
15074 * coding.c (Ffind_coding_systems_region_internal): Detect an
15075 ASCII only string correctly.
15076
15077 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
15078 version is 0.
15079
150802008-02-01 Kenichi Handa <handa@m17n.org>
15081
15082 * lread.c: Include "coding.h".
15083 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
15084 (load_each_byte, unread_char): New variables.
15085 (readchar_backlog): Delete.
15086 (readchar): Return a character unless load_each_byte is nonzero.
15087 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
15088 cons. If unread_char is not -1, simply return it.
15089 (unreadchar): Handle the case that readcharfun is
15090 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
15091 (read_multibyte): Delete.
15092 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
15093 (read_emacs_mule_char): New functions.
15094 (Fload): Even if the file doesn't have the extension ".elc", if
15095 safe_to_load_p returns a positive version number, assume that the
15096 file contains bytecompiled code. If the version is less than 22,
15097 load the file while decoding multibyte sequences by emacs-mule.
15098 (readevalloop): Don't use readchar_backlog.
15099 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
15100 (Fread_from_string): Pay attention to the case that STREAM is a cons.
15101 (read_escape): Delete the arg BYTEREP.
15102 (read1): Set load_each_byte to 1 temporarily while handling
15103 #@NUMBER. Don't call read_multibyte.
15104 (read_vector): Call Fread with a cons. If readcharfun is
15105 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
15106 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
15107 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
15108 and Qload_force_doc_strings.
15109
151102008-02-01 Kenichi Handa <handa@m17n.org>
15111
15112 * xdisp.c (face_before_or_after_it_pos): Call
15113 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
15114
151152008-02-01 Kenichi Handa <handa@m17n.org>
15116
15117 * character.h (TRAILING_CODE_P): New macro.
15118 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
15119 (string_char_with_unification): Fix prototype.
15120 (Vscript_alist): Extern it.
15121
15122 * character.c (Vscript_alist): New variable.
15123 (string_char_with_unification, str_as_unibyte)
15124 (string_escape_byte8): Add `const' to local variables.
15125 (syms_of_character): Declare script-alist as a Lisp variable.
15126
15127 * charset.h (Vcharset_ordered_list): Extern it.
15128 (charset_ordered_list_tick): Extern it.
15129 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
15130 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
15131 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
15132 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
15133 (Funify_charset): Adjust for the change of Funify_charset.
15134
15135 * charset.c (charset_ordered_list_tick): New variable.
15136 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
15137 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
15138 deunify intead of unify a charset.
15139 (string_xstring_p): Add `const' to local variables.
15140 (find_charsets_in_text): Add `const' to arguments and local variables.
15141 (encode_char): Adjust for the change of Funify_charset. Fix
15142 detecting of invalid code.
15143 (Fset_charset_priority): Increment charset_ordered_list_tick.
15144 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
15145 and TO_CODE.
15146
15147 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
15148 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
15149 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
15150 (decode_coding_ccl, consume_chars)
15151 (Ffind_coding_systems_region_internal)
15152 (Fcheck_coding_systems_region): Add `const' to local variables.
15153
15154 * print.c (print_object): Use octal form for printing the
15155 contents of a bool vector.
15156
151572008-02-01 Dave Love <fx@gnu.org>
15158
15159 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
15160 <version == 20>: Refuse to load.
15161
151622008-02-01 Dave Love <fx@gnu.org>
15163
15164 * fns.c: Move coding.h.
15165 (Qcodeset, Qdays, Qmonths): New.
15166 (concat): Use CHARACTERP instead of INTEGERP.
15167 (Flocale_codeset): Delete.
15168 (Flanginfo): New function.
15169 (syms_of_fns): Change accordingly.
15170
15171 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
15172
151732008-02-01 Dave Love <fx@gnu.org>
15174
15175 * casetab.c (init_casetab_once, init_casetab_once): Fix
15176 CHAR_TABLE_SET call.
15177
15178 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
15179
15180 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
15181
15182 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
15183 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
15184 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
15185
15186 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
15187
15188 * coding.c (ENCODE_DESIGNATION, decode_eol)
15189 (make_conversion_work_buffer, code_conversion_restore)
15190 (Fdefine_coding_system_internal): Convert Lisp types.
15191 (code_conversion_restore): Use EQ, not ==.
15192 (Fencode_coding_string): Fix code_convert_string call.
15193
15194 * coding.h (code_convert_region): Fix prototype.
15195
15196 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
15197
15198 * fontset.c (fontset_ref, fontset_set, fs_load_font)
15199 (Ffontset_info): Convert Lisp types.
15200
15201 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
15202
15203 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
15204
15205 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
15206
15207 * chartab.c: Include "...h", not <...h> in some cases.
15208
15209 * callproc.c (Fcall_process): Remove unused variables.
15210
152112008-02-01 Dave Love <fx@gnu.org>
15212
15213 * coding.c (Fset_coding_system_priority): Allow null arg list.
15214
152152008-02-01 Dave Love <fx@gnu.org>
15216
15217 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
15218 (Fself_insert_and_exit): Use CHARACTERP.
15219
15220 * callproc.c (Fcall_process): Remove unused vars.
15221
15222 * xterm.c (XTread_socket): Add extra dead keysyms.
15223
15224 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
15225
15226 * dispextern.h: Remove prototypes for redraw_frame,
15227 redraw_garbaged_frames.
15228
15229 * cmds.c (Fself_insert_command): Use CHARACTERP.
15230
15231 * chartab.c (make_sub_char_table): Remove unused var.
15232 (Fset_char_table_default, Fmap_char_table): Doc fix.
15233
15234 * keymap.c (access_keymap): Remove generic char code.
15235 (push_key_description): Use CHARACTERP.
15236
152372008-02-01 Dave Love <fx@gnu.org>
15238
15239 * charset.c: Doc fixes.
15240 (Funify_charset): Extra checking.
15241
152422008-02-01 Dave Love <fx@gnu.org>
15243
15244 * lread.c: Remove some unused variables.
15245 (safe_to_load_p): If safe, return the magic number version byte.
15246 (Fload): Maybe use load-with-code-conversion.
15247
152482008-02-01 Kenichi Handa <handa@m17n.org>
15249
15250 * category.c (Fmodify_category_entry): Don't modify the contents
15251 of category_set for characters out of the range. Avoid
15252 unnecessary modification.
15253
15254 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
15255 Vchar_unify_table. The default value of the table is now nil.
15256
15257 * character.c (syms_of_character): Setup Vchar_width_table for
15258 eight-bit-control and raw-byte chars.
15259
15260 * charset.h (enum define_charset_arg_index): Delete
15261 charset_arg_parents and add charset_arg_subset and
15262 charset_arg_superset.
15263 (enum charset_attr_index): Delete charset_parents and add
15264 charset_subset and charset_superset.
15265 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
15266 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
15267 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
15268 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
15269 (CHARSET_SUPERSET): New macros.
15270 (charset_work): Extern it.
15271 (ENCODE_CHAR): Use charset_work.
15272 (CHAR_CHARSET_P): Adjust for the change of encoder format.
15273 (map_charset_chars): Extern it.
15274
15275 * charset.c (load_charset_map): Set the default value of encoder
15276 and deunifier char-tables to nil.
15277 (map_charset_chars): Change argument. Change callers. Use
15278 map_char_table_for_charset instead of map_char_table.
15279 (Fmap_charset_chars): New optional args from_code and to_code.
15280 (Fdefine_charset_internal): Adjust for the change of
15281 `define-charset' (:parents -> :subset or :superset).
15282 (charset_work): New variable.
15283 (encode_char, syms_of_charset): Adjust for the change of
15284 Fdefine_charset_internal.
15285 (Ffind_charset_string): Setup the vector `charsets' correctly.
15286
15287 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
15288 the previous change.
15289 (char_table_ref_and_range): Adjust for the above change.
15290 (map_sub_char_table_for_charset): New function.
15291 (map_char_table_for_charset): New function.
15292
15293 * keymap.c (describe_vector): Handle a char-table directly here.
15294 (describe_char_table): Delete.
15295
15296 * lisp.h (map_charset_chars): Delete.
15297
152982008-02-01 Dave Love <fx@gnu.org>
15299
15300 * fns.c (count_combining): Comment out (unused).
15301 (Flocale_codeset): New.
15302 (syms_of_fns): Defsubr it.
15303
15304 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
15305 (size_t): Remove.
15306
153072008-02-01 Dave Love <fx@gnu.org>
15308
15309 * Makefile.in (chartab.o): Depend on charset.h.
15310
153112008-02-01 Kenichi Handa <handa@m17n.org>
15312
15313 * character.c (syms_of_character): Set the default value of
15314 Vprintable_chars to Qnil.
15315
153162008-02-01 Dave Love <fx@gnu.org>
15317
15318 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
15319
153202008-02-01 Kenichi Handa <handa@m17n.org>
15321
15322 * charset.c (load_charset_map): Handle the case that from < to
15323 correctly.
15324
15325 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
15326 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
15327 Pay attention to raw-8-bit chars.
15328
153292008-02-01 Kenichi Handa <handa@m17n.org>
15330
15331 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
15332 It is not bytecompiled now.
15333
15334 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
15335 (charset_jisx0208): New variables.
15336 (Fdefine_charset_internal): Setup them if appropriate.
15337 (init_charset_once): Initialize them to -1.
15338
15339 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
15340 (charset_jisx0208): Extern them.
15341
15342 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
15343 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
15344 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
15345 (setup_iso_safe_charsets): Fix arguments to Fassq.
15346 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
15347 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
15348 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
15349 (encode_coding_iso_2022): Change the 1st arg to
15350 ENCODE_ISO_CHARACTER to a variable.
15351
153522008-02-01 Kenichi Handa <handa@m17n.org>
15353
15354 * charset.h (enum define_charset_arg_index): New enums
15355 charset_arg_min_code and charset_arg_max_code.
15356 (struct charset): New member char_index_offset.
15357
15358 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
15359 Take charset->char_index_offset into account.
15360 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
15361 args[charset_arg_max_code]. Setup charset.char_index_offset.
15362 (syms_of_charset): Fix args to Fdefine_charset_internal.
15363
153642008-02-01 Dave Love <fx@gnu.org>
15365
15366 * coding.c (decode_coding_utf_8): Reject overlong sequences.
15367
153682008-02-01 Dave Love <fx@gnu.org>
15369
15370 * coding.c: Doc fixes.
15371 (Fcoding_system_aliases): Fix return value.
15372 (Qmac): Remove (duplicated) definition.
15373
153742008-02-01 Dave Love <fx@gnu.org>
15375
15376 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
15377 functions.
15378
15379 * character.c (Fstring): Doc fix.
15380
15381 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
15382
15383 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
15384 ids.
15385 (font-encoding-alist): Doc fix.
15386
153872008-02-01 Dave Love <fx@gnu.org>
15388
15389 * term.c (costs_set): Declare static, non-initialized for pcc.
15390 (encode_terminal_code): Remove unused var.
15391
15392 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
15393 for K&R.
15394
15395 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
15396
15397 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
15398 (suffixes): Move out of make_subsidiaries for K&R.
15399
15400 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
15401
15402 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
15403
154042008-02-01 Dave Love <fx@gnu.org>
15405
15406 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
15407
15408 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
15409
154102008-02-01 Yong Lu <lyongu@asia-infonet.com>
15411
15412 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
15413
15414 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
15415
154162008-02-01 Kenichi Handa <handa@m17n.org>
15417
15418 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
15419 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
15420
154212008-02-01 Kenichi Handa <handa@m17n.org>
15422
15423 * coding.c (decode_coding_charset): Adjust for the change of
15424 Fdefine_coding_system_internal.
15425 (Fdefine_coding_system_internal): For a coding system of
15426 `charset' type, store a list of charset IDs in
15427 `charset_attr_charset_valids' element of coding attributes.
15428
154292008-02-01 Kenichi Handa <handa@m17n.org>
15430
15431 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
15432 (emacs_mule_char): New arg src. Delete arg `composition'. Change
15433 caller. Handle 2-byte and 3-byte charsets correctly.
15434 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
15435 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
15436 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
15437 (DECODE_EMACS_MULE_21_COMPOSITION): Call
15438 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
15439 sequence.
15440 (decode_coding_emacs_mule): Handle composition correctly. Rewind
15441 `src' and `consumed_chars' correctly before calling emacs_mule_char.
15442 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
15443 and alt&rule composition.
15444 (decode_coding_iso_2022): Handle composition correctly.
15445 (init_coding_once): Setup emacs_mule_bytes for private charsets.
15446
15447 * charset.c (Fdefine_charset_internal): Fix bug for the case of
15448 re-defining a charset. If the charset has :emacs-mule-id, setup
15449 emacs_mule_bytes.
15450 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
15451
154522008-02-01 Kenichi Handa <handa@m17n.org>
15453
15454 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
15455 (encode_coding_big5, encode_coding_charset): If coding requires safe
15456 encoding, produce a character specified by
15457 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
15458
154592008-02-01 Dave Love <fx@gnu.org>
15460
15461 * xterm.c (XSetIMValues): Declare.
15462
15463 * process.c: Conditionally include sys/wait.h, pty.h.
15464
15465 * print.c (print_object): Fix print format for 64-bit systems.
15466
15467 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
15468
15469 * buffer.c (emacs_strerror): Declare.
15470
15471 * fontset.c (Fclear_face_cache): Declare.
15472 (accumulate_font_info): Comment-out (unused).
15473 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
15474 variables.
15475
15476 * character.h (string_escape_byte8): Declare.
15477
15478 * charset.c (load_charset_map, load_charset_map_from_file): Remove
15479 unused vars.
15480 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
15481 (Fmap_charset_chars): Doc fix.
15482
15483 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
15484 (Fset_coding_system_priority, Fset_coding_system_priority)
15485 (Fdefine_coding_system_internal): Doc fix.
15486
154872008-02-01 Dave Love <fx@gnu.org>
15488
15489 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
15490
154912008-02-01 Kenichi Handa <handa@m17n.org>
15492
15493 * character.c (string_escape_byte8): Make multibyte string with
15494 correct size.
15495
15496 * charset.c (Fmake_char): Delete unnecessary code.
15497
154982008-02-01 Kenichi Handa <handa@m17n.org>
15499
15500 * xfns.c (x_encode_text): Allocate coding.destination here, and
15501 call encode_coding_object with dst_object Qnil.
15502
15503 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
15504 multibyte form correctly.
15505
15506 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
15507 against Vfont_encoding_alist.
15508
15509 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
15510 handling of charset list.
15511 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
15512 (decode_coding_object): Move point to coding->dst_pos before
15513 calling post-read-conversion function.
15514 (encode_coding_object): Give correct arguments to
15515 pre-write-conversion. Ignore the return value of
15516 pre-write-conversion function. Pay attention to the case that
15517 pre-write-conversion changes the current buffer. If dst_object is
15518 Qt, even if coding->src_bytes is zero, allocate at least one byte
15519 to coding->destination.
15520
15521 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
15522
15523 * charset.c (Fmake_char): Make it more backward compatible.
15524 (Fmap_charset_chars): Fix docstring.
15525
155262008-02-01 Dave Love <fx@gnu.org>
15527
15528 * coding.c: Doc fixes.
15529 (Fdefine_coding_system_alias): Use names, not symbols, in
15530 coding-system-alist.
15531
155322008-02-01 Kenichi Handa <handa@m17n.org>
15533
15534 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
15535 of calling free_realized_face.
15536
155372008-02-01 Yong Lu <lyongu@asia-infonet.com>
15538
15539 * charset.c (read_hex): Don't treat SPC as a comment starter.
15540 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
15541 (Fdecode_char): Fix typo.
15542
155432008-02-01 Kenichi Handa <handa@m17n.org>
15544
15545 * charset.h (struct charset): New member `code_space_mask'.
15546
15547 * coding.c (coding_set_source): Delete the local variable beg_byte.
15548 (encode_coding_charset, Fdefine_coding_system_internal):
15549 Delete the local variable charset.
15550 (Fdefine_coding_system_internal): Setup
15551 attrs[coding_attr_charset_valids] correctly.
15552
15553 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
15554 member to check if CODE is valid or not.
15555 (Fdefine_charset_internal): Initialize `code_space_mask' member.
15556 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
15557 is within the range of charset->min_code and carset->max_code.
15558
155592008-02-01 Dave Love <fx@gnu.org>
15560
15561 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
15562
15563 * dispextern.h (generate_ascii_font): Fix return type.
15564
15565 * xfaces.c (generate_ascii_font): Fix arg declaration.
15566
15567 * coding.c (coding_inherit_eol_type)
15568 (Fset_terminal_coding_system_internal)
15569 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
15570
155712008-02-01 Kenichi Handa <handa@m17n.org>
15572
15573 * coding.c (decode_coding_charset, encode_coding_charset): Handle
15574 multiple charsets correctly.
15575
155762008-02-01 Kenichi Handa <handa@m17n.org>
15577
15578 * search.c (boyer_moore): Fix handling of multibyte character
15579 translation.
15580
15581 * xdisp.c (display_mode_element): When the variable `elt' is
15582 changed, update `this' and `lisp_string'.
15583
155842008-02-01 Kenichi Handa <handa@m17n.org>
15585
15586 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
15587
15588 * callproc.c (Fcall_process): Be sure to give the current buffer
15589 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
15590
15591 * charset.c (struct charset_map_entries): New struct.
15592 (load_charset_map): Rename from parse_charset_map. New args
15593 entries and n_entries. Change caller.
15594 (load_charset_map_from_file): Rename from load_charset_map.
15595 Change caller. New arg control_flag. Call load_charset_map at
15596 the tail.
15597 (load_charset_map_from_vector): New function.
15598 (Fdefine_charset_internal): Setup charset.compact_codes_p.
15599 (encode_char): If the charset is compact, change a character index
15600 to a code point.
15601
15602 * coding.c (coding_alloc_by_making_gap): Check the case that the
15603 source and destination are the same correctly.
15604 (decode_coding_raw_text): Set coding->consumed_char and
15605 coding->consumed to 0.
15606 (produce_chars): If coding->chars_at_source is nonzero, update
15607 coding->consumed_char and coding->consumed before calling
15608 alloc_destination.
15609 (Fdefine_coding_system_alias): Register ALIAS in
15610 Vcoding_system_alist.
15611 (syms_of_coding): Define `no-conversion' coding system at the tail.
15612
15613 * fileio.c (Finsert_file_contents): Set coding_system instead of
15614 val. If the current buffer is multibyte, always call
15615 decode_coding_gap.
15616
15617 * xfaces.c (try_font_list): Give higher priority to fontset's
15618 family than face's family.
15619
156202008-02-01 Kenichi Handa <handa@m17n.org>
15621
15622 * callproc.c (Fcall_process): Be sure to give the current buffer
15623 to decode_coding_c_string.
15624
15625 * xfaces.c (try_font_list): Give a family specified in a fontset
15626 higher priority than a family specified in a face.
15627
156282008-02-01 Kenichi Handa <handa@m17n.org>
15629
15630 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
15631 Fix arguments to insert_from_buffer.
15632
15633 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
15634
156352008-02-01 Kenichi Handa <handa@m17n.org>
15636
15637 * coding.c (produce_chars): Set the variable `multibytep' correctly.
15638 (decode_coding_gap): Set coding->dst_multibyte correctly.
15639
156402008-02-01 Kenichi Handa <handa@m17n.org>
15641
15642 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
15643 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
15644 (encode_coding_utf_16): Substitute coding->default_char for
15645 non-Unicode characters.
15646 (decode_coding): Don't call record_insert here.
15647 (setup_coding_system): Initialize `surrogate' of
15648 coding->spec.utf_16 to 0.
15649 (EMIT_ONE_BYTE): Fix for multibyte case.
15650
15651 * insdel.c (insert_from_gap): Call record_insert.
15652
156532008-02-01 Kenichi Handa <handa@m17n.org>
15654
15655 * casefiddle.c (casify_region): Fix multibyte case.
15656
15657 * character.c (c_string_width): Add return type `int'.
15658 (char_string_with_unification): Delete arg ADVANCED.
15659
15660 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
15661 (CHAR_STRING): Adjust for the change of char_string_with_unification.
15662 (CHAR_STRING_ADVANCE): Make it do-while statement.
15663
15664 * chartab.c (sub_char_table_set_range): Optimize for the case
15665 DEPTH == 3. Add workaround code for a GCC optimization bug.
15666
15667 * charset.c (parse_charset_map): Remove an unused variable.
15668
15669 * coding.c: Delete unused variables.
15670
15671 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
15672 earlier. If inserted is zero and the coding system doesn't
15673 require flushing, don't call decode_coding_gap.
15674
15675 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
15676
156772008-02-01 Kenichi Handa <handa@m17n.org>
15678
15679 The following changes are for using Unicode as an internal
15680 character model, and use UTF-8 format for buffer/string
15681 representation.
15682
15683 * .gdbinit (xchartable): Adjust for the change of char table structure.
15684 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
15685
15686 * Makefile.in (obj): Add character.o and chartab.o.
15687 (lisp, shortlisp): Remove utf-8.elc.
15688 (*.o): For many files, change dependency on charset.h to
15689 character.h, and add dependency on character.h.
15690 (character.o, chartab.o): New targets.
15691
15692 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
15693 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
15694 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
15695 of "charset.h".
15696
15697 * dired.c, filelock.c: Include "character.h".
15698
15699 * alloc.c: Include "character.h" instead of "charset.h".
15700 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
15701 (syms_of_alloc): Remove defsubr for Smake_char_table.
15702
15703 * buffer.c: Include "character.h" instead of "charset.h", don't
15704 include "coding.h".
15705 (Fset_buffer_multibyte): Adjust for UTF-8.
15706
15707 * buffer.h: EXFUN Fbuffer_live_p.
15708
15709 * callproc.c: Include "character.h" instead of "charset.h".
15710 (Fcall_process): Big change for the new code-conversion APIs.
15711
15712 * casetab.c: Include "character.h" instead of "charset.h".
15713 (set_canon, set_identity, shuffle): Adjust for the new
15714 map_char_table spec.
15715 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
15716 accessing the char table structure.
15717
15718 * chartab.c: New file that implements char table.
15719
15720 * category.c: Include "character.h".
15721 (copy_category_entry): New function.
15722 (copy_category_table): Call map_char_table and copy_category_entry.
15723 (Fmake_category_table): Initialize all top-level slots.
15724 (char_category_set): New function.
15725 (modify_lower_category_set): Delete.
15726 (Fmodify_category_entry): Call char_table_ref_and_range.
15727
15728 * category.h (CATEGORY_SET): Just call char_category_set.
15729
15730 * ccl.c: Include "character.h".
15731 (Qccl, Qcclp): New variables.
15732 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
15733 it's less than 256.
15734 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
15735 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
15736 and DST type.
15737 (ccl_driver): Change types of argument, adjust code accordingly.
15738 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
15739 ccl_driver.
15740 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
15741
15742 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
15743 New members src_multibyte, dst_multibyte, consumed, and produced.
15744 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
15745 (CODING_SPEC_CCL_PROGRAM): New macro.
15746 (ccl_driver): Update prototype.
15747 (Qccl, Qcclp, Fccl_program_p): Extern them.
15748 (CHECK_CCL_PROGRAM): New macro.
15749
15750 * character.c, character.h, chartab.c: New files.
15751
15752 * charset.c: Mostly re-written. Move character and multibyte sequence
15753 handling codes to character.c.
15754
15755 * charset.h: Mostly re-written. Move character and multibyte sequence
15756 handling codes to character.h.
15757
15758 * coding.c, coding.h: Mostly re-written.
15759
15760 * composite.c: Include "character.h" instead of "charset.h".
15761 (CHAR_WIDTH): Move to character.h.
15762 (HASH_KEY, HASH_VALUE): Delete.
15763
15764 * composite.h (enum composition_method): Change order of enumeration
15765 symbols.
15766
15767 * data.c: Include "character.h" instead of "charset.h".
15768 (Faref): Call CHAR_TABLE_REF for a char table.
15769 (Faset): Call CHAR_TABLE_SET for a char table.
15770
15771 * dispextern.h (free_realized_face, check_face_attribytes)
15772 (generate_ascii_font): Extern them.
15773 (free_realized_multibyte_face): Delete extern.
15774
15775 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
15776 table structure.
15777
15778 * editfns.c: Include "character.h" instead of "charset.h".
15779 (Fchar_to_string): Always call CHAR_STRING.
15780
15781 * emacs.c (main): Call init_charset_once, init_charset,
15782 syms_of_chartab, and syms_of_character.
15783
15784 * fileio.c: Include "character.h" instead of "charset.h".
15785 (Finsert_file_contents): Big change for the new code-conversion API.
15786 (choose_write_coding_system, Fwrite_region): Likewise.
15787 (build_annotations_2): Delete.
15788 (e_write): Big change for the new code-conversion API.
15789
15790 * fns.c: Include "character.h" instead of "charset.h".
15791 (copy_sub_char_table): Move to chartab.c.
15792 (Fcopy_sequence): Call copy_char_table for a char table.
15793 (concat): Delete codes calling count_multibyte.
15794 (string_char_to_byte, string_byte_to_char): Adjust for the new
15795 multibyte form.
15796 (internal_equal): Adjust for the change of char table structure.
15797 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
15798 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
15799 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
15800 (char_table_translate, optimize_sub_char_table)
15801 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
15802 chartab.c.
15803 (char_table_ref_and_index): Delete.
15804 (HASH_KEY, HASH_VALUE): Move to lisp.h.
15805 (Fmd5): Call preferred_coding_system instead of accessing
15806 Vcoding_category_list. Adjust for the new code-conversion API.
15807 (syms_of_fns): Move defsubr for char table related functions to
15808 chartab.c.
15809
15810 * fontset.c: Mostly re-written.
15811
15812 * fontset.h (struct font_info): Change type of the member encoding_type.
15813 (enum FONT_SPEC_INDEX): New enum.
15814 (fontset_font_pattern, fs_load_font): Update prototype.
15815 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
15816
15817 * indent.c: Include "character.h" instead of "charset.h".
15818 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
15819
15820 * insdel.c: Include "character.h" instead of "charset.h".
15821 (copy_text): Don't refer to Vnonascii_translation_table.
15822 (insert_from_gap): New function.
15823
15824 * keyboard.c: Include "character.h" instead of "charset.h".
15825 (command_loop_1): Never call direct_output_forward_char before
15826 a non-ASCII character.
15827 (read_char): If Vkeyboard_translate_table is a char table, always
15828 translate a character.
15829
15830 * keymap.c: Include "character.h".
15831 (store_in_keymap): Handle the case that IDX is a cons.
15832 (Fdefine_key): Handle the case that KEY is a cons and the car part
15833 is also a cons (range).
15834 (push_key_description): Adjust for the new character code.
15835 (describe_vector): Call describe_char_table for a char table.
15836 (describe_char_table): New function.
15837
15838 * keymap.h (describe_char_table): Extern it.
15839
15840 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
15841 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
15842 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
15843 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
15844 Delete.
15845 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
15846 structure.
15847 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
15848 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
15849 (CHARTAB_SIZE_BITS_3): New macros.
15850 (chartab_size): Extern it.
15851 (struct Lisp_Char_Table): Re-design.
15852 (struct Lisp_Sub_Char_Table): New structure.
15853 (HASH_KEY, HASH_VALUE): Move from fns.c.
15854 (CHARACTERBITS): Define as 22.
15855 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
15856 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
15857 (GC_SUB_CHAR_TABLE_P): New macro.
15858 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
15859 (code_convert_string_norecord): Deleted extern.
15860 (init_character_once, syms_of_character, init_charset)
15861 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
15862
15863 * lread.c: Include "character.h".
15864 (read_multibyte): New arg NBYTES.
15865 (read_escape): Change the meaning of returned *BYTEREP.
15866 (to_multibyte): Delete.
15867 (read1): Adjust the handling of char table and string.
15868
15869 * print.c: Include "character.h" instead of "charset.h".
15870 (print_string): Convert 8-bit raw bytes to octal form by
15871 string_escape_byte8.
15872 (print_object): Adjust for the new multibyte form. Print 8-bit
15873 raw bytes always in octal form. Handle sub char table correctly.
15874
15875 * process.c: Include "character.h" instead of "charset.h".
15876 (read_process_output, send_process): Adjust for the new
15877 code-conversion API.
15878
15879 * puresize.h (BASE_PURESIZE): Increase.
15880
15881 * regex.c: Include "character.h" instead of "charset.h".
15882 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
15883 (regex_compile): Accept a range whose starting and ending
15884 character have different leading bytes.
15885 (analyse_first): Adjust for the above change.
15886
15887 * search.c: Include "character.h" instead of "charset.h".
15888 (search_buffer, boyer_moore): Adjust for the new multibyte form.
15889 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
15890
15891 * syntax.c: Include "character.h" instead of "charset.h".
15892 (syntax_parent_lookup): Delete.
15893 (Fmodify_syntax_entry): Accept a cons as CHAR.
15894 (skip_chars): Adjust for the new multibyte form.
15895 (init_syntax_once): Call char_table_set_range instead of directly
15896 accessing the structure of a char table.
15897
15898 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
15899 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
15900 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
15901 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
15902
15903 * term.c: Include "buffer.h" and "character.h".
15904 (encode_terminal_code, write_glyphs): Adjust for the new
15905 code-conversion API.
15906 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
15907
15908 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
15909
15910 * xdisp.c: Include "character.h".
15911 (get_next_display_element): Adjust for the new multibyte form.
15912 (disp_char_vector): Adjust for the new char table structure.
15913 (decode_mode_spec_coding): Adjust for the new structure of
15914 coding system.
15915 (decode_mode_spec): Adjust for the new code-conversion API.
15916
15917 * xfaces.c: Include "character.h" instead of "charset.h".
15918 (load_face_font): Adjust for the change of choose_face_font and
15919 FS_LOAD_FONT.
15920 (generate_ascii_font): New function.
15921 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
15922 (set_font_frame_param): Adjust for the change of choose_face_font.
15923 (free_realized_face): Make it public.
15924 (free_realized_faces_for_fontset): Rename from
15925 free_realized_multibyte_face. Free also faces realized for ASCII.
15926 (choose_face_font): Change arguments. Adjust for the change of
15927 fontset_font_pattern and FS_LOAD_FONT.
15928
15929 * xfns.c: Include "character.h".
15930 (x_encode_text): Adjust for the new code-conversion API.
15931
15932 * xselect.c: Don't include "charset.h".
15933 (selection_data_to_lisp_data): Adjust for the new code conversion API.
15934
15935 * xterm.c: Include "character.h".
15936 (x_encode_char): New argument CHARSET. Change caller.
15937 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
15938 Call ENCODE_CHAR instead of SPLIT_CHAR.
15939 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
15940 CHAR_WIDTH instead of CHARSET_WIDTH.
15941 (XTread_socket): Adjust for the new code-conversion API.
15942 (x_new_font): Adjust for the change of FS_LOAD_FONT.
15943 (x_load_font): Adjust for the change of struct font.
15944
159452008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
15946
15947 * xfaces.c (face_at_buffer_position): Remove unused vars.
15948
159492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15950
15951 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
15952 Fix overflow checking.
15953
159542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
15955
15956 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
15957 Cancel previous change.
15958
159592008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
15960
15961 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
15962 ccl->eight_bit_control. Fix check for buffer overflow.
15963 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
15964 (ccl_driver): Initialize extra_bytes to 0.
15965
159662008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
15967
15968 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
15969 return it ORed with ctrl_modifier.
15970
159712008-01-29 Miles Bader <miles@gnu.org>
15972
15973 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
15974
159752008-01-28 Jason Rumney <jasonr@gnu.org>
15976
15977 * w32.c (stat): Don't double check for networked drive.
15978
159792008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
15980
15981 * window.c (run_window_configuration_change_hook): New function.
15982 Code extracted from set_window_buffer. Set the selected frame.
15983 (set_window_buffer): Use it.
15984 * window.h (run_window_configuration_change_hook): Declare.
15985 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
15986
15987 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
15988
159892008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
15990
15991 * Makefile.in: Remove references to unused macros.
15992
159932008-01-26 Eli Zaretskii <eliz@gnu.org>
15994
15995 * w32.c (g_b_init_get_sid_sub_authority)
15996 (g_b_init_get_sid_sub_authority_count): New static variables.
15997 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
15998 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
15999 (init_user_info): Use them to retrieve uid and gid.
16000 Use 500/513, the Windows defaults, as Administrator's uid/gid.
16001 (fstat): Use pw_uid and pw_gid from the_passwd structure for
16002 st_uid and st_gid of the file.
16003
160042008-01-26 Jason Rumney <jasonr@gnu.org>
16005
16006 * w32.c (logon_network_drive): New function.
16007 (stat): Use it.
16008
160092008-01-26 Chong Yidong <cyd@stupidchicken.com>
16010
16011 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
16012 invisible text covered with an ellipsis.
16013
160142008-01-25 Richard Stallman <rms@gnu.org>
16015
16016 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
16017 jump back to beginning. Move some other initializations after that.
16018 (Qwindow_text_change_functions, Vwindow_text_change_functions):
16019 New variables.
16020 (syms_of_xdisp): Init them.
16021
16022 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
16023
16024 * buffer.c (reset_buffer_local_variables):
16025 Implement `permanent-local-hook'.
16026 (Qpermanent_local_hook): New variable.
16027 (syms_of_buffer): Init and staticpro it.
16028
160292008-01-25 Michael Albinus <michael.albinus@gmx.de>
16030
16031 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
16032
160332008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
16034
16035 * fns.c (Fclrhash): Return TABLE.
16036
160372008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16038
16039 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
16040 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
16041 is set even without positional changes.
16042 (x_scroll_bar_clear): Set bar->redraw_needed_p.
16043
16044 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
16045
160462008-01-23 Jason Rumney <jasonr@gnu.org>
16047
16048 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
16049
16050 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
16051 the unicode range available in MULE by locale-coding-system.
16052 Improve dbcs lead byte detection. Set event timestamp and modifiers
16053 earlier.
16054
160552008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16056
16057 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
16058 [MAC_OSX] (init_mac_osx_environment): Initialize it.
16059 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
16060 when used on child processes.
16061
160622008-01-21 Michael Albinus <michael.albinus@gmx.de>
16063
16064 * dbusbind.c (Fdbus_method_return_internal): Rename from
16065 Fdbus_method_return.
16066 (Fdbus_unregister_object): Move to dbus.el.
16067 (Fdbus_call_method, Fdbus_method_return_internal)
16068 (Fdbus_send_signal): Improve debug messages.
16069
160702008-01-20 Martin Rudalics <rudalics@gmx.at>
16071
16072 * undo.c (undo_inhibit_record_point): New variable.
16073 (syms_of_undo): Initialize it.
16074 (record_point): Don't record point when undo_inhibit_record_point
16075 is set.
16076
160772008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
16078
16079 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
16080
16081 * xdisp.c (Qauto_hscroll_mode): New var.
16082 (syms_of_xdisp): Initialize it.
16083 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
16084 window's buffer.
16085 (hscroll_windows): Don't check automatic_hscrolling_p here.
16086
16087 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
16088 vscroll if we're setting window-buffer to the value it already has.
16089
160902008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
16091
16092 * m/intel386.h: Remove references to XENIX.
16093
160942008-01-17 Andreas Schwab <schwab@suse.de>
16095
16096 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
16097 instead of HAVE_X86_64_LIB64_DIR.
16098 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
16099
161002008-01-17 Glenn Morris <rgm@gnu.org>
16101
16102 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
16103 to HAVE_X86_64_LIB64_DIR.
16104
161052008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
16106
16107 * s/irix3-3.h:
16108 * s/irix4-0.h:
16109 * s/386-ix.h:
16110 * s/domain.h:
16111 * s/hpux9-x11r4.h:
16112 * s/hpux9shxr4.h: Remove files for systems no longer supported.
16113
16114 * sysdep.c: Remove code containing references to symbols defined
16115 by unsupported systems.
16116
161172008-01-16 Glenn Morris <rgm@gnu.org>
16118
16119 * coding.c (select-safe-coding-system-function): Doc fix.
16120
161212008-01-15 Glenn Morris <rgm@gnu.org>
16122
16123 * config.in: Revert 2008-01-13 change: this is a generated file.
16124
161252008-01-13 Tom Tromey <tromey@redhat.com>
16126
16127 * lisp.h: Fix typo.
16128
161292008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
16130
16131 * m/sequent-ptx.h:
16132 * m/sequent.h:
16133 * s/ptx.h:
16134 * s/ptx4-2.h:
16135 * s/ptx4.h: Remove files for systems no longer supported.
16136
16137 * callproc.c (Fcall_process): Fix previous change.
16138
161392008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
16140
16141 * unexsunos4.c: Remove file, system not supported anymore.
16142
16143 * m/mips.h:
16144 * m/intel386.h:
16145 * callproc.c:
16146 * config.in:
16147 * ecrt0.c:
16148 * emacs.c:
16149 * fileio.c:
16150 * frame.c:
16151 * getpagesize.h:
16152 * keyboard.c:
16153 * lread.c:
16154 * process.c:
16155 * puresize.h:
16156 * sysdep.c:
16157 * systty.h:
16158 * syswait.h:
16159 * unexec.c:
16160 * xdisp.c:
16161 * alloc.c: Remove code containing references to symbols defined by
16162 unsupported systems.
16163
161642008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
16165
16166 * coding.c (detect_coding_mask): Fix previous change.
16167
161682008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
16169
16170 * coding.c (detect_coding_iso2022): New arg
16171 latin_extra_code_state. Allow Latin extra codes only
16172 when *latin_extra_code_state is nonzero.
16173 (detect_coding_mask): If there is a NULL byte, detect the encoding
16174 as UTF-16 or binary. If Latin extra codes exist, detect the
16175 encoding as ISO-2022 only when there's no other proper encoding is
16176 found.
16177
161782008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16179
16180 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
16181 #ifdef MAC_OS.
16182
161832008-01-08 Richard Stallman <rms@gnu.org>
16184
16185 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
16186
161872008-01-06 Nick Roberts <nickrob@snap.net.nz>
16188
16189 * keyboard.c (parse_menu_item): Don't enclose key bindings on
16190 menu bar in parentheses.
16191
161922008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
16193
16194 * m/7300.h:
16195 * m/acorn.h:
16196 * m/alliant-2800.h:
16197 * m/alliant.h:
16198 * m/alliant1.h:
16199 * m/alliant4.h:
16200 * m/altos.h:
16201 * m/amdahl.h:
16202 * m/apollo.h:
16203 * m/att3b.h:
16204 * m/aviion-intel.h:
16205 * m/aviion.h:
16206 * m/celerity.h:
16207 * m/clipper.h:
16208 * m/cnvrgnt.h:
16209 * m/convex.h:
16210 * m/cydra5.h:
16211 * m/delta88k.h:
16212 * m/dpx2.h:
16213 * m/dual.h:
16214 * m/elxsi.h:
16215 * m/f301.h:
16216 * m/gould-np1.h:
16217 * m/gould.h:
16218 * m/i860.h:
16219 * m/ibmps2-aix.h:
16220 * m/ibmrt-aix.h:
16221 * m/ibmrt.h:
16222 * m/irist.h:
16223 * m/is386.h:
16224 * m/isi-ov.h:
16225 * m/mega68.h:
16226 * m/mg1.h:
16227 * m/news-r6.h:
16228 * m/news-risc.h:
16229 * m/news.h:
16230 * m/nh3000.h:
16231 * m/nh4000.h:
16232 * m/ns16000.h:
16233 * m/ns32000.h:
16234 * m/nu.h:
16235 * m/orion.h:
16236 * m/orion105.h:
16237 * m/paragon.h:
16238 * m/pfa50.h:
16239 * m/plexus.h:
16240 * m/pyramid.h:
16241 * m/pyrmips.h:
16242 * m/sh3el.h:
16243 * m/sps7.h:
16244 * m/sr2k.h:
16245 * m/stride.h:
16246 * m/sun1.h:
16247 * m/sun2.h:
16248 * m/sun3-68881.h:
16249 * m/sun3-fpa.h:
16250 * m/sun3-soft.h:
16251 * m/sun3.h:
16252 * m/sun386.h:
16253 * m/symmetry.h:
16254 * m/tad68k.h:
16255 * m/tahoe.h:
16256 * m/targon31.h:
16257 * m/tek4300.h:
16258 * m/tekxd88.h:
16259 * m/tower32.h:
16260 * m/tower32v3.h:
16261 * m/ustation.h:
16262 * m/wicat.h:
16263 * m/xps100.h:
16264 * s/cxux.h:
16265 * s/cxux7.h:
16266 * s/dgux.h:
16267 * s/dgux4.h:
16268 * s/dgux5-4-3.h:
16269 * s/dgux5-4r2.h:
16270 * s/esix.h:
16271 * s/esix5r4.h:
16272 * s/hiuxmpp.h:
16273 * s/hiuxwe2.h:
16274 * s/iris3-5.h:
16275 * s/iris3-6.h:
16276 * s/isc2-2.h:
16277 * s/isc3-0.h:
16278 * s/isc4-0.h:
16279 * s/isc4-1.h:
16280 * s/newsos5.h:
16281 * s/newsos6.h:
16282 * s/osf1.h:
16283 * s/osf5-0.h:
16284 * s/riscix1-1.h:
16285 * s/riscix12.h:
16286 * s/sco4.h:
16287 * s/sco5.h:
16288 * s/sunos4-0.h:
16289 * s/sunos4-1.h:
16290 * s/sunos413.h:
16291 * s/sunos4shr.h:
16292 * s/umax.h:
16293 * s/unipl5-2.h:
16294 * s/xenix.h:
16295 * cxux-crt0.s:
16296 * unexapollo.c:
16297 * unexconvex.c:
16298 * unexenix.c:
16299 * unexsni.c: Remove files for systems no longer supported.
16300
16301 * m/intel386.h: Remove references to unsupported systems.
16302
16303 * w32.c (get_emacs_configuration): Remove reference to i860.
16304
16305 * sysdep.c: Remove dead code.
16306
163072008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
16308
16309 * s/rtu.h:
16310 * m/masscomp.h: Remove files. Platform is obsolete.
16311
163122008-01-04 Michael Albinus <michael.albinus@gmx.de>
16313
16314 * dbusbind.c (Fdbus_method_return): New function.
16315 (xd_read_message): Add the serial number to the event.
16316 (Fdbus_register_method): Activate the function.
16317
163182008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
16319
16320 * keyboard.c (read_key_sequence): Fix typo.
16321
163222008-01-03 Michael Albinus <michael.albinus@gmx.de>
16323
16324 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
16325 (xd_signature, xd_append_arg): Handle element type detection for
16326 empty arrays.
16327 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
16328 SDATA () calls; this must be solved more general.
16329 (Fdbus_register_signal): Use SBYTES instead of strlen.
16330
163312008-01-03 Magnus Henoch <magnus@zemdatav>
16332
16333 * dbusbind.c (xd_append_arg): Use unsigned char instead of
16334 unsigned int for byte values (necessary for big-endian platform).
16335 (Fdbus_call_method): Handle the case of no returned arguments.
16336
163372007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
16338
16339 * dbusbind.c (xd_read_message): Use non-static input_event struct.
16340
163412007-12-31 Magnus Henoch <mange@freemail.hu>
16342
16343 * dbusbind.c (xd_signature): Signature of variant is just "v".
16344
163452007-12-30 Michael Albinus <michael.albinus@gmx.de>
16346
16347 * dbusbind.c: Fix several errors and compiler warnings.
16348 Reported by Tom Tromey <tromey@redhat.com>.
16349 (XD_ERROR, XD_DEBUG_MESSAGE)
16350 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
16351 (xd_append_arg): Part for basic D-Bus types rewritten.
16352 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
16353 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
16354 appropriate.
16355 (xd_read_message): Return Qnil. Don't signal an error; it is not
16356 useful during event reading.
16357 (Fdbus_register_signal): Signal an error if the check for
16358 FUNCTIONP fails.
16359 (Fdbus_register_method): New function. The implementation is not
16360 complete, the call of the function signals an error therefore.
16361 (Fdbus_unregister_object): New function, renamed from
16362 Fdbus_unregister_signal. The initial check signals an error, if
16363 the object is not well formed.
16364
163652007-12-30 Richard Stallman <rms@gnu.org>
16366
16367 * textprop.c (get_char_property_and_overlay):
16368 Signal error if POSITION is out of range in a buffer.
16369
163702007-12-29 Martin Rudalics <rudalics@gmx.at>
16371
16372 * w32fns.c (Fx_create_frame): Make copy of frame parameters
16373 because the original parameters are in pure storage now.
16374
163752007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16376
16377 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
16378
163792007-12-22 Eli Zaretskii <eliz@gnu.org>
16380
16381 * callint.c (syms_of_callint) <command-history>: Add reference to
16382 history-length in the doc string.
16383
163842007-12-17 Jason Rumney <jasonr@gnu.org>
16385
16386 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
16387 before passing as wParam.
16388
163892007-12-22 Michael Albinus <michael.albinus@gmx.de>
16390
16391 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
16392 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
16393 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
16394 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
16395 as number.
16396 (Fdbus_call_method): Fix docstring.
16397
163982007-12-21 Michael Albinus <michael.albinus@gmx.de>
16399
16400 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
16401 New macros.
16402 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
16403 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
16404 Simplify.
16405 (xd_signature): New function.
16406 (xd_append_arg): Compute also signatures. Major rewrite.
16407 (xd_retrieve_arg): Make debug messages friendly.
16408 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
16409 Check for signatures of arguments.
16410
164112007-12-19 Michael Albinus <michael.albinus@gmx.de>
16412
16413 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
16414 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
16415 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
16416 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
16417 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
16418 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
16419 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
16420 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
16421 (xd_retrieve_value): Remove. Functionality included in ...
16422 (xd_append_arg): New function.
16423 (Fdbus_call_method, Fdbus_send_signal): Apply it.
16424
164252007-12-16 Michael Albinus <michael.albinus@gmx.de>
16426
16427 * dbusbind.c (top): Include <stdio.h>.
16428 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
16429 dbus_message_new_method_call and dbus_message_new_signal.
16430 (Fdbus_register_signal): Rename unique_name to uname.
16431 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
16432 non-existing unique name. Fix typos in matching rule. Return an
16433 object which is useful in Fdbus_unregister_signal.
16434 (Fdbus_unregister_signal): Reimplementation, in order to remove
16435 only the corresponding entry.
16436 (Vdbus_registered_functions_table): Change the order of entries.
16437 Apply these changes in xd_read_message and Fdbus_register_signal.
16438
164392007-12-16 Andreas Schwab <schwab@suse.de>
16440
16441 * fileio.c (Finsert_file_contents): Fix overflow check to not
16442 depend on undefined integer overflow.
16443
164442007-12-14 Jason Rumney <jasonr@gnu.org>
16445
16446 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
16447 for characters above 127.
16448
164492007-12-13 Jason Rumney <jasonr@gnu.org>
16450
16451 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
16452 before dereferencing array.
16453 (lookup_vk_code): Remove zero comparison.
16454
164552007-12-14 Michael Albinus <michael.albinus@gmx.de>
16456
16457 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
16458 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
16459 Use `unsigned int' instead of `uint'.
16460 (xd_read_message, Fdbus_register_signal): Split expressions into
16461 multiple lines before operators "&&" and "||", according to the
16462 GNU Coding Standards.
16463
164642007-12-14 Eli Zaretskii <eliz@gnu.org>
16465
16466 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
16467
164682007-12-12 Juri Linkov <juri@jurta.org>
16469
16470 * buffer.c (Frename_buffer): In interactive spec replace
16471 `read-buffer' with `read-string' that uses `buffer-name-history'
16472 as history, and the current buffer's name as default.
16473
164742007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
16475
16476 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
16477 manipulating the backtrace manually.
16478 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
16479 (struct backtrace, backtrace_list): Remove.
16480 (command_loop_1): Remove dead var `no_direct'.
16481
16482 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
16483 preserve non-built-in buffer-local variables.
16484 (Fkill_all_local_variables): Don't re-create&re-set permanent
16485 buffer-local variables.
16486
164872007-12-09 Juri Linkov <juri@jurta.org>
16488
16489 * buffer.c (Frename_buffer): Change interactive spec from "s" to
16490 Lisp code that uses `read-buffer' with current buffer as default.
16491
164922007-12-08 Michael Albinus <michael.albinus@gmx.de>
16493
16494 * dbusbind.c (xd_read_message): Generate an event for every
16495 registered handler. There might be several handlers registered
16496 for the same signal.
16497 (Fdbus_register_signal): Don't overwrite a registration for the
16498 same signal. Add a new registration if handlers are different.
16499 (Vdbus_registered_functions_table): Rework doc string.
16500
165012007-12-07 Michael Albinus <michael.albinus@gmx.de>
16502
16503 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
16504 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
16505 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
16506 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
16507 Unify argument lists.
16508 (xd_read_message, Fdbus_register_signal): Reorder and extend event
16509 arguments and hash table keys. Use unique name for service.
16510 (Fdbus_unregister_signal): Remove checks.
16511 (Vdbus_registered_functions_table): Fix doc string.
16512
165132007-12-05 Magnus Henoch <mange@freemail.hu>
16514
16515 * process.c (make_process): Initialize pty_flag to 0.
16516
165172007-12-05 Jason Rumney <jasonr@gnu.org>
16518
16519 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
16520 specified XBMs.
16521
165222007-12-05 Richard Stallman <rms@gnu.org>
16523
16524 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
16525
165262007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16527
16528 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
16529 New variable.
16530 (mac_try_close_socket) [MAC_OSX]: New function.
16531 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
16532 Update cfsockets_for_select. Replace invalid CFRunLoop source.
16533
16534 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
16535 Use mac_try_close_socket.
16536
165372007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16538
16539 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
16540 reloc_base.
16541 (copy_dysymtab): Compute relocation base here.
16542 (rebase_reloc_address) [__ppc64__]: New function.
16543 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
16544 changed.
16545
165462007-12-05 Jason Rumney <jasonr@gnu.org>
16547
16548 * w32proc.c (sys_spawnve): Quote args with wildcards.
16549
165502007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16551
16552 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
16553 __objc_* sections.
16554 (unrelocate) [_LP64]: Set relocation base to address of data segment.
16555
165562007-12-05 Michael Albinus <michael.albinus@gmx.de>
16557
16558 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
16559 Move check for Vdbus_registered_functions_table to
16560 xd_read_queued_messages.
16561 (xd_read_queued_messages): Protect xd_read_message calls by
16562 internal_condition_case_1.
16563
165642007-12-04 Michael Albinus <michael.albinus@gmx.de>
16565
16566 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
16567 Qdbus_system_bus and Qdbus_session_bus, respectively.
16568 (Vdbus_intern_symbols): Remove.
16569 (Vdbus_registered_functions_table): New hash table.
16570 (XD_SYMBOL_INTERN_SYMBOL): Remove.
16571 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
16572 Rewrite in order to manage registered functions by hash table
16573 Vdbus_registered_functions_table.
16574
165752007-12-03 Jan Djärv <jan.h.d@swipnet.se>
16576
16577 * xterm.c: Update URL to Window Manager Specification in comment.
16578
165792007-12-02 Michael Albinus <michael.albinus@gmx.de>
16580
16581 * config.in (HAVE_DBUS): Add.
16582
16583 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
16584 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
16585 (obj): Add $(DBUS_OBJ).
16586 (LIBES): Add $(DBUS_LIBS).
16587 (dbusbind.o): New target.
16588
16589 * dbusbind.c: New file.
16590
16591 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
16592
16593 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
16594 (Qdbus_event): New Lisp symbol.
16595 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
16596 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 16597 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
16598
16599 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
16600
166012007-12-01 Richard Stallman <rms@gnu.org>
16602
16603 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
16604
166052007-11-30 Jason Rumney <jasonr@gnu.org>
16606
16607 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
16608 (w32con_reset_terminal_modes): Clear screen buffer.
16609 (w32_face_attributes): Don't use color indexes that are out of range.
16610 Only reverse the default colors.
16611
16612 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
16613 WINDOWSNT.
16614
16615 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
16616
166172007-11-29 Jason Rumney <jasonr@gnu.org>
16618
16619 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
16620 (w32_face_attributes): Use Vtty_defined_color_alist to determine
16621 if the terminal colors are initialized.
16622 (unspecified_fg, unspecified_bg): Remove unused declarations.
16623
166242007-11-29 Andreas Schwab <schwab@suse.de>
16625
16626 * keyboard.c (apply_modifiers): Fix typo.
16627
166282007-11-29 Richard Stallman <rms@gnu.org>
16629
16630 * keymap.c (Fcurrent_local_map): Doc fix.
16631
166322007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
16633
16634 * s/gnu-kfreebsd.h: New file.
16635
166362007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
16637
16638 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
16639 Don't cast redundantly.
16640
16641 * keyboard.c (KEY_TO_CHAR): New macro.
16642 (parse_modifiers, apply_modifiers): Accept integer arguments.
16643 (read_key_sequence): Use them to unify the "shift->unshift" mapping
16644 for chars and symbol keys.
16645 After doing such remapping, apply function-key-map again.
16646
166472007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
16648
16649 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
16650 compiled anymore.
16651
166522007-11-26 Andreas Schwab <schwab@suse.de>
16653
16654 * process.c (list_processes_1): Fix indentation level of the
16655 command column.
16656
166572007-11-23 Andreas Schwab <schwab@suse.de>
16658
16659 * editfns.c (Fformat): Handle %c specially since it requires the
16660 argument to be of type int.
16661
166622007-11-23 Markus Triska <markus.triska@gmx.at>
16663
16664 * emacs.c (main): Call init_editfns before init_process, since
16665 init_process sets Vprocess_connection_type depending on OS release.
16666
166672007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
16668
16669 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
16670 (find_symbol_value): Use do_symval_forwarding.
16671
16672 * data.c (set_internal): Set the value in the `cons-cell' (for
16673 Buffer_Local_values) not only for frame-local variables.
16674
166752007-11-22 Andreas Schwab <schwab@suse.de>
16676
16677 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
16678 values to sprintf.
16679 * keymap.c (Fsingle_key_description): Likewise.
16680 * print.c (print_object): Likewise.
16681
166822007-11-22 Jan Djärv <jan.h.d@swipnet.se>
16683
16684 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
16685 file for image is nil.
16686
166872007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
16688
16689 * term.c: Include stdarg.h.
16690 (fatal): Implement using varargs.
16691 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
16692
166932007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
16694
16695 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
16696 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
16697 Update call to buffer_slot_type_mismatch.
16698 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
16699 (buffer_slot_type_mismatch): Update.
16700 * buffer.c (buffer_local_types): Remove.
16701 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
16702 (defvar_per_buffer): Set the type in the buffer_objfwd.
16703
167042007-11-21 Jason Rumney <jasonr@gnu.org>
16705
16706 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
16707 CreateFileMapping returns NULL on failure.
16708
167092007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
16710
16711 * search.c (Fset_match_data): Remove the `evaporate' feature.
16712 (unwind_set_match_data): Don't use the `evaporate' feature.
16713
167142007-11-21 Jason Rumney <jasonr@gnu.org>
16715
16716 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
16717
16718 * w32console.c (w32con_write_glyphs): Remove unused variables.
16719
167202007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
16721
16722 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
16723
16724 * s/darwin.h (MULTI_KBOARD): Remove.
16725
16726 * macfns.c (x_create_tip_frame, Fx_create_frame)
16727 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
16728
167292007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
16730
16731 * buffer.c (Fbuffer_local_value): Remove redundant test.
16732 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
16733 than in `current-buffer' to match the comment.
16734 Do the swap using swap_in_global_binding.
16735
16736 * data.c (store_symval_forwarding, set_internal):
16737 * eval.c (specbind): Remove dead code.
16738
16739 * coding.c (detect_coding, Fupdate_coding_systems_internal):
16740 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
16741 Since we do not want to see internal Lisp_*fwd objects here.
16742
167432007-11-18 Jan Djärv <jan.h.d@swipnet.se>
16744
16745 * sysdep.c (init_system_name): Use getaddrinfo if available.
16746
16747 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
16748 (x_scroll_bar_note_movement): start, end, with, height in struct
16749 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
16750
167512007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
16752
16753 * puresize.h (BASE_PURESIZE): Increase to 1190000.
16754
167552007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
16756
16757 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
16758 This undoes Richard's change of 14-Oct-2002.
16759
16760 * alloc.c (allocate_other_vector):
16761 * lisp.h (allocate_other_vector): Remove.
16762
16763 * window.c (struct save_window_data): Move non-lisp data to the end
16764 and make it `int' rather than Lisp_Object.
16765 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
16766 Done wrap/unwrap integer values.
16767 (Fset_window_configuration, compare_window_configurations):
16768 Update use of fields to their new types.
16769
16770 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
16771 Turn integer fields into `int'. Merge x_window_low and x_window_high.
16772 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
16773 (SET_SCROLL_BAR_X_WINDOW): Remove.
16774 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
16775 Access the new x_window field directly.
16776 * xterm.c (x_scroll_bar_create): Use a pseudovector.
16777 Don't wrap/unwrap integers into Lisp_Objects.
16778 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
16779 (x_scroll_bar_report_motion):
16780 Don't wrap/unwrap integers into Lisp_Objects.
16781 (x_term_init): Use SDATA.
16782 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
16783 (x_scroll_bar_set_handle, x_scroll_bar_remove)
16784 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
16785 (x_scroll_bar_report_motion, x_scroll_bar_clear):
16786 * xfns.c (x_set_background_color):
16787 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
16788 Access the new x_window field directly.
16789
16790 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
16791 (allocate_pseudovector): Make non-static.
16792
16793 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
16794 (allocate_pseudovector): Declare.
16795 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
16796
167972007-11-15 Andreas Schwab <schwab@suse.de>
16798
16799 * editfns.c (Fformat): Correctly format EMACS_INT values.
16800 Also take precision into account when formatting an integer.
16801
16802 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
16803
168042007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
16805
16806 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
16807 (syms_of_keyboard): Defsubr it.
16808
16809 * data.c (swap_in_global_binding): Fix longstanding bug where
16810 store_symval_forwarding was not called with the right second argument,
16811 thus causing objfwd-ing from being dropped.
16812
168132007-11-14 Juanma Barranquero <lekktu@gmail.com>
16814
16815 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
16816 (Fx_display_pixel_height, Fx_display_planes)
16817 (Fx_display_color_cells, Fx_server_max_request_size)
16818 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
16819 (Fx_display_visual_class, Fx_display_save_under):
16820 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
16821 (Fx_display_pixel_height, Fx_display_planes)
16822 (Fx_display_color_cells, Fx_server_max_request_size)
16823 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
16824 (Fx_display_mm_height, Fx_display_mm_width)
16825 (Fx_display_backing_store, Fx_display_visual_class)
16826 (Fw32_select_font, Fx_display_save_under):
16827 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
16828 (Fx_display_pixel_height, Fx_display_planes)
16829 (Fx_display_color_cells, Fx_server_max_request_size)
16830 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
16831 (Fx_display_save_under): Fix typos in docstrings.
16832
168332007-11-14 Juanma Barranquero <lekktu@gmail.com>
16834
16835 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
16836 corresponding to deleted entries; they are an implementation detail.
16837 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
16838 Remove variables.
16839 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
16840 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
16841 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
16842 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
16843 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
16844 (Fw32_define_rgb_color, Fw32_load_color_file)
16845 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
16846 Fix typos in docstrings.
16847 (Fx_server_version): Reflow docstring.
16848 (Fw32_shell_execute): Doc fixes.
16849
168502007-11-13 Juanma Barranquero <lekktu@gmail.com>
16851
16852 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
16853 if w32_parse_hot_key returned nil.
16854
168552007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
16856
16857 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
16858
168592007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 16860
aac0c6e3
MR
16861 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
16862
16863 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
16864
16865 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
16866 Remove W32_SCROLL_BAR_CLICK_EVENT.
16867
16868 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
16869 Add MULTIMEDIA_KEY_EVENT.
16870
16871 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
16872 (lispy_multimedia_keys) [WINDOWSNT]: New array.
16873 (make_lispy_event) [WINDOWSNT]: Use it to translate
16874 MULTIMEDIA_KEY_EVENT.
16875
16876 * w32term.h (WM_APPCOMMAND): Define if not already.
16877 (GET_APPCOMMAND_LPARAM): Likewise.
16878
16879 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
16880 WM_APPCOMMAND.
16881
16882 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
16883 (syms_of_w32fns): Export and initialize it.
16884 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
16885
168862007-11-09 Chong Yidong <cyd@stupidchicken.com>
16887
16888 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
16889 twice.
16890
16891 * xdisp.c (handle_face_prop): Fix last change.
16892
168932007-11-09 Richard Stallman <rms@gnu.org>
16894
16895 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
16896 not just for after-strings and before-strings.
16897 Call face_for_overlay_string and pass the overlay to it.
16898 (handle_display_prop): Determine whether property came from an overlay.
16899 Pass OVERLAY arg to handle_single_display_spec.
16900 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
16901 (load_overlay_strings): Fill in it->string_overlays.
16902 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
16903
16904 * xfaces.c (face_for_overlay_string): Function renamed from
16905 face_at_buffer_position_no_overlays, and add arg OVERLAY.
16906
16907 * dispextern.h (struct it): New elt string_overlays.
16908 New elt from_overlay, also in stack.
16909 Rearrange a few elements.
16910 (face_for_overlay_string): Decl renamed from
16911 face_at_buffer_position_no_overlays, and add argument.
16912
169132007-11-09 Richard Stallman <rms@gnu.org>
16914
16915 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
16916 to get the base face for an overlay string.
16917
16918 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
16919
16920 * xfaces.c (face_at_buffer_position_no_overlays): New function.
16921
16922 * xdisp.c (handle_stop): Move some code out of loop.
16923
169242007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16925
16926 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
16927 Fix conversion from Lisp object to ATSUFontID.
16928
169292007-11-09 Jason Rumney <jasonr@gnu.org>
16930
16931 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
16932
169332007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16934
16935 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
16936 Don't assume regions are aligned to page boundary.
16937 (print_load_command_name): Add LC_UUID if defined.
16938
169392007-11-09 Richard Stallman <rms@gnu.org>
16940
16941 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
16942
169432007-11-07 Jason Rumney <jasonr@gnu.org>
16944
16945 * s/windows95.h: Remove.
16946
169472007-11-06 Jan Djärv <jan.h.d@swipnet.se>
16948
16949 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
16950 abort with a message on unhandled store_type values.
16951
169522007-11-01 Jan Djärv <jan.h.d@swipnet.se>
16953
16954 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
16955 Remove HAVE_X11R5 and HAVE_X11R4.
16956
169572007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
16958
16959 * Makefile.in: Remove references to sunfns.c and sunfns.o.
16960
169612007-11-01 Johan Bockgård <bojohan@gnu.org>
16962
16963 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
16964 Don't set s->stippled_p here, since it has already been set by
16965 x_set_glyph_string_gc from x_draw_glyph_string.
16966
169672007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
16968
16969 * sunfns.c: Remove file.
16970
16971 * m/sun386.h:
16972 * m/sun2.h:
16973 * m/sparc.h: Remove Sun windows code.
16974
169752007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
16976
16977 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
16978 (init_keyboard): Set current_kboard's window-system to nil.
16979 (tty_read_avail_input): Typo.
16980 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
16981
169822007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
16983
16984 * s/usg5-4.h:
16985 * s/usg5-3.h:
16986 * s/ptx.h:
16987 * m/is386.h:
16988 * m/ibmps2-aix.h:
16989 * Makefile.in: Remove all mentions of X10.
16990
16991 * dispnew.c (syms_of_display): Don't mention version 10.
16992
169932007-10-28 Juanma Barranquero <lekktu@gmail.com>
16994
16995 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
16996 ($(BLD)/abbrev.$(O)): Remove.
16997
169982007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
16999
17000 Rewrite abbrev.c in Elisp.
17001 * image.c (Qcount): Don't declare as extern.
17002 (syms_of_image): Initialize and staticpro `Qcount'.
17003 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
17004 * emacs.c (main): Don't call syms_of_abbrev.
17005 * Makefile.in (obj): Remove abbrev.o.
17006 (abbrev.o): Remove.
17007 * abbrev.c: Remove.
17008
170092007-10-26 Martin Rudalics <rudalics@gmx.at>
17010
17011 * window.c (window_min_size_2): Don't count header-line.
17012
170132007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
17014
17015 * frame.h (struct frame): Move all bit fields after the first bit
17016 field to take advantage of the available space. Group all the
17017 chars together to reduce wasted space due to padding.
17018
170192007-10-26 Juanma Barranquero <lekktu@gmail.com>
17020
17021 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
17022
17023 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
17024 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
17025 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
17026 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
17027 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
17028 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
17029 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
17030 (last_marked, mark_object_loop_halt): Make static.
17031
17032 * frame.c (syms_of_frame) <delete-frame-functions>:
17033 Fix typo in docstring.
17034
170352007-10-25 Juanma Barranquero <lekktu@gmail.com>
17036
17037 * w32.c (init_environment): Fix tiny memory leak.
17038 (w32_get_resource): Remove unused variable `ok'.
17039
170402007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
17041
17042 Make `window-system' into a keyboard-local variable (rather than
17043 frame-local as done originally by multi-tty).
17044
17045 * keyboard.h (struct kboard): Add Vwindow_system.
17046 * keyboard.c (init_kboard): Set a default for Vwindow_system.
17047 (mark_kboards): Mark Vwindow_system.
17048
17049 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
17050 (init_display): Don't set the obsolete `window-system' frame-param.
17051
17052 * xterm.c (x_term_init):
17053 * w32term.c (w32_create_terminal):
17054 * term.c (init_tty): Set Vwindow_system.
17055 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
17056 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
17057
17058 * xfns.c (Fx_create_frame, x_create_tip_frame):
17059 * w32fns.c (Fx_create_frame, x_create_tip_frame):
17060 * macfns.c (Fx_create_frame):
17061 Don't set the obsolete `window-system' frame-param.
17062
17063 * frame.h (Qwindow_system): Remove.
17064 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
17065 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
17066
170672007-10-24 Richard Stallman <rms@gnu.org>
17068
17069 * frame.c (x_figure_window_size): For fullscreen case,
17070 set USPosition | PPosition without clobbering rest of window_prompting.
17071
17072 * keyboard.c (Fcurrent_idle_time): Doc fix.
17073
17074 * print.c (Fwith_output_to_temp_buffer): Doc fix.
17075
170762007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
17077
17078 * process.c (unwind_request_sigio): Only define if __ultrix__.
17079
17080 * callproc.c (child_setup): Remove spurious *.
17081
17082 * lisp.h (Fget_text_property): Declare.
17083 (have_menus_p): Declare it here rather than in sys-dep header files.
17084 * macterm.h (have_menus_p):
17085 * msdos.h (have_menus_p):
17086 * xterm.h (have_menus_p): Remove.
17087
17088 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
17089 (Fmake_variable_frame_local): Just check the variable's const-ness
17090 rather than checking nil or t.
17091
170922007-10-22 Jason Rumney <jasonr@gnu.org>
17093
17094 * w32fns.c: Include math.h.
17095 (w32_abort): Declaration moved to nt/config.nt.
17096
17097 * s/ms-w32.h (HAVE_STDLIB_H): Define.
17098 (abort): Redefinition moved to nt/config.nt.
17099
17100 * m/windowsnt.h: Remove.
17101
171022007-10-22 Juanma Barranquero <lekktu@gmail.com>
17103
17104 * emacs.c (Fdump_emacs): Fix typo in message.
17105 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
17106 <installation-directory>: Reflow docstring.
17107
171082007-10-22 Juri Linkov <juri@jurta.org>
17109
17110 * minibuf.c: Allow minibuffer default to be a list of default values.
17111 With empty input use the first element of this list as returned default.
17112 (string_to_object)
17113 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
17114 (read_minibuf): If defalt is cons, set histstring to its car.
17115 (Fread_string): If default_value is cons, set val to its car.
17116 (Fread_buffer): If def is cons, use its car.
17117 (Fcompleting_read): If defalt is cons, set val to its car.
17118
171192007-10-21 Michael Albinus <michael.albinus@gmx.de>
17120
17121 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
17122
171232007-10-20 Juanma Barranquero <lekktu@gmail.com>
17124
17125 * doc.c (Fdocumentation): Check for advice in all cases.
17126
171272007-10-19 Chong Yidong <cyd@stupidchicken.com>
17128
17129 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
17130
171312007-10-19 Richard Stallman <rms@gnu.org>
17132
17133 * doc.c (Fdocumentation): Check for and handle an advised function.
17134
171352007-10-19 Juanma Barranquero <lekktu@gmail.com>
17136
17137 * process.c (Fset_process_filter): Doc fix.
17138
171392007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
17140
17141 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
17142 which caused key-translation-map to applied repeatedly (thus breaking
17143 double-mode).
17144
171452007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
17146
17147 * xselect.c (x_own_selection, x_handle_selection_clear)
17148 (x_clear_frame_selections):
17149 * w32menu.c (list_of_panes, list_of_items):
17150 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
17151 * textprop.c (validate_plist, interval_has_all_properties)
17152 (interval_has_some_properties, interval_has_some_properties_list)
17153 (add_properties, text_property_list):
17154 * process.c (Fget_buffer_process, list_processes_1, status_notify):
17155 * minibuf.c (Fassoc_string):
17156 * macselect.c (x_own_selection, x_clear_frame_selections)
17157 (Fx_disown_selection_internal):
17158 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
17159 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
17160
171612007-10-17 Chong Yidong <cyd@stupidchicken.com>
17162
17163 * process.c: Link to libs for calling res_init() if available.
17164 (Fmake_network_process): Call res_init() before getaddrinfo or
17165 gethostbyname, if possible.
17166
171672007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
17168
17169 * lread.c (read1): Set pvectype for char_tables.
17170
17171 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
17172 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
17173 Add type checks.
17174 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
17175
17176 * alloc.c (free_misc): Use XMISCTYPE.
17177 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
17178
171792007-10-17 Glenn Morris <rgm@gnu.org>
17180
17181 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
17182 (syms_of_minibuf): Add Qcompletion_ignore_case.
17183 * dired.c (Qcompletion_ignore_case): Change to external.
17184 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
17185 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
17186 (Fread_file_name): Use it rather than intern'ing.
17187
17188 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
17189 (Fread_coding_system): Ignore case of user input.
17190
171912007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17192
17193 * xdisp.c (handle_display_prop): Ignore display specs after
17194 replacing one when string text is being replaced.
17195 (handle_single_display_spec): Pretend as if characters with display
17196 property haven't been consumed only when buffer text is being replaced.
17197
171982007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
17199
17200 * xfns.c (Fx_create_frame, Fx_display_list):
17201 * window.c (window_fixed_size_p, enlarge_window)
17202 (shrink_window_lowest_first):
17203 * macterm.c (init_font_name_table):
17204 * macfns.c (Fx_create_frame, Fx_display_list):
17205 * lread.c (close_load_descs):
17206 * keyboard.c (read_char_x_menu_prompt):
17207 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
17208 * coding.c (code_convert_region_unwind): Test the type of an object
17209 rather than just !NILP before extracting data from it.
17210
17211 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
17212
17213 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
17214 (XMISCANY): New macro.
17215 (XMISCTYPE): Use it.
17216 (struct Lisp_Misc_Any): New type.
17217 (union Lisp_Misc): Use it.
17218 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
17219 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
17220 (find_symbol_value, set_internal, default_value, Fset_default)
17221 (Fmake_variable_buffer_local, Fmake_local_variable)
17222 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
17223 (Flocal_variable_if_set_p, Fvariable_binding_locus):
17224 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
17225 * alloc.c (allocate_buffer): Set the size and tag.
17226 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
17227 Use XMISCANY.
17228 (die): Follow the GNU convention for error messages.
17229 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
17230 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
17231 tag any more.
17232 (set_buffer_internal_1):
17233 * frame.c (store_frame_param):
17234 * eval.c (specbind):
17235 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
17236
17237 * doc.c (Fsnarf_documentation): Simplify.
17238
172392007-10-14 Juanma Barranquero <lekktu@gmail.com>
17240
17241 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
17242 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
17243
172442007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
17245
17246 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
17247
172482007-10-14 Juanma Barranquero <lekktu@gmail.com>
17249
17250 * eval.c (do_autoload): Don't save autoloads.
17251
17252 * data.c (Ffset): Save autoload of the function being set.
17253
172542007-10-07 John Paul Wallington <jpw@pobox.com>
17255
17256 * xfns.c (x_create_tip_frame): Set the `display-type' frame
17257 parameter before setting up faces.
17258
172592007-10-13 Eli Zaretskii <eliz@gnu.org>
17260
17261 * ccl.c (Fregister_code_conversion_map):
17262 * keyboard.c (append_tool_bar_item): Reformat last change.
17263
17264 * lisp.h (eabs): Rename from `abs'. All callers changed.
17265
172662007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
17267
17268 * buffer.c (add_overlay_mod_hooklist):
17269 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
17270 * fontset.c (make_fontset):
17271 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
17272 (append_tool_bar_item):
17273 * macmenu.c (grow_menu_items):
17274 * w32menu.c (grow_menu_items):
17275 * xmenu.c (grow_menu_items): Use larger_vector.
17276
172772007-10-13 Eli Zaretskii <eliz@gnu.org>
17278
17279 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
17280 selected frame'' on MSDOS).
17281
172822007-10-12 Martin Rudalics <rudalics@gmx.at>
17283
17284 * frame.c (Qexplicit_name): New variable.
17285 (x_report_frame_params): Report it in parameter alist.
17286 (syms_of_frame): Intern and staticpro it.
17287
172882007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
17289
17290 * macfns.c (x_create_tip_frame): Set terminal for frame.
17291
172922007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
17293
17294 * frame.c (Qenvironment): Remove.
17295 (syms_of_frame) <Qenvironment>: Don't initialize.
17296 (Fdelete_frame): Don't treat the `environment' param specially.
17297 * frame.h (Qenvironment): Don't declare.
17298 * callproc.c (set_initial_environment): Don't set unused frame param.
17299
17300 * frame.c (Fframe_with_environment): Remove.
17301 (syms_of_frame) <Sframe_with_environment>: Don't declare.
17302
17303 * lisp.h (Fframe_with_environment): Don't declare.
17304
173052007-10-10 Juanma Barranquero <lekktu@gmail.com>
17306
17307 * indent.c (indent_tabs_mode, last_known_column)
17308 (last_known_column_modified): Make static.
17309 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
17310
173112007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
17312
17313 * puresize.h (BASE_PURESIZE): Increase to 1170000.
17314
173152007-10-09 Jason Rumney <jasonr@gnu.org>
17316
17317 * w32term.c (x_set_window_size): Disable code that attempts to tell
17318 Lisp code about a size change before it actually happens.
17319
173202007-10-09 Richard Stallman <rms@gnu.org>
17321
17322 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
17323 return HANDLED_RETURN.
17324
173252007-10-08 Martin Rudalics <rudalics@gmx.at>
17326
17327 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
17328 when there's an unread command event.
17329
17330 * frame.c (focus_follows_mouse): Move here from frame.el to allow
17331 window autoselection act appropriately when leaving selected frame.
17332 (syms_of_frame): Initialize focus_follows_mouse.
17333 * frame.h (focus_follows_mouse): Extern it.
17334 * macterm.c (XTread_socket): When focus_follows_mouse is nil
17335 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
17336 * msdos.c (dos_rawgetc): Likewise.
17337 * w32term.c (w32_read_socket): Likewise.
17338 * xterm.c (handle_one_xevent): Likewise.
17339 * xdisp.c (syms_of_xdisp): In doc-string of
17340 mouse-autoselect-window mention focus-follows-mouse.
17341
173422007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17343
17344 * macterm.c (mac_load_query_font): Fix missing return value.
17345 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
17346 Add BLOCK_INPUT.
17347
173482007-10-08 Richard Stallman <rms@gnu.org>
17349
17350 * xdisp.c (get_window_cursor_type): Implement documented behavior
17351 for cursor-in-non-selected-windows = t.
17352
173532007-10-08 Jason Rumney <jasonr@gnu.org>
17354
17355 * w32.c (w32_get_resource): Always close registry keys.
17356
173572007-10-08 Jason Rumney <jasonr@gnu.org>
17358
17359 * makefile.w32-in (LIBS): Add COMCTL32.
17360
17361 * w32fns.c (globals_of_w32fns): Init common controls.
17362
173632007-10-08 Richard Stallman <rms@gnu.org>
17364
17365 * image.c (our_memory_buffer): Rename from omfib_buffer.
17366
173672007-10-08 Richard Stallman <rms@gnu.org>
17368
17369 * buffer.c (Foverlays_at): Doc fix.
17370
173712007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
17372
17373 * fns.c (Fplist_put): Preserve uneven tail data.
17374
173752007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
17376
17377 * termhooks.h (enum event_kind): Remove trailing comma.
17378
17379 * frame.h (enum): Remove trailing comma.
17380
173812007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
17382
17383 * w32proc.c (delete_child): Don't terminate threads of zombies.
17384
173852007-10-08 Martin Rudalics <rudalics@gmx.at>
17386
17387 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
17388
17389 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
17390 last-repeatable-command.
17391 (init_kboard): Initialize Vlast_repeatable_command.
17392 (command_loop_1): Set it to real_this_command unless that was
17393 bound to an input event.
17394 (mark_kboards): Mark it.
17395
173962007-10-08 Richard Stallman <rms@gnu.org>
17397
17398 * eval.c (condition-case): Doc fix.
17399
174002007-10-08 Masatake YAMATO <jet@gyve.org>
17401
17402 * xfaces.c (tty_supports_face_attributes_p): Fix code
17403 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
17404 was copied and not edited.
17405
174062007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
17407
17408 Add new `input-decode-map' keymap and use it for terminal
17409 escape sequences.
17410 * keyboard.h (struct kboard): Add Vinput_decode_map.
17411 Remove Vlocal_key_translation_map.
17412 * keyboard.c (read_key_sequence): Add support for input-decode-map.
17413 (init_kboard): Init input-decode-map.
17414 Replace local-key-translation-map back with key-translation-map.
17415 (syms_of_keyboard): Declare input-decode-map.
17416 Remove local-key-translation-map. Update docstrings.
17417 (mark_kboards): Mark Vinput_decode_map.
17418 Don't mark Vlocal_key_translation_map.
17419 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
17420 Replace local-key-translation-map back with key-translation-map.
17421 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
17422 Bind in input-decode-map rather than function-key-map.
17423
17424 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
17425 This was made redundant by the previous introduction of XSETPVECTYPE.
17426
174272007-10-09 Richard Stallman <rms@gnu.org>
17428
17429 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
17430
174312007-09-29 Richard Stallman <rms@gnu.org>
17432
17433 * eval.c (internal_condition_case_2, internal_condition_case_1)
17434 (internal_condition_case): Reenable abort if x_catching_errors ()
17435 to see if that really happens and why.
17436
174372007-10-06 Andreas Schwab <schwab@suse.de>
17438
17439 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
17440
174412007-10-04 Juanma Barranquero <lekktu@gmail.com>
17442
17443 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
17444
174452007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
17446
17447 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
17448
174492007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
17450
17451 * window.h (struct window):
17452 * window.c (struct save_window_data, struct saved_window):
17453 * termhooks.h (struct terminal):
17454 * process.h (struct Lisp_Process):
17455 * frame.h (struct frame):
17456 * buffer.h (struct buffer):
17457 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
17458 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
17459 The size field of (pseudo)vectors is now unsigned.
17460 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
17461
17462 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
17463 Turn `count' into an integer.
17464
17465 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
17466 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
17467 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
17468 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
17469 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
17470
17471 * alloc.c (allocate_pseudovector): New fun.
17472 (ALLOCATE_PSEUDOVECTOR): New macro.
17473 (allocate_window, allocate_terminal, allocate_frame)
17474 (allocate_process): Use it.
17475 (mark_vectorlike): New function.
17476 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
17477 (mark_terminals): Use it.
17478 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
17479 (Fmake_byte_code): Use XSETPVECTYPE.
17480
17481 * frame.c (Fframe_parameters): Minor simplification.
17482
17483 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
17484
17485 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
17486
17487 * buffer.c (Fget_buffer_create, init_buffer_once):
17488 * lread.c (defsubr):
17489 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
17490
17491 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
17492 defined differently in the m/*.h files.
17493 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
17494 (XSETPVECTYPE): New macro.
17495 (XSETPSEUDOVECTOR): Use it.
17496
17497 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
17498 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
17499
17500 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
17501 * lread.c (defvar_per_buffer):
17502 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
17503
17504 * window.c (candidate_window_p): Only consider as visible frames that
17505 are on the same terminal.
17506
17507 * m/ibms390x.h (MARKBIT): Remove unused macro.
17508
175092007-10-01 Juanma Barranquero <lekktu@gmail.com>
17510
17511 * lread.c (Fload): Fix typo in docstring.
17512
175132007-10-01 Michaël Cadilhac <michael@cadilhac.name>
17514
17515 * floatfns.c (Fexpt): Manually check for overflows, so that a power
17516 of a non-zero value can't yield zero.
17517
175182007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
17519
17520 * term.c (term_clear_mouse_face, term_mouse_highlight)
17521 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
17522
17523 * print.c (safe_debug_print): Use XHASH.
17524
17525 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
17526 Lisp elements such as tags.
17527 (XHASH): New macro.
17528 (EQ): Use it.
17529 (SREF, SSET, STRING_COPYIN): Use SDATA.
17530 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
17531
17532 * alloc.c (mark_terminal): Remove left-over declaration.
17533 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
17534 (allocate_vectorlike): Remove type argument. Adjust callers.
17535 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
17536 Only handle the one remaining MEM_TYPE_VECTORLIKE.
17537
17538 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
17539 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
17540 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
17541 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
17542 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
17543 Use them.
17544
17545 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
17546 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
17547 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
17548
175492007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
17550
17551 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
17552 loaded by default.
17553
175542007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
17555
17556 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
17557 on this tty.
17558 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
17559
17560 * term.c (mouse_face_window): Rename from Qmouse_face_window.
17561 Update all users.
17562 (handle_one_term_event): Use Gpm_DrawPointer.
17563 (Fgpm_mouse_start): Rename from Fterm_open_connection.
17564 Signal errors instead of returning nil. Always return nil.
17565 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
17566 Make it a noop if gpm-mouse was not activated.
17567 (syms_of_term): Update names.
17568
175692007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
17570
17571 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
17572 (init_sys_modes): Check that gpm_tty is the current tty.
17573
17574 * alloc.c (allocate_terminal): Set the vector size to only count the
17575 lisp fields. Initialize those to nil.
17576 (mark_object): Don't treat terminals specially.
17577 (mark_terminal): Remove.
17578 (mark_terminals): Use mark_object instead.
17579
17580 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
17581 the GC to the beginning.
17582
17583 * indent.h:
17584 * indent.c: Use EMACS_INT for ints coming from Elisp data.
17585
17586 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
17587
175882007-09-25 Jason Rumney <jasonr@gnu.org>
17589
17590 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
17591
17592 * w32console.c (create_w32cons_output): Remove.
17593
17594 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
17595
17596 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
17597 (reset_sys_modes): Use reset_terminal_modes_hook.
17598
175992007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
17600
17601 * eval.c (do_autoload): Don't output any message.
17602
176032007-09-24 Juri Linkov <juri@jurta.org>
17604
17605 * emacs.c (standard_args): Change priority of "--no-splash"
17606 from 40 to 3. Add "--no-desktop" with the same priority.
17607
176082007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
17609
17610 * alloc.c (gc_sweep): Check cons cell mark bits word by word
17611 and optimize the case where they are all 1.
17612
176132007-09-23 Johannes Weiner <hannes@saeurebad.de>
17614
17615 * lisp.h (abs): Define if not defined.
17616 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
17617 Don't define `abs', since it's defined in lisp.h.
17618
176192007-09-22 Eli Zaretskii <eliz@gnu.org>
17620
17621 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
17622 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
17623 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
17624 (init_tty): Use DEV_TTY instead of "/dev/tty".
17625 [WINDOWSNT]: No need to protect from NAME arg being null.
17626
176272007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
17628
17629 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
17630 up the tty state.
17631
176322007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
17633
17634 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
17635 (gpm_tty): Change its type.
17636 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
17637 (gpm_tty): Change its type and initialize it.
17638 (Fterm_open_connection): Check the frame is indeed a tty.
17639 Use the new gpm_tty.
17640 (Fterm_close_connection): Use the new gpm_tty.
17641 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
17642 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
17643
176442007-09-21 Juanma Barranquero <lekktu@gmail.com>
17645
17646 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
17647 underline_color, to draw strike-through.
17648
176492007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
17650
17651 * lisp.h (allocate_terminal): Declare.
17652
17653 * window.c (candidate_window_p): Consider frames that are being placed
17654 by the user as somewhere between visible and iconified.
17655 (window_loop): Prefer windows on the current frame.
17656 (Fselect_window): Move the use of select-frame to the beginning so we
17657 can just delegate all the work (it'll call us back anyway).
17658
17659 * frame.c (Qdisplay_environment_variable):
17660 * frame.h (Qdisplay_environment_variable): Delete.
17661
17662 * .gdbinit (xbacktrace): Print the arg's address rather than the value
17663 of the first arg, since that value may be a union.
17664
17665 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
17666 parameter rather than Qdisplay_environment_variable. If all else
17667 fails, look for DISPLAY in initial-environment.
17668
176692007-09-21 Glenn Morris <rgm@gnu.org>
17670
17671 * Makefile.in (emacstool): Remove target.
17672 (lisp, shortlisp): Remove termdev.elc.
17673
176742007-09-21 Markus Triska <markus.triska@gmx.at>
17675
17676 * xterm.c (x_delete_display): Compile session management conditionally.
17677
176782007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
17679
17680 * callproc.c (getenv_internal_1): New function.
17681 (getenv_internal): Use it.
17682 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
17683
17684 * terminal.c (get_terminal): Don't accept ints to represent terminals.
17685 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
17686 (Fset_terminal_parameter): Work with dead terminals as well.
17687 (Fmodify_terminal_parameters): Remove.
17688
17689 * terminal.c (get_terminal): Handle terminals.
17690 Make sure the terminal returned is live.
17691 (create_terminal): Use allocate_terminal.
17692 (mark_terminals): Move to alloc.c.
17693 (delete_terminal): Use terminal->name as liveness status.
17694 NULL out fields after freeing their contents.
17695 Don't deallocate the object.
17696 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
17697 rather than an int.
17698 (Fterminal_live_p): Accept non-integer arguments.
17699 (Fterminal_list): Return terminal objects rather than an ints.
17700
17701 * alloc.c (enum mem_type): New member for `terminal' objects.
17702 (allocate_terminal): New function.
17703 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
17704 Handle terminals.
17705 (mark_terminal): New fun.
17706 (mark_terminals): Move from terminal.c.
17707
17708 * term.c (get_tty_terminal): Don't treat output_initial specially.
17709 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
17710 (delete_tty): Use terminal->name as liveness status.
17711
17712 * termhooks.h (struct terminal): Make it into a pseudovector.
17713 Remove `deleted' replaced by checking `name's nullness.
17714
17715 * print.c (print_object): Handle terminals.
17716
17717 * lisp.h (enum pvec_type): New `terminal' pseudovector.
17718 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
17719
17720 * frame.c (make_terminal_frame):
17721 * keyboard.c (tty_read_avail_input):
17722 * w32term.c (x_delete_terminal):
17723 * xfns.c (Fx_create_frame, x_create_tip_frame):
17724 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
17725
177262007-09-20 Glenn Morris <rgm@gnu.org>
17727
17728 * process.c (Fmake_network_process): Doc fix.
17729
177302007-09-19 Jason Rumney <jasonr@gnu.org>
17731
17732 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
17733
177342007-09-19 Michaël Cadilhac <michael@cadilhac.name>
17735
17736 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
17737 Fix a C warning regarding variable constness.
17738
17739 * xterm.c (handle_one_xevent): Fix a C warning.
17740
177412007-09-18 Jason Rumney <jasonr@gnu.org>
17742
17743 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
17744
177452007-09-17 Jan Djärv <jan.h.d@swipnet.se>
17746
17747 * gtkutil.c (gdpy_def): New variable.
17748 (xg_initialize): Initialize gdpy_def.
17749 (xg_display_close): If no other display exists, set gdpy_def to a
17750 new connection.
17751
177522007-09-16 Jan Djärv <jan.h.d@swipnet.se>
17753
17754 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
17755 when we have no file name for the icon.
17756 (xg_tool_bar_expose_callback): Remove.
17757 (xg_create_tool_bar): Don't connect expose signal to
17758 xg_tool_bar_expose_callback.
17759 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
17760
177612007-09-16 Andreas Schwab <schwab@suse.de>
17762
17763 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
17764 values instead of zapping them.
17765
177662007-09-14 Glenn Morris <rgm@gnu.org>
17767
17768 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
17769 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
17770 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
17771 scope and rename to omfib_buffer for clarity.
17772 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
17773
177742007-09-14 Kenichi Handa <handa@m17n.org>
17775
17776 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
17777
177782007-09-13 Jason Rumney <jasonr@gnu.org>
17779
17780 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
17781
17782 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
17783
17784 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
17785 (mac_term_init): Call here instead, passing rif.
17786
177872007-09-13 Glenn Morris <rgm@gnu.org>
17788
17789 * s/hpux.h: No longer define `static' as nothing.
17790
177912007-09-13 Johan Bockgård <bojohan@gnu.org>
17792
17793 * callint.c (Fcall_interactively): Remove unused var `fun'.
17794
177952007-09-12 Romain Francoise <romain@orebokech.com>
17796
17797 * window.c (prefer_window_split_horizontally, display_buffer):
17798 Revert 2007-09-08 change.
17799
178002007-09-12 Glenn Morris <rgm@gnu.org>
17801
17802 * alloca.c: Remove file.
17803 * Makefile.in (alloca): Do not undef.
17804 (allocaobj, alloca.o): Remove.
17805 (otherobj): Remove allocaobj.
17806 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
17807 * regex.c (C_ALLOCA): Remove all references and code that was only
17808 used when this was defined.
17809 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
17810 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
17811 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
17812
17813 * Makefile.in (SOURCES, unlock, relock): Delete.
17814
17815 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
17816 (menu_grab_callback): All uses changed.
17817
17818 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
17819 (x_reply_selection_request): All uses changed.
17820
178212007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
17822
17823 * lread.c (load_warn_old_style_backquotes): Change message to look
17824 better when it appears in the middle of byte-compiler messages.
17825
178262007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
17827
17828 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
17829
17830 * xterm.c (x_create_terminal): Add comment.
17831
17832 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
17833
178342007-09-10 Richard Stallman <rms@gnu.org>
17835
17836 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
17837
178382007-09-10 Michaël Cadilhac <michael@cadilhac.name>
17839
17840 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
17841 (DEFUN): Document `intspec', use it instead of `prompt'.
17842
17843 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
17844
17845 * data.c (Finteractive_form): If the interactive specification starts
17846 with a `(', use it as a Lisp form.
17847
17848 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
17849 name and file modes.
17850
17851 * callint.c (Fcall_interactively): Comment fixes.
17852
178532007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
17854
17855 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
17856 and compiled functions.
17857
178582007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
17859
17860 * window.c (prefer_window_split_horizontally): New variable.
17861 (display_buffer): Consider splitting window horizontally depending
17862 on prefer_window_split_horizontally.
17863
178642007-09-08 Eli Zaretskii <eliz@gnu.org>
17865
17866 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
17867
178682007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
17869
17870 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
17871
17872 * frame.c (x_set_frame_parameters): Check number is positive before
17873 using XFASTINT.
17874
17875 * window.c (freeze_window_start): Don't presume selected_window holds
17876 a window object.
17877 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
17878
178792007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
17880
17881 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
17882
178832007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
17884
17885 * window.c (Vsplit_window_preferred_function): New var.
17886 (Fdisplay_buffer): Use it.
17887 (syms_of_window): Export, and initialize it.
17888
178892007-09-06 Pixel <pixel@mandriva.com> (tiny change)
17890
17891 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
17892
178932007-09-06 Glenn Morris <rgm@gnu.org>
17894
17895 * gtkutil.c (menu_grab_callback) <cnt>:
17896 * xselect.c (x_reply_selection_request) <cnt>: Move static
17897 variable to file scope.
17898
178992007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
17900
17901 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
17902 consistent values of selected_frame and selected_window.
17903
179042007-09-04 Jason Rumney <jasonr@gnu.org>
17905
17906 * w32console.c (initialize_w32_display): Zero unused hooks.
17907
179082007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
17909
17910 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
17911 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
17912
179132007-09-04 Jason Rumney <jasonr@gnu.org>
17914
17915 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
17916 in w32console.c. Set up input. Remove XXX comments that have been
17917 confirmed as correct.
17918
17919 * s/ms-w32.h (MULTI_KBOARD): Define.
17920
17921 * w32console.c (one_and_only_w32cons): Remove.
17922 (initialize_w32_display): Take terminal argument.
17923
17924 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
17925 initialize_w32_display.
17926 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
17927
17928 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
17929
17930 * keyboard.c (discard_mouse_events): Discard it.
17931 (make_lispy_event): Translate it to a lisp event.
17932 (lispy_wheel_names): Add wheel-left and right events.
17933 (syms_of_keyboard): Enlarge wheel_syms.
17934
17935 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
17936 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
17937
17938 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
17939
17940 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
17941 from WM_MOUSEHWHEEL.
17942 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
17943
17944 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
17945 terminal.
17946
17947 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
17948 keyboard for the terminal.
17949
179502007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
17951
17952 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
17953 (Vresume_tty_hook): Rename from Vresume_tty_functions.
17954 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
17955 and resume-tty-function to resume-tty-hook.
17956 (Fsuspend_tty, Fresume_tty): Use new names.
17957
179582007-09-02 Jan Djärv <jan.h.d@swipnet.se>
17959
17960 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
17961 if it starts with "n:".
17962
179632007-08-31 Jan Djärv <jan.h.d@swipnet.se>
17964
17965 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
17966
179672007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
17968
17969 * frame.h:
17970 * frame.c (Qterm_environment_variable): Remove.
17971 (syms_of_frame): Don't init and staticpro it.
17972
17973 * callproc.c (getenv_internal): Remove special case for $TERM.
17974
17975 * callproc.c (Vinitial_environment): New variable.
17976 (set_initial_environment): Initialize it.
17977 (syms_of_callproc): Declare it.
17978 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
17979 TERM under which a process runs is never related to the TERM in which
17980 Emacs is running.
17981
179822007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
17983
17984 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
17985 * s/darwin.h: ... do it here.
17986
179872007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
17988
17989 * lisp.h (set_initial_environment): Rename from set_global_environment.
17990
17991 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
17992 removed by mistake on the multi-tty branch.
17993
17994 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
17995 (Fmodify_frame_parameters): Return a value.
17996
17997 * image.c (png_load): Comment-out var only used in commented-out code.
17998
17999 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
18000 before passing it to mark_object.
18001
18002 * xfaces.c (internal_resolve_face_name): Return a value.
18003 (internal_resolve_face_name, resolve_face_name_error): Comment out.
18004
18005 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
18006 (x_icon): Comment-out var only used in commented-out code.
18007
180082007-08-29 Romain Francoise <romain@orebokech.com>
18009
18010 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
18011 QUIT hasn't been provided.
18012
180132007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
18014
18015 * callproc.c (child_setup, getenv_internal): Use the
18016 display-environment-variable and term-environment-variable frame params.
18017 (set_initial_environment): Initialise Vprocess_environment.
18018
18019 * config.in: Disable multi-keyboard support on a mac.
18020
18021 * frame.c (Qterm_environment_variable)
18022 (Qdisplay_environment_variable): New variables.
18023 (syms_of_frame): Intern and staticpro them.
18024 (Fmake_terminal_frame): Disable output method test.
18025
18026 * frame.h: Declare them here.
18027
18028 * macfns.c (x_set_mouse_color): Get rif from the frame.
18029 (x_set_tool_bar_lines): Don't use updating_frame.
18030 (mac_window): Add 2 new parameters for consistency with other systems.
18031 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
18032 frame parameters following what is done in X11 and w32. Don't use
18033 FRAME_MAC_DISPLAY_INFO.
18034 (Fx_open_connection, start_hourglass): Remove window-system check.
18035 (x_create_tip_frame): Get the keyboard from the terminal.
18036
18037 * macmenu.c: Reorder includes.
18038 (Fx_popup_menu): Use terminal specific mouse_position_hook.
18039
18040 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
18041 terminal parameter.
18042 (x_clear_frame): Add a frame parameter.
18043 (note_mouse_movement): Get rif from the frame.
18044 (mac_term_init): Initialize the terminal.
18045 (mac_initialize): Make static and move terminal initialization ...
18046 (mac_create_terminal): ... to this new function.
18047
18048 * macterm.h (struct mac_display_info): Add terminal.
18049 (mac_initialize): Delete declaration.
18050
18051 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
18052
18053 * sysdep.c: Comment out text after #endif.
18054
18055 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
18056 is defined. Better initialize ttys in windows. Use terminal
18057 specific mouse_position_hook.
18058
18059 * termhooks.h (union display_info): Add mac_display_info.
18060
18061 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
18062 Set the default minibuffer frame, window_system and the rest of the
18063 frame parameters following what is done in X11.
18064
18065 * w32term.c (w32_initialize): Make static.
18066
18067 * xselect.c (x_handle_selection_clear): Only access
18068 terminal->kboard when MULTI_KBOARD is defined.
18069
18070 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
18071 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
18072
180732007-08-29 Jason Rumney <jasonr@gnu.org>
18074
18075 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
18076 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
18077
18078 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
18079 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
18080
18081 * keyboard.c (restore_kboard_configuration): Only define when
18082 MULTI_KBOARD defined.
18083
18084 * makefile.w32-in: Update dependancies from Makefile.in.
18085 (OBJ1): Add terminal.$(O)
18086
18087 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
18088 Don't define function body.
18089 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
18090
18091 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
18092
18093 * w32.c (request_sigio, unrequest_sigio): Remove.
18094
18095 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
18096 (w32con_clear_frame, w32con_clear_end_of_line)
18097 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
18098 (w32con_delete_glyphs, w32con_set_terminal_window)
18099 (scroll_line, w32_sys_ring_bell): Add frame arg.
18100 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
18101 Add terminal arg.
18102 (PICK_FRAME): Remove.
18103 (w32con_write_glyphs): Use frame specific terminal coding.
18104 (one_and_only_w32cons): New global variable.
18105 (initialize_w32_display): Use it for storing hooks.
18106 (create_w32cons_output): New function.
18107
18108 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
18109 arg a frame.
18110
18111 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
18112 Set window_system.
18113 (x_set_tool_bar_lines): Don't use updating_frame.
18114 (Fx_create_frame): Set terminal and ref count.
18115 (Fx_open_connection): Remove window-system check.
18116
18117 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
18118
18119 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
18120 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
18121 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
18122 Add frame arg.
18123 (x_delete_terminal, w32_create_terminal): New functions.
18124 (w32_term_init): Create a terminal.
18125 (w32_initialize): Move terminal specific initialization to
18126 w32_create_terminal.
18127
18128 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
18129 (w32_clear_rect, w32_clear_area): Use background from frame.
18130 (w32_display_info): Add terminal.
18131 (w32_sys_ring_bell, x_delete_display): Declare here.
18132
18133 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
18134
18135 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
18136
181372007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
18138
18139 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
18140 Fix get_named_tty calls for the controlling tty.
18141
181422007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
18143
18144 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
18145
181462007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
18147
18148 * term.c (tty_insert_glyphs): Add missing first parameter.
18149
181502007-08-29 Károly Lőrentey <karoly@lorentey.hu>
18151
18152 * buffer.c (Fbuffer_list, Fbury_buffer):
18153 Take frame->buried_buffer_list into account.
18154
18155 * cm.c (current_tty): New variable, for cmputc().
18156 (cmputc): Use it.
18157 (cmcheckmagic): Add tty parameter, look up terminal streams there.
18158 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
18159 (cmgoto): Add tty parameter. Pass it on to calccost().
18160 Use emacs_tputs() instead of tputs().
18161
18162 * cm.h (emacs_tputs): New macro to set current_tty, and then call
18163 tputs().
18164 (current_tty): New variable, for cmputc().
18165 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
18166
18167 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
18168 (internal_condition_case, internal_condition_case_1)
18169 (internal_condition_case_2): Don't abort when x_catching_errors.
18170
18171 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
18172 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
18173 prevent crashes caused by bogus longjmps in read_char.
18174
18175 * keymap.h (Fset_keymap_parent): Add EXFUN.
18176
18177 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
18178 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
18179 Remove redundant definition.
18180
18181 * macfns.c (x_set_mouse_color, x_make_gc):
18182 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
18183
18184 * w32term.c (x_free_frame_resources):
18185 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
18186 (w32_initialize): Use the accessor macros for terminal characteristics.
18187
18188 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
18189 Use the accessor macros for terminal characteristics.
18190 * msdos.c (internal_terminal_init): Use the accessor macros for
18191 terminal characteristics.
18192 (ScreenVisualBell, internal_terminal_init):
18193 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
18194
18195 * termopts.h (no_redraw_on_reenter): Declare.
18196
18197 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
18198 (mark_terminals, mark_ttys): Declare.
18199 (Fgarbage_collect): Call them.
18200 (mark_object): Mark buried_buffer_list.
18201
18202 * prefix-args.c: Include stdlib.h for exit.
18203
18204 * syssignal.h: Add comment.
18205
18206 * indent.c: Include stdio.h.
18207
18208 * window.h (Vinitial_window_system): Declare.
18209 (Vwindow_system): Delete declaration.
18210
18211 * fontset.c (Finternal_char_font): Use FRAME_RIF.
18212
18213 * image.c (lookup_image): Don't initialize `c' until the xasserts
18214 have been run.
18215
18216 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
18217 FRAME_FOREGROUND_PIXEL.
18218
18219 * print.c (print_preprocess): Don't lose print_depth levels while
18220 iterating.
18221
18222 * widget.c (update_from_various_frame_slots):
18223 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
18224
18225 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
18226 frames.
18227 (window_internal_height): Remove bogus make_number call.
18228 (init_window_once): Call make_terminal_frame with two zero parameters.
18229
18230 * fileio.c (Fread_file_name): Update comment.
18231
18232 * callint.c (Fcall_interactively):
18233 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
18234 Make sure it is correctly unwound.
18235
18236 * xsmfns.c (x_session_close): New function.
18237
18238 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
18239 Delete declarations.
18240
18241 * xterm.h: Remove declaration for x_fully_uncatch_errors.
18242 (x_output): Remove background_pixel and foreground_pixel fields.
18243 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
18244 (x_delete_device, x_session_close): Declare.
18245
18246 * lread.c: Include setjmp.h. Update declaration of `read_char'.
18247 (read_filtered_event): Call `read_char' with a local
18248 `wrong_kboard_jmpbuf'.
18249
18250 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
18251 Don't call single_kboard_state. Use FRAME_RIF.
18252
18253 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
18254 systems.
18255
18256 * lisp.h (set_process_environment): Rename to `set_global_environment'.
18257 (Fframe_with_environment, Fset_input_meta_mode)
18258 (Fset_quit_char): EXFUN.
18259 (x_create_device, tty_output, terminal, tty_display_info): Declare.
18260 (init_sys_modes, reset_sys_modes): Update prototypes.
18261 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
18262
18263 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
18264 Vlocal_key_translation_map, and Vkeyboard_translate_table.
18265 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
18266 Delete declarations.
18267 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
18268 (temporarily_switch_to_single_kboard, tty_read_avail_input):
18269 New declarations.
18270
18271 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
18272 already does that during init_display(). Call syms_of_keymap
18273 before syms_of_keyboard. Call `syms_of_terminal'.
18274 Call set_initial_environment, not set_process_environment.
18275 (shut_down_emacs): Call reset_all_sys_modes() instead of
18276 reset_sys_modes().
18277
18278 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
18279 (internal_resolve_face_name, resolve_face_name_error): New functions.
18280 (resolve_face_name): Protect against loops and errors thrown by Fget.
18281 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
18282 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
18283
18284 * scroll.c: Replace CURTTY() with local variables throughout the
18285 file (where applicable).
18286 (calculate_scrolling, calculate_direct_scrolling)
18287 (scrolling_1, scroll_cost): Use the accessor macros for terminal
18288 characteristics.
18289
18290 * keymap.c (Vfunction_key_map): Remove.
18291 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
18292 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
18293 (Vkey_translation_map): Remove.
18294 (syms_of_keymap): Remove DEFVAR for key-translation-map.
18295 (Fdescribe_buffer_bindings)
18296 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
18297 Update for terminal-local key-translation-map.
18298
18299 * Makefile.in (callproc.o): Update dependencies.
18300 (lisp, shortlisp): Add termdev.elc.
18301 (obj): Add terminal.o.
18302 (terminal.o): Add dependencies.
18303 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
18304 (data.o, fns.o): Add termhooks.h dependency.
18305 (SOME_MACHINE_LISP): Add dnd.elc.
18306 (minibuf.o): Fix typo.
18307 Update dependencies.
18308
18309 * data.c (do_symval_forwarding, store_symval_forwarding)
18310 (find_symbol_value): Use the selected frame's keyboard, not
18311 current_kboard.
18312
18313 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
18314 Vwindow_system.
18315
18316 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
18317 Fmenu_bar_open.
18318 (syms_of_xmenu): Update defsubr.
18319 (mouse_position_for_popup, Fx_popup_menu)
18320 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
18321 (set_frame_menubar, free_frame_menubar)
b97439ce 18322 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
18323 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
18324 an X frame.
18325
18326 * xselect.c (x_own_selection): Abort if not an X frame.
18327 (some_frame_on_display): Check if it is an X frame.
18328 (x_handle_selection_clear): Deal with MULTI_KBOARD.
18329
18330 * coding.c: Include frame.h and termhooks.h.
18331 (terminal_coding, keyboard_coding): Delete.
18332 (Fset_terminal_coding_system_internal)
18333 (Fset_keyboard_coding_system_internal)
18334 (Fkeyboard_coding_system)
18335 (Fterminal_coding_system): Add a terminal parameter.
18336 Get terminal_coding from the terminal.
18337 (init_coding_once): Don't call setup_coding_system here.
18338
18339 * dispextern.h (set_scroll_region, turn_off_insert)
18340 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
18341 (tty_clear_end_of_line, tty_setup_colors)
18342 (delete_tty, updating_frame)
18343 (produce_special_glyphs, produce_glyphs, write_glyphs)
18344 (insert_glyphs): Remove.
18345 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
18346 (tty_turn_off_highlight, get_tty_size): Add declaration.
18347 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
18348
18349 * frame.h (enum output_method): Add output_initial.
18350 (struct x_output): Delete.
18351 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
18352 Access foreground_pixel and background_pixel directly from the frame.
18353 (tty_display): Delete.
18354 (struct frame): Add buried_buffer_list, foreground_pixel,
18355 background_pixel and terminal. Delete kboard.
18356 (union output_data): Add tty.
18357 (FRAME_KBOARD): Get the kboard from the terminal.
18358 (FRAME_INITIAL_P): New macro.
18359 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
18360 (Qterm_environment_variable, Qdisplay_environment_variable)
18361 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
18362 New declarations.
18363
18364 * termchar.h (tty_output, tty_display_info): New structures.
18365 (tty_list): Declare.
18366 (FRAME_TTY, CURTTY): New macros.
18367 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
18368 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
18369 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
18370 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
18371
18372 * callproc.c: Include frame.h and termhooks.h, for terminal
18373 parameters.
18374 (add_env): New function.
18375 (child_setup): Use it.
18376 (child_setup, getenv_internal): Handle the new Vprocess_environment.
18377 (getenv_internal): Fix get_terminal_param call.
18378 (Fgetenv_internal, egetenv): Update doc.
18379 (syms_of_callproc): Initialize Vprocess_environment to nil.
18380 Register and initialize them. Remove obsolete defvars. Update doc
18381 strings.
18382 (child_setup): Handle Vlocal_environment_variables.
18383 (getenv_internal): Add terminal parameter.
18384 Handle Vlocal_environment_variables.
18385 (Fgetenv_internal): Add terminal parameter.
18386 (child_setup, getenv_internal, Fgetenv_internal): Store the local
18387 environment in a frame (not terminal) parameter. Update doc strings.
18388 (set_initial_environment): Rename from set_global_environment.
18389 Store Emacs environment in initial frame parameter.
18390
18391 * xdisp.c (redisplay_internal): Update references to
18392 `previous_terminal_frame'.
18393 (display_mode_line, Fformat_mode_line): Replace calls to
18394 `push_frame_kboard' with `push_kboard'.
18395 (get_glyph_string_clip_rects): Add extra parentheses and
18396 braces to prevent compiler warnings.
18397 (calc_pixel_width_or_height): Add xassert to check that the
18398 frame is alive. Don't call `lookup_image' on a termcap frame.
18399 (message2_nolog, message3_nolog, redisplay_internal)
18400 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
18401 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
18402 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
18403 (Fx_display_pixel_width, Fx_display_pixel_height)
18404 (Fx_display_planes, Fx_display_color_cells)
18405 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
18406 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
18407 (Fx_display_backing_store, Fx_display_visual_class)
18408 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
18409 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
18410
18411 * xfns.c (x_set_foreground_color x_set_background_color)
18412 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
18413 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
18414 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
18415 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
18416 terminal that is being deleted.
18417 (Fx_create_frame): Use `store_frame_param' to set `window-system'
18418 frame parameter, and make sure it overrides any user-supplied setting.
18419 (Fx_close_connection, Fx_synchronize): Unify argument names with
18420 the rest of the DEFUNs.
18421
18422 * dispnew.c (Fsend_string_to_terminal): Update call to
18423 `get_tty_terminal'.
18424 (Fredraw_frame, Fsend_string_to_terminal)
18425 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
18426 FRAME_TERMCAP_P and FRAME_TTY.
18427 (window_change_signal): Don't believe width/height values that are
18428 impossibly small.
18429 (Vinitial_window_system): Rename from Vwindow_system.
18430 (termscript, Wcm, rif): Delete.
18431
18432 * termhooks.h (struct terminal): New struct containing the
18433 previously global text display hooks and new members NAME,
18434 DELETED and PARAM_ALIST.
18435 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
18436 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
18437 (FRAME_RIF): New macros.
18438 (get_terminal_param, get_device): New declarations.
18439 (termscript): Delete declaration.
18440
18441 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
18442 (XTflash, x_free_frame_resources, x_scroll_bar_create)
18443 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
18444 FRAME_FOREGROUND_PIXEL.
18445 (x_fully_uncatch_errors): Disable definition.
18446 (x_scroll_bar_expose): Fix reference to foreground pixel.
18447 (XTread_socket): Disable loop on all X displays.
18448 (x_delete_terminal): Don't set terminal->deleted and let
18449 delete_terminal delete the frames on the terminal.
18450 (x_delete_display): Doc update to reflect changes in
18451 delete_terminal.
18452 (x_display_info) <terminal>: Move member earlier in the struct.
18453 (deleting_tty): Remove old variable.
18454 (Fsuspend_tty): Call clear_tty_hooks.
18455 (Fresume_tty, init_tty): Call set_tty_hooks.
18456 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
18457 errors on X frames.
18458 (x_catch_errors_unwind): Abort if x_error_message is NULL.
18459 (handle_one_xevent): Initialize `f' to NULL.
18460 (x_delete_terminal, x_create_terminal): New functions.
18461 (XTset_terminal_modes, XTreset_terminal_modes)
18462 (XTread_socket, x_connection_closed, x_term_init)
18463 (x_term_init, x_delete_display): Add terminal parameter.
18464 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
18465 X connections.
18466
18467 * frame.c: Include termchar.h.
18468 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
18469 (Qwindow_system, Qenvironment, Qterm_environment_variable)
18470 (Qdisplay_environment_variable): New vars.
18471 (Fframep): Deal with output_initial.
18472 (Fframe-live-p): Doc fix.
18473 (Fwindow-system): New function.
18474 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
18475 (make_terminal_frame): Don't create frames on a terminal that is
18476 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
18477 (store_frame_param): Check for found_for_frame before calling XFRAME.
18478 (Fmake_terminal_frame): Handle NULL tty names correctly.
18479 (syms_of_frame): Enhance doc string of `default-frame-alist'.
18480 (Fdelete_frame): Remove unused variable `count'. Don't allow other
18481 frames to refer to a deleted frame in their 'environment parameter.
18482 (Fframe_with_environment): New function.
18483 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
18484 (get_future_frame_param): New function.
18485 (Fmake_terminal_frame): Use it.
18486 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
18487
18488 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
18489 * sysdep.c (reset_sys_modes): Update for renames.
18490
18491 * keyboard.c (tty_read_avail_input): New function.
18492 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
18493 (syms_of_keyboard): Defsubr them.
18494 (Fset_input_meta_mode, Fset_quit_char): New functions.
18495 (Fset_input_mode): Split to above functions.
18496 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
18497 parameter. Use it in call to `read_char'.
18498 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
18499 Set wrong_kboard_jmpbuf correctly in recursive calls.
18500 Use current_kboard to access Vkeyboard_translate_table.
18501 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
18502 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
18503 Update longjmp invocations. Remember the original current_kboard,
18504 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
18505 changes it. Comment out unnecessary calls to
18506 `record_single_kboard_state' and `any_kboard_state'.
18507 Update recursive calls.
18508 (wrong_kboard_jmpbuf): Remove global variable.
18509 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
18510 Handle deleted interrupted_kboards correctly; that is a legal
18511 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
18512 and read_char calls. Abort if interrupted_kboard died in read_char.
18513 (any_kboard_state, single_kboard_state)
18514 (push_frame_kboard): Remove function.
18515 (pop_kboard): Switch out of single_kboard mode if the kboard has
18516 been deleted. Remove unused variable. Help debugging by not
18517 changing current_kboard unnecessarily. Set current_kboard to the
18518 kboard of the selected frame when the stored kboard object has
18519 been deleted before pop_kboard.
18520 (temporarily_switch_to_single_kboard): Change first parameter to a
18521 frame pointer. Throw an error when caller wants to change kboards
18522 while in single_kboard mode. Don't push_kboard if we weren't in
18523 single kboard state. Don't pop_kboard if we popped into any
18524 kboard state.
18525 (restore_kboard_configuration): Abort if pop_kboard changed the
18526 kboard in single_kboard mode. Call pop_kboard only after setting
18527 up single_kboard mode.
18528 (Frecursive_edit): Switch to single_kboard mode only in nested
18529 command loops.
18530 (cmd_error, command_loop, command_loop_1, timer_check):
18531 Comment out unnecessary call to `any_kboard_state' and
18532 `record_single_kboard_state'.
18533 (delete_kboard): Exit single_kboard mode if we have just deleted
18534 that kboard. Use FRAME_KBOARD.
18535 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
18536 `fatal_error_signal'.
18537 (record_single_kboard_state): Don't push_kboard if we weren't in
18538 single kboard state. Don't pop_kboard if we popped into any
18539 kboard state.
18540 (push_frame_kboard): Rename to push_kboard.
18541 (kbd_buffer_get_event): Use FRAME_TERMINAL.
18542 (read_avail_input): Read input from all terminals.
18543 (mark_kboards): Also mark Vkeyboard_translate_table.
18544 (kbd_buffer_store_event_hold): Simplify condition.
18545 (read_key_sequence): Reinitialize fkey and keytran at each replay.
18546 (Vkeyboard_translate_table): Move to struct kboard.
18547 (init_kboard): Initialize Vkeyboard_translate_table.
18548 (syms_of_keyboard): Use DEFVAR_KBOARD to define
18549 Vkeyboard_translate_table. Update doc strings. Update docs of
18550 local-function-key-map and function-key-map.
18551
18552 * terminal.c: New file.
18553
18554 * term.c: Include errno.h.
18555 (Vring_bell_function, device_list, initial_device)
18556 (next_device_id, ring_bell, update_begin, update_end)
18557 (set_terminal_window, cursor_to, raw_cursor_to)
18558 (clear_to_end, clear_frame, clear_end_of_line)
18559 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
18560 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
18561 (syms_of_term): Move their initialization to terminal.c.
18562 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
18563 (Ftty_display_color_cells)
18564 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
18565 (clear_tty_hooks, set_tty_hooks)
18566 (init_tty, maybe_fatal): New functions.
18567 (Ftty_type): Return nil if terminal is not on a tty instead of
18568 throwing an error. Doc update.
18569 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
18570 Doc update. Initialize new subrs and variables.
18571 (delete_tty): Use terminal->deleted.
18572 (tty_set_terminal_modes): Rename from set_terminal_modes.
18573 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
18574 (set_scroll_region): Rename to `tty_set_scroll_region'.
18575 (turn_on_insert): Rename to `tty_turn_on_insert'.
18576 (turn_off_insert): Rename to `tty_turn_off_insert'.
18577 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
18578 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
18579 (toggle_highligh): Rename to `tty_toggle_highlight'.
18580 (background_highlight): Rename to `tty_background_highlight'.
18581 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
18582 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
18583 (tty_set_scroll_region, tty_background_highlight)
18584 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
18585 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
18586 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
18587 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
18588 Add static modifier.
18589 (tty_reset_terminal_modes, tty_set_terminal_window)
18590 (tty_set_scroll_region, tty_background_highlight)
18591 (tty_highlight_if_desired, tty_cursor_to)
18592 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
18593 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
18594 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
18595 renames.
18596
185972007-08-28 Jan Djärv <jan.h.d@swipnet.se>
18598
18599 * keyboard.c: Qrtl is new.
18600 (parse_tool_bar_item): Handle :rtl keyword.
18601 (syms_of_keyboard): Intern :rtl keyword.
18602
18603 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
18604
18605 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
18606 so no Lisp code is executed.
18607 (file_for_image, find_rtl_image): New functions.
18608 (xg_get_image_for_pixmap): Use file_for_image.
18609 (update_frame_tool_bar): If direction is RTL, use RTL image if
18610 defined. Use Gtk stock images if defined.
18611
186122007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18613
18614 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
18615 for nonexistent or zero-width glyph in composition glyph.
18616
186172007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
18618
18619 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
18620
18621 * xdisp.c (Finvisible_p): New function.
18622 (syms_of_xdisp): defsubr it.
18623
186242007-08-24 Juanma Barranquero <lekktu@gmail.com>
18625
18626 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
18627 Doc fixes.
18628
186292007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18630
18631 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
18632
186332007-08-24 Martin Rudalics <rudalics@gmx.at>
18634
18635 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
18636 whether decoding has modified buffer contents.
18637
186382007-08-24 Jason Rumney <jasonr@gnu.org>
18639
18640 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
18641 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
18642 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
18643 (init_svg_functions) [HAVE_NTGUI]: New function.
18644 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
18645 (svg_load_image): Use them.
18646 (svg_load_image) [HAVE_NTGUI]: Implement background.
18647
186482007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18649
18650 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
18651 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
18652 (LIBX): Remove @RSVG_LIBS@.
18653 (LIBES): Add $(RSVG_LIBS).
18654
18655 * image.c (svg_load_image): Blend with specified background if exists.
18656 Use IMAGE_BACKGROUND. Add Mac OS Support.
18657
18658 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
18659 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
18660 Remove macros.
18661 [MAC_OSX] (socket_callback): Do nothing.
18662 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
18663 ReceiveNextEvent.
18664 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
18665 socket_callback.
18666 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
18667
186682007-08-22 Glenn Morris <rgm@gnu.org>
18669
18670 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
18671
186722007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
18673
18674 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
18675
18676 * image.c: Add support for SVG images. Some additional comments
18677 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
18678 (svg_image_p): New function to test for SVG image.
18679 (svg_load): New function to load SVG image.
18680 (svg_load_image): New function, helper for svg_load.
18681 (Qsvg): New Lisp_object.
18682 (svg_keyword_index): New enum.
18683 (svg_format): New static `image_keyword' struct.
18684 (svg_type): New static `image_type' struct.
18685 (librsvg/rsvg.h): Include it.
18686
186872007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
18688
18689 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
18690
186912007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
18692
18693 * lread.c (Qold_style_backquotes): New var.
18694 (syms_of_lread): Init and staticpro it.
18695 (load_warn_old_style_backquotes): New fun.
18696 (Fload): Use them to warn about old style backquotes.
18697 (end_of_file_error, Fload): Remove unused vars.
18698
18699 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
18700
18701 * lread.c (Vold_style_backquotes): New var.
18702 (syms_of_lread): Init and export it to Elisp.
18703 (read1): Set it when we find an old-style (back)quote.
18704
187052007-08-22 Jason Rumney <jasonr@gnu.org>
18706
18707 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
18708
187092007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
18710
18711 * puresize.h (BASE_PURESIZE): Increase to 1140000.
18712
187132007-08-19 Richard Stallman <rms@gnu.org>
18714
18715 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
18716
187172007-08-19 Andreas Schwab <schwab@suse.de>
18718
18719 * alloc.c (pure): Round PURESIZE up.
18720
187212007-08-17 Jan Djärv <jan.h.d@swipnet.se>
18722
18723 * xterm.c (handle_one_xevent): Remove check that mouse click is in
18724 active frame.
18725
187262007-08-16 Richard Stallman <rms@gnu.org>
18727
18728 * eval.c (Fcommandp): Add parens to clarify.
18729
18730 * minibuf.c (Fall_completions): Use enum for type of table.
18731
18732 * emacs.c (USAGE2): Improve text.
18733
187342007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
18735
18736 * term.c (tty_default_color_capabilities): Declare static
18737 variables in file scope, to avoid HPUX compiler problem.
18738
187392007-08-13 Jan Djärv <jan.h.d@swipnet.se>
18740
18741 * gtkutil.c (update_frame_tool_bar): Use -1 as index
18742 to gtk_toolbar_insert.
18743
187442007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
18745
18746 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
18747
18748 * insdel.c (reset_var_on_error): New fun.
18749 (signal_before_change, signal_after_change):
18750 Use it to reset (after|before)-change-functions to nil in case of error.
18751 Bind inhibit-modification-hooks to t.
18752 Don't bind (after|before)-change-functions to nil while they run.
18753
187542007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18755
18756 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
18757 filling pixmap with stippled background.
18758
187592007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18760
18761 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
18762 Don't use invisible frame as parent window for repositioning.
18763
187642007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
18765
18766 * print.c (new_backquote_output): Rename from old_backquote_output.
18767 (print): Inverse its logic (according to its name) so as to match the
18768 behavior of new_backquote_flag in lread.c.
18769
187702007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18771
18772 * gmalloc.c (posix_memalign): New function.
18773
18774 * macterm.c (frame_highlight, frame_unhighlight): Don't call
18775 ActivateControl/DeactivateControl here.
18776 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
18777 frame-notice-user-settings is non-nil.
18778 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
18779 for kEventParamFMFontStyle.
18780 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
18781 mac_pass_command_to_system and mac_pass_control_to_system here.
18782 (XTread_socket): Call ActivateControl/DeactivateControl here.
18783 (XTread_socket) [TARGET_API_MAC_CARBON]:
18784 Check mac_pass_command_to_system and mac_pass_control_to_system here.
18785 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
18786 for window repositioning.
18787
187882007-08-08 Glenn Morris <rgm@gnu.org>
18789
18790 * Replace `iff' in doc-strings and comments.
18791
187922007-08-07 Chong Yidong <cyd@stupidchicken.com>
18793
18794 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
18795
187962007-08-07 Martin Rudalics <rudalics@gmx.at>
18797
18798 * fileio.c (Finsert_file_contents): Run format-decode and
18799 after_insert_file_functions on entire buffer when REPLACE is
18800 non-nil and inhibit modification_hooks and point_motion_hooks.
18801 For consistency, run after_insert_file_functions iff something
18802 got inserted. Move signal_after_change and update_compositions
18803 after code running after_insert_file_functions. Make sure that
18804 undo_list doesn't record intermediate steps of the decoding process.
18805
188062007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18807
18808 * emacs.c (main)
18809 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
18810 Call malloc_enable_thread on interactive startup.
18811
18812 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
18813 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
18814 [USE_PTHREAD]: Conditionalize with it.
18815 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
18816 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
18817 New functions.
18818
188192007-08-06 Chong Yidong <cyd@stupidchicken.com>
18820
18821 * xdisp.c (redisplay_window): When restoring original buffer
18822 position, make sure it is still valid.
18823
18824 * image.c (png_load): Ignore png-supplied background color.
18825
188262007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18827
18828 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
18829 Use kCFAbsoluteTimeIntervalSince1970.
18830
18831 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
18832 New variable.
18833 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
18834 event loop should be quit.
18835 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
18836 Quit dialog event loop if quit_dialog_event_loop is set.
18837
18838 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
18839 (Selection): New typedef. Use instead of ScrapRef.
18840 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
18841 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
18842 (mac_clear_selection): Rename from clear_scrap.
18843 (get_flavor_type_from_symbol): New argument SEL and subsume function of
18844 scrap_has_target_type. All uses changed.
18845 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
18846 (mac_selection_has_target_p): New functions.
18847 (mac_put_selection_value): Rename from put_scrap_string.
18848 (mac_get_selection_value): Rename from get_scrap_string.
18849 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
18850 (put_scrap_private_timestamp, scrap_has_target_type)
18851 (get_scrap_private_timestamp): Remove functions.
18852 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
18853 (x_own_selection, x_get_local_selection):
18854 Use mac_valid_selection_value_p.
18855 (x_own_selection): Don't use put_scrap_private_timestamp.
18856 Record OWNERSHIP-INFO into Vselection_alist instead.
18857 (x_get_local_selection): Don't check type if request is local.
18858 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
18859 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
18860
188612007-08-04 Jan Djärv <jan.h.d@swipnet.se>
18862
18863 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
18864 add comment explaining why.
18865
188662007-08-03 Richard Stallman <rms@gnu.org>
18867
18868 * fileio.c (Fvisited_file_modtime): Use make_time.
18869
188702007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
18871
18872 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
18873 build.
18874
188752007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
18876
18877 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
18878
188792007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
18880
18881 * puresize.h (BASE_PURESIZE): Increase to 1130000.
18882
188832007-07-30 Richard Stallman <rms@gnu.org>
18884
18885 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
18886
188872007-07-29 Jan Djärv <jan.h.d@swipnet.se>
18888
18889 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
18890
188912007-07-28 Nick Roberts <nickrob@snap.net.nz>
18892
18893 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
18894 remote default-directory.
18895
18896 * buffer.c (mode-line-format): Update doc string.
18897
188982007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18899
18900 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
18901 scroll bar gap.
18902 (x_scroll_bar_create): Set bar->fringe_extended_p.
18903 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
18904 on frame edge. Check fringe background extension. Don't clear
18905 extended fringe background area.
18906
18907 * w32term.h (struct scroll_bar): New member fringe_extended_p.
18908 (w32_fill_area): Enclose multiple statements with do ... while (0).
18909
18910 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
18911 Extend fringe background to scroll bar gap.
18912 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
18913 Set bar->fringe_extended_p.
18914 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
18915 Put leftmost/rightmost scroll bars on frame edge. Check fringe
18916 background extension. Don't clear extended fringe background area.
18917
18918 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
18919 New member fringe_extended_p.
18920
189212007-07-25 Glenn Morris <rgm@gnu.org>
18922
18923 * Relicense all FSF files to GPLv3 or later.
18924
18925 * COPYING: Switch to GPLv3.
18926
189272007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
18928
18929 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
18930
18931 * data.c (Finteractive_form): Check for the presence of an
18932 `interactive-form' symbol property more thoroughly.
18933
18934 * data.c (Finteractive_form): Use an `interactive-form' property if
18935 present, analogous to the function-documentation property.
18936
189372007-07-24 Jason Rumney <jasonr@gnu.org>
18938
18939 * w32fns.c (x_real_positions): Get real position from OS instead of
18940 calculating it.
18941
189422007-07-23 Jason Rumney <jasonr@gnu.org>
18943
18944 * filelock.c (current_lock_owner): Allow for @ sign in username.
18945
189462007-07-22 Nick Roberts <nickrob@snap.net.nz>
18947
18948 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
18949 remote default-directory.
18950
18951 * buffer.c (mode-line-format): Describe above case in doc string.
18952
189532007-07-20 Eli Zaretskii <eliz@gnu.org>
18954
18955 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
18956 Define if not defined.
18957
189582007-07-18 Jason Rumney <jasonr@gnu.org>
18959
18960 * w32proc.c (w32_executable_type): Handle 64 bit executables.
18961
189622007-07-18 Richard Stallman <rms@gnu.org>
18963
18964 * data.c (Fsetq_default): Doc fix.
18965
18966 * eval.c (Fsetq): Doc fix.
18967
189682007-07-18 Juanma Barranquero <lekktu@gmail.com>
18969
18970 * coding.c (Ffind_operation_coding_system):
18971 * eval.c (For, Fand): Doc fixes.
18972 Reported by Johan Bockgård.
18973
189742007-07-18 Jan Djärv <jan.h.d@swipnet.se>
18975
18976 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
18977
18978 * xterm.h: Declare x_ewmh_activate_frame.
18979
18980 * xterm.c (x_ewmh_activate_frame): New function.
18981 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
18982
189832007-07-17 Martin Rudalics <rudalics@gmx.at>
18984
18985 * window.c (Fdisplay_buffer): If largest or LRU window is the
18986 only window, split it even if it is not eligible for splitting.
18987 This restores the original behavior broken by the 2007-07-15
18988 change.
18989
189902007-07-17 Glenn Morris <rgm@gnu.org>
18991
18992 * abbrev.c (abbrev_check_chars): New function.
18993 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
18994 Call abbrev_check_chars to check abbrev characters are word
18995 constituents. Doc fix.
18996
189972007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
18998
18999 * process.c (Fstart_process, Fmake_network_process)
19000 (read_process_output): Fix up last changes.
19001
190022007-07-16 Eli Zaretskii <eliz@gnu.org>
19003
19004 * makefile.w32-in (clean): Don't delete *~.
19005
190062007-07-16 Andreas Schwab <schwab@suse.de>
19007
19008 * window.c (Fdisplay_buffer): Use NILP.
19009 (Fset_window_scroll_bars): Likewise.
19010
190112007-07-15 Martin Rudalics <rudalics@gmx.at>
19012
19013 * window.c (window_min_size_2): New function.
19014 (window_min_size_1, size_window, Fdisplay_buffer)
19015 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
19016 windows without mode- or header-lines when window-min-height is
19017 too small.
19018 (size_window): Reset nodelete_p after testing it, following an
19019 earlier note by Kim F. Storm.
19020 (display_buffer): Do not set split_height_threshold to twice the
19021 value of window_min_height to avoid changing the value of a
19022 customizable variable. Rather explicitly check whether the
19023 height of the window that shall be splitted is at least as large
19024 as split_height_threshold.
19025 (Fwindow_full_width_p): New defun.
19026 (syms_of_window): Defsubr it.
19027
19028 * window.h: Add EXFUN for Fwindow_full_width_p.
19029
190302007-07-14 Jason Rumney <jasonr@gnu.org>
19031
19032 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
19033
190342007-07-14 Richard Stallman <rms@gnu.org>
19035
19036 * eval.c (maybe_call_debugger): New function.
19037 (find_handler_clause): Use maybe_call_debugger.
19038 Call it when the handler says `debug'.
19039 Eliminate DEBUGGER_VALUE_PTR.
19040 (Fsignal): Eliminate debugger_value.
19041 (Qdebug): New variable.
19042 (syms_of_eval): Initialize it.
19043
190442007-07-14 Juanma Barranquero <lekktu@gmail.com>
19045
19046 * eval.c (Fprogn):
19047 * keyboard.c (Ftrack_mouse):
19048 * print.c (Fwith_output_to_temp_buffer):
19049 * window.c (Fsave_window_excursion): Doc fix.
19050
190512007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
19052
19053 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
19054
190552007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
19056
19057 * process.h (struct Lisp_Process): Turn slots infd, outfd,
19058 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
19059 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
19060 read_output_delay, and read_output_skip from Lisp_Objects to ints.
19061 Remove unused encoding_carryover.
19062 * process.c: Adjust all functions accordingly.
19063
190642007-07-12 Richard Stallman <rms@gnu.org>
19065
19066 * term.c: Include unistd.h only if HAVE_UNISTD_H.
19067
190682007-07-11 Jason Rumney <jasonr@gnu.org>
19069
19070 * makefile.w32-in (LIBS): Include OLE32.
19071
19072 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
19073 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
19074
190752007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
19076
19077 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
19078 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
19079 from a Lisp_Object into a bare pointer.
19080 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
19081 Adjust the code correspondingly.
19082
19083 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
19084
19085 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
19086 (term_show_mouse_face): Remove unused var `j'.
19087 (handle_one_term_event): Remove unused vars `i' and `j'.
19088 Don't cast return value of ttyname since it's not necessary.
19089
190902007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
19091
19092 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
19093 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
19094
19095 * fns.c (map_char_table): Use an array of int for `indices' rather than
19096 an array of Lisp_Objects (which are only ever integers anyway).
19097 (Fmap_char_table): Update caller.
19098 * lisp.h: Update prototype.
19099 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
19100 * fontset.c (Ffontset_info):
19101 * casetab.c (set_case_table): Update callers.
19102
19103 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
19104
19105 * keymap.c (struct accessible_keymaps_data)
19106 (struct where_is_internal_data): New structures.
19107 (accessible_keymaps_1, where_is_internal_1): Use them to change
19108 interface to adhere to the one used by map_keymap.
19109 (Faccessible_keymaps, where_is_internal): Use map_keymap.
19110 (accessible_keymaps_char_table, where_is_internal_2): Remove.
19111
19112 * keymap.h (map_keymap_function_t): More informative prototype.
19113
191142007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
19115
19116 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
19117 (looking_at_1): Don't change search_regs and last_thing_searched
19118 if `inhibit-changing-match-data' is non-nil.
19119 (string_match_1, search_buffer, set_search_regs): Likewise.
19120 (syms_of_search): Add Lisp level definition for
19121 `inhibit-changing-match-data' and set it to nil.
19122 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
19123 start and end of the match, instead of using values in search_regs.
19124
191252007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
19126
19127 * minibuf.c (Fcompleting_read): New value `confirm-only'
19128 for `require-match'.
19129
191302007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
19131
19132 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
19133 part of the 2007-06-27 change to syms_of_fileio.
19134
191352007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19136
19137 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
19138 Check WINDOWP before using XWINDOW. Consolidate return statements.
19139
191402007-06-27 Richard Stallman <rms@gnu.org>
19141
19142 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
19143
191442007-06-27 Juanma Barranquero <lekktu@gmail.com>
19145
19146 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
19147
191482007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19149
19150 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
19151 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
19152 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
19153 (_free_internal, memalign): Use them.
19154 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
19155 Initialize to PTHREAD_MUTEX_INITIALIZER.
19156 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
19157 (morecore_nolock): Rename from morecore. All uses changed.
19158 Use only nolock versions of internal allocation functions.
19159 (_malloc_internal_nolock, _realloc_internal_nolock)
19160 (_free_internal_nolock): New functions created from
19161 _malloc_internal, _realloc_internal, and _free_internal.
19162 (_malloc_internal, _realloc_internal, _free_internal): Use them.
19163 Copy hook value to automatic variable before its use.
19164 (memalign): Copy hook value to automatic variable before its use.
19165
191662007-06-26 Kenichi Handa <handa@m17n.org>
19167
19168 * coding.c (Ffind_operation_coding_system): Docstring improved.
19169 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
19170
191712007-06-25 David Kastrup <dak@gnu.org>
19172
19173 * keymap.c (Fcurrent_active_maps): Add `position' argument.
19174 (Fwhere_is_internal): Adjust call to `current-active-maps' to
19175 cater for additional parameter.
19176
19177 * keymap.h: Adjust number of parameters to `current-active-maps'.
19178
19179 * doc.c (Fsubstitute_command_keys): Adjust call of
19180 `current-active-maps'.
19181
191822007-06-25 David Kastrup <dak@gnu.org>
19183
19184 * callint.c (Fcall_interactively): Make the parsing of interactive
19185 specs somewhat more readable.
19186
191872007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19188
19189 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
19190 to scroll bar gap also when bitmap fills fringe. Draw only foreground
19191 if extended background has already been filled.
19192
191932007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19194
19195 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
19196 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
19197
19198 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
19199 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
19200 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
19201 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
19202 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
19203 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
19204 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
19205 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
19206 Run timers during dialog popup.
19207 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
19208
192092007-06-21 Jason Rumney <jasonr@gnu.org>
19210
19211 * image.c (convert_mono_to_color_image): Swap fore and background.
19212
192132007-06-20 Jason Rumney <jasonr@gnu.org>
19214
19215 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
19216 (w32_free_bdf_font): Unmap memory not handle.
19217
192182007-06-20 Sam Steingold <sds@gnu.org>
19219
19220 * gmalloc.c (__morecore): Fix the declaration to comply with the
19221 definition.
19222
192232007-06-20 Juanma Barranquero <lekktu@gmail.com>
19224
19225 * w32term.c (w32_delete_display): Remove leftover declaration.
19226 (w32_define_cursor, w32_initialize): Make static.
19227
19228 * w32.c (_wsa_errlist): Fix typo in error message.
19229 (init_environment): Ignore any environment variable from the
19230 registry having a null value.
19231
192322007-06-20 Glenn Morris <rgm@gnu.org>
19233
19234 * Makefile.in (LIBGIF): Default to -lgif.
19235
192362007-06-17 Jason Rumney <jasonr@gnu.org>
19237
19238 * w32menu.c (add_menu_item): Don't use multibyte string functions on
19239 unicode strings.
19240
192412007-06-16 Juanma Barranquero <lekktu@gmail.com>
19242
19243 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
19244 Fix typo in docstring.
19245
192462007-06-16 Eli Zaretskii <eliz@gnu.org>
19247
19248 * w32menu.c (add_menu_item): Escape `&' characters in menu items
19249 and their keybindings.
19250
192512007-06-15 Chong Yidong <cyd@stupidchicken.com>
19252
19253 * composite.c (update_compositions): Fix last fix.
19254
192552007-06-14 Jason Rumney <jasonr@gnu.org>
19256
19257 * w32.c (get_process_times_fn): New function pointer.
19258 (globals_of_w32): Intialize it if present in kernel32.dll.
19259 (w32_get_internal_run_time): New function.
19260
19261 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
19262
192632007-06-14 Kenichi Handa <handa@etlken.m17n.org>
19264
19265 * composite.c (update_compositions): Check the validness of
19266 compositions.
19267
192682007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19269
19270 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
19271 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
19272
19273 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
19274 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
19275
19276 * macgui.h (USE_MAC_TOOLBAR): New define.
19277
19278 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
19279 Return immediately unless popup is activated.
19280
19281 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
19282 background to scroll bar gap.
19283 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
19284 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
19285 scroll bars on frame edge. Check fringe background extension.
19286 Don't clear extended fringe background area.
19287 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
19288 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
19289 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
19290 [USE_MAC_TOOLBAR]: New macros.
19291 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
19292 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
19293 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
19294 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
19295 [USE_MAC_TOOLBAR]: New functions.
19296 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
19297 manually if previous repositioning has failed.
19298 (mac_handle_keyboard_event): Use precomputed event kind.
19299 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
19300 as tool bar item click. Handle mouse movement over tool bar items.
19301
19302 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
19303 toolbar_win_gravity.
19304 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
19305 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
19306 Add externs.
19307
19308 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
19309 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
19310
193112007-06-14 Chong Yidong <cyd@stupidchicken.com>
19312
19313 * image.c (search_image_cache): Remove unused variable.
19314
193152007-06-13 Chong Yidong <cyd@stupidchicken.com>
19316
19317 * xfns.c, xmenu.c: Link to xaw3d if available.
19318
193192007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19320
19321 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
19322 frame_foreground and frame_background.
19323
19324 * image.c (lookup_image): Save frame foreground and background colors.
19325 (search_image_cache): Check if saved and current frame colors match.
19326
193272007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
19328
19329 * regex.c (regex_compile): Remove the `regnum' counter.
19330 Use bufp->re_nsub instead. Add support for \(?N:RE\).
19331
193322007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
19333
19334 * term.c: Include intervals.h to declare Fget_text_property.
19335
193362007-06-10 Jason Rumney <jasonr@gnu.org>
19337
19338 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
19339
193402007-06-08 Juanma Barranquero <lekktu@gmail.com>
19341
19342 * callint.c (Fcall_interactively):
19343 * editfns.c (Fdelete_and_extract_region):
19344 * fileio.c (Fread_file_name):
19345 * fns.c (Fmapconcat):
19346 * keyboard.c (cmd_error_internal):
19347 * keymap.c (Fkey_description):
19348 * lread.c (openp):
19349 * minibuf.c (read_minibuf):
19350 * search.c (wordify):
19351 * sunfns.c (sel_read):
19352 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
19353 * xfns.c (x_default_scroll_bar_color_parameter):
19354 * xmenu.c (menu_help_callback):
19355 * xselect.c (Fx_get_atom_name):
19356 * xterm.c (x_term_init): Use empty_unibyte_string.
19357
193582007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
19359
19360 * alloc.c (init_strings): Initialize canonical empty strings.
19361 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
19362 canonical empty string when the requested size is 0.
19363
19364 * emacs.c (empty_unibyte_string): Rename from empty_string.
19365 (empty_multibyte_string): New canonical empty string.
19366 (syms_of_emacs): Don't initialize empty_string.
19367
19368 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
19369 string, if appropriate.
19370 (empty_unibyte_string, empty_multibyte_string): New externs.
19371 (empty_string): Remove extern.
19372
19373 * lread.c (syms_of_lread): Use empty_unibyte_string.
19374
193752007-06-07 Jason Rumney <jasonr@gnu.org>
19376
19377 * s/ms-w32.h: Don't define HAVE_TZNAME.
19378
19379 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
19380
193812007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19382
19383 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
19384
19385 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
19386 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
19387
19388 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
19389 Don't call next handler.
19390 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
19391 Remove argument. Install handler to application.
19392 (set_frame_menubar): Don't change deep_p.
19393 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
19394 FRAME_OUTER_TO_INNER_DIFF_Y.
19395 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
19396 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
19397 [HAVE_DIALOGS]: New macros.
19398 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
19399 Use them.
19400 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
19401
19402 * macselect.c [MAC_OSX] (install_service_handler): Rename from
19403 init_service_handler. All callers changed. Return OSStatus value.
19404
19405 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
19406 All callers changed so as not to call SetPortWindowPort.
19407 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
19408 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
19409 mac_draw_string_common.
19410 (mac_draw_image_string_qd): Likewise.
19411 (mac_draw_string_common): Use them. Add INLINE.
19412 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
19413 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
19414 GetGlobalMouse.
19415 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
19416 and FRAME_OUTER_TO_INNER_DIFF_Y.
19417 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
19418 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
19419 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
19420 repositioning window to mac_handle_window_event.
19421 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
19422 saving window location to mac_handle_window_event
19423 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
19424 (install_menu_target_item_handler): Remove argument in extern.
19425 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
19426 Also accept command events.
19427 (do_keystroke): New function created from XTread_socket.
19428 (init_command_handler): Remove functions.
19429 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
19430 and save window location by kEventWindowShowing and kEventWindowHiding
19431 handlers here. Don't call next handler for window state change and
19432 focus events.
19433 (mac_handle_application_event, mac_handle_keyboard_event)
19434 [TARGET_API_MAC_CARBON]: New functions.
19435 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
19436 kEventWindowShowing and kEventWindowHiding events. Move installation
19437 of mouse, font, text input and menu target item handlers to
19438 install_application_handler.
19439 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
19440 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
19441 New function.
19442 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
19443 Register it.
19444 (XTread_socket) [TARGET_API_MAC_CARBON]:
19445 Consolidate SendEventToEventTarget calls.
19446 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
19447 Move application activation handler to mac_handle_application_event.
19448 Move keyboard handler to mac_handle_keyboard_event.
19449 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
19450 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
19451 init_command_handler. Call install_application_handler.
19452
19453 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
19454 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
19455
194562007-06-07 Glenn Morris <rgm@gnu.org>
19457
19458 * emacs.c (main): Use `emacs-copyright' in --version output.
19459
194602007-06-06 Chong Yidong <cyd@stupidchicken.com>
19461
19462 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
19463
194642007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19465
19466 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
19467
19468 * macgui.h: Replace WindowPtr with WindowRef.
19469
19470 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
19471 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
19472 Replace ControlHandle with ControlRef.
19473 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
19474
19475 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
19476 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
19477 Replace ControlHandle with ControlRef.
19478 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
19479 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
19480
19481 * macterm.h (struct scroll_bar): Rename member control_handle_low
19482 and control_handle_high to control_ref_low and control_ref_high.
19483 All uses changed.
19484 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
19485 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
19486 respectively. All uses changed.
19487 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
19488 (install_window_handler, remove_window_handler): Replace WindowPtr
19489 with WindowRef in externs.
19490
194912007-06-05 Juanma Barranquero <lekktu@gmail.com>
19492
19493 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
19494
194952007-06-03 Nick Roberts <nickrob@snap.net.nz>
19496
19497 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
19498
19499 * frame.c (Fmouse_position, Fmouse_pixel_position):
19500 Condition on HAVE_GPM too.
19501
19502 * term.c (term_mouse_highlight): Remove unused variables.
19503 (Fterm_open_connection): Set gpm_zerobased to 1.
19504 (term_mouse_movement, term_mouse_click, handle_one_term_event):
19505 Use zero based co-ordinates.
19506 (handle_one_term_event): Report a drag as mouse movement too.
19507
19508 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
19509
195102007-06-03 Chong Yidong <cyd@stupidchicken.com>
19511
19512 * image.c (search_image_cache): New function. Require background
19513 color match if background color is unspecified in the image spec.
19514 (uncache_image, lookup_image): Use it.
19515
195162007-06-01 Juanma Barranquero <lekktu@gmail.com>
19517
19518 * window.c (Fshrink_window): Reflow docstring.
19519
195202007-06-02 Chong Yidong <cyd@stupidchicken.com>
19521
19522 * Version 22.1 released.
19523
195242007-06-01 Richard Stallman <rms@gnu.org>
19525
19526 * xfns.c (x_encode_text): Add GCPRO.
19527
195282007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19529
19530 * xfns.c (x_set_name_internal): Save encoded name before
19531 x_encode_text in case string data is relocated.
19532
195332007-05-31 Richard Stallman <rms@gnu.org>
19534
19535 * buffer.c (syms_of_buffer): Doc fix.
19536
195372007-05-30 Nick Roberts <nickrob@snap.net.nz>
19538
19539 * sysdep.c (init_sys_modes): Add rather than replace with
19540 O_NONBLOCK.
19541
19542 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
19543 term_mouse_moveto.
19544
19545 * termhooks.h (term_mouse_moveto): New extern.
19546
19547 * term.c (mouse_face_window): Rename...
19548 (Qmouse_face_window): ...to this.
19549 (term_show_mouse_face, term_clear_mouse_face)
19550 (term_mouse_highlight): Use Qmouse_face_window.
19551 (term_mouse_moveto): New function.
19552 (term_mouse_position): Make it work.
19553 (syms_of_term): Uncomment assignment to mouse_position_hook.
19554 Staticpro Qmouse_face_window.
19555
195562007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19557
19558 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
19559 around current_column call.
19560
195612007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
19562
19563 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
19564 * xdisp.c (next_element_from_buffer):
19565 * window.c (delete_window):
19566 * term.c (term_mouse_highlight):
19567 * msdos.c (getdefdir):
19568 * macterm.c (mac_create_bitmap_from_bitmap_data)
19569 (init_font_name_table):
19570 * fns.c (Fsxhash):
19571 * data.c (Fmake_local_variable):
19572 * ccl.c (ccl_driver): Likewise.
19573
195742007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19575
19576 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
19577 Call mac_wakeup_from_rne on window size change.
19578
195792007-05-25 Chong Yidong <cyd@stupidchicken.com>
19580
19581 * image.c (uncache_image): Fix typo.
19582
195832007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
19584
19585 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
19586
195872007-05-22 Richard Stallman <rms@gnu.org>
19588
19589 * xterm.c (x_connection_closed): Remove NO_RETURN.
19590
195912007-05-22 Martin Rudalics <rudalics@gmx.at>
19592
19593 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
19594
195952007-05-21 Chong Yidong <cyd@stupidchicken.com>
19596
19597 * image.c (uncache_image): New function.
19598 (Fimage_refresh): New function.
19599
196002007-05-20 Jan Djärv <jan.h.d@swipnet.se>
19601
19602 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
19603
196042007-05-20 Nick Roberts <nickrob@snap.net.nz>
19605
19606 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
19607 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
19608
196092007-05-20 Nick Roberts <nickrob@snap.net.nz>
19610
19611 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
19612 conditional on [HAVE_GPM_H].
19613
196142007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
19615
19616 * syntax.c (skip_chars): Update syntax-table only after we checked that
19617 the new location is valid.
19618
196192007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19620
19621 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
19622 mac_get_window_bounds.
19623
196242007-05-20 Nick Roberts <nickrob@snap.net.nz>
19625
19626 * Makefile.in (LIBGPM): Allow it to be set from configure.
19627 If set then link Emacs with it.
19628
19629 * config.in: Regenerate.
19630
19631 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
19632 New externs.
19633
19634 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
19635 Include gpm.h.
19636 (handle_one_term_event, term_gpm): New externs.
19637
19638 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
19639 and allow it to be interrupted by SIGIO.
19640
19641 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
19642 (wait_reading_process_output): Wait on gpm_fd too.
19643 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
19644 (add_gpm_wait_descriptor_called_flag): New variable.
19645 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
19646
19647 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
19648 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
19649 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
19650 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
19651 (make_lispy_event): Add case GPM_CLICK_EVENT.
19652 (read_avail_input): Handle mouse input.
19653
19654 * term.c (write_glyphs_with_face): New function.
19655 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
19656 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
19657 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
19658 (mouse_face_face_id, term_gpm, pos_x, pos_y)
19659 (last_mouse_x, last_mouse_y): New variables.
19660 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
19661 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
19662 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
19663 (Fterm_close_connection): New functions.
19664 (term_init): Initialise mouse_face_window.
19665
196662007-05-19 Chong Yidong <cyd@stupidchicken.com>
19667
19668 * xdisp.c (redisplay_window): If first window line is a
19669 continuation line, recompute the new window start instead of
19670 recentering.
19671
196722007-05-18 Glenn Morris <rgm@gnu.org>
19673
19674 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
19675 Suggested by Alfred M. Szmidt <ams@gnu.org>.
19676
196772007-05-17 Glenn Morris <rgm@gnu.org>
19678
19679 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
19680
196812007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19682
19683 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
19684 dead key repeat and up events.
19685
196862007-05-14 Chong Yidong <cyd@stupidchicken.com>
19687
19688 * image.c (pbm_load): Check image size for monochrome pbm.
19689
196902007-05-13 Chong Yidong <cyd@stupidchicken.com>
19691
19692 * xterm.c (XTread_socket): Revert last change.
19693
196942007-05-12 Chong Yidong <cyd@stupidchicken.com>
19695
19696 * image.c (pbm_load): Correctly check image size for greyscale pbm.
19697
19698 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
19699
197002007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
19701
19702 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
19703 mixup (YAILOM).
19704
197052007-05-07 Andreas Schwab <schwab@suse.de>
19706
19707 * keymap.c (Flookup_key): Fix typo in last change.
19708
197092007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
19710
19711 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
19712 mapping for unibyte strings.
19713
197142007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19715
19716 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
19717 (Fx_popup_dialog) [MAC_OSX]: Likewise.
19718
197192007-04-29 Richard Stallman <rms@gnu.org>
19720
19721 * insdel.c (replace_range): For undo, record insertion first.
19722
197232007-04-29 Andreas Schwab <schwab@suse.de>
19724
19725 * lisp.h (VECSIZE): Use OFFSETOF.
19726
197272007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19728
19729 * xdisp.c (try_window_reusing_current_matrix): Fix number of
19730 disabled lines.
19731
197322007-04-28 Richard Stallman <rms@gnu.org>
19733
19734 * lread.c (read_escape): In a string, \s is always space.
19735
197362007-04-27 Jan Djärv <jan.h.d@swipnet.se>
19737
19738 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
19739
19740 * gtkutil.c (xg_update_menubar, create_menus): Create empty
19741 submenu for menu bar items.
19742
19743See ChangeLog.10 for earlier changes.
19744
19745;; Local Variables:
19746;; coding: utf-8
19747;; add-log-time-zone-rule: t
aac0c6e3
MR
19748;; End:
19749
76b6f707 19750 Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
aac0c6e3
MR
19751
19752 This file is part of GNU Emacs.
19753
19754 GNU Emacs is free software: you can redistribute it and/or modify
19755 it under the terms of the GNU General Public License as published by
19756 the Free Software Foundation, either version 3 of the License, or
19757 (at your option) any later version.
19758
19759 GNU Emacs is distributed in the hope that it will be useful,
19760 but WITHOUT ANY WARRANTY; without even the implied warranty of
19761 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19762 GNU General Public License for more details.
19763
19764 You should have received a copy of the GNU General Public License
19765 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
19766
19767;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40