* syntax.c (Fchar_syntax): Minor doc fix (Bug#119).
[bpt/emacs.git] / src / ChangeLog
CommitLineData
fcfe06f3
CY
12009-09-18 Chong Yidong <cyd@stupidchicken.com>
2
d798ba87 3 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 4
31642728
AR
52009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
6
7 * emacs.c (inhibit_x_resources): Update doc string for NS.
8 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 9 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
10
11 * nsterm.h (ns_no_defaults): Remove.
12
13 * nsterm.m (ns_no_defaults): Remove.
14 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
15 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
16 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
17 don't update the NSWindow itself.
18 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
19 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
20
21 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
22 ns_use_qd_smoothing.
23
24 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
25 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 26 (x-close-connection): Drop PSFlush() under OS X.
4acaaa2b 27 (x-focus-frame): Activate the app first.
31642728 28
8686ac71
JB
292009-09-17 Juanma Barranquero <lekktu@gmail.com>
30
31 * emacs.c (inhibit_x_resources): New variable.
32 (main) [HAVE_NS]: Don't process --quick command line option.
33 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
34
35 * lisp.h (inhibit_x_resources): Declare it extern.
36
37 * w32reg.c (x_get_string_resource):
38 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
39
e227ba05
EZ
402009-09-17 Eli Zaretskii <eliz@gnu.org>
41
42 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP): Add
43 lisp/term/internal.elc.
44
742d40e8
SM
452009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
46
47 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
48 (bug#4461).
49
005bd5a2
DN
502009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
51
52 * puresize.h (BASE_PURESIZE): Increase to 1290000.
53
54 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
55 (OBJECTS_MACHINE): Remove, unused.
56
f9af9719
SM
572009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
58
59 * frame.c (x_get_resource_string): Remove unused.
60
0307c7d2
JD
612009-09-15 Jan Djärv <jan.h.d@swipnet.se>
62
63 * xterm.c (x_new_font): Call change_frame_size before calling
64 x_set_window_size, in case frame size won't change.
65
66 * frame.c (x_set_font): Remove dead code.
67
428b13d6
SM
682009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
69
70 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
71
5766c380
SM
722009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
73
74 * lread.c (Fload): Don't output a message after loading an obsolete
75 package any more (done in Lisp now).
76
2fd0161b
CY
772009-09-12 Chong Yidong <cyd@stupidchicken.com>
78
79 * fns.c (syms_of_fns): Doc fix (Bug#4227).
80
bc5e75b6
SM
812009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
82
83 * keymap.c (Fwhere_is_internal): Use nconc2.
84
c31c985e
AM
852009-09-11 Alan Mackenzie <acm@muc.de>
86
87 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
88 batch mode.
89
78012bd2
AS
902009-09-11 Andreas Schwab <schwab@linux-m68k.org>
91
92 * xdisp.c (display_mode_element): Detect cycles.
93
9d889332
SM
942009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
95
96 * keymap.c (where_is_internal): Don't erroneously return nil right after
97 filling the cache.
98 (where_is_internal_1): Fix up typo.
99
7ab5d780
GM
1002009-09-11 Glenn Morris <rgm@gnu.org>
101
102 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
103 share a common doc-string.
104
5238a749
SM
1052009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
106
66d77eda
SM
107 * keymap.c (get_keymap): Return the actual keymap symbol rather than
108 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
109
5238a749
SM
110 * keymap.c (QCadvertised_binding): New constant.
111 (syms_of_keymap): Initialize it.
112 (Fwhere_is_internal): Try and use bindings from :advertised-binding
113 if applicable.
114
19f48442
SM
1152009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
116
50d4ba39
SM
117 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
118 (parse_menu_item): Streamline since bindings are recomputed all the
119 time anyway. Don't bother checking Vdefine_key_rebound_commands any
120 more and don't support lmenu's menu-alias any more either.
121
a88a5372
SM
122 * keymap.c (where_is_internal_data): Make noindirect a boolean.
123 (where_is_internal): Strip it down to only traverse the keymaps.
124 Move the cache handling from Fwhere_is_internal to here.
125 (Fwhere_is_internal): Move the handling of remapping and the choice of
126 the best binding from where_is_internal to here.
127 Unify the cached/noncached paths, so remapping is also handled
128 correctly when the cache is used, and so the cache can be used to
129 speed up remap-handling when applicable.
130 Give preference to non-remapped bindings.
131 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
132 non-remapped bindings.
133 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
134 command remapping.
135
19f48442
SM
136 * xdisp.c (display_mode_element): Move list length limit from 50 to
137 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
138
599498c3 1392009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
140
141 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
142
f9b7b5ac
SM
1432009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
144
145 * keymap.c (where_is_internal): Filter out shadowed remappings.
146 Assume that where_is_internal returns unshadowed bindings to simplify
147 the code and get rid of the gotos. Use ASIZE.
148
04f4b72d
JD
1492009-09-04 Jan Djärv <jan.h.d@swipnet.se>
150
4da146f2
JD
151 * xterm.c (x_focus_changed): If we get a focusout and pointer
152 is invisible, make it visible.
153
04f4b72d
JD
154 * xterm.h: Remove condition for declaration of
155 x_*_window_to_frame.
156
7cef7ce3
SM
1572009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
158
159 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
160 initial terminal as well.
161
a54fa5b7
JD
1622009-09-02 Jan Djärv <jan.h.d@swipnet.se>
163
164 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 165 x_menubar_window_to_frame.
a54fa5b7
JD
166
167 * xterm.c: Remove declarations also in xterm.h
168 (XTmouse_position): Do not return valid positions
169 for clicks in the menubar and the toolbar for Gtk+.
170
171 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
172 if the widget for the event has the same top level as a frame,
173 return the frame.
174 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
175 internal windows, bug #4122.
176 (x_non_menubar_window_to_frame): Remove.
177
5a021dd0
GM
1782009-09-02 Glenn Morris <rgm@gnu.org>
179
180 * buffer.c (default-major-mode): Move most of the doc from here...
181 (major-mode): ... to here.
182
548fe2f3
NR
1832009-08-30 Nick Roberts <nickrob@snap.net.nz>
184
185 * process.c (wait_reading_process_output): Keep the descriptor
186 when pty is used by a non-child process, e.g., in I/O buffer of
187 GDB this allows inferior to be restarted.
188
e0840eef
EZ
1892009-08-29 Eli Zaretskii <eliz@gnu.org>
190
191 * xdisp.c (redisplay_internal): Remove redundant test and collapse
192 both branches into one.
193
82e98df4
SM
1942009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
195
196 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
197 (main): Use enable-multibyte-characters rather than
198 default-enable-multibyte-characters. Output a warning message when
199 running a unibyte session.
200
890617cb
YM
2012009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
202
203 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
204 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
205 (copy_data_segment): Also copy __program_vars section.
206 (copy_dyld_info) [LC_DYLD_INFO]: New function.
207 (dump_it) [LC_DYLD_INFO]: Use it.
208
209 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
210
e7adeadc
EZ
2112009-08-28 Eli Zaretskii <eliz@gnu.org>
212
213 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
214 $(SRC)/buildobj.h.
215 (buildobj.h): Renamed from $(SRC)/buildobj.h.
216 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
217 $(SRC)/buildobj.h.
218 (clean): Add buildobj.h.
219
3ed8bbdc
TZ
2202009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
221
222 * print.c (print_object): Set escapeflag to 1 when printing
223 hashtable keys and values.
224
155a6764
SM
2252009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
226
227 * lread.c (read_integer): Use doubles (and potentially return a float
228 number) as we do in string-to-number.
229 (read1): Use strtol to read integers, signal errors on strtol's
230 overflow and use floats if strtol's output is too large for
231 Elisp integers.
232
877610de
EZ
2332009-08-27 Eli Zaretskii <eliz@gnu.org>
234
235 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
236 (make-buildobj-SH): Fix last change.
237 (SRC): Move to before where it's first used.
238
ef73e7be
KH
2392009-08-27 Kenichi Handa <handa@m17n.org>
240
550c8289
KH
241 * process.c (send_process): Use encode_coding_object instead of
242 encode_coding_string to perform eol-conversion even if the string
243 is unibyte.
244
60afa08d
KH
245 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
246 character.
247
ef73e7be 248 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 249 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 250
7b3a82d7
DN
2512009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
252
5654bf63
DN
253 * callproc.c (Fcall_process): Remove always true #if.
254
7b3a82d7
DN
255 * lisp.h: Replace #if 0 code for checking with text pointing to
256 the --enable-checking configure flag.
257
258 * emacs.c (main): Mention the --enable-profiling configure flag
259 instead of using CFLAGS.
260
878bde49
KR
2612009-08-26 Ken Raeburn <raeburn@raeburn.org>
262
263 * Makefile.in (buildobj.h): New target.
264 (doc.o): Depend on it.
265 (temacs${EXEEXT}): Don't generate buildobj.lst.
266 (mostlyclean): Delete buildobj.h, not buildobj.lst.
267 * makefile.w32-in ($(SRC)/buildobj.h): New target.
268 ($(BLD)/doc.$(O)): Depend on it.
269 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
270 provided by Eli Zaretskii.)
271 ($(TEMACS)): Don't generate buildobj.lst.
272 * doc.c: Include buildobj.h.
273 (buildobj): New static variable.
274 (Fsnarf_documentation): Use it, instead of opening and reading
275 buildobj.lst.
276
1574224c
MA
2772009-08-25 Michael Albinus <michael.albinus@gmx.de>
278
279 * dbusbind.c (Fdbus_call_method)
280 (Fdbus_call_method_asynchronously): Use English numeric format for
281 timeout values in doc string.
282
d9da2f45
KH
2832009-08-25 Kenichi Handa <handa@m17n.org>
284
ef73e7be
KH
285 * alloc.c (mark_char_table): New function.
286 (mark_object): Use mark_char_table for a char-table.
287
d9da2f45
KH
288 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
289 (CHAR_TABLE_REF): Use it.
290
c8edcc01
KR
2912009-08-23 Ken Raeburn <raeburn@raeburn.org>
292
293 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
294 before invoking the newly build emacs to check for load-path
295 shadowing.
296
7763401b
GM
2972009-08-22 Glenn Morris <rgm@gnu.org>
298
299 * Makefile.in (bootstrap_exe): New variable.
300 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
301 Use ${bootstrap_exe}.
302
729eadda
EZ
3032009-08-22 Eli Zaretskii <eliz@gnu.org>
304
305 * coding.h (encode_coding_string): Don't encode unibyte strings.
306 (Bug#4047)
307
eb4c6ace
MA
3082009-08-22 Michael Albinus <michael.albinus@gmx.de>
309
310 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
311
312 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
313 intended as hotfix only.
314 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
315
36e34d1b
AR
3162009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
317
318 * nsterm.m (ns_get_color): Update documentation properly for last
319 change, and clean up loose ends in the code left by it. Fix
320 longstanding bug with 16-bit hex parsing, and add support for
321 yet another X11 format (rgb:r/g/b) for compatibility.
322 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
323 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
324
f983eb8a
SM
3252009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
326
327 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
328
3f56d3c6
MA
3292009-08-20 Michael Albinus <michael.albinus@gmx.de>
330
331 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
332 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
333 (xd_initialize, xd_pending_messages): Check, whether
334 $DBUS_SESSION_BUS_ADDRESS is set.
335
fb641d68
YM
3362009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
337
338 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
339
340 * nsterm.m (ns_get_color): Remove incompatible color formats again.
341
cf59a374
GM
3422009-08-20 Glenn Morris <rgm@gnu.org>
343
344 * emacs.c (system-type): Doc fix.
345
1373f3be
SM
3462009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
347
348 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
349 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
350
058ed861
MA
3512009-08-18 Michael Albinus <michael.albinus@gmx.de>
352
1373f3be
SM
353 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
354 New functions.
058ed861
MA
355 (xd_initialize): Revert change from 2009-08-16.
356
563a866e 3572009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
358
359 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 360 font-group vector, return nil.
5fc05db0 361
e42bdf01
CY
3622009-08-17 Chong Yidong <cyd@stupidchicken.com>
363
364 * process.c (status_notify): Don't perform redisplay.
365 (Fdelete_process, list_processes_1, process_send_signal):
366 Expliticly perform redisplay.
367 (wait_reading_process_output): Always check process status, but
368 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
369
4230ab74
KR
3702009-08-17 Ken Raeburn <raeburn@raeburn.org>
371
1373f3be 372 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
373 (XFLOAT_INIT): New macro for storing a float value.
374 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
375 * fns.c (sxhash): Copy out the value of a float in order to
376 examine its bytes.
377 * dbusbind.c (xd_append_arg): Likewise.
378
4230ab74
KR
379 * emacs.c (main): Don't call syms_of_data twice.
380
a0645cdd
MA
3812009-08-16 Michael Albinus <michael.albinus@gmx.de>
382
383 * dbusbind.c (xd_initialize): Add connection file descriptor to
384 input_wait_mask, in order to let select() detect, whether a new
385 message has been arrived.
ca4f31ea 386 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 387
485db0ba
MA
3882009-08-15 Michael Albinus <michael.albinus@gmx.de>
389
1373f3be
SM
390 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
391 New functions.
485db0ba
MA
392
393 * lisp.h (xd_pending_messages): Declare.
394
395 * keyboard.c (readable_events): Call xd_pending_messages.
396
b5b98ff4
CY
3972009-08-15 Chong Yidong <cyd@stupidchicken.com>
398
1373f3be 399 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 400
f8354c6e
CY
401 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
402
b5b98ff4
CY
403 * buffer.c (set_buffer_internal_1)
404 (swap_out_buffer_local_variables): Check for unbound local
405 variables (Bug#4138).
406
8b9fc636
EZ
4072009-08-14 Eli Zaretskii <eliz@gnu.org>
408
409 * process.c (create_pty): Fix last change.
410
ce959360
CY
4112009-08-13 Chong Yidong <cyd@stupidchicken.com>
412
413 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
414 (xbm_load_image): Caller changed.
64b807c9 415 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 416
c7baf7e9
NR
4172009-08-13 Nick Roberts <nickrob@snap.net.nz>
418
419 * process.c (create_pty): New function.
420 (Fstart_process): Use it to allow Emacs to just associate a pty
421 with the buffer. See associated change in gdb-mi.el.
422 (list_processes_1): Deal with no program name.
423 (start_process_unwind): Use pid == -2 to mean no process.
424
1ac9108a
SM
4252009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
426
427 * cmds.c (nonundocount): New global variable.
428 (keys_of_cmds): Initialize it.
429 (Fself_insert_command): Use it to combine upto 20 sequential chars
430 into a single undo entry, just like the Qself_insert_command code in
431 keyboard.c does.
432 Call frame_make_pointer_invisible, also like the Qself_insert_command
433 code in keyboard.c does.
434 * keyboard.c (command_loop_1): Use the new global nonundocount rather
435 than its own local replacement for it.
436
e267324c
KR
4372009-08-10 Ken Raeburn <raeburn@raeburn.org>
438
1ac9108a 439 * fns.c (concat): Don't re-set string length to its current value.
77437343 440
1ac9108a
SM
441 * coding.h (decode_coding_string, encode_coding_string):
442 Use SBYTES macro.
f0bed503 443
1ac9108a 444 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
445 (doprnt): Merge with doprnt1, discarding lispstrings code.
446 * lisp.h (doprnt_lisp): Don't declare.
447
416e006d
JL
4482009-08-07 Juri Linkov <juri@jurta.org>
449
450 * puresize.h (BASE_PURESIZE): Increase to 1270000.
451
6f7d5780
DN
4522009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
453
454 * print.c (syms_of_print): Undo previous change.
455
f19a0f5b
TZ
4562009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
457
458 * lread.c (read1, syms_of_lread): Read hashtables back from the
459 readable format.
460
461 * print.c (print_preprocess, print_object): Print hashtables fully
462 and readably.
463 (syms_of_print): Provide 'hashtable-print-readable.
464
b9173dc2
AR
4652009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
466
467 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
468 no family set.
469 (nsfont_open): Handle case when entity has no family.
470
1586503c
AR
4712009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
472
473 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
474 element, not a list, for match case.
475
087048cd
KH
4762009-07-28 Kenichi Handa <handa@m17n.org>
477
478 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
479 rigidly.
480
481 * xfont.c (xfont_list_pattern): Don't ignore the return value of
482 font_parse_xlfd. Check font properties more rigidly.
483
780c2506
DN
4842009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
485
31fd7c5c
JB
486 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
487 bsd-common.h.
780c2506 488
a8c0cc18
KH
4892009-07-27 Kenichi Handa <handa@m17n.org>
490
491 * xfaces.c (face_with_height): Call font_clear_prop.
492
4fbe2306
CY
4932009-07-26 Chong Yidong <cyd@stupidchicken.com>
494
111d9af3
CY
495 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
496
497 * xterm.c (x_term_init): Use Qx.
498
4fbe2306
CY
499 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
500
1ac9108a 501 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
502 (ns_get_color): Revert 2009-07-16 change.
503
beb0b7f9
EZ
5042009-07-25 Eli Zaretskii <eliz@gnu.org>
505
506 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 507 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 508
2baf5e76
KR
5092009-07-25 Ken Raeburn <raeburn@raeburn.org>
510
1ac9108a
SM
511 * coding.h (decode_coding_string, encode_coding_string):
512 Use SCHARS macro.
8890e5f5 513
2baf5e76 514 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 515 (load_depth): Delete.
2baf5e76
KR
516 (Qload_in_progress): New variable.
517 (load_unwind): Don't reference load_depth or load_in_progress.
518 (Fload): Likewise; specbind Qload_in_progress instead.
519 (init_lread): Don't initialize load_depth.
520 (syms_of_lread): Initialize and protect Qload_in_progress.
521
1395c6f5
AR
5222009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
523
524 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
525
4e2f36cf
AR
5262009-07-23 Yavor Doganov <yavor@gnu.org>
527
528 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
529
5dd9a6f7
AR
5302009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
531
532 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
533 Bugs 3792, 3720, 2402.
534 (ns_lookup_indexed_color): Check for bad index.
535 (ns_index_color): Init unused slot to 0.
536 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
537 Bug 3714, possibly 3082.
5dd9a6f7 538
c902b920
JR
5392009-07-22 Jason Rumney <jasonr@gnu.org>
540
1ac9108a
SM
541 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
542 Position IME window at cursor (Bug#2570).
c902b920
JR
543 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
544 (globals_of_w32fns): Dynamically load functions required above.
545
546 * w32term.c (w32_draw_window_cursor): Send message to reposition
547 any IME window.
548
090101cf
CY
5492009-07-21 Chong Yidong <cyd@stupidchicken.com>
550
551 * fileio.c: Revert 2009-07-16 changes.
552 (Vauto_save_include_big_deletions): New variable.
553 (Fdo_auto_save): Disable auto-save only if
554 auto-save-include-big-deletions is nil.
555
e6583e3d
CY
5562009-07-21 Chong Yidong <cyd@stupidchicken.com>
557
558 * xdisp.c (move_it_to): For continued lines ending in a tab, take
559 the overflowed pixels into account (Bug#3879).
560
ece435a5
KR
5612009-07-21 Ken Raeburn <raeburn@raeburn.org>
562
563 * lread.c (load_depth): New variable.
564 (Fload, load_unwind, init_lread): Set it to the load recursion
565 depth; set load_in_progress as a simple boolean based on the
566 current load_depth. (Bug#3892)
567
40b2d973
AR
5682009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
569
570 * nsfont.m (ns_has_attribute): Remove.
571 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
572
10be7e0d
JL
5732009-07-18 Juri Linkov <juri@jurta.org>
574
575 * process.c (Fset_process_query_on_exit_flag): Mention killing
576 a buffer in docstring.
577
fa055055
KH
5782009-07-17 Kenichi Handa <handa@m17n.org>
579
580 * casetab.c (shuffle): Fix the logic of setting up the cycle.
581
042f7b69
YM
5822009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
583
584 * nsfns.m (Fns_set_alpha): Remove function.
585 (syms_of_nsfns): Don't defsubr it.
586
587 * nsterm.m (ns_get_color): Remove incompatible color formats.
588 (ns_color_to_lisp): Generate #rrggbb color format string.
589
4be941e3
RS
5902009-07-16 Richard Stallman <rms@gnu.org>
591
592 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
593 (Fset_buffer_auto_saved): Handle save_length = -2.
594
4e6b227d
CY
5952009-07-16 Chong Yidong <cyd@stupidchicken.com>
596
597 * xterm.c (Qx_gtk_map_stock): New var.
598
599 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
600 of calling intern each time.
601
a1856973
YM
6022009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
603
604 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
605 does tiling.
606
607 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
608
497e54d8
KH
6092009-07-14 Kenichi Handa <handa@m17n.org>
610
72d36834
KH
611 * font.c (font_vconcat_entity_vectors): New function.
612 (struct font_sort_data): New member font_driver_preference.
613 (font_compare): Check font_driver_preference.
614 (font_sort_entities): The format of the first argument changed.
615 (font_delete_unmatched): Likewise.
616 (font_list_entities): The return type changed.
617 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
618 (font_find_for_lface): Adjuste for the above changes.
619 Don't suppress the checking of C even if the repertory supports it.
620 (Flist_fonts): Adjust for the above changes.
72d36834 621
1ac9108a
SM
622 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
623 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
624 Reject a font who has adstyle property that is different from a
625 langname derived from registry property.
1ac9108a 626 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 627
b6046155
EZ
6282009-07-13 Eli Zaretskii <eliz@gnu.org>
629
630 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
631 local copy of dirfilename.
632
fb6b6049
KH
6332009-07-13 Kenichi Handa <handa@m17n.org>
634
e2402a5e
KH
635 * chartab.c (sub_char_table_ref_and_range): Fix the range check
636 against max_char.
637
fb6b6049
KH
638 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
639 calling XSYMBOL (sym).
640
65156807
EZ
6412009-07-11 Eli Zaretskii <eliz@gnu.org>
642
1ac9108a
SM
643 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
644 New function.
645 (directory_files_internal) [WINDOWSNT]:
646 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
647 the filesystem of the directory is fast or slow.
648
649 * w32.c (logon_network_drive): Don't assume PATH is an absolute
650 file name.
651 (is_slow_fs): New function.
652 (stat): Use it to determine whether to issue more system calls to
653 get accurate file attributes, when w32-get-true-file-attributes is
654 `local'.
655
e0ab5fcf
JD
6562009-07-10 Jan Djärv <jan.h.d@swipnet.se>
657
658 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 659 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
660 parameter font-parameter as default to the font dialog.
661
784ceded
KH
6622009-07-10 Kenichi Handa <handa@m17n.org>
663
664 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
665
fb8edc0b
EZ
6662009-07-09 Eli Zaretskii <eliz@gnu.org>
667
1ac9108a 668 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 669
fb8edc0b
EZ
670 * w32.c (stat): Treat UNC file names as residing on remote
671 drives. (Bug#3542)
672
635c75b1
KH
6732009-07-09 Kenichi Handa <handa@m17n.org>
674
675 * fontset.c (fontset_find_font): Fix previous change.
676
c1d5ce94
MA
6772009-07-08 Michael Albinus <michael.albinus@gmx.de>
678
679 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
680 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
681 error flag.
682
edb61b39
KH
6832009-07-08 Kenichi Handa <handa@m17n.org>
684
374bf7e4
KH
685 * fontset.c (fontset_find_font): Fix the logic of handling
686 charset_matched.
687 (font_for_char): Delete unused var.
688 (generate_ascii_font_name): Delete it.
689
edb61b39
KH
690 * coding.h (JIS_TO_SJIS2): Fix the code range check.
691
692 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
693 (encode_coding_sjis): Fix the code range check.
694
0f3f018c
CY
6952009-07-07 Chong Yidong <cyd@stupidchicken.com>
696
697 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
698 (Fexpand_file_name): Copy string data properly (Bug#3772).
699
fcaf6f3a
JD
7002009-07-07 Jan Djärv <jan.h.d@swipnet.se>
701
702 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
703 first MapNotify.
704
6809ca75
KH
7052009-07-07 Kenichi Handa <handa@m17n.org>
706
707 * character.h (unibyte_has_multibyte_table): Delete extern.
708 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
709
710 * charset.c (Fset_charset_priority): Update charset_unibyte.
711 (syms_of_charset): Initialize charset_unibyte.
712
713 * character.c (unibyte_has_multibyte_table): Delete it.
714 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
715 charset_unibyte.
716 (multibyte_char_to_unibyte_safe): Likewise.
717 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
718
1ac9108a 719 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
720 (x_produce_glyphs): Likewise.
721
722 * .gdbinit (xcharset): Fix the treating $arg0.
723
ad9e2d54
EZ
7242009-07-04 Eli Zaretskii <eliz@gnu.org>
725
726 Emulation of `getloadavg' on MS-Windows.
727 * w32.c: Include float.h
728 (g_b_init_get_native_system_info, g_b_init_get_system_times)
729 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
730 (get_native_system_info, get_system_times): New functions.
731 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
732 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
733 (globals_of_w32): Initialize g_b_init_get_native_system_info,
734 g_b_init_get_system_times, and num_of_processors.
735
0a3472c7
JR
7362009-07-03 Jason Rumney <jasonr@gnu.org>
737
738 * w32term.c (w32_initialize): Use standard types.
739
80904120
EZ
7402009-07-03 Eli Zaretskii <eliz@gnu.org>
741
742 * dired.c (Ffile_attributes): Decode user and group names by the
743 locale's encoding. (Bug#3443)
744
6978862d
DN
7452009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
746
f8d23104
DN
747 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
748 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
749
750 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
751
752 * term.c (init_tty): Remove spurious #ifdef.
753
6978862d
DN
754 * m/mips.h: Mention this file is also used for netbsd.
755 * m/pmax.h: Remove file.
756
e044e4fc
JD
7572009-07-03 Jan Djärv <jan.h.d@swipnet.se>
758
759 * xterm.h (struct x_display_info): Add invisible_cursor.
760 (struct x_output): Add current_cursor.
761
762 * xterm.c (XTtoggle_invisible_pointer): New function.
763 (x_define_frame_cursor): Don't define cursor if invisible or the
764 same as before. Set current_cursor.
765 (x_create_terminal): Set toggle_invisible_pointer_hook.
766
767 * xfns.c (make_invisible_cursor): New function.
768 (x_set_mouse_color): Call make_invisible_cursor.
769 Set current_cursor.
770 (x_window): Set current_cursor.
771
772 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
773
774 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
775 inserting a character.
776 (read_avail_input): Call frame_make_pointer_visible.
777
778 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
779 (frame_make_pointer_invisible, frame_make_pointer_visible):
780 New functions.
e044e4fc
JD
781 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
782
783 * frame.h: Declare frame_make_pointer_invisible and
784 frame_make_pointer_visible.
785 (struct frame): Add pointer_invisible.
786
574c8efa
JD
7872009-07-02 Jan Djärv <jan.h.d@swipnet.se>
788
7b507248
JD
789 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
790 frame isn't visible.
791 (xg_frame_resized): If width/height is -1, get size of window
792 from X server.
793
794 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
795 for MapNotify.
796
835bdaa7 797 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 798 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 799 (flush_and_sync): Reintroduce.
574c8efa 800
3f1c6666 8012009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 802
31fd7c5c 803 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
804
805 * xterm.c (x_handle_net_wm_state): Also look for sticky.
806 (x_term_init): Initialize Xatom_net_wm_state_sticky.
807
808 * frame.h: Declare Qsticky.
809
cad9ef74
JD
810 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
811
812 * nsfns.m (ns_frame_parm_handlers): Ditto.
813
814 * frame.c: Declare Qsticky.
815 (frame_parms): Add sticky.
816
817 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
818
819 * xterm.h: Declare x_set_sticky.
820
821 * xterm.c (x_set_sticky): New function.
822
69b16610
JD
823 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
824 (xg_tool_bar_menu_proxy): Attach enter/leave events to
825 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
826
827 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
828
829 * frame.c: Qmaximized is new.
830 (x_set_frame_parameters): Do not handle fullscreen specially.
831 Only set width and height if explicitly set.
832 (x_set_fullscreen): Handle Qmaximized.
833 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
834 (syms_of_frame): Initialize Qmaximized.
835
1ac9108a
SM
836 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
837 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
838
839 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
840 for Expose event. Add call to x_check_fullscreen for MapNotify event.
841 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
842 set gravity to NorthWestGravity when USE_GTK.
843 (set_wm_state): New function.
31fd7c5c 844 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
845 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
846 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 847 or the case when no window manager is running. That means remove calls
3f1c6666
JD
848 to x_real_positions and x_fullscreen_adjust.
849
850 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
851 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
852 flush_and_sync.
853 (xg_height_changed): New function.
854 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
855 and gtk_window_set_policy. Set frame gravity after parsing the
856 geometry string.
3f1c6666
JD
857 (xg_update_frame_menubar, free_frame_menubar)
858 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
859 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
860 Remove calls to xg_frame_set_char_size.
861
fd503d99
KH
8622009-07-01 Kenichi Handa <handa@m17n.org>
863
864 * keyboard.c (decode_keyboard_code): New function.
865 (tty_read_avail_input): Decode the input bytes if necessary.
866
1ac9108a
SM
867 * coding.c (setup_coding_system):
868 Initialize coding->carryover_bytes to 0.
fd503d99
KH
869 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
870 use Qno_conversion.
871
24ed93fb
YM
8722009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
873
874 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
875
99061dfc
CY
8762009-06-30 Chong Yidong <cyd@stupidchicken.com>
877
1ac9108a 878 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 879
ff90fbde
JR
8802009-06-30 Jason Rumney <jasonr@gnu.org>
881
882 * w32term.c (w32_initialize): Use GetModuleHandle for library that
883 is already loaded.
884 Set user model ID if supported (bug#1849).
885
5f445726
JM
8862009-06-29 Jim Meyering <meyering@redhat.com>
887
888 Remove useless if-before-xfree test.
889 * nsfont.m (nsfont_close): Remove useless test.
890 * term.c (delete_tty): Likewise.
891 * w32.c (system_process_attributes): Likewise.
892 * w32font.c (w32font_close): Likewise.
893 * xfaces.c (x_free_gc): Likewise.
894 * xselect.c (buffer): Likewise.
895
b9607587
AS
8962009-06-28 Andreas Schwab <schwab@linux-m68k.org>
897
898 * process.c (send_process): Keep decoded string in a local
899 variable and protect it from GC. (Bug#3521)
900
89ba96f4
EZ
9012009-06-28 Eli Zaretskii <eliz@gnu.org>
902
903 * term.c (create_tty_output) [MSDOS]: #ifdef away.
904 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
905
098a1589
CY
9062009-06-28 Chong Yidong <cyd@stupidchicken.com>
907
485422be
CY
908 * xdisp.c (start_display, handle_face_prop)
909 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
910 (redisplay_window, try_window_id, produce_image_glyph):
911 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 912
098a1589
CY
913 * xterm.c (x_update_window_begin, x_new_focus_frame)
914 (x_scroll_bar_handle_click, handle_one_xevent)
915 (handle_one_xevent, XTread_socket, x_focus_on_frame)
916 (x_make_frame_visible, x_make_frame_invisible)
917 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
918 code chunks that are now obsolete.
919
78c38319
MA
9202009-06-28 Michael Albinus <michael.albinus@gmx.de>
921
922 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
923 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
924 for hours, when optimzation is enabled.
925 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
926 (xd_read_message): Make them static.
927
4189ed40
CY
9282009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
929
930 * term.c (turn_on_face): Allow simultaneously bold and dim
931 terminal faces (Bug#3530).
932
cd9b5e16
CY
9332009-06-27 Chong Yidong <cyd@stupidchicken.com>
934
4e23bedb
CY
935 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
936
cd9b5e16
CY
937 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
938 truncation glyphs (Bug#3686).
939
07cc3c35
GM
9402009-06-27 Glenn Morris <rgm@gnu.org>
941
942 * m/pmax.h: Restore file, with only netbsd portions.
943
31fd7c5c 9442009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 945
cd9b5e16 946 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 947
42d4a64f
KH
9482009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
949
950 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
951 the arg FORCE_SYMBOL.
952
930fe55b 9532009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
954
955 * fontset.c (fontset_find_font): When a usable rfont_def is found
956 in a fallback font-group, make it the first element of the group.
957
57ebc3fd
CY
9582009-06-24 Chong Yidong <cyd@stupidchicken.com>
959
960 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
961
f084f942
KH
9622009-06-24 Kenichi Handa <handa@m17n.org>
963
964 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
965 set for C.
966 (fontset_font): Record the availability of a font for C both in
967 the realized fontsets of the current one and the default one.
968
2f686c87
DN
9692009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
970
971 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
972 conditional, it is always defined on AIX.
973
666e158e
MB
9742009-06-23 Miles Bader <miles@gnu.org>
975
976 * window.c (Vrecenter_redisplay): New variable.
977 (syms_of_window): Initialize it.
978 (Qtty): New extern declaration.
979 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
980
c6da7cd2
JM
9812009-06-23 Jim Meyering <meyering@redhat.com>
982
1ac9108a
SM
983 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
984 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 985 pointer dereferences are guaranteed to be valid.
c6da7cd2 986
678dca3d
KH
9872009-06-23 Kenichi Handa <handa@m17n.org>
988
74d75424
KH
989 * emacs.c (main): Call init_font ().
990
991 * font.h (Vfont_log): Extern it.
992 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
993
994 * font.c (font_sort_entities, font_list_entities)
995 (font_matching_entity, font_open_entity)
996 (font_close_object): Change font_add_log to FONT_ADD_LOG.
997 (Vfont_log): Delete static.
998 (font_log_env_checked): Delete this variable.
999 (font_add_log): Don't check font_log_env_checked.
1000 (font_deferred_log): Check Vfont_log.
1001 (init_font): New function.
1002
678dca3d
KH
1003 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
1004
1005 * w32font.c: Change font_add_log to FONT_ADD_LOG.
1006
1007 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
1008
1009 * xfont.c: Change font_add_log to FONT_ADD_LOG.
1010
1011 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
1012 (face_for_char): Don't call font_deferred_log here.
1013 (font_for_char): Likewise.
1014
8a668709
CY
10152009-06-22 Chong Yidong <cyd@stupidchicken.com>
1016
9a01ee33
CY
1017 * w32term.c (x_draw_glyph_string): Use the glyph string's width
1018 rather than its background_width for drawing the overline and
1019 underline (Bug#489).
1020
1021 * xterm.c (x_draw_glyph_string): Use the glyph string's width
1022 rather than its background_width for drawing the overline and
1023 underline (Bug#489).
ec7c9926
CY
1024 (xg_default_icon_file): New variable.
1025 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
1026 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 1027
8a668709
CY
1028 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
1029 (load_overlay_strings): Remove externs.
1030 (fast_find_position): Function deleted.
1031 (mouse_face_from_buffer_pos): New function, based on
1032 fast_find_position. Correctly handle before-strings,
1033 display-strings, and after-strings (Bug#1220).
1034 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
1035
4d4c02d8
CY
10362009-06-21 Chong Yidong <cyd@stupidchicken.com>
1037
1ac9108a 1038 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
1039 (move_it_in_display_line_to, move_it_in_display_line_to)
1040 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
1041
70243478
CY
10422009-06-21 Chong Yidong <cyd@stupidchicken.com>
1043
1044 * Branch for 23.1.
1045
13087e59
JR
10462009-06-21 Jason Rumney <jasonr@gnu.org>
1047
1048 * w32term.c (keyboard_codepage): New static variable.
1049 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
1050 (w32_read_socket) [WM_CHAR]: Use it to decode character
1051 input (bug#3237).
1052 (w32_initialize): Initialize it.
1053 (codepage_for_locale): New function.
1054
4735b74e
KR
10552009-06-20 Ken Raeburn <raeburn@raeburn.org>
1056
1057 * process.c (status_message): Pass Faset index argument as a lisp
1058 object, so as to work with USE_LISP_UNION_TYPE.
1059
0e727afa
YM
10602009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1061
1062 * coding.c (Ffind_coding_systems_region_internal):
1063 Cache checked characters.
1064
cf299835
KH
10652009-06-18 Kenichi Handa <handa@m17n.org>
1066
1ac9108a 1067 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 1068
90f20d94
AS
10692009-06-18 Andreas Schwab <aschwab@redhat.com>
1070
1071 * xdisp.c (redisplay_internal): Check that the frame is still
1072 live after redisplay of its windows.
1073 (redisplay_windows): Check that the window is still live.
1074
7f1faf1c
KH
10752009-06-17 Andreas Schwab <schwab@linux-m68k.org>
1076
1077 * coding.c (detect_coding_utf_16): Fix previous change.
1078
cc13543e
KH
10792009-06-16 Kenichi Handa <handa@m17n.org>
1080
1081 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
1082 UTF-16 by checking the dispersion of Eth and Oth bytes.
1083
977b85f4
AS
10842009-06-15 Andreas Schwab <schwab@linux-m68k.org>
1085
1086 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
1087
66bd43d1
KH
10882009-06-15 Kenichi Handa <handa@m17n.org>
1089
1090 * process.c (status_message): Fix previous change. Be sure to
1091 decode a localized string.
1092
cb5ca9c5
YM
10932009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1094
1095 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
1096 add comment explaining why.
1097
ec7709ba 10982009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 1099
ec7709ba 1100 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 1101
4b7f335c
AR
11022009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
1103
1104 * nsfont.m (ns_attribute_value): Remove.
1105 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
1106 (ns_has_attribute): Shrink the normal range.
1107 (ns_findfonts): Don't worry about requested spec in determining
1108 need for synthItal.
e41820ee 1109 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 1110
73b26103
SZ
11112009-06-14 Seiji Zenitani <zenitani@mac.com>
1112
1113 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
1114
5753e4da
KH
11152009-06-11 Kenichi Handa <handa@m17n.org>
1116
1117 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
1118 overhang for the static composition case.
1119
3561b671
KH
11202009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1121
5753e4da
KH
1122 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
1123 overhang for the automatic composition case.
1124
3561b671
KH
1125 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
1126 composition case.
1127
852bbd41
CY
11282009-06-10 Chong Yidong <cyd@stupidchicken.com>
1129
1130 * xdisp.c (get_next_display_element): When handling wrap-prefix
1131 and line-prefix, treat \n as a control character (bug#3502).
1132
9903d1e6
KH
11332009-06-10 Kenichi Handa <handa@m17n.org>
1134
1135 * font.c (font_parse_family_registry): Fix for one-char foundry.
1136 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
1137
0bcbaaaa
CY
11382009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
1139
1140 * process.c (status_message): Fix handling of multibyte signal
1141 string (Bug#3499).
1142
40aa3f13
JM
11432009-06-09 Jim Meyering <meyering@redhat.com>
1144
1f80c7e2
CY
1145 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
1146 color name is missing.
40aa3f13 1147
72d51285
KH
11482009-06-09 Kenichi Handa <handa@m17n.org>
1149
1150 * charset.c (Fmap_charset_chars): In docstring, state clearly that
1151 FROM-CODE and TO-CODE are codepoints of CHARSET.
1152
c1d04d84
AR
11532009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
1154
1155 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
1156
11572009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
1158
1159 Changes to support :script/:lang/:otf in NS font driver.
1160 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
1161 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
1162 indicate not part of font driver interface, and change callers.
1163 (ns_get_family): Remove pointless null check.
1164 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
1165 ns_spec_to_descriptor, ns_descriptor_to_entity.
1166 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
1167 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
1168 (ns_spec_to_descriptor, ns_descriptor_to_entity)
1169 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
1170 (ns_get_req_script, ns_accumulate_script_ranges)
1171 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
1172 New functions.
1173 (nsfont_list, nsfont_match): Use ns_findfonts.
1174 (nsfont_open): Use font descriptor instead of traits.
1175 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
1176 (dump_glyphstring): Rename to ns_dump_glyphstring.
1177
c7eb9816
AR
1178 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
1179
c1d04d84
AR
1180 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
1181
1182 * fontset.c (fontset_from_font): Remove NS-specific code.
1183
ec7709ba 11842009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
1185
1186 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
1187 nonactive windows.
1188
31fd7c5c 11892009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 1190
1ac9108a 1191 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 1192
68852c13 11932009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
1194
1195 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
1196
6756cd1d
CY
11972009-06-07 Chong Yidong <cyd@stupidchicken.com>
1198
1199 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
1200 account for the overflowing of newlines into the last glyph on the
1201 display line (Bug#3482).
1202
28bf482a
DR
12032009-06-05 David Reitter <david.reitter@gmail.com>
1204
ec7709ba
JB
1205 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
1206 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
1207 Fns_selection_exists_p, Fns_selection_owner_p.
1208
fdb55376
JR
12092009-06-03 Jason Rumney <jasonr@gnu.org>
1210
1211 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
1212 available. (Bug#3379)
1213
05129fbe
KH
12142009-05-29 Kenichi Handa <handa@m17n.org>
1215
1ac9108a
SM
1216 * coding.c (get_translation_table):
1217 Check Venable_character_translation.
05129fbe 1218
ec7709ba 12192009-05-26 David Reitter <david.reitter@gmail.com>
15891144 1220
ec7709ba
JB
1221 * nsterm.m (ns_raise_frame): Only raise frame if visible.
1222 (x_make_frame_visible): Move frame to front rather than calling
15891144 1223 ns_raise_frame().
ec7709ba 1224 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 1225 isn't key window.
ec7709ba 1226 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
1227 drawRect may be called by NSView even if the frame is hidden.
1228
ec7709ba
JB
1229 * nsfns.m (Fx_create_frame): Follow other ports in
1230 determining visibility; default to t. Ensure async_visible is set.
15891144 1231
21f73755
EZ
12322009-05-23 Eli Zaretskii <eliz@gnu.org>
1233
1234 * dired.c (Ffile_attributes): Doc fix.
1235
34001e41
CY
12362009-05-22 Chong Yidong <cyd@stupidchicken.com>
1237
1238 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
1239
46306a17
SM
12402009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
1241
1242 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
1243 and xfont_scratch_props.
1244 (syms_of_xfont): Do it here instead.
1245 (xfont_find_ccl_program): Delete, unused.
1246 (xfont_open): Delete unused var `i'.
1247
ef6e0694
KH
12482009-05-21 Kenichi Handa <handa@m17n.org>
1249
1250 * fontset.c (Qlatin): Don't make it static.
1251
46306a17
SM
1252 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
1253 New functions.
ef6e0694
KH
1254 (xfont_scripts_cache, xfont_scratch_props): New variables.
1255 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
1256 (xfont_list_pattern): Argument changed. Callers changed.
1257 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
1258 (xfont_list): Don't reject a font spec with :script property.
1259 (xfont_has_char): Fix setting of encoding.
1260 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
1261 xfont_scratch_props.
1262
12632009-05-19 Kenichi Handa <handa@m17n.org>
1264
46306a17 1265 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
1266 Callers changed.
1267
12682009-05-18 Kenichi Handa <handa@m17n.org>
1269
1270 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
1271
ac71ced7
SM
12722009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
1273
1274 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
1275 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
1276
1c6d1051
YM
12772009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1278
1279 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
1280 (x_delete_terminal): Dissociate resource database from display and
1281 then call XrmDestroyDatabase before closing display.
1282
9b9b779c
AR
12832009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
1284
1285 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
1286 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
1287 whether selected frame is viable before raising it (based on patch
1288 by David Reitter), and improve commentary.
1289 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 1290
cccd42d5
KH
12912009-05-15 Kenichi Handa <handa@m17n.org>
1292
1293 * font.c (Ffont_spec): Check arguments.
1294
337fbd17
CY
12952009-05-14 Chong Yidong <cyd@stupidchicken.com>
1296
1297 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
1298 weight when testing attributes (Bug#3282).
1299
47a6002f
JD
13002009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1301
1302 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
1303 what we expect to get in the next ConfigureNotify event.
1304
9cb363db
YM
1305 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
1306 before Xft one (Bug#1696).
1307
b9126609
CY
13082009-05-07 David Reitter <david.reitter@gmail.com>
1309
1310 * nsfns.m (Fx_display_planes): Compute bitplanes using
1311 NSBitsPerPixelFromDepth (Bug#3207).
1312
27a69fd9
CY
13132009-05-10 Chong Yidong <cyd@stupidchicken.com>
1314
1315 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
1316
00f37552
TTN
13172009-05-10 Ulrich Mueller <ulm@gentoo.org>
1318
1319 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
1320
2d82a920
DR
13212009-05-07 David Reitter <david.reitter@gmail.com>
1322
ec7709ba
JB
1323 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
1324 Respect mouse face background.
2d82a920 1325
46b0d52d
DR
13262009-05-07 David Reitter <david.reitter@gmail.com>
1327
ec7709ba
JB
1328 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
1329 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
1330 in ns_update_begin and ns_update_end.
1331
ce1b23bb
SM
13322009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
1333
5996e1b7
SM
1334 * nsfns.m (ns_get_screen): Rewrite.
1335 Don't presume selected-frame is of type `ns'.
1336
ba98e3a0
SM
1337 * font.c (font_update_drivers): Sanity fallback to avoid disabling
1338 all drivers.
1339
ce1b23bb
SM
1340 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
1341
bcda200f
YM
13422009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1343
1344 * keyboard.h (add_user_signal): Fix typo in extern.
1345
1346 * lisp.h (add_user_signal): Remove extern.
1347
1348 * unexelf.c (unexec): Consider a section to precede the .bss section
1349 if its addresses overlap that of .bss.
1350 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
1351 instead of dumping process.
1352
864660a2
SM
13532009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
1354
1355 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
1356
50da4e56
SM
13572009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
1358
1359 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
1360
51520a1a
DN
13612009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
1362
1363 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
1364 any statements.
1365
409ea3a1
AS
13662009-05-02 Andreas Schwab <schwab@linux-m68k.org>
1367
59c4c60f
AS
1368 * process.c (read_process_output): Make sure the current buffer is
1369 always restored.
1370
409ea3a1
AS
1371 * coding.c (record_conversion_result): Don't modify
1372 Vlast_code_conversion_error for successful result.
1373 (alloc_destination): Don't clobber conversion result. (Bug#1650)
1374
56f00ed2
KH
13752009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
1376
1377 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 1378 (load_charset_map): Remove unnecessary code.
56f00ed2 1379
4491c9d2
DR
13802009-04-30 David Reitter <david.reitter@gmail.com>
1381
35f5b128 1382 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
1383 through f24.
1384
6970f632
CY
13852009-04-30 Chong Yidong <cyd@stupidchicken.com>
1386
1387 * xfaces.c (face_at_buffer_position): New arg base_face_id.
1388
1389 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
1390 face_at_buffer_position.
1391 (face_before_or_after_it_pos, get_next_display_element)
1392 (note_mouse_highlight): Update face_at_buffer_position call.
1393
1394 * term.c (term_mouse_highlight):
1395 * msdos.c (IT_note_mouse_highlight):
1396 * fontset.c (Finternal_char_font):
35f5b128 1397 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
1398
1399 * dispextern.h (face_at_buffer_position): Update prototype.
1400
0c616f63
KH
14012009-04-30 Kenichi Handa <handa@m17n.org>
1402
35f5b128 1403 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 1404
ad3aaf33
AS
14052009-04-29 Andreas Schwab <schwab@linux-m68k.org>
1406
1407 * callproc.c (Fcall_process): Fix GC protection. Make sure
1408 current buffer is always restored.
1409
c3c963a0
YM
14102009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1411
1412 * atimer.c (init_atimer): Also clear stopped_atimers.
1413
1414 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
1415
7e3386cb
YM
1416 * process.c (create_process): Clean up merger residues of
1417 2008-07-17 change.
1418
91f68422
CY
14192009-04-29 Ulrich Mueller <ulm@gentoo.org>
1420
1421 * lread.c (Vread_circle): New variable.
1422 (read1): Disable recursive read if Vread_circle is nil.
1423
24b34550
KH
14242009-04-29 Kenichi Handa <handa@m17n.org>
1425
1426 * fontset.h (set_default_ascii_font): Delete extern.
1427
1428 * fontset.c (set_default_ascii_font): Delete this unused function.
1429
1430 * frame.c (x_set_font): When ARG is a font-object, check if the
1431 font-object matches with the ASCII font-spec of the frame's
9c358bda 1432 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 1433
77bf07e1
AS
14342009-04-28 Andreas Schwab <schwab@linux-m68k.org>
1435
1436 * fns.c (Flocale_info): Protect vector from GC during decoding.
1437
1438 * process.c (Fstart_process): Protect argv strings from GC during
1439 encoding.
1440
2c55aacf
AS
14412009-04-27 Andreas Schwab <schwab@linux-m68k.org>
1442
1443 * sysdep.c: Include <ctype.h>.
1444
b892d3c9
DR
14452009-04-27 David Reitter <david.reitter@gmail.com>
1446
35f5b128 1447 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
1448 Remove commented-out code.
1449
9d0644c4
JB
14502009-04-26 Johan Bockgård <bojohan@gnu.org>
1451
1452 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
1453
b7053016
JR
14542009-04-25 Jason Rumney <jasonr@gnu.org>
1455
1456 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
1457
4e8231f3
YM
14582009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1459
1460 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
1461 Swap bytes in short integer if fringe bitmap width > 8.
1462
493dcf2c
KH
14632009-04-23 Kenichi Handa <handa@m17n.org>
1464
1465 * xfaces.c (Fx_list_fonts): If a font size is specified in
1466 PATTERN, set it in returned scalable fonts.
1467
401e9e57
CY
14682009-04-22 Chong Yidong <cyd@stupidchicken.com>
1469
708e05dc
CY
1470 * keyboard.c (Fset_input_meta_mode): Doc fix.
1471
1472 * dispnew.c (Fsend_string_to_terminal): Doc fix.
1473
1ac9108a 1474 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
1475
1476 * coding.c (Fterminal_coding_system): Doc fix.
1477
1478 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
1479 (Fx_display_pixel_height, Fx_display_planes)
1480 (Fx_display_color_cells, Fx_server_max_request_size)
1481 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
1482 (Fx_display_mm_height, Fx_display_mm_width)
1483 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
1484 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
1485 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
1486 (check_x_display_info): Handle terminal objects instead of
1487 terminal ids.
1488
401e9e57
CY
1489 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
1490 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
1491 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
1492 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 1493
df80c7f0
KH
14942009-04-21 Kenichi Handa <handa@m17n.org>
1495
5a8f12af 1496 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 1497 (font_score): Check AVGWIDTH too.
908567ef 1498
df80c7f0
KH
1499 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
1500 worst case.
1ac9108a
SM
1501 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
1502 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 1503
705af33f
JR
15042009-04-19 Jason Rumney <jasonr@gnu.org>
1505
1506 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 1507 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
1508
1509 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
1510 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
1511 get_phys_cursor_geometry.
1512
b71ac3dd 1513 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
1514 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
1515 using get_phys_cursor_geometry.
1516
1517 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
1518 correctly calculated.
1519
dc2933eb
JD
15202009-04-19 Jan Djärv <jan.h.d@swipnet.se>
1521
1ac9108a
SM
1522 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
1523 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
1524 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
1525 is deprecated.
1526
973e7849
AS
15272009-04-18 Andreas Schwab <schwab@linux-m68k.org>
1528
1529 * font.c (font_put_frame_data): Use xfree instead of free.
1530
314d66f4
JB
15312009-04-17 Juanma Barranquero <lekktu@gmail.com>
1532
1533 * w32font.c (Qja, Qko): Remove declarations.
1534 (syms_of_w32font): Don't DEFSYM them.
1535
cf702558
CY
15362009-04-17 Chong Yidong <cyd@stupidchicken.com>
1537
1538 * font.c (Qja, Qko): Move definitions here from ftfont.c.
1539
1540 * font.h (Qja, Qko): Extern them.
1541
1542 * ftfont.c (Qja, Qko): Remove declarations.
1543
1544 * xfont.c (Qja, Qko): Remove declarations.
1545
b50504f5
KH
15462009-04-17 Kenichi Handa <handa@m17n.org>
1547
bde25748
KH
1548 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
1549 string from a vector to handle Latin-1 characters correctly.
1550
b50504f5
KH
1551 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
1552 entity even if the cache hits.
1553
f4646fff
AS
15542009-04-16 Andreas Schwab <schwab@linux-m68k.org>
1555
1556 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 1557 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 1558
e7deaab0
AS
1559 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
1560 * lisp.h: Adjust prototypes.
1561
0a0e7d49
CY
15622009-04-16 Chong Yidong <cyd@stupidchicken.com>
1563
1564 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
1565 change (Bug#3003).
1566
3c908a57
KH
15672009-04-16 Kenichi Handa <handa@m17n.org>
1568
1ac9108a 1569 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
1570
1571 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
1572 adstyle.
1573
1574 * ftfont.c (Qja, Qko): Don't make them static.
1575 (enum ftfont_cache_for): New enum.
1576 (fc_charset_table): Undo the previous change.
1577 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
1578 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
1579 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
1580 non-scarable font, try to get AVERAGE_WIDTH.
1581 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
1582 Change ft_face_cache from a list of a hash-table. Don't check
1583 `ja' and `ko' adstyle here.
1584 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
1585 FTFONT_CACHE_FOR_CHARET.
1586 (ftfont_get_charset): Undo the previous change.
1ac9108a 1587 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
1588 (ftfont_close): Likewise.
1589 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
1590
1591 * font.c (font_sort_entites): Change the meaning of the arg
1592 BEST-ONLY. Don't optimize for VEC of lenght 1.
1593 (font_select_entity): Just return the value of font_sort_entites.
1594
1595 * xfaces.c (merge_face_vectors): Reflect font properties in
1596 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
1597 font_clear_prop if a face attribute doesn't change.
1598
3c908a57
KH
1599 * charset.h (charset_ksc5601): Extern it.
1600
1601 * charset.c (charset_ksc5601): New variable.
1602 (Fdefine_charset_internal): Set charset_ksc5601.
1603 (init_charset_once): Initialize charset_ksc5601 to -1.
1604
d65859c3
DN
16052009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
1606
1607 * fileio.c (history_delete_duplicates): Remove unused declaration.
1608
1609 * callint.c (history_delete_duplicates): New declaration.
1610 (Fcall_interactively): Remove command history duplicates when
1611 history_delete_duplicates is true.
1612
3ba010e5
EZ
16132009-04-14 Eli Zaretskii <eliz@gnu.org>
1614
1615 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
1616
06f19b91
KH
16172009-04-14 Kenichi Handa <handa@m17n.org>
1618
1619 * font.c (Ffont_info): Fix docstring. Fix the second element of
1620 the returned value (bug#2949).
1621
2cce8bfc
CY
16222009-04-14 Chong Yidong <cyd@stupidchicken.com>
1623
1624 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
1625
d156542d
KH
16262009-04-14 Kenichi Handa <handa@m17n.org>
1627
1628 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
1629 encoding charset is ascii_compatible.
1630
1631 * charset.c (Fdefine_charset_internal): Make charset
1632 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
1633 code_offset is 0, and covers all ASCII characters.
1634
86fa089e
SM
16352009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
1636
1637 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
1638 (ns_string_to_pasteboard_internal):
1639 * nsmenu.m (process_dialog):
1640 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
1641 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
1642 * lisp.h (Fx_load_color_file): Declare.
1643
a8a3728b
KH
16442009-04-13 Kenichi Handa <handa@m17n.org>
1645
1ac9108a 1646 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
1647 (font_select_entity): Suppress the code to optimize for the same
1648 kind of fonts.
1649 (font_load_for_lface): Get a font that supports at least ASCII
1650 characters.
1651
1652 * ftfont.c (Qja, Qko): New variables.
1653 (fc_charset_table): Delete uniquifier data for iso8859-1.
1654 (ftfont_get_latin1_charset): New function.
1655 (get_adstyle_property): New function.
1656 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
1657 bitmap fonts.
1658 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
1659 Delete iso-8859-1 range from the charset of fonts whose adstyle is
1660 `ko' or `ja'.
1661 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 1662 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
1663 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
1664 property.
1665 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
1666 (syms_of_ftfont): DEFSYM Qja and Qko.
1667
483670b5
KH
16682009-04-09 Kenichi Handa <handa@m17n.org>
1669
12b55765
KH
1670 * charset.c (map_charset_chars): For a charset of `superset'
1671 method, fix calculation of code range.
1672
483670b5
KH
1673 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
1674 from the list of extra properties.
1675 (font_clear_prop): Be sure to delete `:name' font property.
1676
57d3b93b
KH
16772009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1678
b4b2c2ca
YM
1679 * dispnew.c (redraw_overlapping_rows): Fix detection of
1680 overlapping for topmost and bottommost rows.
1681
1ac9108a 1682 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 1683
472c3609
JR
16842009-04-06 Jason Rumney <jasonr@gnu.org>
1685
1686 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
1687
ab193662
KH
16882009-04-06 Kenichi Handa <handa@m17n.org>
1689
1690 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
1691
1692 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
1693
0c26f026
KH
16942009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1695
1696 * ftfont.c (ftfont_open): Fix checking of the return value of
1697 FT_Load_Char. Fix setting font->underline_thickness.
1698
e173bbce
CY
16992009-04-04 Chong Yidong <cyd@stupidchicken.com>
1700
1701 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
1702 (Fterminal_parameters, Fterminal_parameter)
1703 (Fset_terminal_parameter): In doc string, refer to terminal
1704 objects rather than terminal ids.
1705
693a2698
EZ
17062009-04-04 Eli Zaretskii <eliz@gnu.org>
1707
1708 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
1709 ret_lim_data. (Bug#2867)
1710
d5221487
CY
17112009-04-03 Chong Yidong <cyd@stupidchicken.com>
1712
1713 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
1714 so they don't get wider than the window, matching 2006-01-23
1715 change to the partner function in xdisp.c (Bug#2800).
1716
223509a3
KH
17172009-04-03 Kenichi Handa <handa@m17n.org>
1718
1719 * print.c (print_object): Make each lowest sub_char_table start a
1720 new line (Bug#2866).
1721
74fcd0b1
KH
17222009-04-02 Kenichi Handa <handa@m17n.org>
1723
1724 * fontset.c (fontset_font): Record no-font when a fontset
1725 explicitly tells not to try another font-specs.
1726
c542407d
SM
17272009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
1728
1729 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
1730
e3869731
KH
17312009-03-30 Kenichi Handa <handa@m17n.org>
1732
d8d2f142
KH
1733 * fontset.c (fontset_from_font): Specify only registry in a
1734 font-spec for all characters supported by that registry.
1735
e3869731
KH
1736 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
1737 even if HAVE_M17N_FLT is not defined.
1738
5da5f805
CY
17392009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
1740
1741 * ftfont.c: Conditionalize prototyping and use of
1742 ftfont_variation_glyphs.
1743
ab226c50
SM
17442009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
1745
9628fed7
SM
1746 * frame.c (delete_frame): Work around compiler bug.
1747
1748 * editfns.c (general_insert_function): Adjust to insdel.c changes.
1749 * insdel.c (prepare_to_modify_buffer, signal_before_change):
1750 Some more EMACS_INT.
1751 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
1752
1753 * xdisp.c (dump_glyph): Fix typo.
1754
ae19ba7c
SM
1755 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
1756 (adjust_markers_gap_motion, adjust_markers_for_delete)
1757 (adjust_markers_for_insert, adjust_point)
1758 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
1759 (make_gap, copy_text, count_size_as_multibyte, insert)
1760 (insert_and_inherit, insert_before_markers)
1761 (insert_before_markers_and_inherit, insert_1)
1762 (count_combining_before, count_combining_after, insert_1_both)
1763 (insert_from_string, insert_from_string_before_markers)
1764 (insert_from_string_1, insert_from_gap, insert_from_buffer)
1765 (insert_from_buffer_1, adjust_after_replace)
1766 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
1767 (replace_range_2, del_range, del_range_1, del_range_byte)
1768 (del_range_both, del_range_2, modify_region)
1769 (prepare_to_modify_buffer, signal_before_change)
1770 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
1771 for buffer positions and sizes.
1772 * lisp.h: Adjust prototypes accordingly.
1773
1774 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
1775 (non_regular_inserted, non_regular_nbytes, read_non_regular)
1776 (Finsert_file_contents): Use EMACS_INT for buffer positions.
1777
ab226c50
SM
1778 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
1779
46dfb8fb
JD
17802009-03-27 Jan Djärv <jan.h.d@swipnet.se>
1781
1782 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
1783 lines and columns so we keep the same pixel height and width.
1784
1785 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
1786 the property _NET_WM_STATE has changed.
46dfb8fb
JD
1787 (x_handle_net_wm_state): New function to update frame parameter
1788 fullscreen.
1789 (x_term_init): Initialize atoms for _NET_WM_STATE.
1790
1791 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
1792
d347e494
SM
17932009-03-27 Kevin Ryde <user42@zip.com.au>
1794
1795 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
1796 Gpm_GetEvent as an error that justifies closing the filedescriptor.
1797 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
1798 (Fgpm_mouse_stop): Pass that new parameter.
1799 * termhooks.h (close_gpm): Adjust prototype.
1800
84db11d6
SM
18012009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
1802
c95a5008
SM
1803 * lisp.h (Fx_focus_frame): Declare.
1804
84db11d6
SM
1805 * callint.c (Fcall_interactively): For '^' just delegate the work to
1806 handle-shift-selection.
1807 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
1808
0a1958d6
CY
18092009-03-24 Chong Yidong <cyd@stupidchicken.com>
1810
0bfdff23
CY
1811 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
1812
0a1958d6
CY
1813 * data.c (Qinteractive_form): New variable.
1814 (Finteractive_form): Use it.
1815
1816 * eval.c (Fcommandp): Use Qinteractive_form.
1817
58aec0d6
JR
18182009-03-24 Jason Rumney <jasonr@gnu.org>
1819
1820 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
1821 Calculate total size precisely. Decode environment variables
1822 before substituting. (Bug#38)
1823
553dd618
KH
18242009-03-24 Kenichi Handa <handa@m17n.org>
1825
1826 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 1827 encoding (Bug#2722).
553dd618 1828
c39ea606
JD
18292009-03-23 Jan Djärv <jan.h.d@swipnet.se>
1830
1831 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
1832 that gdpy is set.
1833
bc9b2b5e
AM
18342009-03-22 Alan Mackenzie <acm@muc.de>
1835
1836 * callint.c (Finteractive): Clarify the doc string - even
1837 promptless elements need \n separators.
1838
9f995a76
JR
18392009-03-22 Jason Rumney <jasonr@gnu.org>
1840
1841 * w32term.c (syms_of_w32term): Doc fix for
1842 x-use-underline-position-properties.
1843
22749e9a
EZ
18442009-03-21 Eli Zaretskii <eliz@gnu.org>
1845
1846 * w32.c (getpwuid): Change argument type to unsigned.
1847 (struct w32_id): Change type of `rid' member to unsigned.
1848 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
1849 argument ID to unsigned. All callers changed.
1850 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
1851
e00553bf
EZ
18522009-03-20 Eli Zaretskii <eliz@gnu.org>
1853
1854 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
1855 negative, produce a float value.
1856
1857 * dired.c (make_uid, make_gid): New functions.
1858 (Ffile_attributes): Use them to avoid negative UID and GID.
1859
f761d6b6
JB
18602009-03-20 Juanma Barranquero <lekktu@gmail.com>
1861
1862 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
1863 (syms_of_keyboard) <command-hook-internal, input-method-function>:
1864 Fix typos in docstrings.
1865
d507f8d7
KH
18662009-03-19 Kenichi Handa <handa@m17n.org>
1867
1868 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
1869 changed, use font_load_for_lface to get a new font object.
1870 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
1871
1872 * frame.c (x_set_font): Handle the case that ARG is a cons.
1873
c68845e0
GM
18742009-03-19 Glenn Morris <rgm@gnu.org>
1875
1876 * fileio.c (Fsubstitute_in_file_name): Doc fix.
1877
bfa49dd1
CY
18782009-03-19 Chong Yidong <cyd@stupidchicken.com>
1879
1880 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
1881
8458d4c1
KH
18822009-03-19 Kenichi Handa <handa@m17n.org>
1883
1884 * charset.c (load_charset_map_from_file): When a mapfile can't be
1885 loaded, signal an error.
1886
78e7d1fe
EZ
18872009-03-18 Eli Zaretskii <eliz@gnu.org>
1888
1889 * dired.c (Ffile_attributes): Make sure UID and GID are always
1890 positive, even if the value is too large for a positive EMACS_INT.
1891 Doc fix.
1892
1893 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
1894
5da9fdfa
YM
18952009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1896
1897 * xmenu.c (xdialog_show): Move Fredisplay call ...
1898 (Fx_popup_dialog): ... here.
1899
7519c40d
SM
19002009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
1901
1902 * dired.c (file_name_completion): Disable the first optimization just
1903 installed, since it is not implemented correctly.
1904
2cd298e2
SM
19052009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
1906
1907 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 1908 only if the entry can affect bestmatch.
2cd298e2
SM
1909 Stop the search early, as Ftry_completion already does.
1910
48d37adf
CY
19112009-03-17 Chong Yidong <cyd@stupidchicken.com>
1912
e10c9c93 1913 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 1914
9286b16a
CY
19152009-03-15 Chong Yidong <cyd@stupidchicken.com>
1916
1917 * keyboard.c (parse_menu_item): Don't display remappings as menu
1918 equivalent bindings (Bug#788).
1919
f7b146dc
JR
19202009-03-15 Jason Rumney <jasonr@gnu.org>
1921
1922 * w32term.h (WM_EMACS_PAINT): New message.
1923 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
1924 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
1925 before passing to lisp thread. (Bug#950)
1926
f761d6b6 19272009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 1928
d93f9575
CY
1929 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
1930 variable as it was never reset.
1931 (ns_term_init): Remove initialization of Lisp-settable defaults
1932 and ns_expand_space.
1933 (-setPanelFromDefaultValues): Remove ns_expand_space.
1934 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
1935 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
1936 i.e. no additional spacing, similar to Carbon port.
1937
d93f9575
CY
1938 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
1939 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 1940
305018ec
JD
19412009-03-14 Jan Djärv <jan.h.d@swipnet.se>
1942
1943 * sound.c (alsa_configure): Remove call to deprecated
1944 snd_pcm_sw_params_set_xfer_align.
1945
f761d6b6 19462009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
1947
1948 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
1949 after clicking in a detached tool bar.
1950 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
1951
46e722a9
SM
19522009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
1953
348db3dd
SM
1954 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
1955 int/Lisp_Object mixup).
46e722a9 1956
a3d16f39
KH
19572009-03-13 Kenichi Handa <handa@m17n.org>
1958
1959 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 1960 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
1961 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
1962 (set_fontset_font): Change ARG to a vector. Handle range_list in
1963 ARG correctly.
1964 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 1965 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
1966 the above change.
1967 (fontset_from_font): Fix previous change.
fe24f56a 1968 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
1969 entry. If FONTSET is the default fontset, don't set the extra
1970 slot of the returning char-table.
1971
b066e6b6
JB
19722009-03-12 Juanma Barranquero <lekktu@gmail.com>
1973
1974 * nsfns.m (Fx_close_connection): Doc fix.
1975 (Fns_do_applescript): Reflow docstring.
1976 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
1977 (Fx_display_pixel_width, Fx_display_pixel_height)
1978 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
1979 Fix typos in docstrings.
1980 (Fns_set_alpha): Fix typos in error messages.
1981
d472514e 19822009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 1983
d472514e 1984 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
1985 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
1986 were used for such events.
1987
d472514e
JB
1988 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
1989 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 1990
d472514e 1991 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
1992 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
1993
fb930676
KH
19942009-03-11 Kenichi Handa <handa@m17n.org>
1995
ff85581a
KH
1996 * font.h (font_open_by_spec): Extern it.
1997
c50b7e98
KH
1998 * font.c (font_open_by_spec): New function.
1999 (font_open_by_name): Use font_open_by_spec.
2000
fb930676
KH
2001 * frame.c (x_set_font): When ARG is a font-object, don't alter the
2002 fontset of the frame.
2003
2004 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
2005 modify the default font of frames that use this fontset.
2006 (num_auto_fontsets): New variable.
2007 (fontset_from_font): Use num_auto_fontsets to decide a fontset
2008 name. Be sure to set FONTSET_ASCII to the correct font name.
2009 (update_auto_fontset_alist): New function.
2010
df4e8455
JB
20112009-03-11 Juanma Barranquero <lekktu@gmail.com>
2012
2013 * makefile.w32-in: Update dependencies.
2014
0a375797
AR
20152009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
2016
2017 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
2018
61313fa3
SM
20192009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
2020
2021 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
2022
b55103fb
CY
20232009-03-10 Chong Yidong <cyd@stupidchicken.com>
2024
2025 * lread.c (Feval_buffer): Doc fix.
2026
dde2559c
KH
20272009-03-09 Kenichi Handa <handa@m17n.org>
2028
2029 * charset.c (Qfile_name_handler_alist): Extern it.
2030 (load_charset_map_from_file): Temporarily bind
2031 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
2032
df4e8455 20332009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 2034
47f588bb
GM
2035 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
2036 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 2037
4ddf94bd
AR
20382009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
2039
4c9bdfc2
AR
2040 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
2041 (x_set_window_size): Change back to calculated method of setting
2042 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
2043 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
2044 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
2045
fe41ae9e
AR
2046 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
2047
4c9bdfc2
AR
2048 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
2049 accelerator in parens under GNUstep.
2050
825d0875
KH
20512009-03-06 Kenichi Handa <handa@m17n.org>
2052
2053 These changes are to detect incorrect composition sequence without
f3b3be74 2054 looking ahead the source. (Bug#2370)
825d0875
KH
2055
2056 * coding.h: Include "composite.h".
2057 (enum compisition_state): New enum.
2058 (struct compisition_status): New struct.
2059 (struct iso_2022_spec): New member cmp_status.
2060 (struct emacs_mule_spec): New struct.
2061 (struct coding_system): New members ctext_extended_segment_len and
2062 embedded_utf_8. Change the union member
2063 spec.emacs_mule_full_support to spec.emacs_mule.
2064
2065 * coding.c (CODING_ISO_CMP_STATUS): New macro.
2066 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 2067 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
2068 (ADD_COMPOSITION_DATA): New arg nbytes.
2069 (emacs_mule_char): New arg cmp_status.
2070 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
2071 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
2072 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
2073 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
2074 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
2075 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
2076 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
2077 (EMACS_MULE_COMPOSITION_END): New macro.
2078 (emacs_mule_finish_composition): New function.
2079 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
2080 (decode_coding_emacs_mule): Avoid long looking ahead while
2081 handling composition.
2082 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
2083 (ENCODE_COMPOSITION_RULE): New macro.
2084 (finish_composition): New function.
2085 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
2086 (DECODE_COMPOSITION_START): New implementation.
2087 (DECODE_COMPOSITION_END): Likewise.
2088 (STORE_COMPOSITION_RULE): New macro.
2089 (decode_coding_iso_2022): Avoid long looking ahead while handling
2090 composition, CTEXT extended segment, and embedded UTF-8.
2091 (setup_coding_system): For a coding of type iso-2022, reset
2092 CODING_ISO_EXTSEGMENT_LEN (coding) and
2093 CODING_ISO_EMBEDDED_UTF_8 (coding).
2094 (get_translation): Delete arguments last_block, from_nchars,
2095 to_nchars. Callers changed.
2096 (produce_chars): Don't modify charbuf. Adjusted for the change of
2097 get_translation.
98a326f7 2098 (produce_composition): Adjust for the new annotation sequence.
825d0875 2099 (handle_composition_annotation): Likewise.
98a326f7 2100 (consume_chars): Adjust for the change of get_translation.
825d0875 2101
ccbc4452
AR
21022009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
2103
4ddf94bd 2104 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 2105
988a7ddb
KH
21062009-03-05 Kenichi Handa <handa@m17n.org>
2107
2108 * font.c (font_select_entity): New function.
2109 (font_find_for_lface): Use font_select_entity to select a font.
2110
2111 * fontset.c (fontset_find_font): If a font found without
a8a3728b 2112 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
2113 font with C restriction.
2114
98a326f7 21152009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 2116
be1bce46 2117 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 2118
10ea2b82
JR
21192009-03-04 Jason Rumney <jasonr@gnu.org>
2120
2c93b248 2121 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 2122 characters that have already been read. (Bug#2569)
2c93b248 2123
10ea2b82
JR
2124 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
2125 Log an error message if check_image_size failed.
2126 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 2127 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 2128
71a0c011
EZ
21292009-03-02 Eli Zaretskii <eliz@gnu.org>
2130
2131 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
2132 when decoding process output.
2133
2f63bba8
RS
21342009-03-01 Richard M Stallman <rms@gnu.org>
2135
2136 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
2137
2138 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
2139
0a9564cb
EZ
21402009-02-28 Eli Zaretskii <eliz@gnu.org>
2141
2142 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
2143 (decode_coding_emacs_mule, decode_coding_iso_2022)
2144 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
2145 (decode_coding_raw_text, decode_coding_charset)
2146 (setup_coding_system, decode_eol, decode_coding, consume_chars):
2147 Honor inhibit-eol-conversion. (Bug #2186)
2148
449148b3
JR
21492009-02-28 Jason Rumney <jasonr@gnu.org>
2150
2151 * coding.c (detect_coding_charset): If not checking latin extra,
2152 fail on characters between 0x80 and 0xA0. (Bug#2354)
2153
a4aee864
EZ
21542009-02-28 Eli Zaretskii <eliz@gnu.org>
2155
2156 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 2157 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 2158
d88bee5a
GM
21592009-02-27 Glenn Morris <rgm@gnu.org>
2160
2161 * callint.c (Finteractive): Doc fix.
2162
a808f22d
KH
21632009-02-27 Kenichi Handa <handa@m17n.org>
2164
2165 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
2166
caf8d60c
CY
21672009-02-27 Chong Yidong <cyd@stupidchicken.com>
2168
2169 * font.c (font_style_to_value): Set value for unknown symbols to
2170 100 instead of 255.
b61137ea
CY
2171 (weight_table, slant_table, width_table): Treat "unspecified" as
2172 the default value.
caf8d60c 2173
1a0de25c
JB
21742009-02-26 Juanma Barranquero <lekktu@gmail.com>
2175
2176 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
2177
8fc45744
JB
21782009-02-25 Juanma Barranquero <lekktu@gmail.com>
2179
107bd7d1
JB
2180 * lread.c (Fload): Stop checking Vloads_in_progress and signal
2181 error as soon as a recursive load is detected.
8fc45744 2182
f097e223
AR
21832009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2184
2185 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
2186 before caching.
2187
8810a12f
KH
21882009-02-24 Kenichi Handa <handa@m17n.org>
2189
2190 * fontset.c (fontset_find_font): Fix the condition for checking
2191 unavailable font.
2192
2c7d1565
GM
21932009-02-24 Glenn Morris <rgm@gnu.org>
2194
2195 * xfaces.c (Finternal_set_font_selection_order): Remove leading
2196 whitespace that confuses documentation.
2197
a20878b6
MB
21982009-02-23 Miles Bader <miles@gnu.org>
2199
2200 * process.c (Flist_system_processes, Fprocess_attributes)
2201 (syms_of_process): Rename `system-process-attributes' to
2202 `process-attributes'.
2203
b3b58c01
AS
22042009-02-22 Andreas Schwab <schwab@linux-m68k.org>
2205
1b3b981b
AS
2206 * coding.h (struct coding_system): Make safe_charsets a pointer to
2207 unsigned char.
2208 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
2209 being 255.
2210 (SAFE_CHARSET_P): Likewise.
2211 (setup_iso_safe_charsets): Properly setup safe_charsets.
2212 (Fdefine_coding_system_internal): Likewise.
2213 (setup_coding_system): Likewise. Remove unneeded casts.
2214 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
2215 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
2216 unneeded casts.
2217
b3b58c01
AS
2218 * insdel.c (del_range_2): Don't modify gap contents when called
2219 from decode_coding_object. (Bug#1809)
2220
0b6f228c
CY
22212009-02-21 Chong Yidong <cyd@stupidchicken.com>
2222
2223 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
2224 Qfont_object.
2225 (Ftype_of): Recognize font objects.
2226
2227 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
2228
2229 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
2230 moved to data.c.
2231
52f8870b
AR
22322009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
2233
2234 * nsterm.m (x_make_frame_invisible): Unset async_visible,
2235 async_iconified. Based on a patch by Christian Lynbech
2236 <christian.lynbech@tieto.com>.
2237 (EmacsView-windowDidMiniaturize:): Unset async_visible.
2238
7087d5e9
GM
22392009-02-20 Glenn Morris <rgm@gnu.org>
2240
2241 * syntax.c (Fskip_chars_forward): Fix doc typo.
2242
41d2ceef
CY
22432009-02-20 Chong Yidong <cyd@stupidchicken.com>
2244
2245 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
2246
1a3b7ca6
CY
22472009-02-19 Chong Yidong <cyd@stupidchicken.com>
2248
2249 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
2250
73cce38d
KH
22512009-02-19 Kenichi Handa <handa@m17n.org>
2252
2253 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 2254 Don't overflow coding->carryover. (Bug#2370)
73cce38d 2255
a51092ee
DN
22562009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
2257
2258 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
2259
c423ecca
KH
22602009-02-18 Kenichi Handa <handa@m17n.org>
2261
2262 * font.c (font_check_otf_features): Fix handling of `nil' element.
2263 (Ffont_spec): Describe :lang and :otf in the docstring.
2264
4c1958f4
AS
22652009-02-16 Andreas Schwab <schwab@suse.de>
2266
2267 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
2268 string.
2269
5704f39a
KH
22702009-02-16 Kenichi Handa <handa@m17n.org>
2271
2272 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 2273 (Bug#1723)
5704f39a 2274
8f0085aa
CY
22752009-02-14 Chong Yidong <cyd@stupidchicken.com>
2276
a057d86a 2277 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
2278
2279 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
2280 (handle_line_prefix): Suppress wrapping of wrap prefixes.
2281
aff01dd9
EZ
22822009-02-14 Eli Zaretskii <eliz@gnu.org>
2283
2284 * msdos.c (MAX_SCREEN_BUF): New macro.
2285 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
2286 Encode the entire run of glyphs sharing the same face, instead of
2287 doing that one glyph at a time (fixes a bug with displaying
2288 double-size characters).
2289
ba301db3
AR
22902009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
2291
2292 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
2293
2294 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
2295 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 2296 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
2297
2298 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 2299 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 2300
51d861de
SM
23012009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
2302
2303 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
2304 invisible areas.
2305
7fed8996
JR
23062009-02-12 Jason Rumney <jasonr@gnu.org>
2307
631ea4fb
JR
2308 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
2309 (add_font_entity_to_list): Call check_face_name even when family
2310 is unspecified.
2311
cb4a3e42
JR
2312 * w32term.c (x_display_pixel_height, x_display_pixel_width):
2313 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 2314 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 2315
7fed8996 2316 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 2317 raster fonts. (Bug#2219)
7fed8996 2318
895416e3
KH
23192009-02-12 Kenichi Handa <handa@m17n.org>
2320
2321 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
2322 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
2323 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 2324 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
2325 (find_automatic_composition): While looking forward and backward,
2326 check static composition. Fix where to stop looking forward.
2327 (composition_adjust_point): Fix checking of static composition.
2328 (Fcomposition_get_gstring): Pay attention to
1dacf998 2329 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
2330
2331 * lisp.h (fast_looking_at): Extern it.
2332
2333 * search.c (fast_looking_at): New function.
2334
51d861de 2335 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
2336 <struct glyph>.u.cmp.to.
2337 (append_composite_glyph): Likewise.
2338
51d861de 2339 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
2340 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
2341 composition.
51d861de 2342 (append_composite_glyph): Adjust for the change of
895416e3
KH
2343 <strcut glyph>.u.cmp.to.
2344
8510724d
JB
23452009-02-11 Juanma Barranquero <lekktu@gmail.com>
2346
2347 * casetab.c (init_casetab_once):
2348 * coding.c (ALLOC_CONVERSION_WORK_AREA):
2349 * font.c (font_update_lface):
2350 * fontset.c (Fnew_fontset):
2351 * ftfont.c (ftfont_drive_otf):
2352 * xfont.c (xfont_open):
2353 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
2354
294fa707
SM
23552009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
2356
2357 * fileio.c (Fwrite_region): !NILP -> CONSP.
2358
b5bfebec
AS
23592009-02-10 Andreas Schwab <schwab@suse.de>
2360
2361 * process.c (send_process): Properly relocate pointer into data
adab88bd 2362 when using encoded data. (Bug#2272)
b5bfebec 2363
cb84a2be
KH
23642009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
2365
2366 * coding.c (detect_coding_charset): Fix previous change.
2367
89e09428
JR
23682009-02-08 Jason Rumney <jasonr@gnu.org>
2369
2370 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 2371 disappeared while hourglass was displayed. (Bug #2193)
89e09428 2372
4470a277
AS
23732009-02-07 Andreas Schwab <schwab@suse.de>
2374
2375 * unexelf.c (unexec): Fix error message.
2376
3175b12a
AR
23772009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
2378
2379 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 2380 when modal window is active. (Bug #2152)
3175b12a
AR
2381 (applicationShouldTerminate:): Remove now-unneeded while loop
2382 around NSRunAlertPanel.
2383
2384 * nsmenu.m (popupSession): New file-global variable.
2385 (pop_down_menu): End the popupSession before closing dialog.
2386 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
2387 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
2388 don't query NSApp for events (just sleep instead).
2389
8434d0b8
EZ
23902009-02-07 Eli Zaretskii <eliz@gnu.org>
2391
51d861de
SM
2392 * coding.c (syms_of_coding) <translation-table-for-input>:
2393 Modify doc string to discourage use for character code unification.
8434d0b8 2394
aa82edfd
CY
23952009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2396
2397 * atimer.c (run_timers): Update pending_atimers.
2398
2d283c7c
CY
23992009-02-06 Chong Yidong <cyd@stupidchicken.com>
2400
eb306cab
CY
2401 * image.c (svg_load_image): Fix last change.
2402
2d283c7c
CY
2403 * xfns.c (Fx_create_frame): Signal an error if no font is
2404 found (Bug#2147).
2405
4d8e170e
JB
24062009-02-05 Juanma Barranquero <lekktu@gmail.com>
2407
2408 * character.c (syms_of_character) <script-representative-chars>:
2409 Fix typo in docstring.
2410
c96169a0
AR
24112009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
2412
2413 * nsmenu.m (pop_down_menu): New function.
2414 (ns_popup_dialog): Call it on unwind.
2415 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
2416 call timer_check() (Bug#2154).
2417 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
2418 handling_signal is set.
2419 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
2420
31fd7c5c 2421 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
2422
2423 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
2424
2425 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
2426
51d861de
SM
2427 * keyboard.c (poll_for_input_1, handle_async_input):
2428 Set handling_signal under HAVE_NS.
c96169a0 2429
aacd8ba1
GM
24302009-02-04 Glenn Morris <rgm@gnu.org>
2431
2432 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
2433
4cb75c4b
KH
24342009-02-04 Kenichi Handa <handa@m17n.org>
2435
2436 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
2437
2438 * charset.c (Fchar_charset): New optional arg restriction.
2439
2440 * coding.h (coding_system_charset_list): Extern it.
2441
2442 * coding.c (coding_system_charset_list): New function.
2443
2444 * composite.c: Include coding.h and termhooks.h.
2445 (composition_gstring_p): Fix for the terminal case.
2446 (composition_gstring_width): Likewise.
2447 (fill_gstring_body): Likewise.
2448 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
2449 the frame.
2450 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
2451 is within a composition.
867d4bb3 2452 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
2453
2454 * term.c (encode_terminal_code): Fix handling of composition.
2455 (produce_composite_glyph): For static composition, get pixel_width
2456 from struct composition.
2457
826ba17e
AS
24582009-02-02 Andreas Schwab <schwab@suse.de>
2459
2460 * unexelf.c (unexec): Handle unaligned bss offset.
2461
8ad093db
AR
24622009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
2463
2464 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
2465 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 2466
8ad093db
AR
2467 * keyboard.c (handle_interrupt): Don't call
2468 quit_throw_to_read_char() under NS.
d0a76a6e 2469
8ad093db
AR
2470 * blockinput.h: Remove NS-specific code.
2471
4d18a7a2
DN
24722009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
2473
db878925
DN
2474 * dispnew.c (window_change_signal): Don't try to get the size of a
2475 suspended tty frame.
2476 * term.c (Fresume_tty): Resize if the size has changed while the
2477 tty was suspended.
2478
4d18a7a2
DN
2479 * alloc.c (mark_stack): Properly conditionalize previous change.
2480
8984df7c
JB
24812009-01-30 Juanma Barranquero <lekktu@gmail.com>
2482
2483 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
2484 * w32term.c (w32_read_socket) [SYNC_INPUT]:
2485 Remove; this code is not used on Windows.
2486
75f4f1ac
EZ
24872009-01-30 Eli Zaretskii <eliz@gnu.org>
2488
2489 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
2490 EOLs that also has stray ^M characters.
2491
07a1e794
JB
24922009-01-30 Juanma Barranquero <lekktu@gmail.com>
2493
2494 * atimer.c (run_timers, alarm_signal_handler):
2495 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
2496 * w32inevt.c (w32_console_read_socket):
2497 * w32term.c (w32_read_socket):
2498 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
2499
a8b11cc9
CY
25002009-01-30 Chong Yidong <cyd@stupidchicken.com>
2501
2502 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
2503 Initialize it as a relative filename pattern.
2504 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
2505 (Fcall_process_region): Simplify temp file creation using
2506 temporary-file-directory.
2507
c279587b
EZ
25082009-01-29 Eli Zaretskii <eliz@gnu.org>
2509
2510 * msdos.c: Rename pending_signals to msdos_pending_signals.
2511 (sig_suspender, sigprocmask): Adjust.
2512
a8fe3242
CY
25132009-01-29 Chong Yidong <cyd@stupidchicken.com>
2514
2515 * keyboard.c (pending_signals): New var.
2516 (poll_for_input, input_available_signal, init_keyboard): Set it.
2517 (process_pending_signals): New function.
2518
2519 * lisp.h (QUIT): Check pending_signals instead of
2520 interrupt_input_pending. Use process_pending_signals.
2521
51d861de 2522 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 2523
51d861de 2524 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
2525
2526 * sysdep.c (emacs_write): Use process_pending_signals.
2527
2528 * xterm.c (XTread_socket): Update pending_signals.
2529
2530 * w32term.c (w32_read_socket): Update pending_signals.
2531
2532 * w32inevt.c (w32_console_read_socket): Update pending_signals.
2533
6570a1c4
KH
25342009-01-29 Kenichi Handa <handa@m17n.org>
2535
2536 * xftfont.c (xftfont_has_char): New function.
2537 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
2538
d72a4afa
AR
25392009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
2540
2541 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
2542 under GNUstep.
2543 (ns_query_color): New declaration.
2544
2545 * nsterm.m (ns_confirm_quit): New variable.
2546 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
2547 (EmacsApp-applicationShouldTerminate:): Use it.
2548 (EmacsPrefsController): Let user set it.
2549 (ns_query_color): New function.
2550 (ns_defined_color): Use it.
2551 (ns_initialize): Drop.
2552 (ns_term_init): Add two lines from ns_initialize(), and set
2553 input_interrupt_mode to nil.
2554
2555 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 2556 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 2557
9fe78804
KH
25582009-01-28 Kenichi Handa <handa@m17n.org>
2559
2560 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
2561 (fontset_get_font_group): Remember that no font-group is specified
2562 for C.
9fe78804 2563
fa57de36
CY
25642009-01-27 Chong Yidong <cyd@stupidchicken.com>
2565
930600e9
CY
2566 * fns.c (concat): Check for string overflow (bug#1787).
2567
fa57de36
CY
2568 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
2569 Quadruple undo limits (bug#1501).
2570
7179ce7b
KH
25712009-01-27 Kenichi Handa <handa@m17n.org>
2572
2573 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
2574 directly use GT_Get_Char_index.
2575
2576 * xftfont.c (struct xftfont_info): New member `index'.
2577
2578 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 2579 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 2580
5be8fcc0
CY
25812009-01-26 Kenichi Handa <handa@m17n.org>
2582
2583 * fontset.c (fontset_find_font): Fix handling of non-cons return
2584 value of fontset_get_font_group.
2585 (fontset_font): Revert last change.
2586
19ae3e61
JR
25872009-01-26 Jason Rumney <jasonr@gnu.org>
2588
2589 * w32font.c (w32font_list_internal): Return quickly if registry is
2590 unknown. Simplify final return.
2591 (add_font_entity_to_list): Break complex logic down into more
2592 manageable chunks. Move unknown registry check to
2593 w32font_list_internal.
2594
8612b71a
AR
25952009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
2596
2597 Changes to remove Feval calls from GUI under NS.
2598
d8038940
JB
2599 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
2600 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
2601 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
2602
2603 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
2604 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
2605 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
2606 instead of NON_ASCII_KEYSTROKE_EVENT.
2607 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
2608 (EmacsApp-applicationShouldTerminate:): Query user.
2609 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
2610 instead of Feval.
2611
2612 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
2613
2614 * keyboard.c (kbd_buffer_get_event): Check for it.
2615 (keys_of_keyboard): Define lispy keys for
2616 ns-put/unput-working-text.
2617
2618 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
2619 versions.
2620 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
2621
6288ae55
CY
26222009-01-25 Chong Yidong <cyd@stupidchicken.com>
2623
2624 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 2625 setting current_buffer directly. (Bug#2044)
6288ae55 2626
289e7f8f
CY
26272009-01-24 Chong Yidong <cyd@stupidchicken.com>
2628
5ce87308 2629 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 2630 any work. (Bug#1952, bug#1990).
5ce87308 2631
64cc3cf6 2632 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 2633
b3243e6f
AR
26342009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2635
2636 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
2637 (ns_no_defaults): New declaration.
2638 (main): Use it.
e0d2e69a 2639
d900b2af 2640 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 2641
d900b2af 2642 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 2643
d900b2af
AR
2644 * nsterm.m (ns_no_defaults): New variable.
2645 (ns_initialize): Don't read defaults when ns_no_defaults.
2646 (EmacsView-readSelectionFromPasteboard:)
2647 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 2648 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
2649 (ns_dumpglyphs_stretch): New function.
2650 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 2651 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 2652
e0d2e69a
AR
2653 * nsimage.m (setPixmapData:): Set to ignore image DPI.
2654
3ac71f5d
CY
26552009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
2656
2657 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
2658 call for Sparc64.
2659
3fe53a83
AR
26602009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
2661
2662 * nsfns.m:
2663 * nsgui.h:
2664 * nsmenu.m:
2665 * nsselect.m:
2666 * nsterm.h:
2667 * nsterm.m: Remove '23' comments that indicated code added during
2668 update from emacs-20 -> emacs-23.
2669
10f87c6f 26702009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
2671
2672 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 2673 ns_alternate_modifier. (Bug#1217)
a3b53a85 2674
c7cef62d
AR
2675 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
2676 Display all shortcuts, including those w/o super modifier.
2677
575fb8bd
AR
2678 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
2679
918b848b
CY
26802009-01-22 Chong Yidong <cyd@stupidchicken.com>
2681
2682 * fileio.c (Vwrite_region_post_annotation_function)
2683 (Vwrite_region_annotation_buffers): New vars.
2684 (build_annotations_unwind): Just reset
2685 Vwrite_region_annotation_buffers.
2686 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
2687 Call write-region-post-annotation-function.
2688 (build_annotations): Add to Vwrite_region_annotation_buffers if
2689 buffer changes.
2690
a39e2539
AR
26912009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
2692
2693 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
2694 Tiger.
51d861de
SM
2695 * nsfns.m (ns_do_applescript):
2696 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 2697
35ed44db
AR
26982009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
2699
2700 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
2701
cbe0b5bf
AR
27022009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
2703
2704 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 2705
6049d3a0
AR
2706 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
2707
2708 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
2709 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
2710 handle Ctrl-tab. (Bug#1841)
2711 (ns_get_color): Use unsigned long long for scanned hex string value.
2712 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 2713 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 2714 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 2715 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 2716 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 2717 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 2718 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 2719
d3810c21 2720 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 2721 DPI. (Bug#1316)
d3810c21
AR
2722 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
2723 values in onTiger section.
4c7077c3 2724
e301e634
CY
27252009-01-19 Chong Yidong <cyd@stupidchicken.com>
2726
7f82490b
CY
2727 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
2728 Check return value of font_spec_from_name.
64cc3cf6 2729 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
2730
2731 * font.c (font_spec_from_name): Return Qnil if font name could not
2732 be parsed.
2733 (font_parse_name): Treat a `?' character as part of an XLFD.
2734
e301e634
CY
2735 * fns.c (Fsubstring): Doc fix.
2736
1c0db158
KH
27372009-01-19 Kenichi Handa <handa@m17n.org>
2738
51d861de 2739 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
2740 (ftfont_list): Likewise.
2741
acf20901
JB
27422009-01-18 Juanma Barranquero <lekktu@gmail.com>
2743
fff4e459
JB
2744 * dbusbind.c (Fdbus_register_signal):
2745 * process.c (conv_sockaddr_to_lisp):
2746 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
2747
acf20901
JB
2748 * callproc.c (Fgetenv_internal): Doc fix.
2749
e7abcdfb
CY
27502009-01-16 Chong Yidong <cyd@stupidchicken.com>
2751
2752 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
2753 it is not even used.
2754
b60861e6
GM
27552009-01-16 Glenn Morris <rgm@gnu.org>
2756
2757 * font.c (Ffont_variation_glyphs): Silence compiler.
2758
8db52afe
JB
27592009-01-15 Juanma Barranquero <lekktu@gmail.com>
2760
2761 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
2762 Reported by David Robinow <drobinow@gmail.com>.
2763
4cddb209
KH
27642009-01-15 Kenichi Handa <handa@m17n.org>
2765
51d861de 2766 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 2767
f247f67b
JR
27682009-01-14 Jason Rumney <jasonr@gnu.org>
2769
2770 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 2771 never a fontset. (Bug#1562)
f247f67b 2772
f56a4450
KH
27732009-01-14 Kenichi Handa <handa@m17n.org>
2774
2775 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 2776 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 2777
4e99855e
CY
27782009-01-13 Chong Yidong <cyd@stupidchicken.com>
2779
2780 * font.c (font_clear_prop): If clearing the family, clear the font
2781 width index too.
2782
fff4e459 2783 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 2784
24f01470
JB
27852009-01-12 Juanma Barranquero <lekktu@gmail.com>
2786
2787 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
2788 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
2789 functions, use sizeof.
2790
a41240a3
MR
27912009-01-12 Martin Rudalics <rudalics@gmx.at>
2792
2793 * keyboard.c (read_char): Fix case where last_nonmenu_event
2794 returned a bad value with submenus. (Bug#447)
2795
944636b8
CY
27962009-01-12 Chong Yidong <cyd@stupidchicken.com>
2797
2798 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
2799 family, clear the font width index too.
2800
0dad7c6f
JR
28012009-01-11 Jason Rumney <jasonr@gnu.org>
2802
2803 * keyboard.c (cmd_error_internal): Exit when errors occur before
2804 frame creation and not in daemon mode. (Bug#1836)
2805
7c2363af
CY
28062009-01-10 Chong Yidong <cyd@stupidchicken.com>
2807
2808 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
2809 of a display vector, backtrack.
2810 (try_window_reusing_current_matrix): Check glyph type before
2811 referencing charpos member.
2812
97b1b294
EZ
28132009-01-10 Eli Zaretskii <eliz@gnu.org>
2814
2815 Fix Bug #876:
2816
2817 * coding.c (inhibit_null_byte_detection): New variable.
2818 (detect_coding, detect_coding_system): Don't pay attention to null
2819 bytes if inhibit_null_byte_detection is non-zero.
51d861de 2820 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
2821 <inhibit-iso-escape-detection>: Doc fix.
2822
4624b6e3
JR
28232009-01-09 Jason Rumney <jasonr@gnu.org>
2824
2825 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 2826 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
2827 Only report Unicode Plane 2 fonts as unicode-sip.
2828
323b840c
CY
28292009-01-09 Chong Yidong <cyd@stupidchicken.com>
2830
51d861de
SM
2831 * xfaces.c (Fx_font_family_list): Delete function.
2832 Move compatibility version to faces.el.
323b840c 2833
51d861de 2834 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 2835
eba7400d
MR
28362009-01-09 Martin Rudalics <rudalics@gmx.at>
2837
2838 * frame.c (x_set_frame_parameters): Remember requested value for
2839 fullscreen before it's reset by the parameter handler.
2840
4b09796d
GM
28412009-01-09 Glenn Morris <rgm@gnu.org>
2842
2843 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 2844 (last_command_event): ... and update all users.
4b09796d
GM
2845 (last_input_char): For clarity, rename to...
2846 (last_input_event): ... and update all users.
2847 (last-command-char, last-input-char): Move to subr.el as aliases.
2848 * cmds.c, commands.h: Update for last_command_char rename.
2849
14ccea62
CY
28502009-01-08 Chong Yidong <cyd@stupidchicken.com>
2851
51d861de 2852 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 2853
5f004711
JR
28542009-01-08 Jason Rumney <jasonr@gnu.org>
2855
2856 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
2857 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
2858 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
2859 Don't declare.
fff4e459 2860 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
2861 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
2862
b71f6f73
KH
28632009-01-07 Kenichi Handa <handa@m17n.org>
2864
50b06221 2865 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 2866 remember the coding system used for decoding in
50b06221
KH
2867 coding_system (Bug#1039).
2868
b71f6f73 2869 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 2870 breaking the loop. (Bug#870)
b71f6f73
KH
2871 (decode_coding_utf_16, decode_coding_emacs_mule)
2872 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
2873 (decode_coding_charset): Likewise.
2874
56f668f7
MR
28752009-01-05 Martin Rudalics <rudalics@gmx.at>
2876
2877 * frame.c (x_set_frame_parameters): Make sure height (width) get
2878 applied when fullwidth (fullheight) is set. (Bug#1522)
2879
5da9424d
JB
28802009-01-04 Juanma Barranquero <lekktu@gmail.com>
2881
2882 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
2883 (utc_base): Declare as ULONGLONG, not long double.
2884 (convert_time_raw): Delete.
2885 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
2886 (initialize_utc_base): New function.
2887 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
2888 (convert_from_time_t): Use initialize_utc_base; compute result with
2889 64-bit arithmetic.
2890 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
2891
c4605e09
EZ
28922009-01-03 Eli Zaretskii <eliz@gnu.org>
2893
9acef61c 2894 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
2895 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
2896 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
2897 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
2898 [!subprocesses]: Define.
2899 (syms_of_process) [!subprocesses]: Intern and staticpro them.
2900 (Flist_system_processes, Fsystem_process_attributes)
2901 [!subprocesses]: Call list_system_processes and
2902 system_process_attributes instead of returning Qnil.
2903
9acef61c
JB
2904 * dosfns.c (system_process_attributes, list_system_processes):
2905 New functions.
c4605e09
EZ
2906
2907 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
2908
2909 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
2910 Don't use the default (no-op) implementation.
2911
8b7d0a16
JR
29122009-01-03 Jason Rumney <jasonr@gnu.org>
2913
a6d46bc1
JR
2914 * keyboard.c (parse_modifiers_uncached): Wheel events are
2915 clicks (bug#687).
2916
8b7d0a16
JR
2917 * w32term.c (x_query_colors, x_query_color): New functions.
2918
2919 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
2920 (svg_load_image): Cast returned pointers from dynamically loaded
2921 functions. Eliminate W32 specific code.
2922
bfe11752
DN
29232009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
2924
89e2438a
DN
2925 * nsfns.m (x_set_foreground_color, x_set_background_color)
2926 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
2927 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
2928 x_ prefix instead of ns_. Update references.
2929 (syms_of_nsfns): Add a FIXME comment.
2930
2931 * nsterm.m (x_set_cursor_type): New prototype.
2932 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
2933
bfe11752
DN
2934 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
2935 for Solaris instead of incorrectly providing Qutime and Qcutime.
2936
031da700
EZ
29372009-01-02 Eli Zaretskii <eliz@gnu.org>
2938
2939 * w32.c (process_times): Compute sum of utime and stime.
2940 (system_process_attributes): Add Qtime to the alist.
2941
2942 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
2943 and add them to the alist.
2944
2945 * process.c (top level) <Qtime, Qctime>: New variables.
2946 (syms_of_process): staticpro them.
2947 (Fsystem_process_attributes): Add their documentation to the doc
2948 string.
2949
2950 * process.h: Declare Qtime and Qctime.
2951
df23bf08
JR
29522009-01-02 Jason Rumney <jasonr@gnu.org>
2953
9acef61c 2954 * image.c (Qgobject): New symbol.
df23bf08
JR
2955 (syms_of_image): Initialize it.
2956 (init_svg_functions): Load some functions from gobject library.
2957
5bbdf7aa
DN
29582009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
2959
2960 * frame.c (make_terminal_frame): Remove redundant code and useless
2961 block.
2962
63136da6
AS
29632009-01-01 Andreas Schwab <schwab@suse.de>
2964
2965 * process.c (conv_sockaddr_to_lisp): Add workaround for
2966 getsockname bug on BSD.
2967
9ef69046
CY
29682009-01-01 Chong Yidong <cyd@stupidchicken.com>
2969
d6fafbe0
CY
2970 * xfns.c (x_create_tip_frame): Set border width of the X window.
2971
51d861de 2972 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 2973
f9c34147
JR
29742009-01-01 Jason Rumney <jasonr@gnu.org>
2975
9acef61c 2976 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
2977 Don't block input, as per earlier xterm.c changes.
2978
f5497e45
AR
29792008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
2980
2981 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
2982 (ns_appkit_version_int): New function.
2983 (x-server-version): Use ns_appkit_version_int and follow 21+
2984 convention of returning 3 integers.
2985
c19cab20
KH
29862008-12-30 Kenichi Handa <handa@m17n.org>
2987
2988 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
2989 (CHAR_SURROGATE_PAIR_P): New macro.
2990
2991 * font.h (struct font_driver): New member get_variation_glyphs.
2992
9acef61c 2993 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
2994 (Ffont_variation_glyphs): New function.
2995 (syms_of_font): Defsubr it.
2996
2997 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
2998 ftfont_variation_glyphs.
2999 (setup_otf_gstring): New function.
3000 (ftfont_drive_otf): Use it.
3001 (ftfont_shape_by_flt): Handle variation selector.
3002 (ftfont_variation_glyphs): New function.
3003
28cd591f
MR
30042008-12-30 Martin Rudalics <rudalics@gmx.at>
3005
3006 * frame.c (Vemacs_iconified): Remove.
3007
7f714baf
JR
30082008-12-30 Jason Rumney <jasonr@gnu.org>
3009
3010 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 3011 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 3012
9d2d22ab
CY
30132008-12-30 Chong Yidong <cyd@stupidchicken.com>
3014
3015 * indent.c (Fvertical_motion): Don't advance iterator if we have
3016 reseated to the desired position.
3017
3018 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
3019 checking for pos match.
3020
545312c2
KH
30212008-12-30 Kenichi Handa <handa@m17n.org>
3022
1ede3eb6
KH
3023 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
3024 just get the low 8-bit of the code.
3025
545312c2
KH
3026 * font.c (font_intern_prop): Validate str as multibyte.
3027
bd7bbf29
DN
30282008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
3029
31e0750e
DN
3030 * dispextern.h (struct face): Move lface and hash from the middle
3031 of bitfields.
3032
bd7bbf29
DN
3033 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
3034
b5672e7c
DN
30352008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
3036
3037 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
3038 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
3039 instead of intervals.h.
3040
d704470f
AS
30412008-12-26 Andreas Schwab <schwab@suse.de>
3042
3043 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
3044 cons.
3045
54b33868
MR
30462008-12-26 Martin Rudalics <rudalics@gmx.at>
3047
3048 * textprop.c (Qminibuffer_prompt): New variable.
3049 (syms_of_textprop): Initialize it.
3050 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
3051 in minibuffer-prompt face. (Bug#1662)
3052
40b615d6
JR
30532008-12-25 Jason Rumney <jasonr@gnu.org>
3054
3055 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
3056
baae5c2d
JR
30572008-12-24 Jason Rumney <jasonr@gnu.org>
3058
3059 * ralloc.c (r_alloc_reset_variable): New function.
3060
3061 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 3062 record of what points where. (Bug#716)
baae5c2d 3063
a9051c88
DN
30642008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
3065
3066 * minibuf.c (read_minibuf): Follow the non-interactive case when
3067 running as a daemon, before detaching.
3068
8b146312
AS
30692008-12-22 Andreas Schwab <schwab@suse.de>
3070
3071 * buffer.c (init_buffer): Use realloc instead of xrealloc.
3072 * gtkutil.c (free_widget_value): Use xfree instead of free.
3073
56f2de10
MR
30742008-12-22 Martin Rudalics <rudalics@gmx.at>
3075
3076 * frame.c (delete_frame): New function derived from
3077 Fdelete_frame to handle Qnoelisp value for FORCE argument.
3078 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
3079 (Fdelete_frame): Call delete_frame. Remove line from doc-string
3080 saying that FORCE non-nil doesn't run `delete-frame-functions'.
3081 * frame.h: Extern delete_frame.
3082 * window.c (window_loop):
3083 * terminal.c (delete_terminal):
3084 * xterm.c (x_connection_closed):
3085 * xfns.c (Fx_hide_tip):
9acef61c 3086 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 3087
1fc200d6
JR
30882008-12-21 Jason Rumney <jasonr@gnu.org>
3089
3090 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
3091 when character maps to .notdef character.
3092
5e252df2
SM
30932008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
3094
3095 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
3096
99b72cc4
JR
30972008-12-20 Jason Rumney <jasonr@gnu.org>
3098
3099 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 3100 a graphical frame on Windows. (Bug#1325)
99b72cc4 3101
acc49a52
JD
31022008-12-20 Jan Djärv <jan.h.d@swipnet.se>
3103
3104 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
3105
6ea15123
CY
31062008-12-20 Chong Yidong <cyd@stupidchicken.com>
3107
3108 * minibuf.c (Fread_buffer): Doc fix.
3109
b2dab6c8
JR
31102008-12-20 Jason Rumney <jasonr@gnu.org>
3111
54ea0c87 3112 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 3113 server name in UNC paths. (Bug#719)
54ea0c87 3114
b2dab6c8 3115 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 3116 charbuf. (Bug#1035)
b2dab6c8 3117
6d1921be
DN
31182008-12-19 Daniel Engeler <engeler@gmail.com>
3119
3120 * sysdep.c (serial_configure): Fix typo.
3121
53934c98
DN
31222008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
3123
3124 * sysdep.c: Include alloca.h.
f4f634e8
DN
3125 (system_process_attributes): Add implementation for Solaris.
3126
3127 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 3128
06e111a6
DN
31292008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
3130
3131 Reorganize implementation of Flist_system_processes and
3132 Fsystem_process_attributes. No functional changes.
3133 * process.c: Don't #include pwd.h, grp.h and limits.h.
3134 (Flist_system_processes): Just call list_system_processes.
3135 (Fsystem_process_attributes): Just call system_process_attributes.
3136 (procfs_list_system_processes, time_from_jiffies)
3137 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
3138 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
3139
3140 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
3141 (list_system_processes): Rename from
3142 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
3143 Provide a do nothing implementation.
3144 (system_process_attributes): Rename from
3145 procfs_list_system_processes.
3146 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 3147 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
3148
3149 * w32.c (list_system_processes): Rename from
3150 w32_list_system_processes.
3151 (system_process_attributes): Rename from
3152 w32_system_process_attributes.
3153
3154 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
3155
3156 * process.h (w32_list_system_processes)
3157 (w32_system_process_attributes): Remove.
3158 (list_system_processes, system_process_attributes): New
3159 prototypes.
3160
6a705b23
KH
31612008-12-19 Kenichi Handa <handa@m17n.org>
3162
3163 * xfont.c (xfont_decode_coding_xlfd): New function.
3164 (xfont_encode_coding_xlfd): New function.
3165 (xfont_list_pattern): Decode XLFD by iso-8859-1.
3166 (xfont_list): Decode and encode XLFD by iso-8859-1.
3167 (xfont_match): Likewise.
3168 (xfont_list_family): Likewise.
3169 (xfont_open): Likewise.
3170
d66c0241 3171 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
3172 names are utf-8.
3173
d66c0241 3174 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
3175 names are utf-8.
3176
5a130941
JD
31772008-12-18 Jan Djärv <jan.h.d@swipnet.se>
3178
3179 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
3180 changed.
bfd20325
JD
3181 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
3182 clicked on a detached tool bar button.
5a130941 3183
fd95644b
DN
31842008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
3185
3186 * emacs.c (main): Print and error and exit when no data is read
3187 from the pipe.
3188
e6eee6ae
JR
31892008-12-17 Jason Rumney <jasonr@gnu.org>
3190
3191 * w32font.c (w32font_has_char): Always return -1.
3192
a35dd56b
KH
31932008-12-16 Kenichi Handa <handa@m17n.org>
3194
3195 * font.c (font_open_entity): Fix previous change.
3196
0e3635c2
DN
31972008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
3198
3199 * process.c: Include <limits.h>.
3200
d4835507 32012008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
3202
3203 * font.c (font_update_drivers): Fix mistake in reconstructing the
3204 driver list.
3205
32062008-12-16 Chong Yidong <cyd@stupidchicken.com>
3207
3208 * font.c (font_clear_cache): Fix format of font cache data.
3209
e2cbc401
CY
32102008-12-15 Chong Yidong <cyd@stupidchicken.com>
3211
3212 * xftfont.c (xftfont_open): Free Xft font pattern if
3213 XftFontOpenPattern fails.
3214
3215 * xterm.c (x_free_frame_resources): Remove extraneous call to
3216 free_frame_faces.
3217
b131d535
CY
32182008-12-13 Chong Yidong <cyd@stupidchicken.com>
3219
3220 * xterm.c (x_delete_display): Move xim_close_dpy call to
3221 x_delete_terminal.
3222 (x_delete_terminal): Call xim_close_dpy.
3223
e6df5336
JR
32242008-12-13 Jason Rumney <jasonr@gnu.org>
3225
3226 * w32font.c (intern_font_name): New function.
3227 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
3228 (w32font_open_internal, Fx_select_font): Decode font name.
3229 (fill_in_logfont, list_all_matching_fonts): Encode font name.
3230
3231 * w32font.h (intern_font_name): Declare new function.
3232
3233 * w32uniscribe.c (add_opentype_font_name_to_list):
3234 Use intern_font_name.
3235
20d68145
CY
32362008-12-13 Chong Yidong <cyd@stupidchicken.com>
3237
9f2554de
CY
3238 * frame.c (Fdelete_frame): Call free_font_driver_list.
3239
3d9bec9a
CY
3240 * font.c (free_font_driver_list): Implement missing function.
3241
20d68145
CY
3242 * w32term.c (w32_term_init): Don't initialize the image cache
3243 here; it will be done in init_frame_faces.
3244
3245 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
3246 (struct x_display_info): Remove unused member null_pixel. New
3247 member xim_callback_data.
3248
3249 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
3250 (xim_initialize): Save pointer to callback function data.
3251 (xim_close_dpy): Free callback function data. Call XCloseIM,
3252 reverting 2008-11-04 change by David Smith.
3253 (x_term_init): Don't initialize the image cache here; it will be
3254 done in init_frame_faces. Remove ancient "null_pixel" cruft.
3255 (x_delete_display): Free x_dnd_atoms member.
3256
96f9306b
KH
32572008-12-13 Kenichi Handa <handa@m17n.org>
3258
6dec9044
JB
3259 * font.c (font_rescale_ratio): Moved from xfaces.c.
3260 Argument type changed. Handle a font-spec too.
96f9306b 3261 (font_score): Check Vface_font_rescale_alist.
6dec9044 3262 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
3263
3264 * xfaces.c (font_rescale_ratio): Moved to font.c.
3265
8d5b4964
CY
32662008-12-13 Chong Yidong <cyd@stupidchicken.com>
3267
3268 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
3269
e6df5336
JR
32702008-12-12 Jason Rumney <jasonr@gnu.org>
3271
3272 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
3273 Vwindow_system_version to the real w32 major version.
3274
97c6058a
DN
32752008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
3276
3277 * term.c (init_tty): Move setting the terminal name before the
3278 potential user: maybe_fatal.
3279
ec4e88d7
CY
32802008-12-11 Chong Yidong <cyd@stupidchicken.com>
3281
d4835507
JB
3282 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
3283 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 3284
b4233ec9
JR
32852008-12-11 Jason Rumney <jasonr@gnu.org>
3286
8ec71e23 3287 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 3288 SYMBOL_CHARSET. (Bug#547)
8ec71e23 3289
b4233ec9 3290 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 3291 size for surrogates. (Bug#1096, bug#872)
b4233ec9 3292
011a0143
JB
32932008-12-11 Juanma Barranquero <lekktu@gmail.com>
3294
3295 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
3296
3c309f34
JB
32972008-12-11 Juanma Barranquero <lekktu@gmail.com>
3298
3299 * process.c (Fsystem_process_attributes, syms_of_process):
3300 Fix typo in name of Ssystem_process_attributes.
3301 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
3302
fedc6ab5
JB
33032008-12-11 Juanma Barranquero <lekktu@gmail.com>
3304
3305 * syntax.c (Fmodify_syntax_entry): Doc fix.
3306
ba3de0e8
JB
33072008-12-10 Juanma Barranquero <lekktu@gmail.com>
3308
3309 * font.c (Ffont_spec): Move usage to end of docstring.
3310
174f1c74
JR
33112008-12-10 Jason Rumney <jasonr@gnu.org>
3312
3313 * w32font.c (Qcham): New symbol.
3314 (font_supported_scripts): Add cham, and comments for other new
3315 scripts in bitfield from OpenType spec.
9d32f818
JR
3316 (add_font_entity_to_list): Limit unicode-sip fonts to those that
3317 contain characters beyond the bmp.
174f1c74 3318
7b649478
KH
33192008-12-10 Kenichi Handa <handa@m17n.org>
3320
3321 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 3322 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
3323 Qunicode_sip.
3324
2133e2d1
JB
33252008-12-10 Juanma Barranquero <lekktu@gmail.com>
3326
3327 * coding.c (QCdefault_char): Rename from QCdefalut_char.
3328 (Fcoding_system_put): Use QCdefault_char.
3329 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
3330
9af886ee
CY
33312008-12-09 Chong Yidong <cyd@stupidchicken.com>
3332
74d819eb
CY
3333 * xftfont.c (syms_of_xftfont): Fix typo.
3334
4ccfa1c0 3335 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 3336
7c19d3ae
DN
33372008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
3338
3339 * emacs.c (main): Close daemon_pipe on exec.
3340
567826bb
CY
33412008-12-08 Chong Yidong <cyd@stupidchicken.com>
3342
3343 * termchar.h (struct tty): New members termcap_term_buffer and
3344 termcap_strings_buffer.
3345
3346 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 3347 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
3348 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
3349 All callers changed.
3350 (init_tty): Store termcap data and string buffers in new struct
3351 tty members termcap_term_buffer and termcap_strings_buffer.
3352 (delete_tty): Free them.
4ccfa1c0 3353 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 3354
aa96c42b
SZ
33552008-12-07 Seiji Zenitani <zenitani@mac.com>
3356
3357 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 3358 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 3359
b7e1d896
CY
33602008-12-06 Chong Yidong <cyd@stupidchicken.com>
3361
3362 * coding.c (make_conversion_work_buffer): Disable buffer
3363 modification hooks in the work buffer.
3364
b5ec91a5
EZ
33652008-12-05 Eli Zaretskii <eliz@gnu.org>
3366
3367 * process.c (procfs_system_process_attributes): If `nread' has a
3368 negative value, assign zero to it.
3369
a5d2a52b
CY
33702008-12-05 Chong Yidong <cyd@stupidchicken.com>
3371
68c5540b 3372 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 3373
7bf1bb21
KH
33742008-12-05 Kenichi Handa <handa@m17n.org>
3375
3376 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
3377 second character is a combining character.
3378
2fdc7d00
EZ
33792008-12-05 Eli Zaretskii <eliz@gnu.org>
3380
3381 * process.c (procfs_system_process_attributes): Don't use cmd,
3382 cmdsize, and q without initializing them first.
3383
bf6bfba8
JR
33842008-12-04 Jason Rumney <jasonr@gnu.org>
3385
3386 * w32font.c (w32font_draw): Initialize orig_clip before getting
3387 it, and delete it when finished.
3388
a3b1a468
DN
33892008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
3390
3391 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
3392 case when running as a daemon before detaching.
3393
8b8be8eb
JB
33942008-12-03 Juanma Barranquero <lekktu@gmail.com>
3395
805f2638 3396 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 3397
b1bde622
KH
33982008-12-03 Kenichi Handa <handa@m17n.org>
3399
e500c47d
KH
3400 * font.c (font_at): Set `multibyte' at first.
3401
ca516334
KH
3402 * coding.c (decode_coding_charset): Check type of an element of
3403 vector VALIDS.
7bf1bb21 3404 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 3405
4ccfa1c0 3406 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
3407 (font_for_char): Likewise.
3408
1e5ecd37
CY
34092008-12-03 Chong Yidong <cyd@stupidchicken.com>
3410
d5b01609 3411 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
3412 (font_update_lface): Handle fonts with corrupted size specs,
3413 i.e. non-int and non-float.
d5b01609 3414
11e3a6e4 3415 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 3416 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 3417 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 3418
ab06788b
CY
3419 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
3420
1e5ecd37 3421 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 3422 underline_minimum_offset for underline position.
1e5ecd37 3423
63c125ab
DN
34242008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
3425
3426 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
3427
3428 * character.c (c_string_width): Specify the type for LEN.
3429
3a8406e1
KH
34302008-12-03 Kenichi Handa <handa@m17n.org>
3431
4ccfa1c0 3432 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 3433 (decode_coding_utf_8): Likewise.
4ccfa1c0 3434 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 3435 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 3436
651df7d9
CY
34372008-12-02 Chong Yidong <cyd@stupidchicken.com>
3438
3439 * keyboard.c (make_lispy_position): Only use PT if the selected
3440 window is current.
3441
1f625c6c
AS
34422008-12-02 Andreas Schwab <schwab@suse.de>
3443
f7741ce9
AS
3444 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
3445
1f625c6c
AS
3446 * doprnt.c (doprnt1): Fix size of charbuf.
3447
92bc2678
CY
34482008-12-02 Chong Yidong <cyd@stupidchicken.com>
3449
3450 * keyboard.c (timer_check): Revert last change.
3451
93b9e8cc
JB
34522008-12-02 Juanma Barranquero <lekktu@gmail.com>
3453
3454 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
3455
fd7a37d5
JB
34562008-12-01 Juanma Barranquero <lekktu@gmail.com>
3457
3458 * makefile.w32-in: Update dependencies.
3459 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
3460
c115043b
AS
34612008-12-01 Andreas Schwab <schwab@suse.de>
3462
3463 * font.c (register_font_driver): Use xmalloc.
3464 (font_put_frame_data): Likewise.
3465
f5668d2a
CY
34662008-12-01 Chong Yidong <cyd@stupidchicken.com>
3467
860d96be
CY
3468 * xfaces.c (realize_x_face): Make abort condition clearer.
3469
f5668d2a
CY
3470 * gtkutil.c (update_frame_tool_bar): Initialize variable.
3471
379c17e7
CY
34722008-11-30 Chong Yidong <cyd@stupidchicken.com>
3473
3474 * keyboard.c (timer_check): After a timer runs, ensure that the
3475 selected window's buffer is current.
3476
35f36d65
JB
34772008-11-30 Juanma Barranquero <lekktu@gmail.com>
3478
f952c61c
JB
3479 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
3480 It was accidentally restored by the Unicode merge.
3481
35f36d65
JB
3482 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
3483
b23077df
JB
34842008-11-29 Juanma Barranquero <lekktu@gmail.com>
3485
3486 * w32proc.c: Include "coding.h".
3487 (Fw32_short_file_name): Encode filename passed to Windows API.
3488 (Fw32_long_file_name): Encode filename passed to Windows API and
3489 decode back the result. (Bug#1433)
3490
b8ebe9dd
KH
34912008-11-29 Kenichi Handa <handa@m17n.org>
3492
8cc53f96
KH
3493 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
3494 not before accessing it.
3495
b8ebe9dd
KH
3496 * charset.c (Fdefine_charset_internal): After calculating
3497 min_char, max_char, and fastmap, copy the charset structure again.
3498 (encode_char): Fix the previous change.
3499
59bc82c0
SZ
35002008-11-28 Seiji Zenitani <zenitani@mac.com>
3501
3502 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
3503
3504 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
3505
3506 * nsterm.m (x_set_frame_alpha): New function.
3507
32247e3d
EZ
35082008-11-27 Eli Zaretskii <eliz@gnu.org>
3509
3510 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
3511
b003e5ff
JB
35122008-11-27 Juanma Barranquero <lekktu@gmail.com>
3513
3514 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
3515 pointer to check_face_name.
3516
708550f5
KH
35172008-11-27 Kenichi Handa <handa@m17n.org>
3518
3519 * category.h (SET_CATEGORY_SET): Call set_category_set.
3520 (set_category_set): Extern it.
3521
3522 * category.c (hash_get_category_set): New function.
3523 (Fmodify_category_entry): Adjusted for the change of
3524 char_table_ref_and_range. Call hash_get_category_set to get a
3525 category set to store in the table.
3526
3527 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
3528 Funify_charset.
3529
2ae37cf0 3530 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
3531 (DECODE_CHAR): Check if the decoder vector is ready.
3532 (ENCODE_CHAR): Check if the encoder char-table is ready.
3533 (maybe_unify_char): Extern it.
3534
3535 * charset.c (Vchar_unified_charset_table): Delete it.
3536 (inhibit_load_charset_map): New variable.
3537 (temp_charset_work): New variable.
3538 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
3539 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
3540 New macros.
3541 (load_charset_map): Meaning of control_flag changed. If
3542 inhibit_load_charset_map is nonzero, setup a table in
3543 temp_charset_work.
3544 (load_charset): New argument control_flag.
3545 (map_charset_for_dump): New function.
3546 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
3547 map_charset_for_dump.
3548 (Fdefine_charset_internal): If the charset method is MAP, load
3549 mapping tables by calling load_charset.
3550 (Funify_charset): Don't load a mapping table but directly set
3551 Vchar_unify_table.
3552 (maybe_unify_char): New function.
3553 (decode_char): Don't handle the deleted method MAP_DEFERRED.
3554 Handle the case of inhibit_load_charset_map being nonzero.
3555 (encode_char): Don't handle the deleted method MAP_DEFERRED.
3556 Handle the case of inhibit_load_charset_map being nonzero.
3557 (Fclear_charset_maps): Just free temp_charset_work.
3558 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
3559 variable.
3560
3561 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
3562 change of char_table_ref_and_range.
3563 (char_table_ref_and_range): Change the meaning of argument FROM
3564 and TO. Now the caller must provide initial values for *FROM
3565 and *TO.
3566
3567 * fontset.c (fontset_add): Adjusted for the change of
3568 char_table_ref_and_range.
3569 (fontset_get_font_group): Likewise.
3570 (Ffontset_info): Likewise.
3571
3572 * keymap.c (describe_vector): Adjusted for the change of
3573 char_table_ref_and_range. For char-table, put boundary between
3574 non-ASCII and 8-bit characters.
3575
3576 * print.c (print_object): For bool-vector, delete unnecessary
3577 check of ASCII_BYTE_P.
3578
9196133b
JR
35792008-11-26 Jason Rumney <jasonr@gnu.org>
3580
3581 * w32font.c (w32font_open_internal): Don't include external
9acef61c 3582 leading in font height. (Bug#879)
9196133b 3583
9f688acf
GM
35842008-11-26 Glenn Morris <rgm@gnu.org>
3585
3586 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
3587 redefinition with ifdef. (Bug#1383)
3588
90d19aff
AR
35892008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3590
3591 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
3592
4ccfa1c0 35932008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
3594
3595 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
3596 New EmacsView methods.
3597 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
3598 Fixes bug #1048,1357,1414.
3599
36002008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3601
3602 Fix bug #1362.
3603 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
3604 is not an indexed color.
3605 * nsterm.m (free_indexed_color): Add argument checking.
3606 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
3607
e7d5ecb3
CY
36082008-11-24 Chong Yidong <cyd@stupidchicken.com>
3609
3610 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
3611 Document confirm-after-completion value for
3612 minibuffer-completion-confirm.
3613
c285743c
JR
36142008-11-24 Jason Rumney <jasonr@gnu.org>
3615
3616 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
3617 warning.
3618
b0857706
JR
36192008-11-23 Jason Rumney <jasonr@gnu.org>
3620
3621 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
3622 restored before returning.
3623
3624 * w32font.c (check_face_name): New function.
3625 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 3626 fonts. (Bug#642)
b0857706 3627
ee50ff07
MR
36282008-11-22 Martin Rudalics <rudalics@gmx.at>
3629
3630 * buffer.c (Fswitch_to_buffer): Reword and mention new option
3631 confirm-nonexistent-file-or-buffer in doc-string.
3632
b8ff72fa
SM
36332008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
3634
3635 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
3636 Fix copy/paste typo. Add checks.
3637
cee53ed4
KH
36382008-11-21 Kenichi Handa <handa@m17n.org>
3639
3640 * coding.c (detect_coding_iso_2022): Reject invalid composition
3641 sequence.
3642 (DECODE_COMPOSITION_START): If the current source is the last
3643 block, and the current composition doesn't end, regard this
3644 sequence as invalid.
3645 (decode_coding_iso_2022): Handle invalid composition sequence.
3646
f6ef1e65
MR
36472008-11-20 Martin Rudalics <rudalics@gmx.at>
3648
3649 * window.c (coordinates_in_window): Don't return
3650 ON_VERTICAL_BORDER for the rightmost position of a mode/header
3651 line when the window is not the rightmost one. (Bug#1372)
3652
e08b1705
MR
36532008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
3654
3655 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
3656
ad98e89f
EZ
36572008-11-15 Eli Zaretskii <eliz@gnu.org>
3658
3659 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
3660 and bright_bg if noninteractive is non-zero.
3661
fb098a4b
CY
36622008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3663
3664 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
3665 x_draw_glyph_string_background.
3666
3667 * w32term.c (x_draw_glyph_string): Likewise.
3668
ce952b6e
CY
36692008-11-15 Chong Yidong <cyd@stupidchicken.com>
3670
3671 * xterm.c (x_draw_glyph_string): Stop drawing the background of
3672 the next glyph string once past the overhang width.
3673
3674 * nsterm.m (ns_draw_glyph_string): Likewise.
3675
3676 * w32term.c (x_draw_glyph_string): Likewise.
3677
26ea7079
CY
36782008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
3679
3680 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
3681 double file close.
3682
1c33c906
MR
36832008-11-14 Martin Rudalics <rudalics@gmx.at>
3684
3685 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
3686 dedicated status of window before attempting to display another
3687 buffer in it.
3688
8fc29035
JB
36892008-11-14 Juanma Barranquero <lekktu@gmail.com>
3690
3691 * msdos.c (Fmsdos_long_file_names):
3692 (syms_of_msdos) <dos-unsupported-char-glyph>:
3693 * dosfns.c (Fint86): Fix typos in docstrings.
3694
55fb4286
EZ
36952008-11-14 Eli Zaretskii <eliz@gnu.org>
3696
3697 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
3698
3fda0315
KY
36992008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
3700
3701 * puresize.h (BASE_PURESIZE): Increase to 1260000.
3702
7e849c17
CY
37032008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
3704
3705 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
3706
3707 * frame.h: Negative alpha means "don't touch".
3708
3709 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
3710
3711 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
3712
b9fd67bd
DN
37132008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
3714
3715 * hftctl.c:
3716 * chpdef.h:
3717 * acldef.h: Remove files used only for systems no longer supported.
3718
3719 * Makefile.in: Fix .o alphabetical ordering.
3720 (hftctl.o): Remove dependency, file removed.
3721 (keymap.o, print.o): Depend on charset.h.
3722
d5998e03
KH
37232008-11-10 Kenichi Handa <handa@m17n.org>
3724
2ae37cf0 3725 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 3726
be70e183
CY
37272008-11-08 Chong Yidong <cyd@stupidchicken.com>
3728
3729 * dired.c (file_name_completion): If completion_ignore_case is
3730 enabled, ignore case when checking completion-regexp-list.
3731
7cf94eac
EZ
37322008-11-08 Eli Zaretskii <eliz@gnu.org>
3733
3734 * vm-limit.c (get_lim_data): Fix last change.
3735
ee107a89
KH
37362008-11-08 Kenichi Handa <handa@m17n.org>
3737
3738 * character.c (Fget_byte): New function.
3739 (syms_of_character): Defsubr Fget_byte.
3740
5fd15622
CY
37412008-11-07 Chong Yidong <cyd@stupidchicken.com>
3742
3743 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
3744 cursor position is valid after scrolling.
3745
13d62fad
JB
37462008-11-06 Juanma Barranquero <lekktu@gmail.com>
3747
3748 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
3749
a1dd2936
GM
37502008-11-06 Glenn Morris <rgm@gnu.org>
3751
3752 * xterm.c (handle_one_xevent): Don't let popup menus cause
3753 mouse-autoselect-window related window switching. (Bug#1261)
3754
860cd236
CY
37552008-11-04 David Smith <davidsmith@acm.org> (tiny change)
3756
3757 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
3758
653a3150
AS
37592008-11-04 Andreas Schwab <schwab@suse.de>
3760
3761 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
3762
870f5cac
CY
37632008-11-03 Chong Yidong <cyd@stupidchicken.com>
3764
3765 * xfns.c (Fx_wm_set_size_hint): New function.
3766
1e02f3cb
MR
37672008-11-03 Martin Rudalics <rudalics@gmx.at>
3768
3769 * textprop.c (Fprevious_single_char_property_change): Return 0
3770 when there's no change in a string. (Bug#1301)
3771
e630dfc6
MR
37722008-11-02 Martin Rudalics <rudalics@gmx.at>
3773
3774 * frame.c (do_switch_frame): New argument NORECORD passed to
3775 Fselect_window.
3776 (Fselect_frame): New argument NORECORD passed to
3777 do_switch_frame.
3778 (Fset_frame_selected_window): New argument NORECORD passed to
3779 Fselect_frame.
3780 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
3781 in call of do_switch_frame.
3782 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
3783 Handle NORECORD argument in call of Fselect_frame.
3784 * lisp.h (do_switch_frame, Fselect_frame)
3785 (Fset_frame_selected_window): Adjust declarations.
3786 * window.c (select_frame_norecord): New function.
3787 (run_window_configuration_change_hook): Use it and call
3788 Fselect_frame with NORECORD set.
3789 (Fselect_window): Pass NORECORD to Fselect_frame.
3790 (Fset_window_configuration): Handle NORECORD argument in call of
3791 do_switch_frame.
3792 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
3793 Fset_frame_selected_window.
3794 * keyboard.c (command_loop_1): Handle NORECORD in call of
3795 Fselect_frame (currently ifdefd).
3796
9020b223
GM
37972008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
3798
3799 * emacs.c (USAGE2): Untabify.
3800
793ffee8
SM
38012008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
3802
3803 * composite.c (fill_gstring_header): Fix copy/paste typo.
3804
ab6d1131
MR
38052008-10-31 Martin Rudalics <rudalics@gmx.at>
3806
3807 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
3808 (Fother_window): Rename argument and rewrite doc-string.
3809 (select_window_norecord): Fix return value. (Bug#1276)
3810
601a9cf1
JB
38112008-10-30 Juanma Barranquero <lekktu@gmail.com>
3812
3813 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
3814 new frames overriding foreground for tooltips. Based on similar patch
3815 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
3816
813b0652
CY
38172008-10-29 Chong Yidong <cyd@stupidchicken.com>
3818
3819 * emacs.c (Fdaemon_initialized): Initialize nfd.
3820
4414f58f
MR
38212008-10-29 Martin Rudalics <rudalics@gmx.at>
3822
3823 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
3824 (Fwindow_text_height): Clarify doc-strings.
3825 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
3826 doc-string of window-scroll-functions.
3827
ecdcaa09
RS
38282008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
3829
3830 * category.c (syms_of_category): Fix typo in docstring.
3831
23fe745a
JB
38322008-10-28 Juanma Barranquero <lekktu@gmail.com>
3833
3834 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
3835 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
3836 Fix typos in docstrings.
3837
ff808935
DN
38382008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
3839
3840 * emacs.c (daemon_pipe): Make non-static.
3841 (IS_DAEMON): Move definition ...
3842 * lisp.h (IS_DAEMON): ... here.
3843 (daemon_pipe): Declare.
3844 (is_daemon): Remove.
3845 * dispnew.c (init_display): Use IS_DAEMON.
3846
fc012771
SM
38472008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
3848
3849 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
3850 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
3851
3852 * emacs.c (is_daemon): Remove.
3853 (main): Don't set is_daemon.
3854 (IS_DAEMON): New macro.
3855 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 3856 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
3857 parent exits.
3858 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
3859
d8bdbe6f
CY
38602008-10-27 Chong Yidong <cyd@stupidchicken.com>
3861
d1a072bf
CY
3862 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
3863 over-sized glyph, draw it with the default glyph width.
3864
e2e325aa
CY
3865 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
3866 glyph, draw it with the default glyph width.
3867
3868 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
3869 glyph, draw it with the default glyph width.
3870
d8bdbe6f
CY
3871 * xdisp.c (try_scrolling): When computing the distance from the
3872 scroll margin to PT, try moving some distance past the window
3873 bottom before giving up.
3874
7bfac547
MR
38752008-10-27 Martin Rudalics <rudalics@gmx.at>
3876
3877 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
3878 (Fset_window_buffer): Explain in doc-string that a window can be
3879 "strongly" dedicated to its buffer.
3880
4ff029f6
DN
38812008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
3882
3883 * emacs.c (daemon_name): New variable.
3884 (main): Deal with --daemon=SERVER_NAME.
3885 (Fdaemonp): Return a name if one was passed to --daemon.
3886
5790ef40
DN
38872008-10-26 Romain Francoise <romain@orebokech.com>
3888
f9bd0df9 3889 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
3890 (main): Create a pipe before forking, make the parent exit only after
3891 the child has closed its end of the pipe. Move closing the
3892 descriptors ...
3893 (Fdaemon_initialized): ... here. New function.
3894
f5385255
SM
38952008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
3896
4d632321
SM
3897 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
3898 the previous unoptimized table.
3899
f5385255
SM
3900 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
3901 the distinction between non-nil and non-t value of `dedicated'.
3902
6c56a0f3
CY
39032008-10-25 Chong Yidong <cyd@stupidchicken.com>
3904
3905 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 3906 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 3907
fec89261
MR
39082008-10-25 Martin Rudalics <rudalics@gmx.at>
3909
3910 * window.c (Fget_buffer_window, Fdelete_windows_on)
3911 (Freplace_buffer_in_windows): Make buffer argument optional and
3912 rename to buffer_or_name.
3913
34fcddd0
CY
39142008-10-24 Chong Yidong <cyd@stupidchicken.com>
3915
f5385255
SM
3916 * xdisp.c (handle_single_display_spec, handle_display_prop):
3917 Undo 2005-05-16 change.
34fcddd0
CY
3918 (handle_stop): Pop iterator if it's loaded with an empty string.
3919 (get_overlay_strings_1): Don't save iterator if it's loaded with
3920 an empty string (bug#1201).
3921
064766f2
KH
39222008-10-24 Kenichi Handa <handa@m17n.org>
3923
3924 * ftfont.c (ftfont_otf_features): Fix previous change.
3925 (ftfont_otf_capability): Check FeatureList.FeatureCount before
3926 calling ftfont_otf_features.
3927
f9bd0df9 39282008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
3929
3930 * font.c (font_match_p): Fix for the case that a vector of
3931 characters is in script-representative-chars.
3932
1dae9197
MA
39332008-10-24 Michael Albinus <michael.albinus@gmx.de>
3934
3935 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 3936 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
3937 (xd_read_queued_messages): Catch Qdbus_error from the macros.
3938 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
3939 macro. (Bug#1186).
3940
f9bd0df9 39412008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
3942
3943 * s/sol2-10.h: New file.
3944
878a4584
JB
39452008-10-23 Juanma Barranquero <lekktu@gmail.com>
3946
3947 * xdisp.c (fill_glyph_string): Fix typo in source (though the
3948 poor beast has survived 9+ years and the jump from xterm.c!).
3949
cd265ca6
MR
39502008-10-23 Martin Rudalics <rudalics@gmx.at>
3951
3952 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
3953 Reword doc-string.
f5385255 3954 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 3955
472a4dc9
JB
39562008-10-23 Juanma Barranquero <lekktu@gmail.com>
3957
3958 * character.c (syms_of_character) <script-representative-chars>:
3959 <unicode-category-table>: Doc fixes.
3960
159bd5a2
NF
39612008-10-23 Noah Friedman <friedman@splode.com>
3962
3963 * coding.c (make_conversion_work_buffer): Check that
3964 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
3965 Fget_buffer_create.
3966
49f9c344
KH
39672008-10-23 Kenichi Handa <handa@m17n.org>
3968
3969 * font.c (font_add_log): Check the values of extra properties.
3970
12bb3111
MR
39712008-10-22 Martin Rudalics <rudalics@gmx.at>
3972
3973 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
3974 Reword doc-string.
3975 (Fset_window_parameter): Use NILP.
3976 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 3977 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 3978
bbeb4e99
JB
39792008-10-22 Juanma Barranquero <lekktu@gmail.com>
3980
3981 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
3982
39832008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
3984
3985 * nsfns.m (ns_appkit_version): New function.
3986 (x-server-version): Use it.
3987 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
3988 (x-server-vendor): Don't check_ns().
3989
3990 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
3991
a9b555d3
JB
39922008-10-22 Juanma Barranquero <lekktu@gmail.com>
3993
3994 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
3995 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
3996
4626499f
KH
39972008-10-22 Kenichi Handa <handa@m17n.org>
3998
e3681952
KH
3999 * syntax.c (scan_words): Call word_boundary_p instead of comparing
4000 scripts.
4001
4626499f
KH
4002 * category.c (word_boundary_p): Check scripts instead of charset.
4003 Handle nil value in word-separating-categories and
4004 word-combining-categories.
4005 (syms_of_category): Fix docstrings of word-separating-categories
4006 and word-combining-categories.
4007
1560f91a
EZ
40082008-10-21 Eli Zaretskii <eliz@gnu.org>
4009
4010 * coding.c (Fencode_coding_region, Fdecode_coding_region)
4011 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
4012
f4668441
MR
40132008-10-21 Martin Rudalics <rudalics@gmx.at>
4014
4015 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
4016 Rename arg "buffer" to "buffer_or_name".
4017 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
4018 it optional.
4019 (no_switch_window): Remove since the return value is not used.
a9b555d3 4020 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
4021 Consider window as dedicated when Fwindow_dedicated_p returns a
4022 non-nil value.
4023 * lisp.h: Remove prototype for no_switch_window.
4024
fd75ddb2
JD
40252008-10-21 Jan Djärv <jan.h.d@swipnet.se>
4026
4027 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 4028 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 4029
07295713
KH
40302008-10-21 Kenichi Handa <handa@m17n.org>
4031
4032 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
4033 check Vlatin_extra_code_table.
4034
712adc82
EZ
40352008-10-20 Eli Zaretskii <eliz@gnu.org>
4036
4037 * fileio.c (Fset_file_modes): Doc fix.
4038
f549eb0b
MA
40392008-10-19 Michael Albinus <michael.albinus@gmx.de>
4040
4041 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
4042 in arrays.
4043
aac0c6e3
MR
40442008-10-19 Martin Rudalics <rudalics@gmx.at>
4045
4046 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
4047 Mention kill-buffer in doc-string.
4048 (Fset_window_buffer): Reinsert tem check removed in last commit.
4049 (Fenlarge_window, Fshrink_window): Have argument names and
4050 doc-string follow Elisp manual more closely.
4051
40522008-10-18 Eli Zaretskii <eliz@gnu.org>
4053
4054 * fileio.c (Fset_file_modes): Doc fix.
4055
40562008-10-18 Martin Rudalics <rudalics@gmx.at>
4057
4058 * window.c (Fwindow_width, Fset_window_start)
4059 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
4060 (Fdelete_windows_on, Freplace_buffer_in_windows):
4061 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
4062 (Fwindow_dedicated_p): Make window argument optional.
4063 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
4064 (Fset_window_buffer): Respect any non-nil dedicated value for
4065 window. Rename "buffer" argument to "buffer_or_name".
4066
40672008-10-18 Ulrich Mueller <ulm@gentoo.org>
4068
4069 * m/sh3.h: New file, machine description for SuperH.
4070
40712008-10-17 Martin Rudalics <rudalics@gmx.at>
4072
4073 * window.c (Fsplit_window): Rename arg horflag to horizontal.
4074
40752008-10-17 Kenichi Handa <handa@m17n.org>
4076
4077 * ftfont.c (ftfont_otf_features): Fix indexing
4078 gsub_gpos->FeatureList.Feature. Check the validity of indices.
4079
40802008-10-16 Magnus Henoch <mange@freemail.hu>
4081
4082 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
4083 (Fdbus_call_method_asynchronously): Ditto.
4084 This change makes C-h f display the argument list.
4085
40862008-10-16 Chong Yidong <cyd@stupidchicken.com>
4087
4088 * fileio.c (Fexpand_file_name): Doc fix.
4089
4090 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
4091 of :foreground and :background equivalent to unspecified (20.x
4092 compatibility).
4093
40942008-10-15 Eli Zaretskii <eliz@gnu.org>
4095
4096 * buffer.c (syms_of_buffer): Doc fix.
4097
40982008-10-14 Kenichi Handa <handa@m17n.org>
4099
4100 * font.c (font_clear_prop): When clearing font width, clear the
4101 average width field too.
4102
41032008-10-12 Andreas Schwab <schwab@suse.de>
4104
4105 * ftfont.c (ftfont_shape_by_flt): Make static.
4106 * ftfont.h (ftfont_shape_by_flt): Don't declare.
4107
4108 * font.c: Don't include <m17n-flt.h>.
4109
41102008-10-10 Eli Zaretskii <eliz@gnu.org>
4111
4112 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
4113
41142008-10-09 Eli Zaretskii <eliz@gnu.org>
4115
4116 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
4117 away code.
4118
41192008-10-09 Chong Yidong <cyd@stupidchicken.com>
4120
4121 * dispnew.c (update_text_area): Avoid looping due to large glyph
4122 overhangs (bug#1070).
4123
41242008-10-09 Kenichi Handa <handa@m17n.org>
4125
4126 * fontset.c (face_for_char): If face->fontset is negative, just
4127 return ascii_face.
4128
f5385255
SM
4129 * font.c (font_delete_unmatched): Fix previous change.
4130 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
4131
41322008-10-09 Martin Rudalics <rudalics@gmx.at>
4133
4134 * frame.c (Fraise_frame): On text-only terminals select frame in
4135 order to make it visible. (Bug#1061)
4136
41372008-10-08 Chong Yidong <cyd@stupidchicken.com>
4138
4139 * fontset.c (fontset_find_font): Check frame validity.
4140
41412008-10-07 Chong Yidong <cyd@stupidchicken.com>
4142
a9b555d3 4143 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
4144 (xg_display_close): Allow Emacs to close all displays (bug#985).
4145
41462008-10-06 Andreas Schwab <schwab@suse.de>
4147
f5385255 4148 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
4149
41502008-10-06 Chong Yidong <cyd@stupidchicken.com>
4151
f5385255 4152 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 4153
a9b555d3 4154 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
4155
4156 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
4157 during initialization.
4158
41592008-10-04 Eli Zaretskii <eliz@gnu.org>
4160
4161 * xdisp.c (redisplay_internal): If frame switched, redisplay the
4162 whole thing on MSDOS frames as well as on a TTY.
4163
4164 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
4165 well as for TTY.
4166 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
4167 well as on a TTY.
4168
4169 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
4170 as well as for TTY.
4171
4172 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
4173
4174 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
4175 MSDOS frames as well.
4176
41772008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
4178
4179 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
4180 correct arguments.
b71ac3dd 4181 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
4182
41832008-10-03 Glenn Morris <rgm@gnu.org>
4184
4185 * emacs.c (USAGE1): Add --daemon.
4186
41872008-10-02 Eli Zaretskii <eliz@gnu.org>
4188
4189 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
4190 100, so it's in percents as advertised.
4191
41922008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
4193
4194 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
4195 (ns_output.current_cursor, ns_output.desired_cursor)
4196 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
4197 (FRAME_NEW_CURSOR_COLOR): Remove.
4198
4199 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 4200 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
4201 enumeration (HOLLOW_BOX_CURSOR, etc.).
4202
4203 * nsterm.m (ns_frame_rehighlight): Remove commented code.
4204 (draw_window_cursor): Simplify code.
f5385255
SM
4205 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
4206 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 4207 updates manually.
a9b555d3
JB
4208 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
4209 Use core Emacs cursor types.
aac0c6e3 4210
b8ff72fa 4211 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
4212
42132008-10-02 Martin Rudalics <rudalics@gmx.at>
4214
4215 * process.c (Faccept_process_output): Fix doc-string.
4216
42172008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
4218
4219 * gmalloc.c (__sbrk): Also define for uClibc.
4220
4221 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
4222 for uClibc.
4223
42242008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4225
4226 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
4227 styles.
4228 (nsfont_open): Reenable the cache.
4229
42302008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4231
4232 * font.c (font_matching_entity): Reflect ATTRS in font selection.
4233 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
4234
42352008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
4236
4237 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
4238 a suspended terminal.
4239
42402008-09-30 Michael Albinus <michael.albinus@gmx.de>
4241
4242 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
4243
42442008-09-30 Eli Zaretskii <eliz@gnu.org>
4245
4246 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
4247
42482008-09-30 Chong Yidong <cyd@stupidchicken.com>
4249
4250 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
4251 in a continued line coincides with a line beginning.
4252
42532008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4254
4255 * nsfont.m (nsfont_trait_distance): Fix bug.
4256 (nsfont_list): Return a list rather than a vector (syncs with Handa
4257 changes of 2008-05-14).
4258 (nsfont_open): Improve logging.
4259
42602008-09-29 Andreas Schwab <schwab@suse.de>
4261
4262 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
4263
42642008-09-28 Martin Rudalics <rudalics@gmx.at>
4265
4266 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
4267 name as char-resolve-modifiers.
4268 Reported by: Markus Triska <markus.triska@gmx.at>
4269
42702008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
4271
4272 * dispnew.c (init_display): Return earlier when running as a daemon.
4273
42742008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
4275
4276 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
4277
42782008-09-27 Eli Zaretskii <eliz@gnu.org>
4279
4280 * composite.c (Fcomposition_get_gstring)
4281 (Fcompose_region_internal, Fcompose_string_internal)
4282 (Ffind_composition_internal): Doc fix.
4283 (syms_of_composite) <compose-chars-after-function>: Doc fix.
4284 (syms_of_composite) <auto-composition-function>: Doc fix.
4285 (syms_of_composite) <composition-function-table>: Doc fix.
4286
42872008-09-25 Chong Yidong <cyd@stupidchicken.com>
4288
4289 * search.c (wordify): New argument for lax word-ends.
4290 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
4291
42922008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
4293
4294 * lisp.h (is_daemon): Declare.
4295 * dispnew.c (init_display): Do not try to initialize the terminal
4296 when running as a daemon.
4297
42982008-09-22 Chong Yidong <cyd@stupidchicken.com>
4299
4300 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
4301 x_display_pixel_height.
4302
43032008-09-22 Martin Rudalics <rudalics@gmx.at>
4304
4305 * undo.c (record_point): Don't call Fundo_boundary for first
4306 change. (Bug#731)
4307
43082008-09-22 Juanma Barranquero <lekktu@gmail.com>
4309
4310 * emacs.c (Fdaemonp): Doc fix.
4311
43122008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
4313
4314 * emacs.c (main): Place #ifdef in the proper place.
4315
43162008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
4317
4318 * emacs.c (standard_args): Add --daemon.
4319 (main): Disconnect from the terminal when --daemon is passed.
4320 (is_daemon): New variable.
4321 (Fdaemonp): New function.
4322 (syms_of_emacs): Defsubr it.
4323
43242008-09-20 Chong Yidong <cyd@stupidchicken.com>
4325
4326 * xdisp.c (get_next_display_element): Handle string display
4327 correctly when checking for the end of a box run.
4328
43292008-09-20 Glenn Morris <rgm@gnu.org>
4330
4331 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
4332 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
4333 (Frename_file): Avoid copying to trash if a rename involves
4334 a delete. (Bug#964).
4335
43362008-09-20 Eli Zaretskii <eliz@gnu.org>
4337
4338 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
4339 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
4340 frames as well as termcap frames.
4341 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
4342 get_named_tty.
4343
43442008-09-19 Eli Zaretskii <eliz@gnu.org>
4345
4346 * process.c (procfs_system_process_attributes): Fix cmdline in
4347 case /proc/PID/cmdline is empty.
4348
4349 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
4350 x_display_pixel_height.
4351
43522008-09-19 Juanma Barranquero <lekktu@gmail.com>
4353
4354 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
4355
4356 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
4357 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
4358
43592008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
4360
4361 * dispextern.h (struct it): Move line_wrap away from the middle of
4362 bitfields. Move voffset in struct iterator_stack_entry after the
4363 bitfields. Move tab_width near after another short.
4364
43652008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
4366
4367 * frame.h (struct frame): Move alpha from the middle of bitfields.
4368
4369 * window.h (struct window): Move frozen_window_start_p after the
4370 rest of the bitfields to reduce padding.
4371
43722008-09-18 Chong Yidong <cyd@stupidchicken.com>
4373
4374 * xterm.h (x_display_info): Remove `height' and `width' members.
4375
4376 * nsterm.h (ns_display_info): Remove `height' and `width' members.
4377
4378 * w32term.h (w32_display_info): Remove `height', `width',
4379 `height_in', and `width_in' members.
4380
b8ff72fa
SM
4381 * xterm.c (x_display_pixel_height, x_display_pixel_width):
4382 New functions.
aac0c6e3
MR
4383 (x_calc_absolute_position): Use them.
4384 (x_term_init): Omit removed `height' and `width' members.
4385
b8ff72fa
SM
4386 * w32term.c (x_display_pixel_height, x_display_pixel_width):
4387 New functions.
aac0c6e3
MR
4388 (w32_read_socket, x_calc_absolute_position): Use them.
4389 (w32_initialize_display_info, w32_term_init): Omit removed members
4390 of w32_display_info.
4391
b8ff72fa
SM
4392 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
4393 New functions.
4394 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 4395
b8ff72fa
SM
4396 * xterm.c (x_display_pixel_height, x_display_pixel_width):
4397 New functions.
aac0c6e3
MR
4398 (x_calc_absolute_position): Use them.
4399 (x_term_init): Omit removed `height' and `width' members.
4400
4401 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
4402 (compute_tip_xy):
4403 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
4404 * xmenu.c (menu_position_func): Use x_display_pixel_height and
4405 x_display_pixel_width.
4406
44072008-09-18 Kenichi Handa <handa@m17n.org>
4408
4409 * composite.c (fill_gstring_header): Don't check FROM and TO here.
4410 (composition_compute_stop_pos): Fix handling of static composition.
4411 (Fcomposition_get_gstring): Check FROM and TO at first.
4412
44132008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
4414
46e722a9 4415 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
4416 mixup (YAILOM).
4417
44182008-09-17 Chong Yidong <cyd@stupidchicken.com>
4419
4420 * indent.c (Fvertical_motion): Use position reported by iterator
4421 instead of PT for determining screen motion (bug#943).
4422
44232008-09-17 Romain Francoise <romain@orebokech.com>
4424
4425 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
4426
44272008-09-17 Kenichi Handa <handa@m17n.org>
4428
4429 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
4430
4431 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
4432 if necessary.
4433
44342008-09-16 Kenichi Handa <handa@m17n.org>
4435
4436 * coding.c (make_conversion_work_buffer): Avoid calling
4437 Fget_buffer_create if it is not necessary.
4438
44392008-09-15 Martin Rudalics <rudalics@gmx.at>
4440
4441 * window.c (Fselect_window): Don't update window_select_count and
4442 use_time when norecord is not nil.
4443
44442008-09-14 Kenichi Handa <handa@m17n.org>
4445
4446 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
4447 specpdl_ptr.
4448
44492008-09-12 Kenichi Handa <handa@m17n.org>
4450
4451 * indent.c (scan_for_column): Don't handle automatic composition
4452 if the current buffer is not associated with a window.
4453
4454 * composite.c (composition_reseat_it): If the current buffer is
4455 not associated with a window, ignore the automatic composition.
4456 (find_automatic_composition): Likewise.
4457
44582008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4459
4460 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
4461 (Fgpm_mouse_stop): Use it.
4462 * termhooks.h (close_gpm): Declare.
4463 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
4464 connection if Gpm_GetEvent fails.
4465
4466 * window.c (set_window_buffer): Always preserve current-buffer.
4467
44682008-09-12 Glenn Morris <rgm@gnu.org>
4469
4470 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
4471
44722008-09-11 Glenn Morris <rgm@gnu.org>
4473
4474 * charset.c (charset-map-path): Doc fix.
4475
44762008-09-10 Kenichi Handa <handa@m17n.org>
4477
4478 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
4479
4480 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
4481 compose a grapheme cluster with the preceding base glyph.
4482
4483 * composite.c (composition_compute_stop_pos): Fix previous change.
4484 Reset cmp_it->id to -1 at first.
4485
44862008-09-10 Glenn Morris <rgm@gnu.org>
4487
4488 * Makefile.in (character.o, chartab.o): Fix config.h typo.
4489
44902008-09-09 Chong Yidong <cyd@stupidchicken.com>
4491
4492 * keyboard.c (read_key_sequence): Reapply translation maps when
4493 switching keyboards.
4494
44952008-09-09 Kenichi Handa <handa@m17n.org>
4496
4497 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
4498 characters.
4499
4500 * composite.c (FORWARD_CHAR): Fix calculation
4501 of (POSITION).pos_byte.
4502 (composition_compute_stop_pos): Limit the search of composition to
4503 at most 500 characters ahead. If we reach the limit or find a
4504 newline, set cmp_it->ch to -2 and return 0.
4505 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
4506
45072008-09-08 Kenichi Handa <handa@m17n.org>
4508
4509 * indent.c (Fvertical_motion): Be sure to set
4510 it_overshoot_expected if it.cmp_it.id is non-negative.
4511
45122008-09-07 Andreas Schwab <schwab@suse.de>
4513
4514 * callproc.c (Fcall_process): Don't hold references to string data
4515 across garbage collection. Move initialisation of new_argv down
4516 to avoid compiler bug.
4517
45182008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
4519
4520 * process.c (Fsystem_process_attributes): Doc fix.
4521
45222008-09-07 Chong Yidong <cyd@stupidchicken.com>
4523
4524 * callproc.c (Fcall_process): Canonicalize current directory name.
4525
4526 * xdisp.c (move_it_to): When moving by vpos, ensure that the
4527 iterator advances to the next line if the current line ends in a
4528 continued tab.
4529
45302008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
4531
4532 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
4533 member to point to cmp_from.
4534
4535 * xdisp.c: Doc fix for references to gidx data member.
4536
45372008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
4538
4539 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
4540
45412008-09-07 Kenichi Handa <handa@m17n.org>
4542
4543 * composite.c (FORWARD_CHAR): Check STOP after
4544 incrementing (POSITION).pos.
4545
45462008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
4547
4548 * process.c (Fsystem_process_attributes): Doc fix.
4549
45502008-09-06 Chong Yidong <cyd@stupidchicken.com>
4551
4552 * keyboard.c (Ftop_level): Doc fix.
4553
45542008-09-06 Eli Zaretskii <eliz@gnu.org>
4555
4556 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
4557 minibuffer, don't let lower part of menu invade the echo area.
4558
4559 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
4560 "char *q" to access menu text and advance through it. Revert the
4561 change that displayed ">" instead of ASCII character 0x10.
4562
45632008-09-05 Eli Zaretskii <eliz@gnu.org>
4564
4565 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
4566 toggle boxes and radio buttons on MS-DOS as well.
4567
45682008-09-05 Kenichi Handa <handa@m17n.org>
4569
4570 * composite.c (autocmp_chars): Check lookback count.
4571 (composition_compute_stop_pos): Set cmp_it->lookback.
4572 (composition_reseat_it): Check lookback count.
4573 (struct position_record): New struct.
4574 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
4575 (find_automatic_composition): New function.
4576 (composition_adjust_point): Use find_automatic_composition.
4577
4578 * dispextern.h (struct composition_it): New member lookback.
4579
45802008-09-02 Chong Yidong <cyd@stupidchicken.com>
4581
4582 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
4583 if moving by a single line.
4584
45852008-09-02 Andreas Schwab <schwab@suse.de>
4586
4587 * xterm.c (x_delete_display): Fix merge error.
4588
4589 * fileio.c (Fexpand_file_name): Remove unused variables.
4590
45912008-09-02 Eli Zaretskii <eliz@gnu.org>
4592
4593 * fileio.c (Fexpand_file_name): Copy argument `name' into local
4594 storage on all platforms, not just on DOS_NT.
4595
45962008-09-02 Jason Rumney <jasonr@gnu.org>
4597
b8ff72fa
SM
4598 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
4599 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
4600
46012008-09-01 Chong Yidong <cyd@stupidchicken.com>
4602
4603 * xfaces.c (Finternal_set_alternative_font_family_alist)
4604 (Finternal_set_alternative_font_registry_alist): Properly copy
4605 entire alist structure.
4606
46072008-09-01 Kenichi Handa <handa@m17n.org>
4608
d66c0241 4609 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 4610 representative chars of the script is a vector.
d66c0241
JB
4611 (ftfont_list): Handle the case where the representative chars of
4612 the script is a vector.
aac0c6e3
MR
4613
4614 * character.c (syms_of_character): Docstring of
4615 script-representative-chars fixed.
4616
46172008-08-31 Eli Zaretskii <eliz@gnu.org>
4618
4619 * msdos.c (BUILD_CHAR_GLYPH): New macro.
4620 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
4621 the menu. Allocate larger buffer for `text', to account for
4622 possible ^C characters.
4623
46242008-08-31 Martin Rudalics <rudalics@gmx.at>
4625
4626 * xdisp.c (prepare_menu_bars): Don't call
4627 Vwindow_size_change_functions with arg Qt.
4628
46292008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
4630
4631 * font.h (font_range):
4632 * fileio.c (report_file_error):
46e722a9
SM
4633 * composite.c (composition_update_it): Yet another int/Lisp_Object
4634 mixup (YAILOM).
aac0c6e3
MR
4635
46362008-08-30 Glenn Morris <rgm@gnu.org>
4637
4638 * data.c (Fmake_variable_frame_local): Doc fix.
4639
4640 * frame.c (Fmodify_frame_parameters): Doc fix.
4641
46422008-08-30 Eli Zaretskii <eliz@gnu.org>
4643
4644 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
4645 needed by GetTokenInformation.
4646 (w32_system_process_attributes): Check return values of all system
4647 APIs.
4648
4649 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
4650 only when the state changes.
4651 (IT_update_begin, IT_update_end): Add termscript trace.
4652
4653 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
4654 clipboard is unavailable. Set dst to NULL if it doesn't point to
4655 malloc'ed data.
4656 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
4657 passing random values to xfree.
4658
4659 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 4660 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
4661
46622008-08-29 Jason Rumney <jasonr@gnu.org>
4663
4664 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
4665
46662008-08-29 Eli Zaretskii <eliz@gnu.org>
4667
4668 * composite.c (fill_gstring_body): Avoid compiler warnings.
4669
4670 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
4671 LGLYPH_SET_CODE to avoid compiler warnings.
4672
2ae37cf0 4673 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
4674
4675 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
4676
4677 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
4678 LGLYPH_SET_CODE.
4679
46802008-08-29 Kenichi Handa <handa@m17n.org>
4681
4682 * fileio.c (report_file_error): Don't downcase the first character
4683 of errstring if it is still unibyte.
4684
46852008-08-29 Kenichi Handa <handa@m17n.org>
4686
4687 These changes are to re-implement the automatic composition so
4688 that it doesn't use text properties.
4689
4690 * Makefile.in (ftfont.o): Depend on composite.h.
4691 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
4692
4693 * character.h (Vunicode_category_table): Extern it.
4694
4695 * character.c (Vunicode_category_table): New variable.
4696 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
4697
4698 * chartab.c (optimize_sub_char_table): Perform more greedy
4699 optimization.
4700
b8ff72fa
SM
4701 * composite.h (enum composition_method):
4702 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
4703 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
4704 (Vcomposition_function_table): Extern it.
4705 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
4706 (composition_gstring_put_cache, composition_gstring_from_id)
4707 (composition_gstring_p, composition_gstring_width)
4708 (composition_compute_stop_pos, composition_reseat_it)
4709 (composition_update_it, composition_adjust_point): Extern them.
4710 (Fcomposition_get_gstring): EXFUN it.
4711
d66c0241 4712 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
4713 (Vcomposition_function_table)
4714 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
4715 (gstring_hash_table, gstring_work, gstring_work_headers):
4716 New variables.
aac0c6e3
MR
4717 (gstring_lookup_cache, composition_gstring_put_cache)
4718 (composition_gstring_from_id, composition_gstring_p)
4719 (composition_gstring_width, fill_gstring_header)
4720 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
4721 (composition_reseat_it, composition_update_it)
b8ff72fa 4722 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
4723 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
4724 and gstring_work_headers. DEFVAR_LISP composition-function-table.
4725 Defsubr compostion_get_gstring.
4726
4727 * dispextern.h (struct glyph): New union u.cmp. Delete the member
4728 cmp_id.
4729 (struct glyph_string): Delete the member gidx. New members
4730 cmp_id, cmp_from, and cmp_to.
4731 (enum it_method): Delete GET_FROM_COMPOSITION.
4732 (struct composition_it): New struct.
4733 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
4734 Delete c, len, cmp_id, cmp_len in u.comp.
4735
4736 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 4737 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 4738 (enum lglyph_indices): Likewise.
b8ff72fa 4739 (font_range): Adjust extern.
aac0c6e3
MR
4740 (font_fill_lglyph_metrics): Extern it.
4741
4742 * font.c (QCf): New variable.
4743 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
4744 (font_prepare_composition): Delete this function.
4745 (font_range): Type and arguments changed.
4746 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
4747 (font_fill_lglyph_metrics): New function.
b8ff72fa 4748 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 4749 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
4750 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
4751 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
4752
4753 * fontset.h (font_for_char): Extern it.
4754
4755 * fontset.c (font_for_char): New function.
4756
4757 * ftfont.c: Include composite.h.
4758 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 4759 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
4760
4761 * indent.c: Include composite.h and dispextern.h.
4762 (check_composition): Delete this function.
4763 (scan_for_column): Handle composition by
4764 composition_compute_stop_pos, composition_reseat_it, and
4765 composition_update_it.
4766 (compute_motion): Likewise.
4767 (Fvertical_motion): Fix checking of composition.
4768
4769 * keyboard.c (adjust_point_for_property): Check composition by
4770 composition_adjust_point.
4771
b8ff72fa 4772 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
4773 struct glyph_string.
4774
b8ff72fa
SM
4775 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
4776 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
4777 struct glyph.
4778 (produce_composite_glyph): Likewise.
4779
b8ff72fa
SM
4780 * w32term.c (x_draw_composite_glyph_string_foreground):
4781 Adjust for the change of struct glyph_string.
aac0c6e3
MR
4782 (x_draw_glyph_string): Likewise.
4783
4784 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
4785 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
4786
4787 * xdisp.c: Include font.h.
4788 (it_props): Delete the entry for Qauto_composed.
4789 (init_iterator): Initialize it->cmp_it.id to -1.
4790 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 4791 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
4792 (handle_auto_composed_prop): Delete it.
4793 (handle_composition_prop): Handle only static composition.
4794 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
4795 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 4796 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
4797 (pop_it): Likewise.
4798 (get_next_element): Delete next_element_from_composition.
4799 (CHAR_COMPOSED_P): New macro.
4800 (get_next_display_element): For automatic composition, get a face
4801 from the font in the glyph-string.
4802 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 4803 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
4804 (next_element_from_string): Check if the character at the current
4805 position is composed by CHAR_COMPOSED_P.
4806 (next_element_from_buffer): Likewise.
d66c0241
JB
4807 (next_element_from_composition): Adjust for the change of struct it.
4808 Update it->cmp_it.
b8ff72fa
SM
4809 (dump_glyph): Adjust for the change of struct glyph.
4810 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
4811 it and struct glyph. Don't handle automatic composition here.
4812 (fill_gstring_glyph_string): New function.
4813 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 4814 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
4815 (BUILD_GSTRING_GLYPH_STRING): New macro.
4816 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
4817 automatic composition.
b8ff72fa 4818 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 4819 struct glyph.
b8ff72fa 4820 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 4821
b8ff72fa 4822 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
4823 the change of struct glyph_string.
4824 (x_draw_glyph_string): Likewise.
4825
48262008-08-29 Glenn Morris <rgm@gnu.org>
4827
4828 * buffer.c (word-wrap): Doc fix.
4829 * xdisp.c (truncate-partial-width-windows): Doc fix.
4830 Increase default to 50.
4831
48322008-08-29 Chong Yidong <cyd@stupidchicken.com>
4833
4834 * xdisp.c (update_tool_bar_unwind): New function.
4835 (update_tool_bar): Temporarily set selected frame before building
4836 tool-bar items.
4837
48382008-08-28 Michael Albinus <michael.albinus@gmx.de>
4839
4840 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
4841 snprintf, respectively.
4842 (xd_append_arg): Convert strings with Fstring_make_unibyte.
4843
48442008-08-28 Chong Yidong <cyd@stupidchicken.com>
4845
4846 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
4847 LDFLAGS to GNUstep CC invocation.
4848
48492008-08-27 Chong Yidong <cyd@stupidchicken.com>
4850
4851 * indent.c (Fvertical_motion): Revert last change. Handle the
4852 general case where we are moving forward, and PT spans multiple
4853 screen lines.
4854
4855 * eval.c (find_handler_clause): Temporarily increase
4856 max-lisp-eval-depth while printing the backtrace buffer, to
4857 guarantee that help-mode code can run.
4858
48592008-08-27 Eli Zaretskii <eliz@gnu.org>
4860
4861 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
4862 colors under -rv.
4863 (IT_set_frame_parameters): Don't swap foreground and background
4864 colors if `(reverse . t)' is present in the frame properties.
4865 (internal_terminal_init): Call init_frame_faces only for the
4866 initial frame.
4867
48682008-08-27 Andreas Schwab <schwab@suse.de>
4869
4870 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
4871
48722008-08-27 Andreas Schwab <schwab@suse.de>
4873
4874 * search.c (search_buffer): Set char_base to zero only at the end.
4875
48762008-08-27 Kenichi Handa <handa@m17n.org>
4877
b8ff72fa 4878 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
4879
48802008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
4881
4882 * xterm.c (x_term_init): Temporarily hide the partially
4883 initialized terminal while calling vendor-specific-keysyms.
4884
48852008-08-26 Eli Zaretskii <eliz@gnu.org>
4886
4887 * msdos.c (internal_terminal_init): Most initializations done only
4888 once, especially initial_screen_colors[] and termscript open.
4889
48902008-08-26 Chong Yidong <cyd@stupidchicken.com>
4891
4892 * eval.c (Fcondition_case): Doc fix.
4893
4894 * widgetprv.h (EmacsFramePart): Change font member to the new font
4895 struct.
4896
4897 * widget.c: Include character.h and font.h for XSETFONT.
4898 (setup_frame_gcs): Compute X font id from font struct, just once.
4899
49002008-08-26 Eli Zaretskii <eliz@gnu.org>
4901
4902 * term.c (get_named_tty): Fix last change.
4903
49042008-08-26 Chong Yidong <cyd@stupidchicken.com>
4905
4906 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 4907 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
4908
49092008-08-25 Eli Zaretskii <eliz@gnu.org>
4910
4911 * frame.c (do_switch_frame): Mark previously displayed frame as
4912 obscured for FRAME_MSDOS_P frames as well.
4913
49142008-08-24 Eli Zaretskii <eliz@gnu.org>
4915
4916 * frame.c (make_terminal_frame): Initialize f->terminal,
4917 f->terminal->reference_count, and scroll bars on MS-DOS as well.
4918 Set the top frame to newly created frame.
4919 (Fmake_terminal_frame): Reuse the_only_display_info.
4920
4921 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
4922 estimating available memory.
4923
b97439ce 49242008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
4925
4926 * nsterm.m (ns_draw_window_cursor): Don't call
4927 NSDisableScreenUpdates and NSEnableScreenUpdates on
4928 non-NS_IMPL_COCOA systems.
4929
49302008-08-23 Andreas Schwab <schwab@suse.de>
4931
4932 * process.c (procfs_system_process_attributes): Fix use of
4933 uninitialized variables.
4934
49352008-08-23 Eli Zaretskii <eliz@gnu.org>
4936
4937 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
4938
4939 * dispnew.c (init_display): Remove MS-DOS specific conditions for
4940 calling tty-set-up-initial-frame-faces.
4941
b8ff72fa
SM
4942 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
4943 Allow MSDOS frames along with X frames.
aac0c6e3
MR
4944
4945 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
4946 addition to output_termcap.
4947
4948 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
4949
4950 * termchar.h (FRAME_TTY): Support output_msdos_raw.
4951 (struct tty_display_info) [MSDOS]: Add fields related to mouse
4952 highlight.
4953
4954 * process.c [!subprocesses]: Define QCname.
4955 (syms_of_process): Intern and staticpro it.
4956
4957 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
4958 Adjust for changes in encoding/decoding routines.
4959 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
4960 encode_coding and decode_coding.
4961
b8ff72fa 4962 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
4963
4964 * dosfns.c: Include frame.h before termhooks.h.
4965 (dos_cleanup): Use CURTTY ()->termscript instead of a global
4966 variable termscript.
4967
4968 * s/msdos.h (USER_FULL_NAME): Define.
4969 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
4970
4971 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
4972 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
4973 pw->pw_gecos.
4974
4975 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
4976 SELECTED_FRAME as additional (1st) argument.
4977 (tty_read_avail_input): Handle output_msdos_raw in
4978 addition to output_termcap.
4979
4980 * msdos.c: Include frame.h before termhooks.h.
4981 (mouse_on, mouse_off, mouse_moveto, mouse_init)
4982 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
4983 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
4984 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
4985 (IT_set_terminal_modes, IT_reset_terminal_modes)
4986 (IT_set_frame_parameters): Use tty->termscript instead of a global
4987 variable termscript.
4988 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
4989 global variable terminal_coding. Don't refer to
4990 Vnonascii_translation_table.
4991 (internal_terminal_init): Set Vwindow_system in current_kboard.
4992 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
4993 Announce date and time of session start, if termscript is open.
4994 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
4995 term.c:init_tty). Open termscript only of not already open.
4996 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
4997 here instead of dos_ttraw. Don't initialize display if this is an
4998 initial tty. Don't set FRAME_FONT.
4999 (Vwindow_system_version): Bump to 23.
5000 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
5001 is available, set up mouse_position_hook.
5002 (dos_ttraw, IT_set_terminal_modes): If called with initial
5003 terminal, do nothing.
5004 (IT_set_frame_parameters): Handle the Qtty_type frame
5005 parameter by calling internal_terminal_init.
5006 (dos_set_window_size, show_mouse_face)
5007 (clear_mouse_face, IT_note_mode_line_highlight)
5008 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
5009 (dos_rawgetc): Use tty_display_info instead of x_display_info.
5010 (initialize_msdos_display): New function.
5011 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
5012 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
5013 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
5014 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 5015 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
5016 (request_sigio, unrequest_sigio): Don't define, now defined on
5017 sysdep.c.
5018 (IT_write_glyphs): Rewrite to use encode_terminal_code.
5019
5020 * term.c [MSDOS]: Include msdos.h.
5021 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
5022 conditional to DOS_NT. Allow only one call to this function in a
5023 session. Don't allocate a new struct tty_display_info; instead,
5024 reuse the_only_display_info. Call get_tty_size to get screen
5025 dimensions. Call init_baud_rate to set bad_rate.
5026 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
5027 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 5028 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
5029 (get_tty_terminal, get_named_tty, Ftty_type)
5030 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
5031 output_termcap.
b8ff72fa
SM
5032 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
5033 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 5034 only when subprocesses are supported.
aac0c6e3
MR
5035
5036 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
5037 f->output_data.x.
5038 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
5039 terminal devices.
5040
5582fbc7 5041 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
5042 x_output.
5043 (FRAME_FONT): Use output_data.tty.
5044 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
5045 (struct x_display_info): Rename from display_info. Update all users in
5046 msdos.c.
aac0c6e3 5047 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 5048 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
5049 (dos_ttraw): Update prototype.
5050
5051 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
5052 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
5053
50542008-08-23 Jason Rumney <jasonr@gnu.org>
5055
5056 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
5057 (fn_TIFFSetDirectory): New library function used.
5058 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
5059 (tiff_load): Use :index to select among multiple images. Set count
5060 property when multiple images exist.
5061 (gif_format): Use :index, not :image.
5062
50632008-08-23 Chong Yidong <cyd@stupidchicken.com>
5064
5065 * xdisp.c (try_scrolling): Check INT_MAX instead of
5066 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
5067 to obtain INT_MAX.
5068
50692008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
5070
5071 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
5072
50732008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
5074
5075 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
5076 GNUstep library location.
5077
50782008-08-21 Chong Yidong <cyd@stupidchicken.com>
5079
5080 * xfaces.c (x_update_menu_appearance): Check validity of menu font
5081 before using it.
5082
5083 * puresize.h (BASE_PURESIZE): Increase to 1250000.
5084
50852008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5086
5087 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
5088 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
5089 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
5090 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
5091 (EmacsApp-cursor_blink_handler): Remove declaration.
5092 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
5093 match 01 Feb 2008 changes in xterm.c.
5094 (ns_read_socket): Add cast to avoid warning.
5095 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
5096 GNUstep.
5097
50982008-08-20 Chong Yidong <cyd@stupidchicken.com>
5099
5100 * xselect.c (x_get_foreign_selection): Return nil if desired
5101 selection could not be obtained, instead of signalling an error.
5102
51032008-08-20 David Reitter <david.reitter@gmail.com>
5104
5105 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
5106 * nsterm.m: Remove ns-specific code for cursor blinking.
5107 (ns_draw_window_cursor): Clear cursor properly rather than
5108 redrawing the area. Respect width of bar cursors.
5109 These changes enable the use of generic blink-cursor-mode and
5110 generic cursor types in NS and support smooth cursor movements (do
5111 not blink off after command).
5112 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
5113 Nextstep, too.
5114
51152008-08-19 Kenichi Handa <handa@m17n.org>
5116
5117 * font.c (Vfont_log_deferred): New variable.
5118 (font_add_log): Check Vfont_log_deferred.
5119 (font_deferred_log): New function.
5120
5121 * font.h (font_deferred_log): Extern it.
5122
5123 * fontset.c (reorder_font_vector): Use encoding charset of fonts
5124 for sorting.
5125 (face_for_char): Use deferred log.
5126
51272008-08-18 Kenichi Handa <handa@m17n.org>
5128
5129 * fontset.c (face_for_char): Add font log.
5130
5131 * font.c (font_add_log): Add the font properties :script, :lang,
5132 and :otf in the log.
5133
51342008-08-17 Chong Yidong <cyd@stupidchicken.com>
5135
5136 * xdisp.c: Remove dead code.
5137 (handle_invisible_prop, next_overlay_string): Defer call to
5138 setup_for_ellipsis.
5139 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
5140
51412008-08-15 Chong Yidong <cyd@stupidchicken.com>
5142
5143 * xfaces.c (lookup_derived_face): Properly handle possible zero
5144 return value of get_lface_attributes.
5145 (merge_faces): Don't tell lookup_derived_face to signal an error
5146 if face is not found.
5147
5148 * dired.c (Fdirectory_files): Doc fix.
5149
5150 * process.c (make_process): Initialize kill_without_query struct
5151 member.
5152
51532008-08-15 Eli Zaretskii <eliz@gnu.org>
5154
5155 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
5156 Alternative calculation of totphys for Visual Studio 6.
5157
5158 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
5159
5160 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
5161 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
5162 All users changed.
5163 (stat): Only root directory passed to GetDriveType. Allow RAM
5164 disk as well as local fixed disk when w32-get-true-file-attributes
5165 is set to `local'.
5166 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
5167 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
5168 (w32_cached_id, w32_add_to_cache): New functions.
5169 (get_name_and_id): Look account names in the cache before calling
5170 lookup_account_sid.
5171 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
5172 New initialization flags.
5173 (globals_of_w32): Initialize them to zero.
5174 (w32_system_process_attributes): Use w32_cached_id and
5175 w32_add_to_cache.
5176
51772008-08-14 Lawrence Mitchell <wence@gmx.li>
5178
5179 * lread.c (Fread_char, Fread_char_exclusive): If no character
5180 event is read before timeout is reached, return nil, rather than
5181 converting to a number.
5182
51832008-08-14 Chong Yidong <cyd@stupidchicken.com>
5184
5185 * fns.c (use_dialog_box): Doc fix.
5186
5187 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
5188 on OS X.
5189
51902008-08-13 Chong Yidong <cyd@stupidchicken.com>
5191
5192 * frame.c (Qns_parse_geometry): New var.
5193 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
5194
51952008-08-11 Chong Yidong <cyd@stupidchicken.com>
5196
5197 * xdisp.c (x_produce_glyphs): Handle the case when font has no
5198 space character in calculating tabs.
5199
52002008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
5201
5202 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
5203
52042008-08-10 Glenn Morris <rgm@gnu.org>
5205
5206 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
5207 silence gcc "limited range of data type" warnings in some
5208 make_fixnum_or_float calls.
5209
52102008-08-09 Eli Zaretskii <eliz@gnu.org>
5211
5212 * w32.c (w32_system_process_attributes): If the process does not
5213 exist, return nil.
5214
5215 * w32.c: Include thelp32.h, psapi.h and coding.h.
5216 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
5217 declarations.
5218 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
5219 (Process32Next_Proc): New typedefs.
5220 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
5221 (g_b_init_process32_next, g_b_init_open_thread_token)
5222 (g_b_init_impersonate_self, g_b_init_revert_to_self)
5223 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
5224 (g_b_init_get_process_working_set_size)
5225 (g_b_init_global_memory_status_ex): New static variables.
5226 (globals_of_w32): Initialize them.
5227 (create_toolhelp32_snapshot, process32_first, process32_next)
5228 (open_thread_token, impersonate_self, revert_to_self)
5229 (get_process_memory_info, get_process_working_set_size)
5230 (global_memory_status, global_memory_status_ex): New wrapper
5231 functions.
5232 (w32_list_system_processes, w32_system_process_attributes)
5233 (enable_privilege, restore_privilege, ltime, process_times):
5234 New functions.
5235 (convert_time_raw): New function.
5236 (convert_time): Remove conversion of FILETIME into time in 100
5237 nsec units, call convert_time_raw instead.
5238
5239 * process.h (w32_list_system_processes, w32_system_process_attributes):
5240 Add prototypes.
5241 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
5242 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
5243 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
5244 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
5245
5246 * process.c (Fsystem_process_attributes): Doc fix.
5247
52482008-08-08 Chong Yidong <cyd@stupidchicken.com>
5249
5250 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
5251 a continued multi-char glyph; if so, advance to the actual glyph.
5252
52532008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
5254
5255 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
5256
5257 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
5258 (.m.o): Use it.
5259 * config.in: Regenerate.
5260
52612008-08-07 Chong Yidong <cyd@stupidchicken.com>
5262
5263 * xdisp.c (redisplay_window): Revert last change.
5264 (try_window): Check bottom scroll margin too.
5265
52662008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
5267
5268 * config.in: Regenerate.
5269
5270 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
5271 -list-load-path-shadows'.
5272 (nsgui.h): Reduce number of things depending on it.
5273
52742008-08-06 Chong Yidong <cyd@stupidchicken.com>
5275
5276 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
5277 instead of window-end which does the wrong thing at eob.
5278 (try_cursor_movement): Minor optimization.
5279 (redisplay_window): If scroll margin is defined, don't assume
5280 window doesn't need scrolling.
5281
52822008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
5283
5284 * config.in: Regenerate.
5285
5286 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
5287 (mostlyclean): Don't delete *.d under NS.
5288
5289 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
5290
52912008-08-06 Kenichi Handa <handa@m17n.org>
5292
5293 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
5294
52952008-08-06 Andreas Schwab <schwab@suse.de>
5296
5297 * config.in: Regenerate.
5298
52992008-08-05 Chong Yidong <cyd@stupidchicken.com>
5300
5301 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
5302 forcing a window start.
5303
5304 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
5305 (auto_save_1): Update modtime when auto-save-list-file-name is on.
5306
53072008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
5308
5309 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
5310 argument.
5311
53122008-08-05 Juanma Barranquero <lekktu@gmail.com>
5313
5314 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
5315 <scroll-down-aggressively, before-change-functions>:
5316 <after-change-functions>: Reflow docstrings.
5317
53182008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
5319 Ken Raeburn <raeburn@gnu.org>
5320
5321 Dock menu customization, based on a patch by Ken Raeburn, plus some
5322 other fixes.
5323 * nsmenu.m (dockMenu): New variable.
5324 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
5325
5326 * nsterm.h (dockMenu): Declare.
5327
5328 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
5329 (ns_term_init): Initialize dockMenu.
5330 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
5331 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
5332 left.
5333
5334 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
5335
53362008-08-04 Chong Yidong <cyd@stupidchicken.com>
5337
5338 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
5339
5340 * config.in: Regenerate.
5341
53422008-08-04 Seiji Zenitani <zenitani@mac.com>
5343
5344 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
5345
53462008-08-04 Chong Yidong <cyd@stupidchicken.com>
5347
5348 * nsterm.h (find_and_call_menu_selection): Fix prototype.
5349
53502008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
5351
5352 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
5353
5354 * keyboard.h: Comment an #endif.
5355
5356 * lisp.h (have_menus_p): Adjust comment.
5357
5358 * menu.c (find_and_return_menu_selection): Fix comparison with
5359 client_data.
5360
5361 * nsmenu.m (popup_activated_flag): New variable.
5362 (popup_activated): New function.
5363 (menu-or-popup-active-p): New exported lisp definition.
5364 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
5365 when popup done.
5366 (ns_popup_dialog): Set popup_activated_flag.
5367
5368 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
5369 version for GNUstep (handled by conditional typedef in nsterm.m).
5370 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
5371 in rgb.txt).
5372
5373 * process.c (init_process): Use DARWIN_OS, not DARWIN.
5374
5375 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
5376
5377 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
5378
5379 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
5380 shortcircuit if popup_activated like GTK and X toolkit.
5381
5382 * m/inter386.h: Change DARWIN to DARWIN_OS.
5383
5384 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
5385 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
5386 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
5387 comment on NO_SOCK_SIGIO.
5388
53892008-08-03 Chong Yidong <cyd@stupidchicken.com>
5390
5391 * nsterm.m (windowDidResize): Remove stopModal call.
5392
53932008-08-03 Andreas Schwab <schwab@suse.de>
5394
5395 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
5396 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
5397
53982008-08-02 Chong Yidong <cyd@stupidchicken.com>
5399
5400 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
5401 Don't use uninitialized pointer variable when using getrlimit.
5402
54032008-08-02 Jason Rumney <jasonr@gnu.org>
5404
5405 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
5406
54072008-08-02 Eli Zaretskii <eliz@gnu.org>
5408
5409 * alloc.c (NSTATICS): Bump to 0x640.
5410
5411 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
5412
5413 * lisp.h: Add prototype for directory_files_internal.
5414
5415 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
5416 New functions.
5417 (syms_of_process): Defsubr them. Add initializations for various
5418 Q* symbols used in procfs_system_process_attributes.
5419 (procfs_list_system_processes, procfs_system_process_attributes)
5420 [HAVE_PROCFS]: New functions.
5421 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
5422 (procfs_get_total_memory): New functions.
5423
54242008-08-01 Juanma Barranquero <lekktu@gmail.com>
5425
5426 * xfaces.c (Fx_load_color_file): Fix previous change;
5427 it is #ifdef WINDOWSNT, not WINDOWS_NT.
5428
54292008-08-01 Michael Albinus <michael.albinus@gmx.de>
5430
5431 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
5432
54332008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5434
5435 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
5436
54372008-08-01 Chong Yidong <cyd@stupidchicken.com>
5438
5439 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
5440
5441 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
5442 define NSApplicationDelegateReplySuccess.
5443 (EmacsView -converstationIdentifier): Use long instead of
5444 NSInteger for GNUstep, since it doesn't have NSInteger.
5445
5446 * xmenu.c: Revert last change.
5447
5448 * keyboard.h: Fix last change.
5449
54502008-08-01 Juanma Barranquero <lekktu@gmail.com>
5451
5452 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
5453 on Windows.
5454
54552008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5456
5457 Warning clearing and clean-up in NS port.
5458 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
5459 Add prototypes.
5460 * nsgui.h (FACE_DEFAULT): Remove, unused.
5461 (XGCValues): Change colors to unsigned long.
5462 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
5463 nsterm.m.
5464 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
5465 (ns_list_fonts): Remove, unused.
5466 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
5467 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
5468 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
5469 (nsfont_draw): Compare face colors to 0, not nil.
5470 * nsmenu.m (struct widget_value): Drop unneeded declaration.
5471 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
5472 (-addSubmenuWithTitle:): Use NSMenuItem class.
5473 (ns_popup_menu): Use NO, not NULL, for enabled setting.
5474 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
5475 (ns_clip_to_row): Make gc arg a BOOL.
5476 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
5477 ns_clip_to_row() call.
5478 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
5479 used). Cast FRAME_FONT assignments.
5480 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
5481 (ns_string_to_lispmod): Change arg to const char.
5482 (ns_term_init): Use NSMenuItem class.
5483 (EmacsApp -openFile:): Move to different section of file.
5484 (EmacsApp -application:openFiles:): Don't return a value, call
5485 -replyToOpenOrPrint:.
5486 (EmacsView -keyDown:): Fix up cast.
5487 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
5488 (EmacsView -menuDown:): Cast tag in call to
5489 find_and_call_menu_selection().
5490 (ns_list_fonts): Remove, unused.
5491 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
5492 (ns_fontname_to_xlfd): Make static.
5493 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
5494 Remove prototypes (now in keyboard.h).
5495 (next_menubar_widget_id): Remove, unused.
5496 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
5497 Remove prototypes (now in keyboard.h).
5498 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
5499
55002008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
5501
5502 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
5503 (floatfns.o): Depend on syssignal.h.
5504 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
5505
5506 * systty.h: Fix previous change that removed BSD_TERMIOS.
5507 Add comments to #ifdefs.
5508
55092008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5510
5511 * w32fns.c (w32-load-color-file): Remove.
5512 (x-open-connection): Use renamed Fx_load_color_file.
5513 * xfaces.c (x-load-color-file): Add.
5514 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
5515 Emacs.clr.
5516 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
5517
55182008-07-31 Michael Albinus <michael.albinus@gmx.de>
5519
5520 * dbusbind.c (Fdbus_call_method_asynchronously)
5521 (Fdbus_method_error_internal): New defuns.
5522 (xd_read_message): Handle also reply messages.
5523 (Vdbus_registered_functions_table): Extend docstring.
5524
55252008-07-31 Juanma Barranquero <lekktu@gmail.com>
5526
5527 * keyboard.c (gobble_input): Fix previous change.
5528
55292008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
5530
5531 * bitmaps/README:
5532 * xfns.c:
5533 * termcap.c:
5534 * term.c:
5535 * syswait.h:
5536 * systty.h:
5537 * systime.h:
5538 * syssignal.h:
5539 * sysdep.c:
5540 * process.h:
5541 * process.c:
5542 * print.c:
5543 * ndir.h:
5544 * lread.c:
5545 * keyboard.c:
5546 * getpagesize.h:
5547 * floatfns.c:
5548 * fileio.c:
5549 * emacs.c:
5550 * doc.c:
5551 * dispnew.c:
5552 * dired.c:
5553 * data.c:
5554 * callproc.c:
5555 * buffer.c:
5556 * README:
5557 * Makefile.in:
5558 * s/template.h:
5559 * s/msdos.h:
5560 * m/vax.h: Remove VMS support.
5561 * s/vms.h:
5562 * vlimit.h:
5563 * uaf.h:
5564 * temacs.opt:
5565 * param.h:
5566 * ioctl.h: Remove file.
5567
55682008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
5569
5570 * s/ms-w32.h (MULTI_KBOARD): Remove.
5571 * xterm.c:
5572 * xselect.c:
5573 * xfns.c:
5574 * window.c:
5575 * w32term.c:
5576 * w32fns.c:
5577 * terminal.c:
5578 * termhooks.h:
5579 * term.c:
5580 * sysdep.c:
5581 * keyboard.h:
5582 * keyboard.c:
5583 * frame.h:
5584 * frame.c:
5585 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
5586 * config.in: Regenerate.
5587
55882008-07-30 Jason Rumney <jasonr@gnu.org>
5589
5590 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
5591
5592 * w32font.c (w32font_encode_char): Leave as unicode if in range.
5593 (w32font_open_internal): Get unicode version of textmetrics.
5594 Don't enable or disable glyph indices here.
5595 (w32font_open): Disable use of glyph indices.
5596
5597 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
5598
55992008-07-30 Chong Yidong <cyd@stupidchicken.com>
5600
5601 * minibuf.c (Vread_buffer_function): Doc fix.
5602
56032008-07-30 John Paul Wallington <jpw@pobox.com>
5604
5605 * minibuf.c (read_buffer_completion_ignore_case): New var.
5606 (Fread_buffer): Use it.
5607
56082008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
5609
5610 * systty.h (sensemode): Remove empty #if. Remove reference to
5611 BSD_TERMIOS, unused.
5612
5613 * sysdep.c: Remove reference to DGUX.
5614 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
5615
5616 * config.in: Regenerate.
5617
56182008-07-30 Jason Rumney <jasonr@gnu.org>
5619
5620 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
5621
56222008-07-29 Jason Rumney <jasonr@gnu.org>
5623
5624 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
5625 is populated.
5626 (uniscribe_encode_char): Always use uniscribe.
5627 Avoid using context if cache is populated.
5628
56292008-07-29 Jan Djärv <jan.h.d@swipnet.se>
5630
5631 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
5632 open menu.
5633
5634 * gtkutil.c (menu_nav_ended): Remove.
5635 (create_menus): Remove signal connect for menu_nav_ended.
5636
56372008-07-28 Chong Yidong <cyd@stupidchicken.com>
5638
5639 * xdisp.c (redisplay_window): Check return value of
5640 compute_window_start_on_continuation_line before forcing a window
5641 start.
5642
56432008-07-28 Jason Rumney <jasonr@gnu.org>
5644
5645 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
5646
5647 * w32term.c (w32_enable_unicode_output, cleartype_active):
5648 Remove obsolete display options.
5649 (x_draw_glyph_string_background): Don't use old cleartype_active
5650 workaround.
5651 (w32_initialize): Remove cleartype_active initialization.
5652 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
5653
56542008-07-28 Andreas Schwab <schwab@suse.de>
5655
5656 * lisp.h (init_weak_hash_tables, syms_of_font)
5657 (xd_read_queued_messages, syms_of_dbusbind): Declare.
5658 (remove_hash_entry): Don't declare.
5659 * eval.c (maybe_call_debugger): Make static and move before use.
5660 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
5661 * xdisp.c: Include "gtkutil.h" if USE_GTK.
5662 * xterm.h (x_set_frame_alpha): Declare.
5663
56642008-07-28 Jan Djärv <jan.h.d@swipnet.se>
5665
5666 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
5667 (create_menus): Connect selection-done to menu_nav_ended.
5668
56692008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5670
5671 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
5672 Set Vx_resource_name to a fallback. Replace read of 'buffered'
5673 parameter with read of 'alpha' one.
5674 (Qns_frame_parameter): Remove.
5582fbc7 5675 * nsselect.m (selection-coding-system)
aac0c6e3
MR
5676 (next-selection-coding-system, Vselection_coding_system)
5677 (Vnext_selection_coding_system): Drop.
5678
56792008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5680
5681 * nsfns.m (do-applescript, do_applescript): Rename to
5682 ns-do-applescript, ns_do_applescript, and move within file.
5683
56842008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
5685
5686 Remove support for Mac Carbon.
5687 * mactoolbox.c:
5688 * macterm.h:
5689 * macterm.c:
5690 * macselect.c:
5691 * macmenu.c:
5692 * macgui.h:
5693 * macfns.c:
5694 * mac.c: Remove file.
5695 * s/darwin.h:
5696 * m/intel386.h:
5697 * xfaces.c:
5698 * xdisp.c:
5699 * window.c:
5700 * tparam.c:
5701 * termhooks.h:
5702 * termcap.c:
5703 * term.c:
5704 * syssignal.h:
5705 * sysselect.h:
5706 * sysdep.c:
5707 * process.c:
5708 * lread.c:
5709 * lisp.h:
5710 * keyboard.c:
5711 * image.c:
5712 * fringe.c:
5713 * frame.h:
5714 * frame.c:
5715 * fontset.c:
5716 * font.h:
5717 * font.c:
5718 * fns.c:
5719 * fileio.c:
5720 * emacs.c:
5721 * dispnew.c:
5722 * dispextern.h:
5723 * config.in:
5724 * atimer.c:
2ae37cf0 5725 * Makefile.in: Remove code for Carbon.
aac0c6e3 5726
f0131492 57272008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
5728
5729 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
5730
57312008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5732
5733 * macterm.h (kCGBitmapByteOrder32Host): New define for
5734 non-universal SDKs.
5735
5736 * image.c (mac_create_cg_image_from_image, image_load_image_io)
5737 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
5738
5739 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
5740 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
5741
57422008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
5743
5744 * w32inevt.c: Include dispextern.h.
5745
57462008-07-26 Andreas Schwab <schwab@suse.de>
5747
5748 * print.c (print_object): Fix off-by-one in last change.
5749
57502008-07-25 Juanma Barranquero <lekktu@gmail.com>
5751
5752 * term.c (syms_of_term): Don't initialize default_orig_pair,
5753 default_set_foreground and default_set_background on Windows.
5754
57552008-07-25 Jason Rumney <jasonr@gnu.org>
5756
5757 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
5758 ScriptItemize. Clean up return value checking. Remove unused
5759 variables.
5760 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
5761 shaping engine.
5762
5763 * w32font.c (w32font_has_char): Handle the case where we can't
5764 determine the script for a character.
5765
57662008-07-25 Chong Yidong <cyd@stupidchicken.com>
5767
5768 * term.c (syms_of_term): Initialize default_orig_pair,
5769 default_set_foreground, and default_set_background.
5770
5771 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
5772 clash (bug#86).
5773 (getloadavg): Callers changed.
5774
5775 * image.c (svg_load_image): Fix last change.
5776 (svg_load_image): Use rsvg_handle_get_dimensions to check that
5777 image size is valid. Use g_object_unref instead of deprecated
5778 rsvg_handle_free to free rsvg handle.
5779 (x_from_xcolors): Don't initialize pixmap (silence compiler).
5780
57812008-07-25 Jason Rumney <jasonr@gnu.org>
5782
5783 * w32font.c (w32font_encode_char): Encode characters outside BMP as
5784 surrogates before looking up glyph index.
5785 (w32font_text_extents): Encode as surrogates if falling back to
5786 functions that need UTF-16 wide chars.
5787
5788 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
5789 BMP as surrogates before looking up glyph index.
5790
57912008-07-25 Chong Yidong <cyd@stupidchicken.com>
5792
5793 * image.c (svg_load_image): Check for failure in return value of
5794 rsvg_handle_get_pixbuf. Free rsvg handle when done.
5795
57962008-07-25 Jason Rumney <jasonr@gnu.org>
5797
5798 * w32font.c (Fx_select_font): Reverse sense of second arg.
5799
58002008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
5801
5802 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
5803 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
5804
5805 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
5806 (PURESIZE): Use it.
5807
58082008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
5809
5810 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
5811 * m/alpha.h (TEXT_END):
5812 * m/ibmrs6000.h (TEXT_END):
5813 * m/macppc.h (TEXT_END):
5814 * s/darwin.h (TEXT_END):
5815 * s/msdos.h (TEXT_END): Remove, unused.
5816 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
5817 * s/cygwin.h: Remove comment.
5818
5819 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
5820 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
5821 * m/intel386.h (DOT_GLOBAL_START):
5822 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
5823 (USG): Remove, file not used on USG platforms.
5824
5825 * Makefile.in (HAVE_X11): Remove empty #else.
5826
58272008-07-24 Andreas Schwab <schwab@suse.de>
5828
5829 * fileio.c (Finsert_file_contents): Properly adjust undo list
5830 after format conversion.
5831
58322008-07-24 Jan Djärv <jan.h.d@swipnet.se>
5833
5834 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
5835 (menu_nav_ended): Remove.
5836 (create_menus): Remove signal connect for menu_nav_ended.
5837 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
5838 create_menus.
5839 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
5840
58412008-07-23 Jason Rumney <jasonr@gnu.org>
5842
5843 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
5844 with opened font.
5845 (w32font_open): Set font type to gdi.
5846
5847 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
5848
58492008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
5850
5851 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
5852 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
5853 defines it.
5854 * unexec.c (ADDR_CORRECT): Define unconditionally.
5855
5856 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
5857
5858 * unexec.c: Remove code depending on !COFF and USG, the file is
5859 not used for such systems.
5860
5861 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
5862 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
5863 (LD_SWITCH_SYSTEM_1): Remove, update users.
5864
5865 * s/darwin.h (DATA_END):
5866 * m/intel386.h (DATA_END):
5867 * m/ibmrs6000.h (DATA_END):
5868 * m/alpha.h (DATA_END): Remove, unused.
5869
5870 * config.in: Regenerate.
5871 * s/ms-w32.h (subprocesses): Define unconditionally.
5872 * s/template.h (subprocesses): Update comment.
5873 * s/vms.h (subprocesses):
5874 * s/usg5-4.h (subprocesses):
5875 * s/hpux10-20.h (subprocesses):
5876 * s/gnu-linux.h (subprocesses):
5877 * s/cygwin.h (subprocesses):
5878 * s/bsd-common.h (subprocesses):
5879 * s/aix4-2.h (subprocesses):
5880 * s/darwin.h (subprocesses): Do not define, defined by default now.
5881
5882 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
5883 Remove all references.
5884 (temacs): Add GNUstep specific ld flags.
5885
5886 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
5887 similarly to what X does.
5888
58892008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5890
5891 * nsfns.m (x-list-fonts): Remove.
5892 (syms_of_nsfns): Drop the x-list-fonts declaration.
5893 * nsterm.m: Get rid of remaining "//" comments.
5894
58952008-07-22 Chong Yidong <cyd@stupidchicken.com>
5896
5897 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
5898
5899 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
5900 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
5901 (Fns_own_selection_internal, Fx_disown_selection_internal)
5902 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
5903
5904 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
5905 ... */' style of docstrings. Doc fixes.
5906
59072008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
5908
5909 * terminfo.c (UP, BC, PC): Undo previous change.
5910
5911 * nsfns.m: Rename ns prefixed functions/variables to the
5912 corresponding x versions. Update references.
5913
59142008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
5915
5916 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
5917
59182008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
5919
5920 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
5921 Remove forwarding functions.
5922 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
5923 non-static.
5924 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
5925 non-static.
5926 (ns_frame_parm_handlers): Use the new names.
5927 (syms_of_nsfns): Move to the end of file.
5928
5929 * nsterm.m (syms_of_nsterm): Move to the end of file.
5930
5931 * dispnew.c (init_display): Remove code for X10.
5932
59332008-07-22 Jason Rumney <jasonr@gnu.org>
5934
5935 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
5936 bare drive.
5937
59382008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5939
5940 * nsterm.m (syms_of_nsterm): Remove debugging println.
5941
59422008-07-22 David Reitter <david.reitter@gmail.com>
5943
5944 * nsfns.m (do_applescript, F_do_applescript): NS version of the
5945 Carbon implementation of the same functionality: execute arbitrary
5946 AppleScript code.
5947
59482008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5949
5950 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
5951 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
5952 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
5953 (Fx_display_mm_height, Fx_display_mm_width)
5954 (Fx_display_backing_store, Fx_display_visual_class)
5955 (Fx_display_save_under, Fx_open_connection)
5956 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
5957 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
5958 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
5959 (Fx_display_pixel_width, Fx_display_pixel_height)
5960 (Fx_display_usable_bounds, Fx_display_planes)
5961 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
5962 ... */' style of docstrings.
5963
59642008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
5965
5966 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
5967 on this platform.
5968 (mips):
5969 * m/iris4d.h (mips): Do not define.
5970 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
5971
5972 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
5973
5974 * image.c:
5975 * nsfns.m:
5976 * nsselect.m:
5977 * nsterm.h:
5978 * nsterm.m: Rename ns prefixed functions/variables to the
5979 corresponding x versions. Update references.
5980
5981 * m/ibms390x.h (NO_REMAP): Do not undefine.
5982
5983 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
5984
59852008-07-21 Chong Yidong <cyd@stupidchicken.com>
5986
5987 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
5988 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
5989 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
5990 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
5991 (Fns_display_mm_height, Fns_display_mm_width)
5992 (Fns_display_backing_store, Fns_display_visual_class)
5993 (Fns_display_save_under, Fns_open_connection)
5994 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
5995 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
5996 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
5997 (Fns_display_pixel_width, Fns_display_pixel_height)
5998 (Fns_display_usable_bounds, Fx_display_planes)
5999 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
6000
60012008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
6002
6003 * print.c (print_object): Check print_depth before searching for
6004 circularities.
6005
60062008-07-21 Michael Albinus <michael.albinus@gmx.de>
6007
6008 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
6009 only sprintf.
6010
60112008-07-21 Kenichi Handa <handa@m17n.org>
6012
6013 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
6014
60152008-07-20 Andreas Schwab <schwab@suse.de>
6016
6017 * syntax.c (find_start_pos, find_start_value)
6018 (find_start_value_byte, find_start_begv, find_defun_start)
6019 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
6020
60212008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
6022
6023 * s/sol2-3.h: Insert contents of s/sol2.h.
6024 (LD_SWITCH_SYSTEM): Remove redundant definition.
6025 * s/sol2.h: Remove, unused.
6026
60272008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6028
6029 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
6030
60312008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6032
6033 * Makefile.in (ns_appdir): Fix typo in find command.
6034
60352008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
6036
6037 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
6038
6039 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
6040 added not supported anymore.
6041
6042 * s/usg5-4-2.h (LIBS_SYSTEM):
6043 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
6044
6045 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
6046 * s/lynxos.h (GETPGRP_NO_ARG):
6047 * s/hpux10-20.h (NO_SIOCTL_H):
6048 * s/gnu.h (GETPGRP_NO_ARG):
6049 * s/gnu-linux.h (NO_SIOCTL_H):
6050 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
6051 * s/cygwin.h (GETPGRP_NO_ARG):
6052 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
6053 (C_DEBUG_SWITCH): Remove duplicate definition.
6054
6055 * m/ibms390.h: Remove boilerplate comments.
6056
6057 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
6058
6059 * process.c (HAVE_SERIAL): Consolidate ifdefs.
6060 (wait_reading_process_output): Remove code for SunOS, platform not
6061 supported anymore. Use SOLARIS2 instead of sun.
6062
60632008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
6064
6065 * font.c (font_open_by_name): Under NS, default lface height to zero.
6066 (font_open_for_lface): Under NS, set size based on frame fontsize.
6067 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
6068 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
6069
60702008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
6071
6072 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
6073 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
6074 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
6075 YES/NO.
6076 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
6077 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
6078 * Makefile.in (clean): Clear out build destination dir.
6079
60802008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
6081
6082 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
6083 xterm, xselect.
6084 * lisp.h: Remove declaration of hash_remove.
6085 * nsgui.h: Remove redefinitions of hash_remove.
6086 * fns.c (hash_remove): Rename to hash_remove_from_table.
6087
60882008-07-19 Seiji Zenitani <zenitani@mac.com>
6089
6090 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
6091 strdup() the family UTF8String before modifying it.
6092
60932008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
6094
6095 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
6096 NS_FACE_BACKGROUND with 0 instead of nil.
6097 * nsfont.m (nsfont_draw): Same.
6098
60992008-07-19 Chong Yidong <cyd@stupidchicken.com>
6100
6101 * nsfns.m (ns_set_background_color): Fix crash.
6102
61032008-07-18 Chong Yidong <cyd@stupidchicken.com>
6104
6105 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
6106
61072008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
6108
6109 * puresize.h (BASE_PURESIZE): Increase to 1240000.
6110
61112008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6112
6113 * gtkutil.c: Include <config.h> instead of "config.h".
6114
6115 * lisp.h (Foverlay_buffer): Add EXFUN.
6116
6117 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
6118 child process to complete child_setup. Undo 2005-09-21 change.
6119
6120 * s/darwin.h: Mention setsid after vfork.
6121
61222008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6123
6124 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
6125 Depend on macgui.h.
6126
6127 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
6128 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
6129
6130 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
6131 and f19.
6132 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
6133
6134 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
6135 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
6136 Remove enumerators.
6137
6138 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
6139 Check if FACE_FROM_ID returns NULL.
6140
61412008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
6142
6143 * w32inevt.c (change_frame_size): Remove extern declaration.
6144 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
6145 change_frame_size.
6146
61472008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
6148
6149 * getloadavg.c: Revert last change (2008-07-15).
6150
61512008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
6152
6153 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
6154 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc) set
6155 from configure.
6156
61572008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
6158
6159 * s/sol2.h:
6160 * s/sol2-4.h: Reorganize conditionals.
6161
6162 * ecrt0.c: Remove code depending on m68000, not used anymore.
6163
6164 * fns.c (hash_remove): Make static.
6165 * lisp.h (hash_remove): Don't prototype.
6166
6167 * m/ibmrs6000.h:
6168 * m/ibms390x.h:
6169 * m/macppc.h: Remove boilerplate comments.
6170
6171 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
6172 Solaris, which does not need them.
6173
6174 * m/vax.h: Remove comments about unsupported systems.
6175
6176 * s/darwin.h: Reorganize ifdefs.
6177
61782008-07-17 Andreas Schwab <schwab@suse.de>
6179
6180 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
6181
61822008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
6183
6184 Use SDATA. Follow coding convention of placing operators at
6185 beginning of next line rather than end of previous line, and placing
6186 spaces around infix operators.
6187
6188 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
6189 in case it was defined already.
6190 USE @GNUSTEP_MAKEFILES@ rather than envvars.
6191 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
6192 ns_default.
6193 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
6194 Lisp_Objects.
6195 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
6196 (ns_defined_color, ns_color_to_lisp): Declare.
6197 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
6198 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
6199 it's accepted even with USE_LISP_UNION_TYPE.
6200 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
6201 (update_frame_tool_bar): Remove apparently obsolete tests for
6202 non-integerness of f->tool_bar_lines.
6203 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
6204 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
6205 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
6206 (nsfont_open): Don't confuse NULL for Qnil.
6207 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
6208 * menu.h (find_and_call_menu_selection):
6209 * menu.c (find_and_call_menu_selection): Use just int for vector size.
6210 (find_and_return_menu_selection): Always return something.
6211 * frame.h: Include dispextern.h for Display_Info.
6212 (display_x_get_resource): Declare.
6213
62142008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
6215
6216 * syntax.c: Remove stdio.h include accidentally introduced in
6217 Emacs.app commit.
6218 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
6219 NS_IMPL_COCOA.
6220 * keyboard.c (handle_async_input, input_available_signal): Remove
6221 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
6222
62232008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
6224
6225 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
6226 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
6227 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
6228 Use SDATA.
6229
6230 * keymap.c: Remove all NS-specific code.
6231 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
6232 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
6233 where_is_preferred_modifier, return a different value depending on how
6234 preferred is the binding.
6235 (where_is_internal): Adjust accordingly.
6236 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
6237 Adjust to new preferred_sequence_p.
6238 (syms_of_keymap): Declare `where-is-preferred-modifier'.
6239 * keyboard.c (parse_solitary_modifier): Not static any more.
6240 * keyboard.h (parse_solitary_modifier): Declare.
6241
62422008-07-16 Andreas Schwab <schwab@suse.de>
6243
6244 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
6245 of easymenu.
6246
62472008-07-16 Chong Yidong <cyd@stupidchicken.com>
6248
6249 * xdisp.c (move_it_in_display_line): Account for word wrap, so
6250 that we don't move off the line.
6251
62522008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
6253
6254 * keyboard.c (Qsuper): Remove.
6255 (parse_menu_item): Don't call where_is_internal specially for NS.
6256
62572008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
6258
6259 * s/gnu-linux.h: Remove boilerplate comments.
6260
6261 * m/alpha.h (__ELF__): Consolidate conditions.
6262
6263 * m/m68k.h (linux): Use GNU_LINUX instead.
6264 Remove boilerplate comments.
6265
6266 * m/intel386.h: Undo refactoring from previous change.
6267 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
6268 too, remove dead code.
6269 (linux): Use GNU_LINUX instead.
6270
62712008-07-16 Jason Rumney <jasonr@gnu.org>
6272
6273 * w32gui.h: Repeat 26 June changes lost by last change.
6274
62752008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
6276
6277 * systty.h: Remove code for Aix on 386, unsupported platform.
6278
6279 * s/ms-w32.h: Remove boilerplate comments.
6280 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
6281
6282 * s/gnu-linux.h (TERM): Remove support.
6283 (HAVE_SYSVIPC): Remove, unused.
6284 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
6285 for this system.
6286
6287 * process.c: Remove support for IRIS, unused.
6288 Remove support for TERM, not relevant anymore.
6289
6290 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
6291 used with the definition.
6292
6293 * s/aix4-2.h (static): Do not undef.
6294
6295 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
6296 only used on Aix.
6297 (HAVE_SYSVIPC): Remove, unused.
6298
6299 * m/hp800.h (CANNOT_DUMP): Do not undef.
6300
6301 * m/alpha.h: Fix comment.
6302
6303 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
6304 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
6305 used by this configuration.
6306 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
6307 * unexec.c: Remove code depending on HPUX and
6308 USG_SHARED_LIBRARIES, not used with this file. Remove code
6309 depending on IRIS, unused. Remove if 0-ed code.
6310
6311 * s/template.h: Remove comments about static.
6312
6313 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
6314 Remove if 0-ed code.
6315 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
6316 were the same as the default.
6317 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
6318 Remove boilerplate comments.
6319 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
6320 (HAVE_SYSVIPC): Remove, unused.
6321 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
6322
6323 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
6324 Remove boilerplate comments.
6325 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
6326 Remove boilerplate comments.
6327 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
6328 Remove boilerplate comments.
6329 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
6330
6331 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
6332 USG systems which do not use DATA_SEG_BITS.
6333 Refactor code. Remove boilerplate comments.
6334
6335 * m/ibms390.h:
6336 * m/m68k.h:
6337 * s/bsd-common.h:
6338 * s/cygwin.h:
6339 * s/darwin.h:
6340 * s/freebsd.h:
6341 * s/gnu.h:
6342 * s/msdos.h: Remove boilerplate comments.
6343
6344 * m/iris4d.h: Remove boilerplate comments and code for systems that
6345 do not use this file.
6346 (IRIS_4D): Remove, unused.
6347
6348 * m/mips.h: Remove boilerplate comments and code for systems that
6349 do not use this file.
6350 (SIGN_EXTEND_CHAR):
6351 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
6352 * unexmips.c: Remove file, unused.
6353
6354 * editfns.c (Fuser_full_name): Replace the only use of
6355 USER_FULL_NAME with its value.
6356 * config.in: Regenerate.
6357
63582008-07-16 David Reitter <david.reitter@gmail.com>
6359
6360 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
6361 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
6362
63632008-07-16 Glenn Morris <rgm@gnu.org>
6364
6365 * emacs.c (system-type): Doc fix.
6366
63672008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
6368
6369 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
6370 If the cache doesn't work, let's fix it, rather than work around it.
6371
63722008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
6373
6374 * Makefile.in: Correct additions for nsfont.o in last commit.
6375 * nsfont.m: New file (forgot last commit).
6376
63772008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
6378
6379 * callproc.c (set_initial_environment): Initialize
6380 Vprocess_environment under CANNOT_DUMP (fixes crash when
6381 batch-compiling for bootstrap).
6382
63832008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
6384 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6385
6386 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
6387 fix crash due to different init order.
6388
63892008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
6390
6391 Changes and additions for NeXTstep windowing system (Cocoa and
6392 GNUstep) support.
6393
6394 * Makefile.in:
6395 * config.in: Support defines and build commands for NS port.
6396 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
6397 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
6398 * dispextern.h: Include nsgui.h and add needed typedefs under NS
6399 windowing.
6400 (struct face): Add synth_ital field.
6401 * dispnew.c: Include nsterm.h when compiling under NS windowing.
6402 (init_display): Initialize Vinitial_window_system to "ns" when so
6403 compiled.
6404 * emacs.c: Include GSConfig.h when compiling under GNUstep.
6405 (display_arg): Use under NS.
6406 (main): Under NS, allocate autorelease pool and handle command line
6407 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
6408 (standard_args): Add NS-specific args.
6409 (shut_down_emacs): Shut down NS terminal if compiled under NS.
6410 * font.c (DEFAULT_ENCODING): New variable.
6411 (font_find_for_lface): Use it.
6412 (syms_of_font): Load syms_of_nsfont under NS.
6413 * font.h: Declare nsfont_driver when compiled under NS.
6414 * fontset.c: When compiling under NS, include nsterm.h.
6415 (fontset_from_font): Autoconstruct fontset under NS.
6416 * frame.c (various): Under NS, include nsterm.h, add Qns window system
6417 symbol, document and use it.
6418 (do_switch_frame): When for_deletion under Cocoa, add
6419 Fraise_frame(Qnil).
6420 (x_set_frame_parameters): Ensure font attribute changes are picked up.
6421 (x_get_arg): Allow "yes" and "no" as boolean values.
6422 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
6423 Qright under Cocoa.
6424 (focus-follows-mouse): Default to 0 under NS.
6425 * frame.h (enum output_method): Add output_ns.
6426 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
6427 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
6428 (FRAME_WINDOW_P): NS-specific definition.
6429 * fringe.c (max_used_fringe_bitmap): Make public.
6430 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
6431 (getloadavg): Use NeXT code under descendant OS's.
6432 * image.c (includes and header section, x_create_bitmap_from_data)
6433 (x_create_bitmap_from_file, free_bitmap_record, image_background)
6434 (image_background_transparent, x_clear_image_1)
6435 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
6436 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
6437 (x_to_xcolors, x_from_xcolors, x_disable_image)
6438 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
6439 other GUIs, including XPM support using code originally written for
6440 Carbon GUI.
6441 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
6442 using NS API.
6443 (image_ascent): Use font metrics macros instead of direct struct field
6444 access.
6445 * keyboard.c (includes): Add nsterm.h when compiling under NS.
6446 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
6447 Also, handle NS as GTK for menu bar purposes.
6448 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
6449 toolkit where they differ.
6450 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
6451 use cachelist, still needed under NS.
6452 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
6453 (struct widget_value): Define it here for menu.c.
6454 * keymap.c (includes): Include modifier internals.
6455 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
6456 NS.
6457 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
6458 support for preferring sequences using certain modifiers, specified by
6459 the FIRSTONLY argument.
6460 * lisp.h (hash_remove): Rename to avoid name clash when compiling
6461 under NS GNUstep implementation.
6462 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
6463 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
6464 * menu.c: Include nsterm.h under NS.
6465 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
6466 (free_menubar_widget_tree_value, update_submenu_strings)
6467 (find_and_call_menu_selection): Treat NS as X and NT.
6468 (find_and_return_menu_selection): New function, used for popup menus.
6469 * nsgui.h:
6470 * nsterm.h:
6471 * nsfns.m:
6472 * nsimage.m:
6473 * nsmenu.m:
6474 * nsselect.m:
6475 * nsterm.m: New files.
6476 * process.c (wait_reading_process_output): Under NS, call ns_select()
6477 instead of plain select().
6478 * syntax.c (char_quoted): Under NS, avoid a crash when called near
6479 beginning of buffer.
6480 * sysselect.h (init_process): Rename when compiling under Cocoa to
6481 avoid name conflict.
6482 * termhooks.h (display_info): Add ns_display_info to union.
6483 * terminal.c (Fterminal_live_p): Add ns to terminal types.
6484 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
6485 COCOA environment.
6486 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
6487 unexec() signature. (Note, this will dump, but the resulting file
6488 crashes; unexosx is used instead; keeping around for reference and
6489 possible aid in getting dump working under GNUstep.)
6490 * w32gui.h (button_type, widget_value): Remove definitions (now in
6491 keyboard.h).
6492 * window.c: Include nsterm.h when compiling under NS.
6493 * xdisp.c (includes): Include nsterm.h when compiling under NS.
6494 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
6495 other GUI windowing systems.
6496 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
6497 GTK.
6498 (x_consider_frame_title): Under NS, set icon type and frame
6499 modified-state indicator; use ns_set_name_as_filename() when using
6500 formatted title.
6501 (update_window_cursor): Make public when compiling under NS.
6502 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
6503 (hourglass_atimer, Vhourglass_delay
6504 * xfaces.c (header section, init_frame_faces, clear_font_table)
6505 (defined_color, unload_color, x_face_list_fonts)
6506 (prepare_face_for_display): Add NS support parallel to other GUIs.
6507 Emulate GCs like other non-X GUIs.
6508 (split_font_name): Don't lowercase font name under NS.
6509 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
6510 under NS.
6511 * s/darwin.h: Add support for compilation under NS.
6512
65132008-07-15 Jason Rumney <jasonr@gnu.org>
6514
6515 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
6516 (w32_show_hourglass): Rename from show_hourglass.
6517 (w32_hide_hourglass): Rename from hide_hourglass.
6518 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
6519 (Vhourglass_delay): Declare extern.
6520 (hourglass_started): Remove.
6521
6522 * xdisp.c (Vhourglass_delay): Remove static.
6523 (hourglass_started, start_hourglass, cancel_hourglass):
6524 Don't include these versions on WINDOWSNT.
6525
65262008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
6527
6528 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
6529 variables (formerly in xfns.c).
6530 (show_hourglass, hide_hourglass): New prototypes (same).
6531 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
6532 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
6533 in xfns.c).
6534 (syms_of_xdisp): Declare/initialize display-hourglass,
6535 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
6536 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
6537 formerly in xfns.c.
6538 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
6539 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
6540 (start_hourglass, cancel_hourglass): Remove.
6541 (show_hourglass, hide_hourglass): Remove prototypes and static
6542 modifiers.
6543 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
6544 hourglass_atimer, hourglass_shown_p declaration/initialization.
6545 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
6546 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
6547 (start_hourglass, cancel_hourglass): Remove.
6548 (show_hourglass, hide_hourglass): Remove prototypes and static
6549 modifiers.
6550 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
6551 hourglass_atimer, hourglass_shown_p declaration/initialization.
6552 * w32fns.c (display_hourglass_p, Vhourglass_delay)
6553 (DEFAULT_HOURGLASS_DELAY): Remove.
6554 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
6555 hourglass_shown_p declaration/initialization.
6556
65572008-07-14 Jason Rumney <jasonr@gnu.org>
6558
6559 * w32fns.c (w32_get_arg): Remove wrapper function.
6560 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
6561 directly.
6562 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
6563
65642008-07-14 Kenichi Handa <handa@m17n.org>
6565
6566 * xfont.c (xfont_open): Add workaround for X's bug.
6567
65682008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
6569
6570 * fontset.c: Include <stdio.h> unconditionally.
6571
65722008-07-13 Michael Albinus <michael.albinus@gmx.de>
6573
6574 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
6575 for filtering.
6576
65772008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
6578
6579 * s/vms.h: Use __GNUC__ instead of _GNUC_.
6580
6581 * m/macppc.h:
6582 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
6583
6584 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
6585 (SPECIAL_EMACS_INT):
6586 * m/ia64.h (SPECIAL_EMACS_INT):
6587 * m/amdx86-64.h (SPECIAL_EMACS_INT):
6588 * s/gnu.h (NLIST_STRUCT):
6589 * s/aix4-2.h (X11R5_INHIBIT_I18N):
6590 * s/gnu-linux.h (LINUX):
6591 * s/msdos.h (HAVE_FACES):
6592 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
6593
6594 * systty.h:
6595 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
6596 anymore.
6597
65982008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
6599
6600 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
6601 always defined as int.
6602
6603 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
6604 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
6605 * s/gnu-linux.h (HAVE_WAIT_HEADER):
6606 * s/freebsd.h (HAVE_WAIT_HEADER):
6607 * s/bsd-common.h (HAVE_UNION_WAIT):
6608 * s/aix4-2.h (HAVE_WAIT_HEADER):
6609 * m/mips.h (HAVE_UNION_WAIT):
6610 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
6611 (COFF, static): Do not define, they are undefined later in the file.
6612
6613 * process.c (update_status): Don't use a union.
6614 (status_convert):
6615 (sigchld_handler): Use int instead of WAITTYPE.
6616
66172008-07-12 Chong Yidong <cyd@stupidchicken.com>
6618
6619 * indent.c (Fvertical_motion): Restore hscroll before moving to
6620 goal column.
6621
66222008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
6623
6624 * lisp.h: Remove left over code.
6625
66262008-07-11 Andreas Schwab <schwab@suse.de>
6627
6628 * lisp.h: Fix logic in last change.
6629
6630 * menu.h: New file.
6631 * menu.c: Include it.
6632 * xmenu.c: Likewise.
6633 * Makefile.in: Update dependencies.
6634
66352008-07-11 Kenichi Handa <handa@m17n.org>
6636
6637 * fontset.c (fontset_from_font): Cancel the previous change.
6638
66392008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
6640
6641 * lisp.h:
6642 * w32heap.c:
6643 * emacs.c:
6644 * alloc.c: Replace all references of NO_UNION_TYPE with
6645 USE_LISP_UNION_TYPE.
6646
6647 * m/xtensa.h (NO_UNION_TYPE):
6648 * m/vax.h (NO_UNION_TYPE):
6649 * m/template.h (NO_UNION_TYPE):
6650 * m/sparc.h (NO_UNION_TYPE):
6651 * m/mips.h (NO_UNION_TYPE):
6652 * m/macppc.h (NO_UNION_TYPE):
6653 * m/m68k.h (NO_UNION_TYPE):
6654 * m/iris4d.h (NO_UNION_TYPE):
6655 * m/intel386.h (NO_UNION_TYPE):
6656 * m/ibms390x.h (NO_UNION_TYPE):
6657 * m/ibms390.h (NO_UNION_TYPE):
6658 * m/ibmrs6000.h (NO_UNION_TYPE):
6659 * m/ia64.h (NO_UNION_TYPE):
6660 * m/hp800.h (NO_UNION_TYPE):
6661 * m/arm.h (NO_UNION_TYPE):
6662 * m/amdx86-64.h (NO_UNION_TYPE):
6663 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
6664 defining it the same.
6665
66662008-07-10 Chong Yidong <cyd@stupidchicken.com>
6667
6668 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
6669
66702008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
6671
6672 * fileio.c:
6673 * sysdep.c
6674 * systty.h:
6675 * m/ibmrs6000.h:
6676 * m/iris4d.h:
6677 * s/aix4-2.h:
6678 * s/freebsd.h:
6679 * s/gnu-linux.h:
6680 * s/hpux10-20.h:
6681 * s/hpux11.h:
6682 * s/netbsd.h:
6683 * s/sol2-3.h:
6684 * s/sol2-4.h:
6685 * s/sol2.h:
6686 * s/usg5-4.h:
6687 * s/vms.h: Remove references to unused variables.
6688
66892008-07-10 Andreas Schwab <schwab@suse.de>
6690
6691 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
6692 pattern before matching the generic family.
6693
66942008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
6695
6696 * unexec.c:
6697 * s/vms.h:
6698 * s/usg5-4-2.h:
6699 * s/sol2-5.h:
6700 * s/freebsd.h:
6701 * s/darwin.h: Remove dead code.
6702
6703 * m/template.h:
6704 * m/sparc.h:
6705 * m/mips.h:
6706 * m/m68k.h:
6707 * m/iris4d.h:
6708 * m/intel386.h:
6709 * m/ibms390x.h:
6710 * m/ibms390.h:
6711 * m/ia64.h:
6712 * m/hp800.h:
6713 * m/arm.h:
6714 * m/amdx86-64.h: Remove dead code and references to unused
6715 and compiler defined symbols.
6716
6717 * unexmips.c:
6718 * unexelf.c: Remove references to desupported systems.
6719
6720 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
6721
6722 * m/powermac.h: Remove boilerplate comments.
6723 (NO_REMAP): Remove unused definition.
6724
6725 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
6726 define them.
6727
67282008-07-10 Kenichi Handa <handa@m17n.org>
6729
6730 * xfont.c (xfont_open): Log the reason of failure.
6731
67322008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
6733
6734 * fontset.c (fontset_get_font_group):
6735 * font.c (font_check_otf): Specify argument types.
6736
67372008-07-09 Kenichi Handa <handa@m17n.org>
6738
6739 * coding.c (detect_coding_utf_8): Set detect_info->found only when
6740 non-ASCII char is found.
6741
6742 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
6743 (reorder_font_vector): Change the arg preferred_family to font.
6744 Prefer the spec matching with font.
6745 (fontset_get_font_group): New function.
6746 (fontset_find_font): Change the format of an element of a realized
6747 fontset. Use fontset_get_font_group.
6748 (fontset_font): Try the current fontset, the default fontset, the
6749 fallbacks of the current fontset, and the fallbacks of the default
6750 fontset in this order.
6751 (face_for_char): Delete the shortcut to use the current font.
6752 (fontset_from_font): Don't set fonts for Latin in the fontset.
6753
6754 * font.h (font_make_object, font_match_p): Adjust prototypes.
6755
6756 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
6757
6758 * font.c (font_make_object): New arg entity and pixelsize.
6759 (font_check_otf_features, font_check_otf): New functions.
6760 (font_match_p): Check :lang, :script, and :otf properties.
6761
6762 * xfont.c (xfont_open): Adjust it for the change of
6763 font_make_object.
6764 (xfont_text_extents): Fix initial setting of metrics.
6765
6766 * ftfont.c (struct ftfont_info): New member index, delete member
6767 fc_charset_idx. Make the member order compatible with struct
6768 xftfont_info.
6769 (fc_charset_table): Change charset names to registry names.
6770 (ftfont_pattern_entity): Delete the args registry and
6771 fc_charset_idx. Change the value of :font-entity property
6772 to (FONTNAME . INDEX). Always set :registry property to
6773 `iso10646-1'.
6774 (struct ftfont_cache_data): New struct.
6775 (ftfont_lookup_cache): New arg for_face.
6776 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
6777 (ftfont_driver): Set the member otf_capability.
6778 (ftfont_get_charset): Adjust it for the change of
6779 fc_charset_table.
6780 (OTF_TAG_SYM): New macro.
6781 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
6782 for the change of fc_charset_table.
6783 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
6784 ftfont_pattern_entity. Add FC_INDEX to objset.
6785 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
6786 and ftfont_pattern_entity.
6787 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
6788 font_make_object, struct ftfont_info.
6789 (ftfont_has_char): Use ftfont_get_fc_charset.
6790 (ftfont_otf_features, ftfont_otf_capability): New functions.
6791 (ftfont_shape): Use ftfont_get_otf.
6792 (ftfont_text_extents): Fix initial setting of metrics.
6793
6794 * xftfont.c (struct xftfont_info): New member ft_size. Make the
6795 member order compatible with struct ftfont_info.
6796 (xftfont_open): Add FC_CHARSET to the pattern. Set
6797 xftfont_info->ft_size. Don't unlock the face. Check BDF
6798 properties if appropriate.
6799 (xftfont_close): Unlock the face.
6800 (xftfont_anchor_point, xftfont_shape): Deleted.
6801 (syms_of_xftfont): Don't set members anchor_point and shape of
6802 xftfont_driver.
6803
6804 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
6805 font_make_object.
6806
6807 * w32font.c (w32font_open): Adjust it for the change of
6808 font_make_object.
6809 (w32font_open_internal): Don't set properties of font_object here.
6810
68112008-07-08 Chong Yidong <cyd@stupidchicken.com>
6812
6813 * macfns.c (x_create_tip_frame):
6814 * w32fns.c (x_create_tip_frame):
6815 * xfns.c (x_create_tip_frame): Pass parameter argument to
6816 face-set-after-frame-default.
6817
6818 * xfaces.c (Finternal_merge_in_global_face): Save merged
6819 attributes for the default face back into the face vector.
6820
68212008-07-08 Andreas Schwab <schwab@suse.de>
6822
6823 * fontset.h: Declare fontset_from_font. Don't declare
6824 new_fontset_from_font and fontset_from_font_name.
6825 * xterm.c: Include "fontset.h".
6826 * Makefile.in (xterm.o): Update dependencies.
6827
68282008-07-08 Glenn Morris <rgm@gnu.org>
6829
6830 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
6831 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
6832
68332008-07-07 Chong Yidong <cyd@stupidchicken.com>
6834
6835 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
6836 (x_set_frame_parameters): Don't bind it.
6837
68382008-07-07 Juanma Barranquero <lekktu@gmail.com>
6839
6840 * w32fns.c (map_w32_filename): Declare extern.
6841
68422008-07-07 Jason Rumney <jasonr@gnu.org>
6843
6844 * w32term.c (WS_EX_LAYERED): Define if not already.
6845
68462008-07-06 Chong Yidong <cyd@stupidchicken.com>
6847
6848 * xfaces.c (set_font_frame_param): Don't try to set the font
6849 parameter if it is still unspecified in the lface.
6850
68512008-07-05 Chong Yidong <cyd@stupidchicken.com>
6852
6853 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
6854 face if it didn't already exist.
6855
6856 * xdisp.c (try_window_id): Give up if word-wrapping is on.
6857
68582008-07-05 Andreas Schwab <schwab@suse.de>
6859
6860 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
6861
68622008-07-05 Chong Yidong <cyd@stupidchicken.com>
6863
6864 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
6865 word-wrapping.
6866 (IT_DISPLAYING_WHITESPACE): New macro.
6867 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
6868 when word-wrapping. Simplify word-wrapping logic. Use correct
6869 pixel positions when saving copies of the iterator.
6870 (display_line): Use proper wrap point if the last character on a
6871 line was preceded by whitespace.
6872
68732008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
6874
6875 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
6876
68772008-07-04 Kenichi Handa <handa@m17n.org>
6878
6879 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
6880
6881 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
6882
68832008-07-02 Jason Rumney <jasonr@gnu.org>
6884
6885 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 6886 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
6887
6888 * xdisp.c (next_element_from_display_vector): Move assignment out
6889 of if statement.
6890
68912008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
6892
6893 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
6894
6895 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
6896 (syms_of_fileio): Initialize and export them.
6897 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
6898
6899 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
6900 (Fsystem_move_file_to_trash): New function.
6901 (syms_of_w32fns): Export it to lisp.
6902
69032008-07-01 Jason Rumney <jasonr@gnu.org>
6904
6905 * w32font.c (w32font_text_extents): Don't count overhang as part
6906 of width.
6907
69082008-06-30 Miles Bader <miles@gnu.org>
6909
6910 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
6911 Add `avoid_cursor_p' field.
6912
6913 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
6914 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
6915 (append_glyph, append_composite_glyph, produce_image_glyph)
6916 (append_stretch_glyph): Initialize avoid_cursor_p.
6917 (get_it_property): Rename from `get_line_height_property'.
6918 (x_produce_glyphs): Use get_it_property.
6919 (handle_line_prefix, push_display_prop): New functions.
6920 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
6921 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
6922 New variables.
6923 (syms_of_xdisp): Initialize them.
6924
69252008-06-30 Kenichi Handa <handa@m17n.org>
6926
6927 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
6928 XftDefaultSubstitute (they are called in XftFontMatch).
6929 (xftfont_open): Fix args to ftfont_font_format.
6930
6931 * ftfont.c (fc_charset_table): New member lang.
6932 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 6933 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
6934 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
6935 (ftfont_open): Fix args to ftfont_font_format.
6936 (ftfont_font_format): New arg filename.
6937
69382008-06-30 Chong Yidong <cyd@stupidchicken.com>
6939
6940 * xfaces.c (Finternal_merge_in_global_face): If default face was
6941 modified, realize it again. Update the font face attribute.
6942
69432008-06-29 Jason Rumney <jasonr@gnu.org>
6944
6945 * w32term.c (x_set_frame_alpha): Fix logic.
6946
69472008-06-29 Kenichi Handa <handa@m17n.org>
6948
6949 * fontset.c (Finternal_char_font): Return font-object instead of
6950 font-name.
6951
6952 * composite.c (get_composition_id): Fix the width calculation for TAB.
6953
69542008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
6955
6956 * indent.c (Fvertical_motion): Properly handle float column arg.
6957
69582008-06-28 Jason Rumney <jasonr@gnu.org>
6959
6960 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
6961 (pfnSetLayeredWindowAttributes): New function pointer.
6962 (w32_initialize): Initialize it when supported.
6963 (x_set_frame_alpha): New function.
6964
6965 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
6966 (w32_frame_parm_handlers): Set alpha handler.
6967
6968 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
6969
69702008-06-27 Jason Rumney <jasonr@gnu.org>
6971
6972 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
6973 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
6974 (w32_to_x_charset, x_to_w32_charset)
6975 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
6976 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
6977 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
6978 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
6979 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
6980 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
6981 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
6982 (Qw32_charset_unicode): Remove.
6983 (syms_of_w32fns): Update for above changes.
6984
6985 * w32font.c (w32_to_x_charset, x_to_w32_charset)
6986 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
6987 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
6988 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
6989 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
6990 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
6991 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
6992 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
6993 (syms_of_w32font): Update for above changes.
6994
69952008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
6996
6997 * s/usg5-4.h: Fix previous change: keep the correct branch of a
6998 removed #if.
6999 (USG_SHARED_LIBRARIES): Remove duplicate definition.
7000
70012008-06-26 Juanma Barranquero <lekktu@gmail.com>
7002 Eli Zaretskii <eliz@gnu.org>
7003
7004 * makefile.w32-in (LOCAL_FLAGS):
7005 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
7006
7007 * sysdep.c (_spawnlp, _getpid):
7008 Declare with explicit _cdecl instead of _CRTAPI1.
7009
7010 * editfns.c (Fget_internal_run_time):
7011 Check for WINDOWSNT with #ifdef, not #if.
7012
70132008-06-26 Jason Rumney <jasonr@gnu.org>
7014
7015 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
7016
7017 * w32term.c (x_draw_glyph_string_foreground)
7018 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
7019 Use FONT_HANDLE macro.
7020 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
7021
7022 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
7023 (uniscribe_encode_char): Use FONT_HANDLE macro.
7024
7025 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
7026 (w32font_text_extents): Use precast w32_font.
7027 (w32font_close): Free cached metrics.
7028 (w32font_open_internal): Allocate space for name on stack.
7029
70302008-06-26 Chong Yidong <cyd@stupidchicken.com>
7031
7032 * xdisp.c (extend_face_to_end_of_line): Fix last change.
7033
70342008-06-26 Jason Rumney <jasonr@gnu.org>
7035
7036 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
7037 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
7038
70392008-06-26 Juanma Barranquero <lekktu@gmail.com>
7040
7041 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
7042
70432008-06-26 Jason Rumney <jasonr@gnu.org>
7044
7045 * w32bdf.c, w32bdf.h: Remove obsolete files.
7046
7047 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
7048
7049 * w32gui.h: Don't include w32bdf.h.
7050 (XCharStruct, enum w32_char_font_type, W32FontStruct):
7051 Remove obsolete font support.
7052
7053 * w32font.h (struct w32font_info): Remove compat_w32_font.
7054 Add hfont member.
7055 (FONT_COMPAT): Remove obsolete macro.
7056
7057 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
7058 (w32font_encode_char, w32font_text_extents): Use new hfont member.
7059 (w32font_open_internal): Remove compat code. Set new hfont member.
7060 (Fx_select_font): Use new hfont member.
7061
7062 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
7063 (uniscribe_encode_char): Use new hfont member.
7064
7065 * w32term.c (x_draw_glyph_string_foreground)
7066 (x_draw_composite_glyph_string_foreground): Use new hfont member.
7067 (x_draw_glyph_string): Use metrics in w32font_info.
7068
70692008-06-26 Kenichi Handa <handa@m17n.org>
7070
7071 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
7072
70732008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
7074
7075 * unexnext.c:
7076 * m/ews4800.h:
7077 * m/hp9000s300.h:
7078 * m/ibm370aix.h:
7079 * m/mips-siemens.h:
7080 * m/ncr386.h:
7081 * m/next.h:
7082 * m/pmax.h:
7083 * m/powerpcle.h:
7084 * m/tandem-s2.h:
7085 * s/386bsd.h:
7086 * s/bsd386.h:
7087 * s/bsd4-1.h:
7088 * s/bsd4-2.h:
7089 * s/bsdos2-1.h:
7090 * s/bsdos2.h:
7091 * s/bsdos3.h:
7092 * s/bsdos4.h:
7093 * s/nextstep.h:
7094 * s/ultrix4-3.h:
7095 * s/usg5-0.h:
7096 * s/usg5-2-2.h:
7097 * s/usg5-2.h:
7098 * s/usg5-4-3.h:
7099 * s/ux4800.h:
7100 * s/uxpds.h:
7101 * s/uxpv.h: Remove support for obsolete systems.
7102 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 7103 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
7104 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
7105 Remove, insert contents in s/aix4-2.h.
7106 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
7107 * s/bsd4-3.h: Rename to ...
7108 * s/bsd-common.h: ... this.
7109 * data.c:
7110 * doc.c:
7111 * ecrt0.c:
7112 * emacs.c:
7113 * fileio.c:
7114 * floatfns.c:
7115 * keyboard.c:
7116 * mem-limits.h:
7117 * print.c:
7118 * process.c:
7119 * sysdep.c:
7120 * syssignal.h:
7121 * systty.h:
7122 * syswait.h:
7123 * term.c:
7124 * unexec.c:
7125 * unexelf.c:
7126 * unexhp9k800.c:
7127 * m/hp800.h:
7128 * m/ibmrs6000.h:
7129 * m/mips.h:
7130 * m/vax.h:
7131 * s/darwin.h:
7132 * s/freebsd.h:
7133 * s/gnu.h:
7134 * s/ms-w32.h:
7135 * s/msdos.h:
7136 * s/netbsd.h:
7137 * s/template.h: Remove references to obsolete variables.
7138
7139 * Makefile.in: Add dependencies for all unexec files.
7140 (admindir): Remove unused variable.
7141 (UNEXEC_SRC): Remove references.
7142
71432008-06-25 Chong Yidong <cyd@stupidchicken.com>
7144
7145 * xfns.c (x_default_font_parameter): If Xft is available, first
7146 try Monospace-12 for the default font.
7147
71482008-06-25 Jason Rumney <jasonr@gnu.org>
7149
7150 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
7151
71522008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
7153
7154 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
7155
7156 * buffer.c (syms_of_buffer): Remove default-word-wrap.
7157
71582008-06-25 Juanma Barranquero <lekktu@gmail.com>
7159
7160 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
7161 <scroll-conservatively>: Fix typo in docstring.
7162
7163 * xselect.c (Fx_send_client_event): Doc fix.
7164
71652008-06-25 Kenichi Handa <handa@m17n.org>
7166
7167 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
7168
7169 * font.c (font_parse_fcname): Remove unused variables.
7170 (font_sort_entites): Delete the arg SPEC. Caller changed.
7171 Fix for the case of ! best_only.
7172 (font_delete_unmatched): Check DPI and AVGWIDTH too.
7173
7174 * lisp.h (Fstring_to_unibyte): EXFUN it.
7175
7176 * character.h (str_to_unibyte): Extern it.
7177
7178 * character.c (str_to_unibyte): New function.
7179
7180 * fns.c (Fstring_to_unibyte): New function.
7181 (syms_of_fns): Defsubr it.
7182
71832008-06-24 Kenichi Handa <handa@m17n.org>
7184
7185 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
7186 DPI too.
7187 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
7188
71892008-06-24 Andreas Schwab <schwab@suse.de>
7190
7191 * Makefile.in (${lispsource}loaddefs.el): Rename from
7192 ../lisp/loaddefs.el.
7193 (bootstrap-clean): Do what distclean does but don't remove
7194 Makefile.
7195 (distclean): Depend on bootstrap-clean and remove Makefile.
7196
71972008-06-24 Chong Yidong <cyd@stupidchicken.com>
7198
7199 * buffer.h (struct buffer): New member word_wrap.
7200
7201 * buffer.c (syms_of_buffer): New variables default-word-wrap and
7202 word-wrap.
7203 (init_buffer_once): Initialize them.
7204
7205 * dispextern.h (struct it): Replace bool truncate_lines_p with a
7206 line_wrap enum possessing three possible values.
7207
7208 * termopts.h: Replace truncate_partial_width_windows with
7209 Vtruncate_partial_width_windows.
7210
7211 * dispnew.c (direct_output_for_insert): Avoid direct output when
7212 inserting a space with word wrap on.
7213
7214 * indent.c (compute_motion): Obey integer values of
7215 truncate-partial-width-windows.
7216
7217 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
7218 replacing truncate_partial_width_windows.
7219 (init_iterator): If Vtruncate_partial_width_windows is an integer,
7220 truncate only if the window width is below that integer.
7221 (start_display, resize_mini_window, produce_stretch_glyph)
7222 (display_string, move_it_in_display_line_to): Use line_wrap.
7223 (back_to_previous_visible_line_start, reseat_1): Reset
7224 string_from_display_prop_p.
7225 (display_line): Extend default face to end of line when wrapping.
7226
72272008-06-24 Kim F. Storm <storm@cua.dk>
7228
7229 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
7230 to wrap continued lines at word boundaries.
7231
72322008-06-24 Jason Rumney <jasonr@gnu.org>
7233
7234 * font.c (Ffont_face_attributes): Multiply pixel size before point
7235 conversion to avoid multiplying rounding error.
7236
72372008-06-23 Jason Rumney <jasonr@gnu.org>
7238
7239 * w32term.c (x_draw_glyph_string_background)
7240 (x_draw_glyph_string): Remove old bdf font code.
7241
7242 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
7243
72442008-06-22 Kenichi Handa <handa@m17n.org>
7245
7246 * font.c (font_find_for_lface): Try the adstyle specified in
7247 the property of LFACE_FONT of LFACE (if any).
7248
72492008-06-21 Seiji Zenitani <zenitani@mac.com>
7250 Ryo Yoshitake <ryo@shiftmode.net>
7251
7252 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
7253
72542008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
7255
7256 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
7257 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
7258 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
7259 (witness-emacs): Remove.
7260 (lisp, shortlisp): Move loaddefs.el earlier.
7261 (mostlyclean): Forget about witness-emacs.
7262
72632008-06-22 Glenn Morris <rgm@gnu.org>
7264
7265 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
7266 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
7267
72682008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
7269
7270 * Makefile.in (PRECOMP): Remove.
7271 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
7272 (witness-emacs): Run `compile-first'.
7273 (.el.elc): Use the new compile-onefile target.
7274
72752008-06-21 Kenichi Handa <handa@m17n.org>
7276
7277 * xftfont.c (xftfont_open): Handle QCembolden only when
7278 FC_EMBOLDEN is defined.
7279
72802008-06-21 Andreas Schwab <schwab@suse.de>
7281
7282 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
7283 (.el.elc): Likewise.
7284
72852008-06-21 Miles Bader <miles@gnu.org>
7286
7287 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
7288 build dir, not the lisp source dir.
7289
72902008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
7291
7292 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
7293 (bootstrapclean): Remove.
7294 (.el.elc): New rule.
7295 (PRECOMP): New var.
7296 (../lisp/subdirs.el): Remove.
7297 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
7298 (witness-emacs): New target.
7299 (mostlyclean): Remove witness-emacs as well.
7300 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
7301 Add witness-emacs dependency.
7302
73032008-06-20 Chong Yidong <cyd@stupidchicken.com>
7304
7305 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
7306 defined by the font.
7307
73082008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
7309
7310 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
7311 (bootstrap-clean): New target that keeps TAGS around.
7312 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
7313 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
7314
73152008-06-20 Jason Rumney <jasonr@gnu.org>
7316
7317 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
7318 Remove obsolete font code.
7319
7320 * w32font.c (font_matches_spec): Use csb bitfield from font signature
7321 to determine language support.
7322
73232008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
7324
7325 * sysdep.c (cfsetspeed): New fun extracted from the code.
7326 (cfmakeraw): Move before first use.
7327
73282008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
7329
7330 * sysdep.c (cfmakeraw): Provide fallback implementation.
7331 (serial_configure): Provide fallback implementation of cfsetspeed.
7332
73332008-06-20 Kenichi Handa <handa@m17n.org>
7334
7335 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
7336 the pattern.
7337
7338 * fontset.c (fontset_from_font): Copy font_spec before changing
7339 the elements.
7340
7341 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
7342
73432008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
7344
7345 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
7346 for explicit `font' parameters.
7347
7348 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
7349
73502008-06-19 Kenichi Handa <handa@m17n.org>
7351
7352 * frame.c: Include <ctype.h>.
7353 (x_set_font_backend): Allow spacing characters in the X resource
7354 for FontBackend.
7355
73562008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
7357
7358 * w32fns.c, xfns.c (Qfont_param): New var.
7359 (syms_of_w32fns): Initialize it.
7360 (x_default_font_parameter): Record explicit `font' into
7361 `font-parameter'.
7362
73632008-06-18 Kenichi Handa <handa@m17n.org>
7364
7365 * font.c (font_parse_xlfd): Fix previous change.
7366 (font_parse_fcname): Don't use :fc-unknown-spec.
7367 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
7368 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
7369 (font_add_log): Prepend the driver name to the resulting fonts.
7370
7371 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
7372 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
7373 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
7374
7375 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
7376 (QCembolden): New variables.
7377 (syms_of_xftfont): DEFSYM them.
7378 (xftfont_open): Call XftFontMatch. Don't trust the result of
7379 XftTextExtents8 if the pixel_size is less than 5.
7380
73812008-06-18 Andreas Schwab <schwab@suse.de>
7382
7383 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
7384 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
7385
73862008-06-18 Jason Rumney <jasonr@gnu.org>
7387
7388 * w32font.c (w32font_list, w32font_match): Add logging.
7389
7390 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
7391
73922008-06-17 Chong Yidong <cyd@stupidchicken.com>
7393
7394 * font.c (font_parse_fcname): Store divider characters for
7395 unknown-spec list. For known key symbols, intern using correct
7396 symbol name.
7397
73982008-06-17 Kenichi Handa <handa@m17n.org>
7399
7400 * xfaces.c (realize_default_face): If the frame is not on window
7401 system, set the fontset of face to nil.
7402
74032008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
7404
7405 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
7406
74072008-06-16 Juanma Barranquero <lekktu@gmail.com>
7408
7409 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
7410 (build_font_name_from_vector): Delete externs.
7411
7412 * xfaces.c (struct font_name): Don't declare.
7413
74142008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
7415
7416 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
7417
74182008-06-16 Chong Yidong <cyd@stupidchicken.com>
7419
7420 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
7421
74222008-06-16 Juanma Barranquero <lekktu@gmail.com>
7423
7424 * font.c (Ffont_spec): Fix usage in docstring.
7425 (Ffont_face_attributes): Doc fix.
7426
74272008-06-16 Andreas Schwab <schwab@suse.de>
7428
7429 * font.c (Ffont_face_attributes): Fix definition.
7430
74312008-06-16 Jason Rumney <jasonr@gnu.org>
7432
7433 * font.h (font_style_symbolic_from_value): Remove.
7434
7435 * font.c (font_style_symbolic_from_value): Remove.
7436 (font_style_symbolic): Revert to pre 2008-06-13 version.
7437
7438 * w32font.c (w32_to_fc_weight): New function.
7439 (w32font_full_name, logfont_to_fcname): Use it.
7440
74412008-06-16 Kenichi Handa <handa@m17n.org>
7442
7443 * font.c (font_check_object): Delete it.
7444 (font_clear_cache): Check if a font-object is alive.
7445 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
7446 font-object to nil.
7447 (font_close_object): Don't check FONT_CLOSE_OBJECT.
7448 (font_at): Don't call font_check_object.
7449 (Ffont_get): Return a symbol for :weight, :slant, and :width.
7450
74512008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
7452
7453 * puresize.h (BASE_PURESIZE): Increase to 1230000.
7454
74552008-06-16 Chong Yidong <cyd@stupidchicken.com>
7456
7457 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
7458
74592008-06-15 Chong Yidong <cyd@stupidchicken.com>
7460
7461 * font.c (font_parse_fcname): Only one decimal point.
7462 (font_unparse_fcname): Handle data in family and foundry indices
7463 as symbols, not strings.
7464 (font_unparse_gtkname, Ffont_face_attributes): New functions.
7465
7466 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
7467
7468 * font.h (font_unparse_gtkname): Add prototype.
7469
74702008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
7471
7472 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
7473
74742008-06-15 Andreas Schwab <schwab@suse.de>
7475
7476 * font.c (font_update_drivers): Fix crash when no drivers match.
7477
74782008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
7479
7480 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
7481 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
7482
74832008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
7484
7485 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
7486
74872008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
7488
7489 * process.c (Fserial_process_configure, Fprocess_send_eof):
7490 Use EQ to compare Lisp_Objects.
7491
74922008-06-13 Jason Rumney <jasonr@gnu.org>
7493
7494 * w32fns.c (Fw32_select_font): Remove old font API function.
7495
7496 * w32font.c (logfont_to_fcname): New function.
7497 (Fx_select_font): New font dialog function compatible with
7498 GTK/fontconfig version.
7499
7500 * font.c (font_style_symbolic_from_value): New function.
7501 (font_style_symbolic): Use it.
7502
7503 * font.h (font_style_symbolic_from_value): Declare new function.
7504
75052008-06-13 Juanma Barranquero <lekktu@gmail.com>
7506
7507 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
7508 <font-width-table>: Fix typos in docstrings.
7509
75102008-06-13 Daniel Engeler <engeler@gmail.com>
7511
7512 These changes add serial port access.
7513 * process.c: Add HAVE_SERIAL.
7514 (Fdelete_process, Fprocess_status, Fset_process_buffer)
7515 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
7516 (list_processes_1, select_wrapper, Fstop_process)
7517 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
7518 (status_notify): Modify to handle serial processes.
7519 [HAVE_SERIAL] (Fserial_process_configure)
7520 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
7521 New functions.
7522 * process.h (struct Lisp_Process): Add `type'.
7523 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
7524 New functions.
7525 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
7526 serial ports.
b71ac3dd 7527 (serial_open, serial_configure): New functions.
aac0c6e3
MR
7528 * w32.h: Add FILE_SERIAL.
7529 (struct _child_process): Add ovl_read, ovl_write.
7530
75312008-06-13 Kenichi Handa <handa@m17n.org>
7532
7533 * dispextern.h (enum lface_attribute_index): New member
7534 LFACE_FOUNDRY_INDEX.
7535
7536 * font.c (font_score): Delete arg alternate_families. Check only
7537 weight, slant, width, and size. Ignore the difference of alias
7538 style symbols.
7539 (font_sort_entites): Adjust for the above change. Reflect the
7540 order of font-driver to scores.
7541 (font_list_entities): Don't check alternate_familes here.
7542 (font_clear_prop): Handle foundry.
7543 (font_update_lface): Don't parse "foundry-family" form here.
7544 Handle FONT_FOUNDRY_INDEX.
7545 (font_find_for_lface): Likewise. Handle alternate families here.
7546 If registry is nil, try iso8859-1 and ascii-0.
7547 (font_open_for_lface): Pay attention to size in ENTITY.
7548 (font_open_by_name): Simplify by calling font_load_for_lface.
7549 (free_font_driver_list): Delete it.
7550 (font_update_drivers): Preserve the order of backends.
7551 (syms_of_font): Setting of sort_shift_bits adjusted for the change
7552 of font_score and font_sort_entites.
7553 (font_update_sort_order): Likewise.
7554
7555 * xfaces.c (LFACE_FOUNDRY): New macro.
7556 (check_lface_attrs): Check foundry.
7557 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
7558 (merge_face_vectors): Check foundry.
7559 (merge_face_ref): Likewise.
7560 (Finternal_set_lisp_face_attribute): Likewise.
7561 (x_update_menu_appearance): Likewise.
7562 (Finternal_get_lisp_face_attribute): Likewise.
7563 (lface_hash): Likewise.
7564 (lface_same_font_attributes_p): Likewise.
7565 (x_supports_face_attributes_p): Likewise.
7566 (tty_supports_face_attributes_p): Likewise.
7567 (Finternal_set_alternative_font_family_alist): Intern strings.
7568 (Finternal_set_alternative_font_registry_alist): Downcase strings.
7569 (realize_default_face): Set LFACE_FOUNDRY (lface).
7570
7571 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
7572 font-driver at first.
7573
7574 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
7575
75762008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7577
7578 * lread.c (Fload): Use xfree, not free on saved_doc_string.
7579
75802008-06-12 Jim Meyering <meyering@redhat.com>
7581
7582 Make unexec_free handle NULL the same way free does.
7583 * unexmacosx.c (unexec_free): Ignore a NULL argument.
7584
75852008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
7586
7587 * character.h (CHAR_TO_BYTE_SAFE): New macro.
7588 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
7589 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
7590 (WEAK_ALIAS): Simplify.
7591 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
7592 when searching a unibyte buffer.
7593
75942008-06-12 Chong Yidong <cyd@stupidchicken.com>
7595
7596 * xfns.c (Fx_select_font): Rename from x-font-dialog.
7597
75982008-06-12 Juanma Barranquero <lekktu@gmail.com>
7599
7600 * w32font.c: Include ctype.h.
7601
76022008-06-11 Jason Rumney <jasonr@gnu.org>
7603
7604 * w32font.c (w32font_encode_char): Detect missing glyphs that are
7605 misreported as space.
7606 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
7607 as aliases for registry iso10646-1.
7608
76092008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
7610
7611 * buffer.c (clone_per_buffer_values): Skip `name'.
7612
76132008-06-11 Chong Yidong <cyd@stupidchicken.com>
7614
7615 * font.c (font_parse_fcname): Fix last change; accept decimal
7616 points in font size.
7617
76182008-06-10 Jason Rumney <jasonr@gnu.org>
7619
7620 * w32uniscribe.c (add_opentype_font_name_to_list):
7621 Skip non unicode fonts.
7622
76232008-06-10 Chong Yidong <cyd@stupidchicken.com>
7624
7625 * xfns.c (Fx_font_dialog): New function.
7626
7627 * gtkutil.c (xg_dialog_response_cb): Rename from
7628 xg_file_response_callback.
7629 (pop_down_dialog): Rename from pop_down_file_dialog.
7630 (xg_get_file_name): Callers changed.
7631 (xg_get_font_name): New function.
7632
7633 * gtkutil.h (xg_get_font_name): Insert prototype.
7634
76352008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
7636
7637 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
7638 x_underline_minimum_display_offset.
7639 (syms_of_xdisp): Declare it here rather than in xterm.c.
7640 * dispextern.h (underline_minimum_offset): Declare it.
7641 * w32term.c (x_draw_glyph_string): Use it.
7642 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
7643 (syms_of_xterm): Don't declare it any more.
7644 (x_draw_glyph_string): Adjust to the new name.
7645
76462008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
7647
7648 * xterm.c (x_underline_minimum_display_offset): New var.
7649 (x_draw_glyph_string): Use it.
7650 (syms_of_xterm): Declare it.
7651
76522008-06-10 Chong Yidong <cyd@stupidchicken.com>
7653
7654 * font.c (font_parse_fcname): Accept GTK-style font names too.
7655
76562008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
7657
7658 * dired.c (file_name_completion): Don't return t if the match is exact
7659 but with different capitalization.
7660 * minibuf.c (Ftry_completion): Simplify.
7661
7662 * window.c (Vwindow_point_insertion_type): New var.
7663 (set_window_buffer): Use it.
7664 (syms_of_window): Init and export it to Lisp.
7665
76662008-06-10 Kenichi Handa <handa@m17n.org>
7667
7668 * font.h (font_intern_prop): Prototype adjusted.
7669
7670 * font.c (font_intern_prop): New arg force_symbol.
7671 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
7672 Adjust for the change of font_intern_prop.
7673
7674 * ftfont.c (ftfont_pattern_entity):
7675 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
7676 (w32_registry):
7677 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
7678 the change of font_intern_prop.
7679
76802008-06-09 Juanma Barranquero <lekktu@gmail.com>
7681
7682 * w32menu.c (digest_single_submenu): Declare extern.
7683
76842008-06-09 Jason Rumney <jasonr@gnu.org>
7685
7686 * w32term.c (x_make_frame_visible): Use alternate restore flags.
7687
7688 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
7689 (parse_single_submenu): Remove.
7690 (digest_single_submenu): Remove.
7691 (syms_of_w32menu): Don't initialise variables that have moved
7692 to menu.c.
7693 (set_frame_menubar): Sync with version in xmenu.c.
7694 (w32_menu_show): Sync with xmenu_show in xmenu.c.
7695
7696 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
7697 Make static again.
7698
76992008-06-09 Jason Rumney <jasonr@gnu.org>
7700
7701 Changes to w32 files related to the move of common menu code
7702 to menu.c on 2008-06-08 by Chong Yidong.
7703
7704 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
7705 defs to w32gui.h.
7706 (single_keymap_panes, push_menu_item, push_menu_pane):
7707 Make globally visible.
7708
7709 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
7710 (local_free, malloc_widget_value, free_widget_value)
7711 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
7712 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
7713 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
7714 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
7715 (menu_items, menu_items_allocated, menu_items_used)
7716 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
7717 (init_menu_items, finish_menu_items, discard_menu_items)
7718 (grow_menu_items, push_submenu_start, push_submenu_end)
7719 (push_left_right_boundary, push_menu_pane, push_menu_item)
7720 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
7721 (free_menubar_widget_tree_value, parse_single_submenu)
7722 (update_submenu_strings): Remove functions.
7723 (xmalloc_widget_value): Remove and declare extern.
7724
7725 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
7726 (OBJ1): Build it.
7727
7728 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
7729 (local_heap, local_alloc, local_free, malloc_widget_value)
7730 (free_widget_value): Define here.
7731
77322008-06-09 Kenichi Handa <handa@m17n.org>
7733
7734 * font.h (Qascii_0): Extern it.
7735
7736 * font.c (Qascii_0): New variable.
7737 (syms_of_font): DEFSYM it.
7738 (font_open_by_name): If the registry "iso8859-1" fails, try also
7739 "ascii-0".
7740
7741 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
7742
77432008-06-08 Kenichi Handa <handa@m17n.org>
7744
7745 * .gdbinit (xfont): New command.
7746
77472008-06-08 Andreas Schwab <schwab@suse.de>
7748
7749 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
7750 * Makefile.in (menu.o): Update dependencies.
7751
7752 * Makefile.in (obj): Always add menu.o.
7753 * emacs.c (main): Always call syms_of_menu.
7754 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
7755
77562008-06-08 Chong Yidong <cyd@stupidchicken.com>
7757
7758 * Makefile.in: Compile menu.c.
7759
7760 * lisp.h: Declare syms_of_menu.
7761
7762 * emacs.c (main): Call syms_of_menu.
7763
7764 * keyboard.h: Relocate platform-independent menu definitions from
7765 xmenu.c.
7766
7767 * menu.c: New file. Relocate platform-independent menu
7768 definitions from xmenu.c. Suggested by Adrian Robert.
7769
7770 * xmenu.c: Remove platform-independent menu definitions.
7771 (menu_items menu_items_inuse, menu_items_allocated)
7772 (menu_items_used, menu_items_n_panes)
7773 (menu_items_submenu_depth): Move to keyboard.h.
7774 (init_menu_items, finish_menu_items, unuse_menu_items)
7775 (discard_menu_items, restore_menu_items, save_menu_items)
7776 (grow_menu_items, push_submenu_start, push_submenu_end)
7777 (push_left_right_boundary, push_menu_pane, push_menu_item)
7778 (keymap_panes, single_keymap_panes, single_menu_item)
7779 (list_of_panes, list_of_items, find_and_call_menu_selection)
7780 (xmalloc_widget_value, free_menubar_widget_value_tree)
7781 (parse_single_submenu, digest_single_submenu)
7782 (update_submenu_strings): Move to menu.c.
7783
77842008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
7785
7786 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
7787
77882008-06-06 Miles Bader <miles@gnu.org>
7789
7790 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
7791 face, not frame default.
7792
77932008-06-05 Martin Rudalics <rudalics@gmx.at>
7794
7795 * window.c (pop_up_windows, pop_up_frames)
7796 (display_buffer_reuse_frames, Vpop_up_frame_function)
7797 (Vdisplay_buffer_function, Veven_window_heights)
7798 (Vspecial_display_buffer_names, Vspecial_display_regexps)
7799 (Vspecial_display_function, Vsame_window_buffer_names)
7800 (Vsame_window_regexps, split_height_threshold)
7801 (Vsplit_window_preferred_function): Move those vars to window.el.
7802 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
7803 (Fdisplay_buffer): Move those functions to window.el.
7804 (syms_of_window): Remove corresponding declarations.
7805 (display_buffer): New function.
7806 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
7807 * dispnew.c (Flast_nonminibuf_frame): New function.
7808 * buffer.c (Fpop_to_buffer): Move to window.el.
7809
78102008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
7811
7812 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
7813
78142008-06-05 Kenichi Handa <handa@m17n.org>
7815
7816 * coding.c (detect_coding): Fix previous change.
7817 (detect_coding_system): Likewise.
7818
78192008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
7820
7821 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
7822
7823 * keymap.c (Vminibuffer_local_filename_must_match_map):
7824 Rename from Vminibuffer_local_must_match_filename_map.
7825 (syms_of_keymap):
7826 * minibuf.c (Fcompleting_read): Adjust accordingly.
7827 * commands.h: Rename declaration as well.
7828
78292008-06-05 Kenichi Handa <handa@m17n.org>
7830
7831 * font.c (Ffont_spec): Don't use font_parse_family_registry for
7832 family name.
7833 (Ffont_put): Likewise.
7834
7835 * fontset.c (fontset_find_font): Call font_open_for_lface with the
7836 current font-spec.
7837
7838 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
7839 is unspecified.
7840
7841 * xfaces.c (realize_x_face): If the font-related face attributes
7842 are the same as those of default face, realize a new fontset from
7843 default->fontset.
7844 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
7845
78462008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
7847
7848 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
7849 (move_it_in_display_line): New wrapper.
7850
7851 * window.c (window_scroll_pixel_based_preserve_x)
7852 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
7853 (window_scroll_pixel_based, window_scroll_line_based):
7854 Use them to preserve column positions.
7855 (syms_of_window): Initialize them.
7856
7857 * indent.c (Fvertical_motion): Extend first arg to allow passing an
7858 (HPOS . VPOS) pair.
7859
7860 * dispextern.h (move_it_in_display_line): Declare.
7861
78622008-06-05 Juanma Barranquero <lekktu@gmail.com>
7863
7864 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
7865 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
7866 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
7867
78682008-06-04 Juanma Barranquero <lekktu@gmail.com>
7869
7870 * window.c (Fset_window_parameter): Doc fix.
7871 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
7872
78732008-06-04 Joakim Verona <joakim@verona.se>
7874
7875 * window.h (struct window): Add new member window_parameters.
7876
7877 * window.c (Fwindow_parameters, Fwindow_parameter)
7878 (Fset_window_parameter): New defuns.
7879 (syms_of_window): Defsubr the new defuns.
7880 (make_window): Initialize window_parameters to nil.
7881
78822008-06-04 John Paul Wallington <jpw@pobox.com>
7883
7884 * eval.c (Fdefmacro): Doc fix.
7885
78862008-06-04 Kenichi Handa <handa@m17n.org>
7887
7888 * coding.c (detect_coding): Fix handling of coding->head_ascii.
7889 Be sure to call setup_coding_system when we find a proper coding system.
7890 (detect_coding_system): Fix handling of coding->head_ascii.
7891
78922008-06-03 Andreas Schwab <schwab@suse.de>
7893
7894 * font.c (font_prop_validate_spacing): Fix last change.
7895
78962008-06-03 Kenichi Handa <handa@m17n.org>
7897
7898 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
7899 (font_parse_fcname): Fix handling of unknown key.
7900
7901 * xfont.c (xfont_list): Try an alias.
7902
7903 * charset.c (char_charset): Return NULL if the arg charset_list is
7904 specified and C doesn't belong to any of them.
7905
79062008-06-02 Chip Coldwell <coldwell@redhat.com>
7907
7908 * font.c (font_pixel_size): Don't take cdr of an integer.
7909
79102008-06-02 Jim Meyering <meyering@redhat.com>
7911
7912 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
7913 * alloc.c (xfree): Return right away for a NULL arg.
7914 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
7915 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
7916 * mac.c (create_apple_event_from_event_ref): Likewise.
7917 (create_apple_event_from_drag_ref, cfstring_create_normalized):
7918 Likewise.
7919 * doprnt.c (doprnt1): Likewise.
7920 * frame.c (frame): Likewise.
7921 * keyboard.c (wipe_kboard): Likewise.
7922 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
7923 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
7924 * term.c (tty_default_color_capabilities, maybe_fatal)
7925 (delete_tty): Likewise.
7926 * w16select.c (string): Likewise.
7927 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
7928 * w32bdf.c (w32_free_bdf_font): Likewise.
7929 * w32fns.c (w32_unload_font): Likewise.
7930 * w32font.c (w32font_close): Likewise.
7931 * window.c (size_window): Likewise.
7932 * xselect.c (receive_incremental_selection): Likewise.
7933 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
7934 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
7935 * w32.c (stat): Likewise.
7936
7937 Remove useless if-before-free tests.
7938 * editfns.c (Fset_time_zone_rule): Likewise.
7939 * lread.c (nosuffix): Likewise.
7940 * ralloc.c (get_bloc): Likewise.
7941 * regex.c (reg_free): Likewise.
7942 * xftfont.c (xftfont_open, xftfont_close): Likewise.
7943 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
7944 * xsmfns.c (smc_save_yourself_CB): Likewise.
7945
79462008-06-02 Kenichi Handa <handa@m17n.org>
7947
7948 * font.c (font_find_for_lface): Handle float font size.
7949 (font_open_for_lface): Likewise.
7950
7951 * xfaces.c (x_supports_face_attributes_p): Check face->font before
7952 comparing the properties.
7953
79542008-06-01 Jason Rumney <jasonr@gnu.org>
7955
7956 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
7957 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
7958 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
7959 Don't add empty script list.
7960 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
7961
79622008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
7963
7964 * Makefile.in (dot, dotdot): Remove, update users.
7965 ".." has been used elsewhere in the file for a long time.
7966 (LIBXT_STATIC): Remove conditional based on unused variable.
7967
79682008-06-01 Miles Bader <miles@gnu.org>
7969
7970 * xfaces.c (Vface_remapping_alist): New variable.
7971 (syms_of_xfaces): Initialize it.
7972 (enum named_merge_point_kind): New type.
7973 (struct named_merge_point): Add `named_merge_point_kind' field.
7974 (push_named_merge_point): Make cycle detection respect different
7975 named-merge-point kinds.
7976 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
7977 Remove face-name alias resolution.
7978 (lface_from_face_name): New definition using
7979 `lface_from_face_name_no_resolve'.
7980 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
7981 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
7982 (get_lface_attributes): New definition that layers face-remapping on
7983 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
7984 (lookup_basic_face): New function.
7985 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
7986 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
7987 `get_lface_attributes'.
7988 (face_at_buffer_position): Use `lookup_basic_face' to lookup
7989 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
7990 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
7991
7992 * xdisp.c (init_iterator): Pass base_face_id through
7993 `lookup_basic_face' when we actually use it as a face-id.
7994 (handle_single_display_prop): Use `lookup_basic_face' to lookup
7995 DEFAULT_FACE_ID.
7996
7997 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
7998 lookup the initial face-id.
7999
8000 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
8001
80022008-06-01 Juanma Barranquero <lekktu@gmail.com>
8003
8004 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
8005 (Fremove_text_properties): Fix typos in docstrings.
8006
80072008-05-31 Kenichi Handa <handa@m17n.org>
8008
8009 * font.c (font_list_entities): Fix the car part of data to be
8010 stored in the cache.
8011
8012 * ftfont.c (ftfont_font_format): Don't use strcasestr.
8013
80142008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
8015
8016 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
8017 Add a `test' argument so another predicate than `equal' can be used.
8018 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
8019 (map_char_table): Remove unused vars `c' and `i'.
8020 * lisp.h (Foptimize_char_table): Adjust declaration.
8021 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
8022
80232008-05-30 Kenichi Handa <handa@m17n.org>
8024
8025 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
8026 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
8027 defined.
8028
80292008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
8030
8031 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
8032 (Fmake_variable_frame_local): Disallow mixing buffer-local and
8033 frame-local settings for the same variable.
8034
80352008-05-30 Kenichi Handa <handa@m17n.org>
8036
8037 * fontset.c (Ffont_info): Move to font.c.
8038 (syms_of_fontset): Delete defsubr of Sfont_info.
8039
8040 * font.c (font_style_to_value, font_score): Delete casting of the
8041 args to xstcasecmp.
8042 (register_font_driver): Increment num_font_drivers only when
8043 registering the driver globally.
8044 (Ffont_info): Move from fontset.c. Handle a font object too.
8045 (syms_of_font): Defsubr Sfont_info.
8046
80472008-05-29 Kenichi Handa <handa@m17n.org>
8048
8049 * coding.h (enum define_coding_utf8_arg_index): New enum.
8050 (enum coding_attr_index): Change coding_attr_utf_16_bom to
8051 coding_attr_utf_bom.
8052 (enum utf_bom_type): Rename from utf_16_bom_type.
8053 (struct utf_16_spec): Adjust for the above change.
8054 (struct coding_system): Add utf_8_bom in `spec' union.
8055
8056 * coding.c (CODING_UTF_8_BOM): New macro.
8057 (enum coding_category): Delete coding_category_utf_8, add
8058 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
8059 coding_category_utf_8_sig.
8060 (CATEGORY_MASK_UTF_8): Delete it.
8061 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
8062 (CATEGORY_MASK_UTF_8_SIG): New macros.
8063 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
8064 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
8065 CATEGORY_MASK_UTF_8_SIG.
8066 (CATEGORY_MASK_UTF_8): New macro.
8067 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
8068 (detect_coding_utf_8): Check BOM.
8069 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
8070 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
8071 (encode_coding_utf_16): Likewise.
8072 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
8073 (detect_coding, detect_coding_system): Handle utf-8-auto.
8074 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
8075 (syms_of_coding): Fix setting up of Vcoding_category_table.
8076
80772008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
8078
8079 * process.c (Faccept_process_output): If `millisec' is non-nil,
8080 `seconds' default to 0.
8081 (wait_reading_process_output): Also return non-nil if we read output
8082 from a non-running process.
8083
80842008-05-29 Jason Rumney <jasonr@gnu.org>
8085
8086 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
8087 `raster' specified.
8088 (add_font_entity_to_list): Allow non-opentype truetype fonts back
8089 in the uniscribe backend, but disallow any font that has no
8090 unicode subrange support.
8091
80922008-05-29 Juanma Barranquero <lekktu@gmail.com>
8093
8094 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
8095 Fix typos in docstrings.
8096
80972008-05-29 Kenichi Handa <handa@m17n.org>
8098
8099 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
8100 (Fx_family_fonts): Set frame correctly.
8101
81022008-05-28 Jason Rumney <jasonr@gnu.org>
8103
8104 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
8105
81062008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
8107
8108 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
8109 calling build_annotations.
8110
81112008-05-28 Juanma Barranquero <lekktu@gmail.com>
8112
8113 * coding.c (Fdecode_coding_region, Fencode_coding_region)
8114 (Fencode_coding_string):
8115 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
8116 <latin-extra-code-table>: Fix typos in docstrings.
8117 (syms_of_coding) <coding-system-alist>: Doc fix.
8118 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
8119
81202008-05-28 Kenichi Handa <handa@m17n.org>
8121
8122 * fontset.c (Ffont_info): Don't call font_close_object.
8123
8124 * font.c (font_parse_family_registry): Use Ffont_put to validate
8125 foundry and family.
8126 (font_delete_unmatched): Don't check spacing.
8127 (font_list_entities): Add spacing to the spec to list fonts.
8128
8129 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
8130 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
8131
8132 * coding.c (encode_coding_raw_text): Fix previous change.
8133 (encode_coding_object): When the dst_object is a buffer and is
8134 different from src_object, move gap to PT.
8135
81362008-05-27 Chong Yidong <cyd@stupidchicken.com>
8137
8138 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
8139
81402008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
8141
8142 * coding.c (encode_coding_raw_text): Set coding->produced_char for
8143 all branches. Compute it differently.
8144
8145 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
8146
81472008-05-27 Juanma Barranquero <lekktu@gmail.com>
8148
8149 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
8150 into "else if () ... else ...".
8151
81522008-05-27 Jason Rumney <jasonr@gnu.org>
8153
8154 * w32font.c (w32font_open_internal): Determine if glyph indices
8155 are likely to work here.
8156
81572008-05-27 Chong Yidong <cyd@stupidchicken.com>
8158
8159 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
8160 draw overlap glyphs with appropriate highlighting.
8161
81622008-05-27 Kenichi Handa <handa@m17n.org>
8163
8164 * xfont.c (xfont_open): Fix calculation of font->average_width.
8165
81662008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
8167
8168 * casefiddle.c (casify_object): Try to guess better whether the
8169 argument is a byte or a char.
8170
81712008-05-26 Andreas Schwab <schwab@suse.de>
8172
8173 * xselect.c (x_reply_selection_request): Properly handle format == 32.
8174 Always send multiples of format size.
8175
8176 * xterm.c (x_set_frame_alpha): Fix type mismatch.
8177
81782008-05-26 Jason Rumney <jasonr@gnu.org>
8179
8180 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
8181 (compute_metrics): Don't set failure if we just cleared the cache.
8182 (w32_weight_table): Remove unused variable.
8183 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
8184 backwards compatibility.
8185
81862008-05-25 Kenichi Handa <handa@m17n.org>
8187
8188 * w32term.c (x_draw_glyph_string):
8189 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
8190
8191 * xfaces.c: Delete unused function prototypes.
8192 (xstrlwr, font_frame): Delete them.
8193 (clear_face_cache): Delete unused variable.
8194
8195 * xftfont.c (xftfont_open): Delete unused variable.
8196 If underline_thickness is not 1, adjust underline_position.
8197
8198 * ftxfont.c (ftxfont_open): Delete unused variable.
8199
8200 * fontset.c (face_for_char): Optimize for the case of no charset
8201 property.
8202
8203 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
8204 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
8205 (otf_open, font_otf_capability, generate_otf_features)
8206 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
8207 Comment out by surrounding "#if 0" and "#endif" for the moment.
8208 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
8209 (syms_of_font): Codes for accessing above commented out.
8210
82112008-05-24 Eli Zaretskii <eliz@gnu.org>
8212
8213 * w32proc.c: Include dispextern.h.
8214
8215 * w32.c: Include dispextern.h.
8216
82172008-05-23 Juanma Barranquero <lekktu@gmail.com>
8218
8219 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
8220 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
8221 Fix typos in docstrings.
8222
82232008-05-23 Jason Rumney <jasonr@gnu.org>
8224
8225 * xsmfns.c: Remove includes that are already included by config.h.
8226
82272008-05-23 Kenichi Handa <handa@m17n.org>
8228
8229 * charset.c (Qemacs, charset_emacs): New variables.
8230 (char_charset): Fix for non-Unicode characters.
8231 (syms_of_charset): Define charset_emacs.
8232
8233 * w32term.c (x_draw_glyph_string): Be sure to update
8234 s->underline_thickness and s->underline_position. Be sure to draw
8235 underline within the current line area.
8236
8237 * xterm.c (x_draw_glyph_string): Be sure to update
8238 s->underline_thickness and s->underline_position. Be sure to draw
8239 underline within the current line area.
8240
8241 * fontset.c: Delete unused variables and add casting for char *
8242 throughout the file.
8243 (fontset_font): Try the fallback fonts of the current fontset
8244 before consulting the default fontset.
8245
8246 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
8247
8248 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
8249
82502008-05-22 Jason Rumney <jasonr@gnu.org>
8251
8252 * font.c: Don't include strings.h.
8253
8254 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
8255
8256 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
8257 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
8258 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
8259 to call xstrcasecmp.
8260
8261 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
8262
8263 * fontset.c (fs_query_fontset): Use xstrcasecmp.
8264
8265 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
8266
8267 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
8268
82692008-05-22 Kenichi Handa <handa@m17n.org>
8270
8271 * puresize.h (BASE_PURESIZE): Increase to 1220000.
8272
8273 * font.c (font_prop_validate_style): Adjust for the format
8274 change of font_style_table.
8275
8276 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
8277 two args.
8278
8279 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
8280 two args.
8281
82822008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
8283
8284 * minibuf.c (keys_of_minibuf): Delete.
8285 * lisp.h (keys_of_minibuf): Delete.
8286 * emacs.c (main): Don't call keys_of_minibuf.
8287
82882008-05-22 Kenichi Handa <handa@m17n.org>
8289
8290 * ftfont.c (ftfont_resolve_generic_family): Rename from
8291 ftfont_list_generic_family. Return a single family for each
8292 generic family.
8293 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
8294 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
8295 Call font_add_log.
8296 (ftfont_match): Call font_add_log.
8297
8298 * font.h (Ffont_xlfd_name): EXFUN adjusted.
8299 (FONT_DEBUG): Define it.
8300 (font_add_log): Extern it.
8301 (font_assert): Rename from xassert.
8302
8303 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
8304 (xfont_list_family): Call font_add_log.
8305 (xfont_match): Likewise.
8306 (memq_no_quit): Delete.
8307
8308 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
8309 call of Ffont_xlfd_name.
8310
8311 * xfaces.c (struct table_entry, slant_table, weight_table)
8312 (swidth_table): Move to font.c.
8313
8314 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
8315 xassert are changed to font_assert. Delete many unused variables.
8316 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
8317 New variables.
8318 (struct table_entry): Move from xfaces.c and modified.
8319 (weight_table, slant_table, width_table): Move from xfaces.c and
8320 contents adjusted for the change of struct table_entry.
8321 (font_style_to_value, font_style_symbolic): Adjust for the
8322 format change of font_style_table.
8323 (font_parse_family_registry): Don't overwrite existing foundry and
8324 family of font_spec.
8325 (font_score): Fix calculation of diff for sizes.
8326 (font_sort_entites): Call font_add_log.
8327 (font_delete_unmatched): Return a newly created list.
8328 (font_list_entities): Fix previous change. Call font_add_log.
8329 (font_matching_entity, font_open_entity, font_close_entity):
8330 Call font_add_log.
8331 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
8332 (Finternal_set_font_style_table): Delete.
8333 (BUILD_STYLE_TABLE): New macro.
8334 (build_style_table): New function.
8335 (Vfont_log, font_log_env_checked): New variables.
8336 (font_add_log): New function.
8337 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
8338 Declare Lisp variables "font-weight-table", "font-slant-table",
8339 "font-width-table", and "font-log". Initialize font_style_table.
8340
83412008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
8342
8343 * xterm.c (x_set_frame_alpha): Move declarations before statements.
8344
83452008-05-21 Seiji Zenitani <zenitani@mac.com>
8346 Ryo Yoshitake <ryo@shiftmode.net>
8347
8348 * frame.c (Qalpha): Add a new frame parameter `alpha'.
8349 (Vframe_alpha_lower_limit): New variable.
8350 (x_set_alpha): New function.
8351
8352 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
8353
8354 * xfns.c (x-create-frame, Qalpha):
8355 Initialize the frame parameter `alpha'.
8356 * xterm.c (OPAQUE, OPACITY): New.
8357 (x_set_frame_alpha): New function.
8358 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
8359
8360 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
8361 * w32fns.c (w32_frame_parm_handlers): Likewise.
8362
83632008-05-20 Jason Rumney <jasonr@gnu.org>
8364
8365 * w32font.c (add_font_entity_to_list): Don't add non-opentype
8366 truetype fonts to opentype list.
8367
83682008-05-20 Juanma Barranquero <lekktu@gmail.com>
8369
8370 * fontset.c (Ffontset_info): Doc fix.
8371 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
8372 <ignore-relative-composition>: Fix typos in docstrings.
8373
8374 * font.c (syms-of-font) <font-encoding-alist>:
8375 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
8376 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
8377 (Ffont_otf_alternates): Doc fixes.
8378
83792008-05-20 Kenichi Handa <handa@m17n.org>
8380
8381 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
8382 font.h through out the file.
8383 (FONT_DRIVERS): Rename from FONTOBJ.
8384 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
8385 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
8386
8387 * emacs.c (main): Call syms_of_font unconditionally.
8388
8389 * font.h (find_font_encoding): Extern it.
8390
8391 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
8392 fontset.c.
8393 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
8394 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
8395 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
8396 only when HAVE_WINDOW_SYSTEM is defined.
8397 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
8398 when HAVE_WINDOW_SYSTEM is defined.
8399
8400 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
8401 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
8402
8403 * xfaces.c: Include font.h unconditionally.
8404 (merge_face_ref, merge_face_vectors)
8405 (Finternal_set_lisp_face_attribute): Cancel the previous change.
8406
84072008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
8408
8409 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
8410 indirect_variable.
8411 * eval.c (lisp_indirect_variable): New fun.
8412 (Fuser_variable_p): Use it.
8413
84142008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
8415
8416 * lisp.h (indirect_variable):
8417 * data.c (indirect_variable, let_shadows_buffer_binding_p):
8418 Use Lisp_Symbol pointers rather than Lisp_Object.
8419 Adjust callers.
8420 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
8421 To this end, change calling-convention.
8422
8423 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
8424 if some non-hidden buffers are selected by string&pred.
8425
84262008-05-19 Chong Yidong <cyd@stupidchicken.com>
8427
8428 * process.c (wait_reading_process_output): Always check status
8429 when in batch mode.
8430
84312008-05-19 Kenichi Handa <handa@m17n.org>
8432
8433 * font.c (font_list_entities): Fix handling of cache.
8434 (font_matching_entity): Likewise.
8435
8436 * ftfont.c (cs_iso8859_1): Delete.
8437 (ft_face_cache): New variable.
8438 (struct ftfont_info): New member fc_charset_idx.
8439 (ftfont_build_basic_charsets): Delete.
8440 (fc_charset_table): New variable.
8441 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
8442 . FC_CHARSET_IDX) as :font-entity property in the font entity.
8443 Callers changed.
8444 (ftfont_lookup_cache, ftfont_get_charset): New functions.
8445 (ftfont_spec_pattern): New argument fc_charset_idx.
8446 Check registry more rigidly. Change callers.
8447 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
8448 change of :font-entity property of the font.
8449
8450 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
8451 property of the font.
8452
84532008-05-18 Juanma Barranquero <lekktu@gmail.com>
8454
8455 * coding.c (Fcoding_system_p): Rename argument to match docstring.
8456 (Funencodable_char_position, Fcheck_coding_systems_region)
8457 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
8458 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
8459 (Ffind_operation_coding_system, Fset_coding_system_priority)
8460 (Fcoding_system_eol_type): Doc fixes.
8461
84622008-05-17 Glenn Morris <rgm@gnu.org>
8463
8464 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
8465
84662008-05-16 Eli Zaretskii <eliz@gnu.org>
8467
8468 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
8469 and st_gid.
8470
8471 * frame.c (Fdelete_frame): Don't call font_update_drivers if
8472 HAVE_WINDOW_SYSTEM is not defined.
8473
8474 * xfaces.c (merge_face_ref, merge_face_vectors)
8475 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
8476 HAVE_WINDOW_SYSTEM is defined.
8477 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
8478
84792008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
8480
8481 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
8482
84832008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8484
8485 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
8486
84872008-05-15 Kenichi Handa <handa@m17n.org>
8488
8489 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
8490 preference.
8491
84922008-05-15 Glenn Morris <rgm@gnu.org>
8493
8494 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
8495
84962008-05-15 Chong Yidong <cyd@stupidchicken.com>
8497
8498 * fns.c (init_fns): Don't initialize weak_hash_tables here.
8499 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
8500
8501 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
8502
85032008-05-15 Kenichi Handa <handa@m17n.org>
8504
8505 * ftfont.c (ftfont_list): Downcase family name to check generic
8506 families.
8507
8508 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
8509 font-spec for QCfont value.
8510
8511 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
8512 buffer. Check the return value of it.
8513
85142008-05-14 Jason Rumney <jasonr@gnu.org>
8515
8516 * w32term.c (w32_get_glyph_overhangs): Remove.
8517 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
8518
85192008-05-14 Kenichi Handa <handa@m17n.org>
8520
8521 * font.c (font_prop_validate): Make nil a valid value.
8522 (font_clear_cache): Check if the cached vector of entities is nil
8523 or not.
8524
85252008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8526
8527 * emacs.c (main_thread): Conditionalize on
8528 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
8529 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
8530
8531 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
8532 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
8533 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
8534
85352008-05-14 Kenichi Handa <handa@m17n.org>
8536
8537 * coding.c (detect_coding_iso_2022): Ignore a coding category that
8538 has no corresponding coding system.
8539
85402008-05-14 Jason Rumney <jasonr@gnu.org>
8541
8542 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
8543
8544 * w32font.h (w32font_open_internal): Update declaration.
8545
8546 * w32font.c (w32font_open_internal): Change last argument from
8547 w32font_info struct to font object. Fill in font object from
8548 font_entity. Get Outline metrics if possible. Use them to
8549 calculate underline position and thickness. Use xlfd name as name
8550 property. Don't set codepage.
8551 (w32font_open): Pass font_object to w32font_open_internal. Don't
8552 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
8553 (w32font_draw): Use s->font.
8554 (clear_cached_metrics): Don't clear non-existent blocks.
8555
8556 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
8557 font was not found.
8558 (x_draw_glyph_string): Use underline position and thickness from font.
8559
8560 * w32uniscribe.c (uniscribe_open): Pass font_object to
8561 w32font_open_internal.
8562
85632008-05-14 Kenichi Handa <handa@m17n.org>
8564
8565 These changes are to delete all legacy font-handling codes, and
8566 make Emacs use only font-backends.
8567
8568 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
8569 (frame.o, image.o, print.o): Depend on $(FONTSRC).
8570
8571 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
8572
8573 * charset.h (Vcharset_non_preferred_head)
8574 (Vcurrent_iso639_language): Extern them.
8575
8576 * charset.c (Vcharset_non_preferred_head): New variable.
8577 (Vcurrent_iso639_language): New variable.
8578 (syms_of_charset): Declare it as a Lisp variable.
8579 (char_charset): Don't check non preferred charsets. As a last
8580 resort, return charset_unicode.
8581 (Fset_charset_priority): Update Vcharset_non_preferred_head.
8582
8583 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
8584 conditionals. Don't check enable_font_backend. Delete all codes
8585 used only when USE_FONT_BACKEND is not defined.
8586
8587 * dispextern.h (struct glyph_string): Change type of `font' to
8588 `struct font *'.
8589 (struct glyph_string): New member underline_position and
8590 underline_thickness.
8591 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
8592 (struct face): Change type of `font' to `struct font *'. Remove
8593 members `font_name', `font_info_id'.
8594 (per_char_metric, encode_char): Delete externs.
8595 (calc_pixel_width_or_height): Adjust the prototype.
8596
8597 * emacs.c (enable_font_backend): Delete extern.
8598 (main): Don't set enable_font_backend. Don't check the command
8599 line argument "-disable-font-backend".
8600
8601 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
8602 (enum font_property_index): New members FONT_DPI_INDEX,
8603 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
8604 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
8605 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
8606 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
8607 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
8608 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
8609 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
8610 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
8611 (struct font_spec, struct font_entity): New structs.
8612 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
8613 (struct font): Many members from old "struct font_info" moved to
8614 here. Members font and entity deleted.
8615 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
8616 the new font-related objects.
8617 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
8618 (CHECK_FONT_GET_OBJECT): Likewise.
8619 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
8620 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
8621 (struct font_driver): New members case_sensitive anc check. Type
8622 of the member list and open changed.
8623 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
8624 (font_symbolic_width, font_find_object, font_get_spec)
8625 (font_set_lface_from_name): Delete extern.
8626 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
8627
8628 * font.c: Include <strings.h>.
8629 (enable_font_backend): Delete it.
8630 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
8631 (CHECK_VALIDATE_FONT_SPEC): Delete it.
8632 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
8633 (null_string): Delete it.
8634 (null_vector): Make it static.
8635 (font_family_alist): Delete it.
8636 (Qnormal): Extern it.
8637 (QCextra, QClanguage): Delete it.
8638 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
8639 (font_make_spec, font_make_entity, font_make_object)
8640 (font_intern_prop): Renamed from intern_downcase. Don't downcase
8641 the string. Callers changed.
8642 (font_pixel_size): Adjusted for the format change of font-related
8643 objects.
8644 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
8645 (font_style_to_value, font_style_symbolic): New function.
8646 (build_font_family_alist): Delete it.
8647 (font_registry_charsets): Use Fassoc_string instead of
8648 assq_no_quit.
8649 (font_prop_validate_symbol): Don't return null_string.
8650 (font_prop_validate_style): Adjusted for the change of
8651 style-related values in a font vector.
8652 (font_property_table): Delete entries for QClanguage and
8653 QCantialias, add entries for QCavgwidth.
8654 (get_font_prop_index): Delete the 2nd argument FROM.
8655 (font_prop_validate): Arguments changed.
8656 (font_put_extra): Adjusted for the change of font-related objects.
8657 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
8658 (font_parse_fcname, font_unparse_fcname)
8659 (font_prepare_composition): Likewise.
8660 (font_parse_family_registry): Renamed from font_merge_old_spec.
8661 (otf_open): Delete the 1st arg entity.
8662 (font_otf_capability): Adjusted for the above change.
8663 (font_score): New arg alternate_families. Adjusted for the change
8664 of font-related objects.
8665 (font_sort_entites): New arg best_only.
8666 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
8667 Delete them.
8668 (font_match_p): Check alternate families.
8669 (font_find_object): Delete it.
8670 (font_check_object): New function.
8671 (font_clear_cache): Adjusted for the change of font-related objects.
8672 (font_delete_unmatched): New arg.
8673 (font_list_entities): Call font_driver->list with a spec that
8674 doesn't specify style-related properties.
8675 (font_matching_entity): Arguments changed. Caller changed.
8676 (font_open_entity): Adjusted for the change of font-related objects.
8677 (font_close_object, font_has_char, font_encode_char)
8678 (font_get_name, font_get_spec): Likewise.
8679 (font_spec_from_name, font_clear_prop, font_update_lface):
8680 New functions.
8681 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
8682 (font_prepare_for_face, font_done_for_face, font_open_by_name)
8683 (font_at): Adjusted for the change of font-related objects.
8684 (font_range): New function.
8685 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
8686 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
8687 (Fcopy_font_spec, Fmerge_font_spec): New function.
8688 (Ffont_family_list): Renamed from list-families.
8689 (Finternal_set_font_style_table): Arguments changed.
8690 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
8691 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
8692 change of font-related objects.
8693 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
8694
8695 * fontset.h (struct font_info): Delete it. Most members go to
8696 struct font.
8697 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
8698 (enum FONT_SPEC_INDEX): Delete it.
8699 (font_info, list_fonts_func, load_font_func, query_font_func)
8700 (set_frame_fontset_func, find_ccl_program_func)
8701 (get_font_repertory_func, new_fontset_from_font_name): Delete
8702 externs.
8703 (fontset_from_font_name): Extern it.
8704 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
8705 (FONT_INFO_FROM_FACE): Deleted.
8706 (face_for_font): Adjust prototype.
8707
8708 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
8709 conditionals. Don't check enable_font_backend. Delete all codes
8710 used only when USE_FONT_BACKEND is not defined.
8711 (get_font_info_func, list_font_func, load_font_func)
8712 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
8713 (get_font_repertory_func): Delete them.
8714 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
8715 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
8716 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
8717 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
8718 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
8719 (fontset_compare_rfontdef): New function.
8720 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
8721 rfont-defs by qsort. Adjusted for the change of font-group vector.
8722 (load_font_get_repertory): Deleted.
8723 (fontset_find_font): Use new macros to ref/set elements of
8724 font-def and rfont-def.
8725 (fontset_font): Fix the timing of remembering that no font for C.
8726 (free_face_fontset): Do nothing if the face has no fontset.
8727 (face_suitable_for_char_p): Use new macros to ref/set elements of
8728 rfont-def.
8729 (face_for_char): Likewise. Call face_for_char with font_object.
8730 (fs_load_font): Delete. Delete #pragma surrounding it.
8731 (fs_query_fontset): Use strcasecmp instead of strcmp.
8732 (generate_ascii_font_name): Adjusted for the format change of
8733 font-spec.
8734 (Fset_fontset_font): Likewise. Use new macros to set elements of
8735 font-def.
8736 (Fnew_fontset): Use font_unparse_xlfd to generate
8737 FONTSET_ASCII (fontset).
8738 (new_fontset_from_font_name): Deleted.
8739 (fontset_from_font): Renamed from new_fontset_from_font. Check if
8740 a fontset is already created for the font. FIx updating of
8741 Vfontset_alias_alist.
8742 (fontset_ascii_font): Deleted.
8743 (Ffont_info): Adjusted for the format change of font-spec.
8744 (Finternal_char_font): Likewise.
8745 (Ffontset_info): Likewise.
8746 (syms_of_fontset): Don't check load_font_func.
8747
8748 * fns.c (internal_equal): Handle PREV_FONT.
8749
8750 * frame.h: Delete USE_FONT_BACKEND conditional.
8751
8752 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
8753 conditionals. Don't check enable_font_backend. Delete all codes
8754 used only when USE_FONT_BACKEND is not defined.
8755 (x_set_font): Call x_new_font, not x_new_fontset2.
8756 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
8757 already set for the frame.
8758
8759 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
8760 a font-entity by font_make_entity. Use font_intern_prop instead
8761 of intern_downcase. Use FONT_SET_STYLE to set a style-related
8762 font property. If a font is scalable, set avgwidth property to 0.
8763 Set font-entity property by font_put_extra.
8764 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
8765 (ffont_driver): Adjusted for the change of struct font_driver.
8766 (ftfont_spec_pattern): New function.
8767 (ftfont_list): Return a list, not vector.
8768 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
8769 (ftfont_list_family): Don't downcase names.
8770 (ftfont_free_entity): Deleted.
8771 (ftfont_open): Return a font-object. Adjusted for the change of
8772 struct font. Get underline_thickness and underline_position from
8773 font property. Don't update dpyinfo->smallest_font_height and
8774 dpyinfo->smallest_char_width.
8775 (ftfont_close): Don't free `struct font'.
8776 (ftfont_has_char): Adjusted for the format change of font-entity.
8777 (ftfont_encode_char, ftfont_text_extents): Likewise.
8778
8779 * ftxfont.c (ftxfont_list): Return a list, not vector.
8780 (ftxfont_open): Return a font-object. Adjusted for the change of
8781 struct font. Get underline_thickness and underline_position from
8782 font property. Don't update dpyinfo->smallest_font_height and
8783 dpyinfo->smallest_char_width.
8784 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
8785 (ftxfont_draw): Adjusted for the change of struct font.
8786
8787 * image.c (image_ascent): Don't include "charset.h". Include
8788 "character.h" and "font.h".
8789
8790 * lisp.h (enum pvec_type): New member PREV_FONT.
8791 (Fassoc_string): EXFUN it.
8792
8793 * print.c: Include font.h.
8794 (print_object): Handle font-related objects.
8795
8796 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
8797 conditionals. Don't check enable_font_backend. Delete all codes
8798 used only when USE_FONT_BACKEND is not defined.
8799 (handle_auto_composed_prop): Do nothing if it->f is not on a
8800 window system. Check how many following characters can be
8801 displayed by the same font.
8802 (calc_pixel_width_or_height): Type of the 4th arg is changed to
8803 'struct font *'.
8804 (get_char_face_and_encoding): Assign the whole encoding task to
8805 the `encode-char' method of a font driver.
8806 (fill_composite_glyph_string): Adjusted for the change of `struct
8807 face' and `struct glyph_string'.
8808 (fill_glyph_string): Likewise.
8809 (get_per_char_metric): Arguments changed.
8810 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
8811 and `struct glyph_string'.
8812 (produce_stretch_glyph, calc_line_height_property)
8813 (x_produce_glyphs): Likewise.
8814
8815 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
8816 conditionals. Don't check enable_font_backend. Delete all codes
8817 used only when USE_FONT_BACKEND is not defined. Use
8818 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
8819 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
8820 (Qp): Extern them.
8821 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
8822 Deleted.
8823 (struct font_name): Deleted.
8824 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
8825 (compare_fonts_by_sort_order): New function.
8826 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
8827 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
8828 Deleted.
8829 (Fx_family_fonts): Use font_list_entities, and sort fonts by
8830 compare_fonts_by_sort_order.
8831 (Fx_font_family_list): Call Ffont_family_list.
8832 (face_numeric_value, face_numeric_weight, face_numeric_slant)
8833 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
8834 (face_symbolic_slant, face_symbolic_swidth)
8835 (split_font_name_into_vector, build_font_name_from_vector)
8836 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
8837 (font_rescale_ratio, split_font_name, build_font_name)
8838 (free_font_names, sort_fonts, x_face_list_fonts)
8839 (face_font_available_p, sorted_font_list, cmp_font_names)
8840 (font_list_1, concat_font_list, font_list, remove_duplicates):
8841 Deleted.
8842 (Fx_list_fonts): Use Ffont_list.
8843 (LFACE_AVGWIDTH): Deleted.
8844 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
8845 by FONTP.
8846 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
8847 (set_lface_from_font_name): Delete it.
8848 (set_lface_from_font): Renamed from
8849 set_lface_from_font_and_fontset. Caller changed. Don't set
8850 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
8851 for face.
8852 (merge_face_vectors): Copy font-spec if necessary.
8853 Clear properties of the font-spec if necessary.
8854 (merge_face_ref): Clear properties of the font-spec if necessary.
8855 (Finternal_set_lisp_face_attribute): Likewise.
8856 (set_font_frame_param): Use font_load_for_lface to load a
8857 font-object, and call Fmodify_frame_parameters with it.
8858 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
8859 font name by Ffont_xlfd_name.
8860 (Finternal_lisp_face_attribute_values): Don't check QCweight,
8861 QCslant, and QCwidth.
8862 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
8863 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
8864 Compare fonts by EQ.
8865 (lookup_non_ascii_face): Deleted.
8866 (face_for_font): The 2nd argument changed.
8867 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
8868 Check atomic font properties by case insensitive.
8869 (realize_non_ascii_face): Set face->overstrike correctly.
8870 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
8871 (dump_realized_face): Get font name from
8872 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
8873
8874 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
8875 conditionals. Don't check enable_font_backend. Delete all codes
8876 used only when USE_FONT_BACKEND is not defined.
8877 (xic_create_xfontset): Original code deleted and renamed from
8878 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
8879 (x_make_gc): Don't set GCFont in GCs.
8880 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
8881 opened by "fixed".
8882 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
8883 find_ccl_program_func, query_font_func, set_frame_fontset_func,
8884 get_font_repertory_func.
8885
8886 * xfont.c: Include <stdlib.h> and "ccl.h".
8887 (struct xfont_info): New structure.
8888 (xfont_query_font): Deleted.
8889 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
8890 moved from xterm.c.
8891 (xfont_driver): Adjusted for the change of struct font_driver.
8892 (compare_font_names): New function.
8893 (xfont_list_pattern): Sort font names case insensitively. Make
8894 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
8895 (xfont_list): Return a list, not vector.
8896 (xfont_match): If the font doesn't have QCname property, generate
8897 a name from the other font properties.
8898 (xfont_open): Return a font-object. Adjusted for the change of
8899 struct font. Get underline_thickness and underline_position from
8900 font property. Don't update dpyinfo->smallest_font_height and
8901 dpyinfo->smallest_char_width.
8902 (xfont_close): Don't free struct font.
8903 (xfont_prepare_face): Adjusted for the change of struct font.
8904 (xfont_done_face): Deleted.
8905 (xfont_has_char): Adjusted for the change of struct font.
8906 (xfont_encode_char, xfont_draw): Likewise.
8907 (xfont_check): New function.
8908
8909 * xftfont.c (xftfont_list): Adjusted for the change of `list'
8910 callback function.
8911 (xftfont_match): Adjusted for the format change of font-entity.
8912 (xftfont_open): Adjusted for the format change of font-entity and
8913 font-object. Adjusted for the change of struct font. Return a
8914 font-object. Don't update dpyinfo->smallest_font_height and
8915 dpyinfo->smallest_char_width.
8916 (xftfont_close): Block input while calling XftFontClose.
8917 (xftfont_prepare_face): Don't block input while calling
8918 xftfont_get_colors. Adjusted for the change of struct font.
8919 (xftfont_shape): Return value of error case fixed.
8920
8921 * xrdb.c (x_load_resources): Don't setup a fontset resource.
8922
8923 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
8924 conditionals.
8925 (FONT_WIDTH): Return (f)->max_width.
8926 (struct x_display_info): Delete member `font'.
8927 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
8928 (x_find_ccl_program, x_get_font_repertory): Delete externs.
8929 (struct x_output): Change type of `font' to `struct font *'.
8930
8931 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
8932 conditionals. Don't check enable_font_backend. Delete all codes
8933 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
8934 (x_per_char_metric, x_encode_char): Deleted.
8935 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
8936 (x_compute_glyph_string_overhangs): Adjusted for the change of
8937 `struct face'.
8938 (x_draw_glyph_string_foreground)
8939 (x_draw_composite_glyph_string_foreground): Likewise.
8940 (x_draw_glyph_string): Likewise. Use font->underline_position and
8941 font->underline_thickness.
8942 (x_new_font): Renamed from x_new_fontset2.
8943 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
8944 (x_check_font): Call `check' method of a font driver.
8945 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
8946 (x_query_font, x_get_font_repertory): Deleted.
8947 (x_find_ccl_program): Renamed and moved to xfont.c.
8948 (x_redisplay_interface): Adjusted for the change of `struct
8949 redisplay_interface'.
8950
8951 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
8952 conditionals. Don't check enable_font_backend. Delete all codes
8953 used only when USE_FONT_BACKEND is not defined. Surround non-used
8954 code by "#ifdef OLD_FONT" and "endif".
8955 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
8956
8957 * w32font.h (struct w32font_info): New member.
8958 (FONT_COMPAT): New macro.
8959 (w32font_open_internal): Prototype adjusted.
8960
8961 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
8962 OLD_FONT" and "endif".
8963
8964 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
8965 conditionals. Don't check enable_font_backend. Delete all codes
8966 used only when USE_FONT_BACKEND is not defined.
8967 (w32font_open): Return a font-object. Make a font-object by
8968 font_make_object. Adjusted for the change of struct w32font_info.
8969 (w32font_close): Don't free struct font. Adjusted for the change
8970 of struct w32font_info.
8971 (w32font_encode_char, w32font_text_extents, w32font_draw):
8972 Adjusted for the change of struct w32font_info.
8973 (w32font_draw): Likewise.
8974 (w32font_list_internal): Return a list, not vector.
8975 (w32font_open_internal): Change the 4th arg to font-object.
8976 Adjusted for the change of struct w32font_info and font-object format.
8977 (add_font_name_to_list): Don't downcase names.
8978 (w32_enumfont_pattern_entity): Make a font-entity by
8979 font_make_entity. Adjusted for the format change of font-entity.
8980 Use FONT_SET_STYLE to set a style-related font property. If a
8981 font is scalable, set avgwidth property to 0. Set font-entity
8982 property by font_put_extra.
8983 (font_matches_spec): Adjusted for the format change of font-entity.
8984 (w32_weight_table, w32_decode_weight): New variables.
8985 (w32_encode_weight): New function.
8986 (fill_in_logfont): Adjusted for the format change of font-spec.
8987 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
8988 weight value.
8989 (w32font_driver): Adjusted for the change of struct font_driver.
8990
8991 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
8992 conditionals. Don't check enable_font_backend. Surround non-used
8993 code by "#ifdef OLD_FONT" and "endif".
8994 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
8995 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
8996
8997 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
8998 conditionals. Don't check enable_font_backend. Delete all codes
8999 used only when USE_FONT_BACKEND is not defined. Surround non-used
9000 code by "#ifdef OLD_FONT" and "endif".
9001
9002 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
9003 (uniscribe_open): Return value changed to font-object.
9004 Adjusted for the format change of font-object.
9005 (uniscribe_otf_capability): Adjusted for the change of struct font.
9006 (add_opentype_font_name_to_list): Don't downcase names.
9007 (uniscribe_font_driver): Adjusted for the change of struct
9008 font_driver.
9009
90102008-05-13 Chong Yidong <cyd@stupidchicken.com>
9011
9012 * dispnew.c (update_frame_1): Check if tty output is still valid
9013 before flushing it.
9014
90152008-05-13 Jan Djärv <jan.h.d@swipnet.se>
9016
9017 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
9018 to Gtk+ menus.
9019
90202008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
9021
9022 * dired.c (file_name_completion): Tweak the code so as to always do it
9023 in a single pass. Tighten the scope of some variables.
9024
9025 * dired.c (Qdefault_directory): New var.
9026 (file_name_completion): Use it instead of Fexpand_file_name.
9027 (syms_of_dired): Initialize it.
9028
90292008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
9030
9031 * fileio.c (double_dollars): Remove dead code.
9032
90332008-05-10 Eli Zaretskii <eliz@gnu.org>
9034
9035 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
9036 Mention w32-get-true-file-attributes in doc string.
9037
9038 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
9039
90402008-05-09 Glenn Morris <rgm@gnu.org>
9041
9042 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
9043 2008-04-23.
9044
90452008-05-09 Eli Zaretskii <eliz@gnu.org>
9046
9047 Support for reporting owner and group of each file on MS-Windows:
9048 * dired.c (stat_uname, stat_gname): New functions, with special
9049 implementation for w32.
9050 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
9051
9052 * w32.c: Rename the_passwd_* to dflt_passwd_*.
9053 (dflt_group_name): New static variable.
9054 (dflt_group): Rename from the_group.
9055 (init_user_info): Init dflt_group fields. Get user's group name
9056 from LookupAccountSid.
9057 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
9058 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
9059 New initialization states.
9060 (globals_of_w32): Initialize them to zero. Initialize the default
9061 group name to "None".
9062 (GetFileSecurity_Name): New global var, the name of the function
9063 to call for GetFileSecurity.
9064 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
9065 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
9066 (get_file_security, get_security_descriptor_owner)
9067 (get_security_descriptor_group, is_valid_sid)
9068 (get_file_security_desc, get_rid, get_name_and_id)
9069 (get_file_owner_and_group): New functions.
9070 (stat): Use get_file_security_desc and get_file_owner_and_group to
9071 report the owner and primary group of each file. Don't ignore the
9072 high 32 bits of file's size, now that st_size is 64-bit wide.
9073 Fix test when to get true file attributes.
9074 (init_user_info): Use get_rid instead of equivalent inline code.
9075 (fstat): Don't ignore the high 32 bits of file's size.
9076
90772008-05-09 Chong Yidong <cyd@stupidchicken.com>
9078
9079 * image.c (png_load): Use correct bit-depth for setting background
9080 color.
9081
90822008-05-08 Eli Zaretskii <eliz@gnu.org>
9083
9084 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
9085 epa-hook.elc.
9086
90872008-05-08 Juanma Barranquero <lekktu@gmail.com>
9088
9089 * font.c (Ffont_match_p): Don't use `iff' in docstring.
9090
90912008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
9092
9093 * macfns.c (Fx_create_frame): Make a copy of frame parameters
9094 because the original parameters are in pure storage now.
9095 (mac_window): Remove unused params. Update callers.
9096
90972008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
9098
9099 * lread.c (substitute_object_recurse): Use lower-level primitives.
9100 Don't signal errors when traversing sub-char-tables.
9101 Don't loop over all the possible characters when traversing char-tables.
9102
9103 * print.c (print_preprocess): Add sub-char-tables to the print-table,
9104 just like we do in print.c.
9105
91062008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
9107
9108 * minibuf.c (Ftry_completion): Remove code left over from when we used
9109 scmp instead of Fcompare_strings.
9110
91112008-05-04 Juanma Barranquero <lekktu@gmail.com>
9112
9113 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
9114
91152008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9116
9117 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
9118 Create bitmap context in native byte order.
9119
9120 * macterm.c (XDrawLine)
9121 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
9122 context in native byte order.
9123
91242008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9125
9126 * config.in: Regenerate.
9127
9128 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
9129 New definitions for Image I/O support.
9130 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
9131 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
9132 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
9133 (mac_data_provider_release_data, image_load_image_io)
9134 [USE_MAC_IMAGE_IO]: New functions.
9135 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
9136 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
9137 (init_image_func_pointer) [MAC_OSX]: Remove function.
9138 (image_load_quartz2d) [MAC_OSX]: Check availability of
9139 CGImageCreateWithPNGDataProvider at compile time.
9140 Use lowercase `false' for boolean constant.
9141 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
9142 Use image_load_image_io.
9143 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
9144 Don't check MyCGImageCreateWithPNGDataProvider.
9145 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
9146 Don't call init_image_func_pointer.
9147
9148 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
9149
9150 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
9151 Make variable non-static.
9152 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
9153 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
9154
9155 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
9156 (RED_FROM_ULONG): Mask off higher bits.
9157 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
9158
9159 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
9160 Include AvailabilityMacros.h.
9161 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
9162 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
9163
91642008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
9165
9166 * chartab.c (Fset_char_table_range): If range is t, really set all
9167 chars to that value.
9168
91692008-05-03 Eli Zaretskii <eliz@gnu.org>
9170
9171 * dired.c (Ffile_attributes): Don't allow the device number become
9172 negative.
9173
91742008-05-02 Daiki Ueno <ueno@unixuser.org>
9175
9176 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
9177
91782008-05-02 Juri Linkov <juri@jurta.org>
9179
9180 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
9181 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
9182 DEFAULT argument as a list of default values in docstrings.
9183
91842008-05-01 Chong Yidong <cyd@stupidchicken.com>
9185
9186 * puresize.h (BASE_PURESIZE): Increase to 1210000.
9187
91882008-05-01 Martin Rudalics <rudalics@gmx.at>
9189
9190 * dispnew.c (change_frame_size_1): Preserve small windows when
9191 shrinking frames by calling set_window_height|width with third
9192 arg 2.
9193
9194 * window.h (struct window): Replace field too_small_ok by field
9195 resize_proportionally.
9196
9197 * window.c (make_window): Initialize resize_proportionally.
9198 (enlarge_window): Temporarily set resize_proportionally to make
9199 sure that shrink_windows does scale the window proportionally.
9200 (shrink_windows): When window has resize_proportionally set try
9201 to shrink it proportionally by stealing from other windows.
9202 (struct saved_window, Fset_window_configuration)
9203 (compare_window_configurations): Handle resize_proportionally.
9204 (WINDOW_TOTAL_SIZE): New macro.
9205 (window_min_size, shrink_windows, size_window): Use it.
9206 (check_min_window_sizes): Remove. Invalid values of
9207 window-min-height|width are handled by window_min_size_2 now.
9208 (size_window, Fsplit_window, enlarge_window)
9209 (adjust_window_trailing_edge, grow_mini_window): Don't call
9210 check_min_window_sizes.
9211 (window_min_size_2, window_min_size_1, window_min_size):
9212 New argument safe_p for retrieving "safe" minimum sizes.
9213 (Fdisplay_buffer, Fsplit_window, enlarge_window)
9214 (adjust_window_trailing_edge, grow_mini_window):
9215 Adjust arguments of window_min_size... functions.
9216 (shrink_windows): Argument min_size removed. New argument
9217 safe_p allows shrinking windows to their safe minimum sizes.
9218 Calculate minimum size and decide whether a window shall be
9219 deleted for each window individually.
9220 (size_window): When nodelete_p equals 2, tell shrink_windows to
9221 delete windows only if their new minimum size is no more safe.
9222 (shrink_window_lowest_first): Call window_min_size_1 to make
9223 sure to preserve modeline of bottom-most window when resizing
9224 the minibuffer.
9225 (Fset_window_configuration, Fcurrent_window_configuration)
9226 (compare_window_configurations): Do not handle
9227 window-min-height|width any more.
9228 (syms_of_window): Clarify window-min-height|width doc-strings.
9229
92302008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
9231
9232 * dired.c (file_name_completion): Fix up the encoding/decoding issue
9233 some more. Copy some of the code from Ftry_completions.
9234 Remove special case code that dates back to initial revision when the
9235 slash was only added when necessary and that can't trigger nowadays.
9236
92372008-04-27 Kenichi Handa <handa@m17n.org>
9238
9239 * font.c (font_prop_validate): Signal `error' instead of `font'.
9240
92412008-04-29 Jason Rumney <jasonr@gnu.org>
9242
9243 * w32fns.c (Fw32_battery_status): New defun.
9244 (syms_of_w32fns): Defsubr it.
9245
92462008-04-28 Andreas Schwab <schwab@suse.de>
9247
9248 * dired.c (file_name_completion): Fix another mixing of encoded
9249 and decoded names.
9250
92512008-04-28 Juanma Barranquero <lekktu@gmail.com>
9252
9253 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
9254
92552008-04-27 Juanma Barranquero <lekktu@gmail.com>
9256
9257 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
9258
92592008-04-27 Andreas Schwab <schwab@suse.de>
9260
9261 * dired.c (file_name_completion): Fix inappropriate mixing of
9262 encoded and decoded names.
9263
9264 * xterm.c (XTread_socket): Fix use of uninitialized variable.
9265
9266 * puresize.h (BASE_PURESIZE): Increase to 1200000.
9267
92682008-04-26 Eli Zaretskii <eliz@gnu.org>
9269
9270 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
9271 2008-03-31, it's not needed anymore with `struct stat' definition
9272 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
9273 for the same reasons.
9274
92752008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
9276
9277 * m/sparc.h: Additional redefinitions for GNU/Linux.
9278
92792008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9280
9281 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
9282 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
9283 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
9284 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
9285 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
9286 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
9287 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
9288 Likewise.
9289
9290 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
9291 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
9292 (mac_ax_number_of_characters): Add externs.
9293 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
9294 [USE_MAC_TSM]: Likewise.
9295 (mac_handle_text_input_event) [MAC_OSX]:
9296 Handle kEventTextInputOffsetToPos for no active input area case.
9297 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
9298 (mac_handle_document_access_event)
9299 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
9300 (install_application_handler) [MAC_OSX]: Register handlers for
9301 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
9302 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
9303 Register mac_handle_document_access_event.
9304
9305 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
9306 Make functions non-static.
9307
93082008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
9309
9310 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
9311 (read_file_name_completion_ignore_case, insert_default_directory)
9312 (Qdefault_directory): Move to minibuffer.el.
9313 (Fread_file_name): Call the new `read-file-name' instead.
9314
93152008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9316
9317 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
9318 Make function non-static.
9319 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
9320 Remove function.
9321 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
9322 Move to mactoolbox.c.
9323 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
9324
9325 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
9326 (mac_rect_make): New macro.
9327
9328 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
9329 instead of float.
9330 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
9331 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
9332 (XSetBackground) [USE_CG_DRAWING]: Likewise.
9333 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
9334 CGRectMake.
9335 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
9336 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
9337 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
9338 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
9339 instead of WindowRef in argument type.
9340 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
9341 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
9342 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
9343 instead of DISPLAY. All uses changed.
9344 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
9345 (x_calc_absolute_position): Simplify so as not to use
9346 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
9347
9348 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
9349 instead of WindowRef in argument type.
9350 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
9351 [TARGET_API_MAC_CARBON]: Remove externs.
9352 (create_apple_event, mac_event_parameters_to_lisp)
9353 [TARGET_API_MAC_CARBON]: Add externs.
9354
9355 * mactoolbox.c (Vmac_ts_script_language_on_focus)
9356 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
9357 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
9358 is clicked.
9359 (x_activate_menubar): Remove extern for saved_menu_event_location.
9360 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
9361 Move from mac.c.
9362
93632008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9364
9365 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
9366 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
9367
93682008-04-23 Jason Rumney <jasonr@gnu.org>
9369
9370 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
9371 attributes only for local files.
9372
9373 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
9374 default to Qlocal.
9375
93762008-04-22 Juri Linkov <juri@jurta.org>
9377
9378 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
9379 read-buffer-to-switch instead of using the letter "B".
9380
93812008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
9382
9383 * fileio.c (Qdefault_directory): New variable.
9384 (Fread_file_name): Use it to pass `dir' to the completion functions.
9385
93862008-04-20 Chong Yidong <cyd@stupidchicken.com>
9387
9388 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
9389
93902008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
9391
9392 * keyboard.c (Vpre_help_message): Remove.
9393 (show_help_echo): Remove default C code.
9394
9395 * dired.c (directory_files_internal, file_name_completion):
9396 Only call ENCODE_FILE if the string is indeed decoded.
9397
93982008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
9399
9400 * Makefile.in (TOOLKIT_DEFINES): Remove.
9401 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
9402
94032008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9404
9405 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
9406 (mactoolbox.o): New target.
9407
9408 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
9409 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
9410
9411 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
9412 Use mac_set_frame_window_background instead of XSetWindowBackground.
9413 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
9414 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
9415 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
9416 instead of SetWindowTitleWithCFString.
9417 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
9418 Move function to mactoolbox.c.
9419 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
9420 Use mac_set_window_modified instead of SetWindowModified.
9421 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
9422 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
9423 (Fx_focus_frame): Use mac_front_non_floating_window instead of
9424 FrontNonFloatingWindow. Use mac_activate_window instead of
9425 ActivateWindow. Use mac_active_non_floating_window instead of
9426 ActiveNonFloatingWindow.
9427 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
9428 Use mac_show_hourglass and mac_hide_hourglass.
9429 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
9430 instead of GetGlobalMouse.
9431 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
9432 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
9433 Use mac_bring_window_to_front instead of BringToFront.
9434 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
9435 mactoolbox.c.
9436 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
9437 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
9438 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
9439 mactoolbox.c.
9440
9441 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
9442 (XtPointer): Move typedef from macmenu.c.
9443 (enum button_type): Move enum from macmenu.c.
9444 (widget_value): Move typedef from macmenu.c.
9445 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
9446 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
9447 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
9448 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
9449 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
9450 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
9451 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
9452 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
9453 (Selection): Move typedef from macselect.c.
9454 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
9455 macterm.c.
9456 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
9457 (mac_is_window_collapsed, mac_bring_window_to_front)
9458 (mac_send_window_behind, mac_hide_window, mac_show_window)
9459 (mac_collapse_window, mac_front_non_floating_window)
9460 (mac_active_non_floating_window, mac_activate_window)
9461 (mac_move_window_structure, mac_move_window, mac_size_window)
9462 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
9463
9464 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
9465 (enum mac_menu_kind): Move enum to mactoolbox.c.
9466 (min_menu_id): Move variable to mactoolbox.c.
9467 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
9468 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
9469 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
9470 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
9471 [TARGET_API_MAC_CARBON]: Likewise.
9472 (XtPointer): Move typedef to macgui.h.
9473 (enum button_type): Move enum to macgui.h.
9474 (widget_value): Move typedef to macgui.h.
9475 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
9476 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
9477 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
9478 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
9479 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
9480 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
9481 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
9482 (popup_activated_flag): Make variable non-static.
9483 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
9484 (add_menu_item, fill_menu, dispose_menus):
9485 Move functions to mactoolbox.c.
9486 (restore_show_help_function, menu_target_item_handler)
9487 (install_menu_target_item_handler, mac_handle_dialog_event)
9488 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
9489 [TARGET_API_MAC_CARBON]: Likewise.
9490 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
9491 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
9492 (find_and_call_menu_selection, name_is_separator): Make function
9493 non-static.
9494 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
9495 to mactoolbox.c.
9496 (set_frame_menubar): Don't call install_menu_quit_handler.
9497 (menu_item_selection): New variable.
9498 (mac_menu_show): Use create_and_show_popup_menu.
9499 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
9500 selection but set variable menu_item_selection. All uses changed.
9501 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
9502 Call install_menu_quit_handler. Move to mactoolbox.c.
9503
9504 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
9505 (Selection): Move typedef to macgui.h.
9506 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
9507 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
9508 Make variables non-static.
9509 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
9510 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
9511 Make functions non-static.
9512 (Vmac_service_selection) [MAC_OSX]: Likewise.
9513 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
9514 (mac_valid_selection_target_p, mac_clear_selection)
9515 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
9516 (mac_put_selection_value, mac_selection_has_target_p)
9517 (mac_get_selection_value, mac_get_selection_target_list)
9518 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
9519 Move functions to mactoolbox.c.
9520 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
9521 Likewise.
9522 (copy_scrap_flavor_data, mac_handle_service_event)
9523 (install_service_handler) [MAC_OSX]: Likewise.
9524 (syms_of_macselect) <Vmac_dnd_known_types>:
9525 Use mac_dnd_default_known_types.
9526
9527 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
9528 Move to mactoolbox.c.
9529 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
9530 (Fx_selection_owner_p): Add EXFUN.
9531 (install_window_handler, remove_window_handler, XSetWindowBackground):
9532 Remove externs.
9533 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
9534 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
9535 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
9536 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
9537 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
9538 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
9539 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
9540 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
9541 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
9542 (create_and_show_popup_menu, mac_get_selection_from_symbol)
9543 (mac_valid_selection_target_p, mac_clear_selection)
9544 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
9545 (mac_put_selection_value, mac_selection_has_target_p)
9546 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
9547 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
9548 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
9549 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
9550 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
9551 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
9552 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
9553 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
9554 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
9555
9556 * mactoolbox.c: New file.
9557
95582008-04-18 Jason Rumney <jasonr@gnu.org>
9559
9560 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
9561
95622008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
9563
9564 * character.c (Fmultibyte_char_to_unibyte):
9565 Return latin1 chars unchanged.
9566
9567 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
9568 relocated if it points to `name'.
9569
95702008-04-17 Kenichi Handa <handa@m17n.org>
9571
9572 * data.c (Faset): Allow setting a multibyte character in an
9573 ASCII-only unibyte string.
9574
9575 * lisp.h (STRING_SET_MULTIBYTE): New macro.
9576
95772008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
9578
9579 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
9580 done in config.h.
9581
95822008-04-16 Juanma Barranquero <lekktu@gmail.com>
9583
9584 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
9585 (Fchar_direction): Add usage in the docstring.
9586
95872008-04-15 Chong Yidong <cyd@stupidchicken.com>
9588
9589 * keyboard.c (read_key_sequence): Remove always-true checks.
9590
95912008-04-14 Jason Rumney <jasonr@gnu.org>
9592
9593 * w32font.c (w32font_open_internal): Set max_bounds.descent in
9594 compatibility struct, for better underline positioning.
9595
95962008-04-13 David Hansen <david.hansen@gmx.net>
9597
9598 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
9599 string.
9600
96012008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
9602
9603 * m/hp800.h (XUINT, XSET): Remove.
9604
96052008-04-12 Juanma Barranquero <lekktu@gmail.com>
9606
9607 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
9608 previous change.
9609
96102008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
9611
9612 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
9613 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
9614
96152008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
9616
9617 * keymap.h (map_keymap_canonical): Declare.
9618 * xmenu.c (single_keymap_panes): Use it.
9619
96202008-04-11 Glenn Morris <rgm@gnu.org>
9621
9622 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
9623 set the target's value to that of the alias.
9624
96252008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
9626
9627 * term.c (set_tty_color_mode): Left over typo.
9628
96292008-04-10 Michael Albinus <michael.albinus@gmx.de>
9630
9631 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
9632 only after check for file name handler functions. Signal, when
9633 native functionality is not supported.
9634 (syms_of_fileio): Declare it unconditionally.
9635
96362008-04-10 Jason Rumney <jasonr@gnu.org>
9637
9638 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
9639 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
9640
9641 * w32.c (logon_network_drive): Also logon to remote drives that
9642 are mapped to drive letters.
9643
96442008-04-10 Glenn Morris <rgm@gnu.org>
9645
9646 * xdisp.c (truncate-partial-width-windows): Doc fix.
9647
96482008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
9649
9650 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
9651 Move functions to minibuffer.el.
9652 (syms_of_fileio): Don't declare them.
9653
96542008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
9655
9656 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
9657 (syms_of_minibuf): Remove its initialization.
9658
9659 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
9660
96612008-04-09 Juanma Barranquero <lekktu@gmail.com>
9662
9663 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
9664
96652008-04-09 Jason Rumney <jasonr@gnu.org>
9666
9667 * makefile.w32-in (distclean): Delete makefile too.
9668 (maintainer-clean): New target.
9669
9670 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
9671
9672 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
9673 for new font backend and composite cases.
9674
96752008-04-09 Jan Djärv <jan.h.d@swipnet.se>
9676
9677 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
9678 Most of the code moved to run_timers.
9679 (do_pending_atimers): Call run_timers.
9680 (run_timers): New function.
9681
9682 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
9683 run atimers.
9684
9685 * process.c (wait_reading_process_output): The same as above.
9686
96872008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
9688
9689 * minibuf.c (last_exact_completion): Remove variable.
9690 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
9691 (complete_and_exit_1, complete_and_exit_2)
9692 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
9693 (Fdisplay_completion_list, display_completion_list_1)
9694 (Fminibuffer_completion_help, Fself_insert_and_exit)
9695 (Fexit_minibuffer, Fminibuffer_message): Move functions to
9696 minibuffer.el.
9697 (syms_of_minibuf): Remove corresponding initializations.
9698
9699 * keyboard.c (Qdeactivate_mark): New var.
9700 (command_loop_1): Use it to call `deactivate-mark'.
9701 (syms_of_keyboard): Initialize it.
9702
9703 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
9704 to another frame.
9705 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
9706 Don't call set_tty_color_mode.
9707 (store_frame_param): Reset previous_frame rather than call
9708 set_tty_color_mode.
9709 * term.c (set_tty_color_mode): Rewrite.
9710 * dispextern.h (set_tty_color_mode): New type.
9711 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
9712
97132008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
9714
9715 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
9716 for generic chars, which do not exist any more in emacs-unicode.
9717
97182008-04-08 Michael Albinus <michael.albinus@gmx.de>
9719
9720 * coding.c (detect_coding_emacs_mule)
9721 (Ffind_operation_coding_system): Fix typo.
9722
97232008-04-08 Jason Rumney <jasonr@gnu.org>
9724
9725 * w32uniscribe.c (SNAME): Extract only symbol name.
9726
9727 * w32font.h (struct w32_metric_cache): New struct.
9728 (w32font_info): Use it.
9729 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
9730 (CACHE_BLOCKSIZE): New constants.
9731
9732 * w32font.c (Qja, Qko, Qzh): New symbols.
9733 (syms_of_w32font): Initialise them.
9734 (font_matches_spec): Use them to filter by language.
9735 (recompute_cached_metrics): Remove function.
9736 (compute_metrics, clear_cached_metrics): New functions.
9737 (w32font_encode_char): Use them to manage metric cache.
9738 (w32font_text_extents): Cache metrics for all glyphs on demand.
9739 Delay converting glyph indices to WORD until needed.
9740 (w32font_open_internal): Initialize metric cache to empty.
9741 (registry_to_w32_charset): Charset should always be a symbol.
9742 (fill_in_logfont, list_all_matching_fonts): Family should
9743 always be a symbol.
9744
97452008-04-06 Jason Rumney <jasonr@gnu.org>
9746
9747 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
9748 Give up if glyph indices not supported. Use uniscribe obtained
9749 ABC widths for individual metrics. Map glyph clusters back to
9750 characters using fClusterStart flag. Return number of glyphs
9751 produced, not chars processed.
9752 (uniscribe_shape): Map char at FROM to current glyph.
9753
97542008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9755
9756 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
9757 Use SetMenuItemHierarchicalMenu.
9758
97592008-04-05 Jason Rumney <jasonr@gnu.org>
9760
9761 * image.c (pbm_load): Allow color values up to 65535.
9762 Throw an error if max_color_idx is outside the supported range.
9763 Report an error when image size is invalid.
9764 Read two bytes at a time when raw images have max_color_idx above 255.
9765
97662008-04-05 Eli Zaretskii <eliz@gnu.org>
9767
9768 * w32.c (readdir): If FindFirstFile/FindNextFile return in
9769 cFileName a file name that includes `?' characters, use the 8+3
9770 alias in cAlternateFileName instead.
9771
97722008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
9773
9774 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
9775 append "CCL: Quitted" when the CCL program is quitted.
9776 (setup_ccl_program): Initialize ccl->quit_silently to zero.
9777
9778 * ccl.h (struct ccl_program): New member quit_silently.
9779
97802008-04-05 Chong Yidong <cyd@stupidchicken.com>
9781
9782 * search.c (compile_pattern_1): Treat non-nil and non-string of
9783 search-spaces-regexp as nil.
9784
9785 * minibuf.c (Fassoc_string): Tweak docstring.
9786
97872008-04-05 Eli Zaretskii <eliz@gnu.org>
9788
9789 * dired.c (Ffile_attributes): Support inode numbers wider than 32
9790 bits. Remove ugly WINDOWSNT-specific kludge introduced on
9791 2008-03-14 to force inode be positive.
9792
9793 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
9794 _S_* ones, since we now use our own sys/stat.h.
9795 (stat, fstat): Don't mangle the inode number.
9796 (init_user_info): Don't restrict UID and GID to 0-60000 range.
9797
97982008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
9799
9800 * frame.h (struct frame): Give one more bit to `visible' since we use
9801 values larger than 1 to indicate obscured frames on ttys.
9802
9803 * keymap.c (Qkeymap_canonicalize): New var.
9804 (Fmap_keymap_internal): New fun.
9805 (describe_map): Use keymap-canonicalize.
9806
9807 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
9808 (Fundo_boundary): Set them.
9809 (syms_of_undo): Initialize them.
9810 (record_point): Use them instead of last_point_position*.
9811 (last_undo_buffer): Change type.
9812
98132008-04-04 Jason Rumney <jasonr@gnu.org>
9814
9815 * w32font.c (w32font_text_extents): Use font's ascent and descent.
9816 (recompute_cached_metrics): Don't set ascent and descent per char.
9817
9818 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
9819 (uniscribe_check_otf): Add GC protection before consing.
9820 Rearrange loop for counting features.
9821
98222008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
9823
9824 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
9825 buffer with byte-size of source buffer.
9826
98272008-04-03 Chong Yidong <cyd@stupidchicken.com>
9828
9829 * callint.c (Fcall_interactively): Handle temporary region even
9830 when shift-select-mode is off.
9831
98322008-04-03 Jason Rumney <jasonr@gnu.org>
9833
9834 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
9835
98362008-04-03 Kenichi Handa <handa@m17n.org>
9837
9838 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
9839 (CATEGORY_MASK_UTF_16): Likewise.
9840 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
9841 binary file.
9842 (detect_coding): Add null-byte detection for a binary file.
9843 (detect_coding_system): Likewise.
9844
98452008-04-03 Jason Rumney <jasonr@gnu.org>
9846
9847 * w32uniscribe.c: New file.
9848
9849 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
9850
9851 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
9852
9853 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
9854 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
9855 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
9856 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
9857 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
9858 (Qphonetic): New symbols.
9859 (syms_of_w32font): Initialize them.
9860 (font_supported_scripts): Use them.
9861 (w32font_list_family): List all charsets.
9862 (w32font_text_extents, recompute_cached_metrics): Fix metric
9863 calculations.
9864 (w32_enumfont_pattern_entity): Make full_type a DWORD.
9865 Give opentype fonts their own format.
9866 (font_matches_spec): New arguments backend and logfont.
9867 Handle :otf spec for uniscribe backend.
9868 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
9869 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
9870
9871 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
9872 font backend.
9873 (globals_of_w32fns): Initialize uniscribe font backend.
9874
9875 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
9876 dependencies.
9877 (w32uniscribe.$(O)): New file to build.
9878 (FONT_OBJ): Include w32uniscribe.$(O).
9879 (LIBS): Add uniscribe libraries.
9880
9881 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
9882
98832008-04-02 Chong Yidong <cyd@stupidchicken.com>
9884
9885 * callint.c (Vshift_select_mode): New var.
9886 (Finteractive): Document new ^ spec.
9887 (Fcall_interactively): Call handle-shift-selection if the ^ spec
9888 is present.
9889
9890 * keyboard.c (Vthis_command_keys_shift_translated): New var.
9891 (command_loop_1): Avoid running the direct display versions of
9892 forward-char and backward-char if shift-selection may occur.
9893 (read_key_sequence): Set Vthis_command_keys_shift_translated if
9894 shift-translation takes place.
9895
9896 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
9897 avoid clobbering by define-minor-mode.
9898
9899 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
9900 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
9901
9902 * syntax.c (Fforward_word): Add ^ interactive spec.
9903
9904 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
9905 (Fscroll_right): Add ^ interactive spec.
9906
99072008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
9908
9909 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
9910
9911 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
9912
9913 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
9914
99152008-03-31 Juri Linkov <juri@jurta.org>
9916
9917 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
9918
99192008-03-30 Jan Djärv <jan.h.d@swipnet.se>
9920
9921 * gtkutil.c (xg_set_geometry): Fix indentation.
9922 (xg_resize_outer_widget): Remove.
9923 (x_wm_size_hint_off): Fix indentation.
9924 (xg_frame_set_char_size): Call flush_and_sync after
9925 gtk_window_resize.
9926 (x_wm_set_size_hint): Pass NULL as geometry window to
9927 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
9928 Add menu bar and tool bar height to base height.
9929 (xg_update_frame_menubar, free_frame_menubar)
9930 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
9931 (update_frame_tool_bar, free_frame_tool_bar):
9932 Change xg_resize_outer_widget to xg_frame_set_char_size.
9933
99342008-03-30 Michael Albinus <michael.albinus@gmx.de>
9935
9936 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
9937 (Fdbus_call_method): New parameter TIMEOUT.
9938 (dbus-send-signal): Optimize UNGCPRO call.
9939
99402008-03-29 Juri Linkov <juri@jurta.org>
9941
9942 * window.c (Fdisplay_buffer): Move call to
9943 Vsplit_window_preferred_function out of conditions that check
9944 if window is eligible for vertical splitting.
9945 When Vsplit_window_preferred_function is non-nil, call it and use
9946 its non-nil return value as window. Otherwise, continue doing
9947 vertical splitting using Fsplit_window with arg horflag=nil.
9948 (syms_of_window) <Vsplit_window_preferred_function>: Change the
9949 default value from `split-window' to nil.
9950
99512008-03-29 Juri Linkov <juri@jurta.org>
9952
9953 * callint.c (Fcall_interactively): Revert 2008-03-16 change
9954 for interactive code letters 'b' and 'B'.
9955
99562008-03-29 Eli Zaretskii <eliz@gnu.org>
9957
9958 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
9959 multibyte string.
9960
99612008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
9962
9963 * keyboard.c (pending_funcalls): New var.
9964 (timer_check): Run it.
9965 (syms_of_keyboard): Initialize it.
9966 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
9967 (Vdelete_terminal_functions): New vars.
9968 (syms_of_terminal): Initialize them.
9969 (Fdelete_terminal): Run delete-terminal-functions.
9970 * xdisp.c (safe_eval): Rewrite.
9971 (safe_call2): New fun.
9972 * frame.c (Qdelete_frame_functions): New var.
9973 (syms_of_frame): Initialize it.
9974 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
9975 * lisp.h (safe_call2, pending_funcalls): Declare.
9976
99772008-03-28 Andreas Schwab <schwab@suse.de>
9978
9979 * indent.c (Fmove_to_column): Move declaration before statements.
9980
99812008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
9982
9983 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
9984 (struct frame): Use bit fields for boolean vars.
9985
9986 * process.c (server_accept_connection): Simplify naming.
9987 (emacs_get_tty_pgrp): Use SDATA.
9988
9989 * coding.c (decode_coding_object): Fix last change.
9990
99912008-03-27 Jason Rumney <jasonr@gnu.org>
9992
9993 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
9994
99952008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
9996
9997 * charset.c (Fdefine_charset_internal): Change the way of
9998 registering charsets in Vcharset_order_list.
9999 (syms_of_charset): Make the charset `eight-bit' supplementary.
10000
100012008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
10002
10003 * regex.c (EXTEND_BUFFER): Change order of pointer addition
10004 operations, to avoid having the difference between pointers
10005 overflow.
10006
100072008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
10008
10009 * indent.c (check_display_width): New fun.
10010 (scan_for_column): Use it.
10011
10012 * data.c (syms_of_data): Mark most-positive-fixnum and
10013 most-negative-fixnum as constants.
10014
10015 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
10016
10017 * indent.c (scan_for_column): Extract from current_column_1.
10018 Merge with the same code from Fmove_to_column.
10019 (current_column_1, Fmove_to_column): Use it.
10020
100212008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
10022
10023 * keymap.c (map_keymap_internal): New fun.
10024 (map_keymap): Use it.
10025 (Fmap_keymap_internal): New fun.
10026 (Fmap_keymap): Remove left-out test from before make_save_value.
10027
10028 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
10029
10030 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
10031 Use XCAR/XCDR.
10032
10033 * process.h (struct Lisp_Process): Remove filter_multibyte.
10034 * process.c (QCfilter_multibyte): Remove.
10035 (setup_process_coding_systems): Don't use filter_multibyte.
10036 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
10037 (read_process_output): Don't adjust multibyteness to filter_multibyte.
10038 (Fset_process_filter_multibyte): Change the coding-system to
10039 approximate the previous behavior.
10040 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
10041 coding-system.
10042
10043 * coding.c (decode_coding_object): When not decoding into a buffer,
10044 obey the coding system's preference of (uni|multi)byte.
10045
100462008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
10047
10048 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
10049 every char is changed and has a different byte-length.
10050 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
10051 Fix int -> EMACS_INT.
10052
100532008-03-23 David Hansen <david.hansen@gmx.net>
10054
10055 * dbusbind.c (xd_read_message): Remove extra copying of message
10056 strings. Check for NULL `interface' or `member'.
10057
100582008-03-22 Eli Zaretskii <eliz@gnu.org>
10059
10060 * w32.c (readdir): If FindFirstFile/FindNextFile return in
10061 cFileName a file name that includes `?' characters, use the 8+3
10062 alias in cAlternateFileName instead.
10063
100642008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
10065
10066 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
10067
100682008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
10069
10070 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
10071 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
10072 work on current_buffer only instead (that was already the case
10073 for some of the code anyway).
10074 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
10075 (temp_set_point, temp_set_point_both): Use EMACS_INT.
10076 (SET_PT, SET_PT_BOTH): Adjust.
10077 * intervals.h (set_point, temp_set_point, set_point_both)
10078 (temp_set_point_both): Remove redundant declarations.
10079
100802008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
10081
10082 * fileio.c (Finsert_file_contents):
10083 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
10084 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
10085 when buffer != current_buffer anyway.
10086
100872008-03-20 Andreas Schwab <schwab@suse.de>
10088
10089 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
10090 as default.
10091
100922008-03-19 Jason Rumney <jasonr@gnu.org>
10093
10094 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
10095 (syms_of_w32fns): Initialize them.
10096 (HOURGLASS_ID): New constant.
10097 (x_window_to_frame): Don't check hourglass_window.
10098 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
10099 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
10100 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
10101 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
10102 Only change the cursor if hourglass is not active.
10103 (Fx_create_frame): Initialize frame's current_cursor.
10104 (hourglass_atimer): Remove.
10105 (hourglass_started): New function.
10106 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
10107 (show_hourglass): Adapt to w32, changing argument to frame.
10108
10109 * w32term.h (struct w32_output): Remove hourglass_window.
10110 Add current_cursor.
10111
10112 * eval.c (call_debugger, Fsignal):
10113 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
10114 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
10115 (Fexecute_extended_command, cancel_hourglass_unwind):
10116 * minibuf.c (read_minibuf):
10117 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
10118
101192008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
10120
10121 * window.c (run_funs): New fun.
10122 (run_window_configuration_change_hook): Use it to run the buffer-local
10123 and the global part of the hook.
10124
10125 * xdisp.c (format_mode_line_unwind_data): Add window argument.
10126 (unwind_format_mode_line): Restore selected window.
10127 (x_consider_frame_title, Fformat_mode_line): Set selected window.
10128
101292008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
10130
10131 * editfns.c (Fchar_equal): Check they are valid characters.
10132
10133 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
10134
101352008-03-17 Andreas Schwab <schwab@suse.de>
10136
10137 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
10138 against a charset.
10139
10140 * lisp.h (Fbuffer_list): Declare.
10141
101422008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 10143
aac0c6e3
MR
10144 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
10145 handlebox_widget is != 0.
10146
101472008-03-16 Juri Linkov <juri@jurta.org>
10148
10149 * callint.c (Fcall_interactively): For interactive code letters
10150 'b' and 'B' put the buffer list into the list of default "future"
10151 values of the minibuffer.
10152
101532008-03-16 Andreas Schwab <schwab@suse.de>
10154
10155 * keyboard.c (read_key_sequence): Fix downcasing of letters with
10156 modifiers.
10157
10158 * regex.c (re_match_2_internal): Correct matching of a charset
10159 against latin-1 characters.
10160
101612008-03-16 Kenichi Handa <handa@m17n.org>
10162
10163 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
10164 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
10165 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
10166 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
10167 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
10168 CHAR_STRING_ADVANCE.
10169 (produce_chars): Fix for the case that the source and the
10170 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
10171 instead of CHAR_STRING_ADVANCE.
10172 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
10173 STRING_CHAR_ADVANCE.
10174
101752008-03-15 Andreas Schwab <schwab@suse.de>
10176
10177 * regex.c (re_match_2_internal): Correct matching of eight bit
10178 characters in unibyte strings.
10179
101802008-03-15 Martin Rudalics <rudalics@gmx.at>
10181
10182 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
10183 at end of range when it coincides with the end of the buffer.
10184
101852008-03-14 Eli Zaretskii <eliz@gnu.org>
10186
10187 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
10188
10189 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
10190
101912008-03-14 Jason Rumney <jasonr@gnu.org>
10192
10193 * editfns.c (initial_tz): New variable.
10194 (syms_of_editfns): Initialize it.
10195 (Fset_time_zone_rule): Set it when first called.
10196 Use it when TZSTRING is nil.
10197
10198 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
10199 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
10200 (monitor_from_point_fn, get_monitor_info_fn): New globals.
10201 (globals_of_w32fns): Initialize them.
10202 (compute_tip_xy): Use them to position tooltips.
10203
102042008-03-14 Glenn Morris <rgm@gnu.org>
10205
10206 * emacs.c (main): Revert previous change.
10207 (standard_args): Revert -internal-script back to -scriptload,
10208 and remove the long-option form.
10209
102102008-03-13 Glenn Morris <rgm@gnu.org>
10211
10212 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
10213 Remove option -enable-font-backend.
10214
102152008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
10216
10217 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
10218
102192008-03-11 Jan Djärv <jan.h.d@swipnet.se>
10220
10221 * xterm.c (x_connection_closed): For GTK: If this is the last
10222 terminal just exit without closing the display.
10223
102242008-03-11 Jason Rumney <jasonr@gnu.org>
10225
10226 * w32font.c (w32font_full_name): Use floor to round.
10227
f0131492 102282008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
10229
10230 * sound.c (alsa_configure): Declare vol at beginning of block.
10231
10232 * fontset.c (Ffontset_info): Remove extra semicolon.
10233
102342008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
10235
10236 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
10237 size of resulting string.
10238
102392008-03-10 Jason Rumney <jasonr@gnu.org>
10240
10241 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
10242
102432008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10244
10245 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
10246 Don't pretend as if characters with display property haven't been
10247 consumed for string-replacing-string case.
10248
102492008-03-08 Kim F. Storm <storm@cua.dk>
10250
10251 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
10252 (get_next_display_element, next_element_from_string)
10253 (next_element_from_ellipsis, next_element_from_buffer): Use it.
10254
102552008-03-08 Andreas Schwab <schwab@suse.de>
10256
10257 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
10258
102592008-03-06 Jason Rumney <jasonr@gnu.org>
10260
10261 * w32font.c (w32_registry): Take font_type argument. Use ANSI
10262 when charset not specified. Only translate ANSI to unicode when
10263 font_type is truetype.
10264 (w32font_coverage_ok): New function.
10265 (add_font_entity_to_list): Use it to filter unsuitable fonts.
10266
102672008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
10268
10269 * lread.c (Fread_char): Resolve modifiers.
10270 (Fread_char_exclusive): Likewise.
10271
10272 * character.c (char_resolve_modifier_mask): New function.
10273 (char_string): Use char_resolve_modifier_mask.
10274 (Fchar_resolve_modifiers): New function.
10275 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
10276 function.
10277
102782008-03-04 Jason Rumney <jasonr@gnu.org>
10279
10280 * makefile.w32-in: Always include w32font.c in the build.
10281 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
10282
102832008-03-04 Andreas Schwab <schwab@suse.de>
10284
10285 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
10286 (versionclean): Likewise.
10287
102882008-03-04 Juanma Barranquero <lekktu@gmail.com>
10289
10290 * .cvsignore: Add oo.
10291
102922008-03-03 Andreas Schwab <schwab@suse.de>
10293
10294 * coding.c (decode_coding_object): Inhibit gap shrinking while
10295 decoding in place.
10296
102972008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
10298
10299 * w32term.c: Remove unused include "gnu.h".
10300 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
10301
10302 * gnu.h: Rename to ...
10303 * emacs-icon.h: ... this.
10304 * xterm.c: Use emacs-icon.h instead of gnu.h.
10305 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
10306
103072008-03-03 Juanma Barranquero <lekktu@gmail.com>
10308
10309 * w32font.c: Include math.h.
10310
103112008-03-03 Jason Rumney <jasonr@gnu.org>
10312
10313 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
10314 Compute options separately.
10315 (w32font_open_internal): Set glyph_idx before caching metrics.
10316
10317 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
10318 Define if system headers don't.
10319 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
10320 (w32font_encode_char): Don't declare here.
10321
10322 * w32font.c (Quniscribe, QCformat): New symbols.
10323 (syms_of_w32font): Define them.
10324 (w32font_has_char): Indicate uncertainty.
10325 (w32font_encode_char): Encode as glyph point. Make static.
10326 (recompute_cached_metrics): New function.
10327 (w32font_open_internal): Use it. Set font to use glyph points
10328 initially. Set format based on type of font.
10329 (w32font_text_extents, w32font_draw): Optionally use glyph points.
10330 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
10331 on it. Set format based on information available here.
10332 (add_font_entity_to_list): Identify backend based on opentype_only.
10333
103342008-03-02 Andreas Schwab <schwab@suse.de>
10335
10336 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
10337
10338 * coding.c (decode_coding_big5, produce_chars):
10339 Fix typos in last change.
10340
103412008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
10342
10343 * gnu.h: New icon.
10344
103452008-03-02 Kenichi Handa <handa@m17n.org>
10346
10347 * coding.c (decode_coding_utf_8): When eol-type of CODING is
10348 `dos', don't decode '\r' if that is the last in the source.
10349 (decode_coding_utf_16, decode_coding_emacs_mule)
10350 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
10351 (decode_coding_raw_text, decode_coding_charset): Likewise.
10352 (produce_chars): Don't decode EOL here. Use EMACS_INT.
10353
103542008-03-01 Jason Rumney <jasonr@gnu.org>
10355
10356 * w32font.c (w32font_full_name): Report point size for scalable fonts.
10357
103582008-03-01 Kim F. Storm <storm@cua.dk>
10359
10360 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
10361
103622008-03-01 Jason Rumney <jasonr@gnu.org>
10363
10364 * w32font.c (w32font_full_name): New function.
10365 (w32font_open_internal): Use it.
10366
103672008-03-01 Kim F. Storm <storm@cua.dk>
10368
10369 * dispnew.c (line_draw_cost): Fix invalid glyph check.
10370
103712008-03-01 Jason Rumney <jasonr@gnu.org>
10372
10373 * font.c (font_unparse_fcname): Increase len when style is a symbol.
10374
103752008-03-01 Jan Djärv <jan.h.d@swipnet.se>
10376
10377 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
10378 xg_frame_resized when the event is for the edit widget.
10379
10380 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
10381
10382 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
10383 set_char_size.
10384 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
10385 operations on widgets here. Just set frame size if needed.
10386 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
10387 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
10388 (x_wm_set_size_hint): Set size hints on the edit widget only, not
10389 the whole frame.
10390 (xg_create_tool_bar): Move attachment of the tool bar to
10391 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
10392 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
10393
103942008-03-01 Jason Rumney <jasonr@gnu.org>
10395
10396 * w32fns.c (w32_msg_pump): Disable debug code.
10397
103982008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10399
10400 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
10401
104022008-02-29 Chong Yidong <cyd@stupidchicken.com>
10403
10404 * xdisp.c (next_overlay_string): Don't set
10405 overlay_strings_at_end_processed_p if we're currently reading from
10406 a display string.
10407
104082008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
10409
10410 * xdisp.c (get_overlay_strings_1): Fix typo.
10411
104122008-02-29 Chong Yidong <cyd@stupidchicken.com>
10413
10414 * xdisp.c (get_overlay_strings_1): Add missing argument type.
10415
104162008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
10417
10418 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
10419
10420 * xdisp.c (display_mode_element): Cancel the previous change.
10421 (decode_mode_spec): Likewise.
10422 (handle_auto_composed_prop): Don't make composition if it->string
10423 is a string.
10424
104252008-02-27 Kim F. Storm <storm@cua.dk>
10426
10427 * lisp.h (GLYPH): Change type from int to struct with separate char
10428 and face_id members.
10429 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
10430 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
10431 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
10432 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
10433 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
10434 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
10435 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
10436 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
10437 handle new Lisp glyph code encoding, either an integer or a cons.
10438
10439 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
10440 (GLYPH_ALIAS): Delete.
10441 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
10442 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
10443 (GLYPH_FROM_CHAR): Replace macro by ...
10444 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
10445
10446 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
10447 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
10448 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
10449 (GLYPH_INVALID_P): New macro.
10450 (spec_glyph_lookup_face): Update prototype.
10451
10452 * dispnew.c (line_draw_cost): Adapt to new glyph type.
10453 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
10454 new glyph code encoding.
10455 (spec_glyph_lookup_face): No return value; update passed glyph instead.
10456 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
10457
10458 * xdisp.c (get_next_display_element, next_element_from_display_vector):
10459 Adapt to new glyph type and new glyph code encoding.
10460
10461 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
10462
10463 * indent.c (current_column, current_column_1, Fmove_to_column)
10464 (compute_motion): Adapt to new glyph code encoding.
10465
10466 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
10467
104682008-02-27 Chong Yidong <cyd@stupidchicken.com>
10469
10470 * process.c (wait_reading_process_output): Check for window
10471 changes caused by timers.
10472 Suggested by Johan Bockgård.
10473
104742008-02-27 Glenn Morris <rgm@gnu.org>
10475
10476 * emacs.c (USAGE1): Add `--disable-font-backend'.
10477
104782008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
10479
10480 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
10481 is made to the buffer.
10482
104832008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
10484
10485 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
10486 (face_at_string_position):
10487 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
10488 (face_at_string_position):
10489 * xdisp.c (display_string, next_overlay_change):
10490 * buffer.h (overlays_at):
10491 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
10492 Update callers.
10493
104942008-02-26 Chong Yidong <cyd@stupidchicken.com>
10495
10496 * editfns.c (Fformat): Doc fix.
10497
104982008-02-26 Juanma Barranquero <lekktu@gmail.com>
10499
10500 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
10501 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
10502 (Ffont_otf_alternates, Fquery_font): Doc fixes.
10503
105042008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
10505
10506 * buffer.c (Fbuffer_swap_text): New function.
10507 (syms_of_buffer): Defsubr it.
10508
105092008-02-25 Chong Yidong <cyd@stupidchicken.com>
10510
10511 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
10512
105132008-02-25 Jason Rumney <jasonr@gnu.org>
10514
10515 * w32font.c (w32font_draw): Draw one character at a time when padding.
10516
105172008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
10518
10519 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
10520 Handle a nil arg. Use run_window_configuration_change_hook.
10521 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
10522 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
10523 Use run_window_configuration_change_hook.
10524
105252008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
10526
10527 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
10528 1-pixel width.
10529
105302008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
10531
10532 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
10533 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
10534 if the glyph in the font is zero pixel with.
10535
10536 * dispextern.h (struct glyph_string): New member padding_p.
10537
10538 * w32font.c (w32font_draw): Pay attention to s->padding_p.
10539
10540 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
10541
10542 * xfont.c (xfont_draw): Pay attention to s->padding_p.
10543
10544 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
10545
10546 * font.c: If the font driver doesn't have `shape' function, return Qnil.
10547
105482008-02-25 Jason Rumney <jasonr@gnu.org>
10549
10550 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
10551
105522008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
10553
10554 Allow fine-grained image-cache flushing.
10555 * dispextern.h (struct image): Add `dependencies' field.
10556 (clear_image_caches): Change arg to Lisp_Object.
10557 * image.c (make_image): Initialize `dependencies' field.
10558 (clear_image_cache): Change arg to allow fine-grained flushing.
10559 Perform the flush even if image-cache-eviction-delay is nil.
10560 (clear_image_caches): Change arg to Lisp_Object.
10561 (Fclear_image_cache): Expand meaning of the argument.
10562 (mark_image): Mark `dependencies' field.
10563 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
10564 (lface_hash): Use XHASH rather than XFASTINT.
10565 (face_at_buffer_position): Fix int -> EMACS_INT position.
10566 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
10567 (select_frame_for_redisplay): Remove code duplication.
10568 (redisplay_internal): Adapt arg to call to clear_image_caches.
10569
105702008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
10571
10572 * s/vms4-0.h:
10573 * s/vms4-2.h:
10574 * s/vms4-4.h:
10575 * s/vms5-5.h: Remove, unused.
10576
10577 * s/irix5-2.h:
10578 * s/irix6-0.h:
10579 * s/riscos5.h:
10580 * s/mach-bsd4-3.h:
10581 * m/mips4.h: Remove files for obsolete systems.
10582
10583 * Makefile.in:
10584 * filelock.c:
10585 * unexmips.c:
10586 * m/hp9000s300.h:
10587 * m/iris4d.h:
10588 * s/aix3-1.h:
10589 * s/hpux.h:
10590 * s/msdos.h:
10591 * s/usg5-0.h:
10592 * s/usg5-2-2.h:
10593 * s/usg5-2.h:
10594 * s/usg5-3.h: Remove references to obsolete variables.
10595
10596 * s/irix5-0.h: Remove, move all the contents ...
10597 * s/irix6-5.h: ... here. Simplify.
10598 * config.in: Regenerate.
10599
106002008-02-24 Jason Rumney <jasonr@gnu.org>
10601
10602 * w32term.c (x_draw_glyph_string_background): Clear the background
10603 manually when cleartype is in use.
10604 (x_draw_glyph_string_foreground): Draw text transparently when
10605 cleartype is in use.
10606
10607 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
10608 a font into it unless we have to.
10609
106102008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
10611
10612 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
10613 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 10614
aac0c6e3
MR
106152008-02-18 Jason Rumney <jasonr@gnu.org>
10616
10617 * w32fns.c (Fw32_shell_execute): Encode parameters.
10618
106192008-02-09 Eli Zaretskii <eliz@gnu.org>
10620
10621 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
10622
106232008-02-05 Juanma Barranquero <lekktu@gmail.com>
10624
10625 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
10626
106272008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
10628
10629 * xterm.c (x_set_offset): Don't change the gravity if
10630 CHANGE_GRAVITY is -1.
10631
106322008-02-23 Chong Yidong <cyd@stupidchicken.com>
10633
10634 * fileio.c (auto_save_error_occurred): New var.
10635 (auto_save_error): Set it.
10636 (Fdo_auto_save): Don't overwrite the error message if an auto-save
10637 error occurred.
10638
106392008-02-23 Eli Zaretskii <eliz@gnu.org>
10640
10641 * w32.c (globals_of_w32): Add initializations for
10642 g_b_init_get_sid_sub_authority and
10643 g_b_init_get_sid_sub_authority_count.
10644
106452008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
10646
10647 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
10648 (font_parse_xlfd): Use them for sanity check.
10649 (Finternal_set_font_style_table): Make sure the table is bijective.
10650
10651 Consolidate the image_cache to the terminal struct.
10652 * termhooks.h (P_): Remove redundant def.
10653 (struct terminal): New field `image_cache'.
10654 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
10655 of FRAME_X_IMAGE_CACHE.
10656 * xterm.h (struct x_display_info): Remove image_cache field.
10657 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
10658 * w32term.h (struct w32_display_info): Remove image_cache field.
10659 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
10660 * macterm.h (struct mac_display_info): Remove image_cache field.
10661 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
10662 * xterm.c (x_term_init):
10663 * w32term.c (w32_term_init):
10664 * macterm.c (mac_term_init): Set the image_cache in the terminal.
10665 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
10666 Remove declarations.
10667 (clear_image_caches, mark_image_cache): New declarations.
10668 * xfaces.c (clear_face_cache):
10669 * xdisp.c (redisplay_internal): Use clear_image_caches.
10670 * image.c (clear_image_cache): Don't check that a frame is on
10671 a window-system before checking if it shares the same cache.
10672 (clear_image_caches): New function.
10673 (Fclear_image_cache): Use it.
10674 (mark_image): Move from allo.c.
10675 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
10676 * alloc.c (mark_image, mark_image_cache): Move to image.c.
10677 (mark_object): Don't call mark_image_cache for frames.
10678 (mark_terminals): Call mark_image_cache.
10679
10680 * lisp.h (Fdelete_terminal): Declare.
10681
10682 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
10683 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
10684 wrong_type_argument.
10685
106862008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
10687
10688 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
10689 malayalam.el, and tamil.el. Add sinhala.el.
10690
106912008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
10692
10693 * xterm.c (x_connection_closed): Consolidate identical tests.
10694 (x_delete_terminal): Don't crash if called via x_connection_closed.
10695
106962008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
10697
10698 * xdisp.c (decode_mode_spec): New arg string.
10699 (display_mode_element): Adjust for the above change.
10700
107012008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
10702
10703 * callint.c (Fcall_interactively): Use AREF.
10704
107052008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
10706
10707 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
10708
107092008-02-18 Jan Djärv <jan.h.d@swipnet.se>
10710
10711 * xfns.c (Fx_show_tip): Set string to " " if empty.
10712
107132008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
10714
10715 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
10716 with Qt.
10717
107182008-02-17 Kenichi Handa <handa@m17n.org>
10719
10720 * ftfont.c (ftfont_shape): Return Lispy number.
10721
10722 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
10723 for GCs.
10724 (Finternal_set_font_selection_order): Call font_update_sort_order
10725 only when enable_font_backend is set.
10726 (realize_x_face): Set face->font_info to that of default face only
10727 when enable_font_backend is set.
10728
10729 * xdisp.c (handle_composition_prop): Set it->c to the fist
10730 character of the composed region.
10731 (fill_composite_glyph_string): Set base_face->font_info to
10732 s->font_info. Get a face for ascii from base_face->ascii_face.
10733 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
10734 with a face already decided.
10735 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
10736 non-negative.
10737 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
10738 call font_prepare_composition unconditionally.
10739
10740 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
10741
10742 * xterm.h (struct x_display_info): New member font.
10743
10744 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
10745 (x_set_mouse_face_gc, x_new_font): Likewise.
10746 (x_term_init): Setup display_info->font.
10747 (x_delete_terminal): Free display_info->font.
10748
10749 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
10750
10751 * ftxfont.c (ftxfont_default_fid): Delete it.
10752 (ftxfont_open): Set xfont->fid to 0.
10753 (ftxfont_end_for_frame): Clear data specific to the frame and the
10754 font-driver.
10755
10756 * xftfont.c (xftfont_default_fid): Delete it.
10757 (xftfont_open): Set xfont->fid to 0.
10758
10759 * fontset.c (FONTSET_OBJLIST): New macro.
10760 (fontset_find_font): Update font-object list of the fontset.
10761 (free_realized_fontset): New function.
10762 (free_face_fontset): Call free_realized_fontset.
10763 (Ffont_info): Call font_close_object only when enable_font_backend
10764 is set.
10765
10766 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
10767 [HAVE_NTGUI]: Include w32term.h.
10768 [MAC_OS]: Include macterm.ch.
10769 (font_otf_ValueRecord): Use make_number.
10770 (font_finish_cache): Fix handling of reference count.
10771 (font_clear_cache): Update num_fonts.
10772 (font_open_entity): Update smallest_char_width and
10773 smallest_font_height of the frame.
10774 (font_close_object): Update num_fonts.
10775 (Fclear_font_cache): Fix finding the target cache data.
10776
107772008-02-16 Glenn Morris <rgm@gnu.org>
10778
10779 * fontset.c (Finternal_char_font): Fix compilation warning.
10780
107812008-02-16 Eli Zaretskii <eliz@gnu.org>
10782
10783 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
10784 instead of char arrays. Enlarge the size of array passed to
10785 get_token_information.
10786
10787 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
10788 warnings.
10789
107902008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
10791
10792 * .gdbinit: Don't set `args', it breaks gdb --args.
10793
107942008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
10795
10796 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
10797 within a narrowed buffer.
10798
107992008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
10800
10801 * coding.c (decode_coding_object, encode_coding_object):
10802 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
10803
108042008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
10805
10806 * coding.c (coding_set_destination): Use BEG_BYTE rather than
10807 hardcoding 1.
10808 (detect_coding_system):
10809 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
10810 (string_char_to_byte, string_byte_to_char, insert_from_gap):
10811 * insdel.c (insert_from_gap):
10812 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
10813 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
10814 (string_to_multibyte):
10815 * character.c (chars_in_text, multibyte_chars_in_text):
10816 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
10817
10818 * character.h (FETCH_STRING_CHAR_ADVANCE)
10819 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
10820 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
10821 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
10822
10823 * casefiddle.c (casify_region): Only call after-change and composition
10824 functions on the part of the region that was changed.
10825
10826 * keyboard.c (read_avail_input):
10827 * frame.c (Fdelete_frame): Call Fdelete_terminal.
10828
108292008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
10830
10831 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
10832 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
10833
108342008-02-11 Juanma Barranquero <lekktu@gmail.com>
10835
10836 * w32menu.c (push_submenu_start, push_submenu_end)
10837 (push_left_right_boundary, push_menu_pane, push_menu_item):
10838 * keyboard.c (read_key_sequence): Don't pass args with side effects
10839 to AREF, it fails when compiling with -DENABLE_CHECKING.
10840
108412008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
10842
10843 * Makefile.in (${lispsource}international/charprop.el):
10844 Delete this target.
10845
10846 * search.c (boyer_moore): Fix incorrect synching of the trunk and
10847 emacs-unicode-2.
10848
108492008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
10850
10851 * terminal.c (Fdelete_terminal): Clean up the `force' path.
10852
108532008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
10854
10855 * frame.c (Qnoelisp): New symbol.
10856 (syms_of_frame): Initialize it.
10857 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
10858 harmless Elisp code, from a strong `force' from x_connection_closed.
10859 * frame.h (Qnoelisp): Declare.
10860 * xterm.c (x_connection_closed): Pass `noelisp'.
10861
10862 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
10863 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
10864 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
10865 rather than `int' for the type of `type'.
10866
108672008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
10868
10869 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
10870
10871 * Makefile.in (GNUC): Remove support for gcc-1.x.
10872
108732008-02-10 Richard Stallman <rms@gnu.org>
10874
10875 * lisp.h (ASET): Use AREF, not ASLOT.
10876
108772008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
10878
10879 * lisp.h (ASET): Check bounds.
10880
108812008-02-10 Glenn Morris <rgm@gnu.org>
10882
10883 * buffer.c (mode-name): Doc fix.
10884
108852008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
10886
10887 * Makefile.in:
10888 * emacs.c:
10889 * gmalloc.c:
10890 * keyboard.c:
10891 * lisp.h:
10892 * m/ibm370aix.h:
10893 * process.c:
10894 * regex.c:
10895 * s/hpux.h:
10896 * sysdep.c:
10897 * sysselect.h:
10898 * systty.h:
10899 * unexec.c:
10900 * w32term.c:
10901 * xsmfns.c:
10902 * xterm.c: Remove code that deals with obsolete variables.
10903
10904 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
10905
10906 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
10907 nothing else needs it anymore.
10908
109092008-02-09 Eli Zaretskii <eliz@gnu.org>
10910
10911 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
10912 instead of unibyte_char_to_multibyte.
10913
109142008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
10915
10916 * s/gnu-linux.h: Remove commented out code.
10917
10918 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
10919
10920 * Makefile.in: Update what RMS says about using autoconf.
10921 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
10922 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
10923 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
10924 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
10925
109262008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
10927
10928 * keymap.c (Fkey_description): Move side effect outside of macro call.
10929
10930 * xfaces.c (Finternal_make_lisp_face):
10931 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
10932
10933 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
10934 (syms_of_fontset): Use ASET.
10935
10936 * fns.c (concat): Move side effect outside of macro call.
10937 (hash_clear): Use ASET.
10938
109392008-02-08 Richard Stallman <rms@gnu.org>
10940
10941 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
10942 If FORCE, and frame has a surrogate minibuffer for another frame,
10943 delete the other frame first.
10944
109452008-02-07 Timo Savola <timo.savola@iki.fi>
10946
10947 * xterm.c (x_detect_focus_change): Handle embed client message.
10948 (handle_one_xevent): Ditto.
10949 (handle_one_xevent): If embedded and we get a button press/release,
10950 request focus.
10951 (xembed_set_info, xembed_send_message): New functions.
10952 (x_make_frame_visible): Call xembed_set_info if embedded.
10953 (x_make_frame_invisible): Call xembed_set_info if embedded.
10954 (x_term_init): Initialize Xatom_XEMBED.
10955 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
10956 (x_iconify_frame): Ditto.
10957
10958 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
10959 (enum xembed_info, enum xembed_message, enum xembed_focus)
10960 (enum xembed_modifier, enum xembed_accelerator): New.
10961 (xembed_set_info, xembed_send_message): Declare.
10962 (FRAME_X_EMBEDDED_P): New.
10963
10964 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
10965 gtk_plug_new.
10966
10967 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
10968 window ID of a frame.
10969 (x_window): Reparent frame if embedded.
10970 (Fx_create_frame): Don't set border width if embedded.
10971
10972 * emacs.c (USAGE3): Add --parent-id.
10973 (standard_args): Ditto.
10974
109752008-02-07 Jan Djärv <jan.h.d@swipnet.se>
10976
10977 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
10978
109792008-02-07 Jim Meyering <meyering@redhat.com>
10980
10981 Use "do...while (0)", not "if (1)...else" in macro definitions.
10982 The latter provokes a warning from gcc about the empty else, when
10983 followed by ";". Also, without that trailing semicolon, it would
10984 silently swallow up any following statement.
10985 * syntax.h (SETUP_SYNTAX_TABLE)
10986 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
10987 * buffer.h (DECODE_POSITION): Likewise.
10988 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
10989 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
10990 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
10991 (FETCH_CHAR_ADVANCE): Likewise.
10992 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
10993
109942008-02-07 Jim Meyering <meyering@redhat.com>
10995
10996 * lread.c [lint]: Don't include <sys/inode.h>.
10997
109982008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
10999
11000 * xselect.c (x_handle_dnd_message):
11001 * xmenu.c (digest_single_submenu, xmenu_show):
11002 * xdisp.c (with_echo_area_buffer_unwind_data)
11003 (format_mode_line_unwind_data, unwind_format_mode_line)
11004 (display_menu_bar):
11005 * eval.c (Ffetch_bytecode):
11006 * doc.c (store_function_docstring):
11007 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
11008 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
11009 * buffer.c (add_overlay_mod_hooklist): Use ASET.
11010
110112008-02-07 Kenichi Handa <handa@m17n.org>
11012
11013 * ftxfont.c (ftxfont_open): Don't set
11014 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
11015
11016 * ftfont.c (ftfont_open): Fix previous change.
11017
110182008-02-06 Jason Rumney <jasonr@gnu.org>
11019
11020 * w32font.c (w32font_text_extents): Fill in lbearing metric.
11021 Use cached metrics for ASCII characters.
11022 (w32font_open_internal): Don't set font's owning_frame.
11023 Cache metrics for ASCII characters.
11024
11025 * w32font.h (struct w32font_info): Add ascii_metrics.
11026 Remove owning_frame.
11027
110282008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
11029
11030 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
11031 to negative value.
11032
11033 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
11034
11035 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
11036
11037 * charset.c (syms_of_charset): Set QCtest and Qeq.
11038
110392008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
11040
11041 * process.c (Fstart_process):
11042 * callproc.c (Fcall_process): Handle the case where
11043 Funhandled_file_name_directory returns nil.
11044
11045 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
11046 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
11047 * font.c (check_gstring): Use them and AREF to access the vector before
11048 we know it's really a gstring.
11049 (Ffont_shape_text): Fix typo.
46e722a9 11050 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
11051
11052 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
11053 Declare.
11054
11055 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
11056
110572008-02-05 Jason Rumney <jasonr@gnu.org>
11058
11059 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
11060 Set smallest_font_height and smallest_char_width in display info.
11061
110622008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
11063
11064 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
11065
110662008-02-05 Miles Bader <miles@gnu.org>
11067
11068 * xfaces.c (get_lface_attributes, merge_named_face)
11069 (lookup_named_face, lookup_derived_face, realize_named_face):
11070 Revert 2008-02-01 change by cyd@stupidchicken.com.
11071
110722008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
11073
11074 * fontset.c (Ffontset_info): Handle the case of inhibitting the
11075 fallback fonts.
11076 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
11077
110782008-02-04 Jason Rumney <jasonr@gnu.org>
11079
11080 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
11081 set full_name.
11082 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
11083
110842008-02-03 Jason Rumney <jasonr@gnu.org>
11085
11086 * makefile.w32-in (OBJ1): Include font.o here.
11087 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
11088
110892008-02-02 Jason Rumney <jasonr@gnu.org>
11090
11091 * makefile.w32-in (temacs): Bump EMHEAP to 21.
11092
110932008-02-01 Jason Rumney <jasonr@gnu.org>
11094
11095 * s/cygwin.h: Define VIRT_ADDR_VARIES.
11096
11097 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
11098
110992008-02-01 Andreas Schwab <schwab@suse.de>
11100
11101 * Makefile.in (shortlisp, lisp): Update for rename of
11102 ../lisp/language/myanmar.el.
11103
111042008-02-01 Chong Yidong <cyd@stupidchicken.com>
11105
11106 * xfaces.c (get_lface_attributes): Delete function.
11107 (merge_named_face, lookup_named_face, lookup_derived_face)
11108 (realize_named_face): Call lface_from_face_name directly, and use
11109 the fact that merge_face_vectors does not alter its FROM argument.
11110
111112008-02-01 Jason Rumney <jasonr@gnu.org>
11112
11113 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
11114 input in the default locale. Handle non-Unicode multibyte input.
11115
111162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11117
11118 * fontset.c (reorder_font_vector): Exclude nil elements from the
11119 font group. Don't try multiple fonts.
11120 (fontset_font): Adjust for the above change.
11121 (Finternal_char_font): Return nil if the found font doesn't
11122 contain the character ch.
11123
11124 * Makefile.in (lisp, shortlisp): Add cham.el.
11125
111262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11127
11128 * font.h (FONTP): Make it return 1 also for a font-object.
11129
11130 * .gdbinit (xfontset): New function.
11131
11132 * font.c (font_find_for_lface): Check if the character C is
11133 supported or not only for the first font.
11134
11135 * fontset.c (reorder_font_vector): Fix typo.
11136 (fontset_find_font): Don't add a font-spec specifying a script.
11137 Use 0 (not Qt) for the indication of empty font-group. Change the
11138 format of RFONT-DEF. Return Qt if no font in the font-group
11139 support the character.
11140 (fontset_font): Adjust for the above change. If no font was
11141 found the character, remember that.
11142 (face_for_char): Adjust for the change of RFONT-DEF.
11143 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
11144 no font for the target.
11145 (Finternal_char_font): Adjust for the change of RFONT-DEF.
11146
111472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11148
11149 * font.c (font_load_for_face): Handle the case that the font in
11150 face->lface is a string.
11151
111522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11153
11154 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
11155
111562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11157
11158 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
11159 Fix previous change. If the frame is not on a window system,
11160 signal an error.
11161
111622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11163
11164 * coding.c (decode_coding_object, encode_coding_object): Adjust
11165 marker positions after conversion.
11166
11167 * lisp.h (struct Lisp_Marker): New member need_adjustment.
11168
111692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11170
11171 * font.c (font_find_for_lface): Fix the handling of the return
11172 value of font_has_char.
11173 (Ffont_shape_text): Fix previous change.
11174
11175 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
11176 (fontset_ref_and_range): Delete it.
11177 (fontset_find_font): Call char_table_ref_and_range instead of
11178 FONTSET_REF_AND_RANGE.
11179 (make_fontset): Don't setup font groups of Latin here.
11180 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
11181 (new_fontset_from_font): Make the specified font the default for
11182 all Latin characters.
11183
111842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11185
11186 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
11187 is on a window system before accessing the fontset of the frame.
11188
111892008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11190
11191 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
11192
11193 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
11194 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
11195
11196 * font.c (Ffont_shape_text): If the font driver doesn't have a
11197 shaper function, make zero-width glyphs to have at least one-pixel
11198 width. Fix setting of `to' field of glyphs.
11199
112002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11201
11202 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
11203 glyphs.
11204
11205 * font.h (struct font_driver): Improve docstring of member `shape'.
11206
112072008-02-01 Kenichi Handa <handa@m17n.org>
11208
11209 * composite.c (syms_of_composite): Fix docstring of
11210 auto-composition-function.
11211
11212 * font.h (LGLYPH_SIZE): New macro.
11213
11214 * font.c (Ffont_fill_gstring): Stop filling when a character not
11215 supported by the font is found.
11216 (Ffont_shape_text): When a shape callback function returns nil,
11217 try at most two more times with larger gstring.
11218 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
11219
11220 * xdisp.c (handle_auto_composed_prop): Change the argument to
11221 auto-composition-function.
11222
11223 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
11224 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
11225 Lispy glyph and store it in the lgstring.
11226
11227 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
11228
11229 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
11230
112312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11232
11233 * font.c (Ffont_shape_text): Avoid unnecessary composition.
11234
11235 * fontset.c (Vfont_encoding_charset_alist): New variable.
11236 (syms_of_fontset): DEFVAR it.
11237 (reorder_font_vector, fontset_find_font): Optimize for the case of
11238 no need of reordering.
11239 (face_for_char): Map the charset property by
11240 Vfont_encoding_charset_alist.
11241
112422008-02-01 Jason Rumney <jasonr@gnu.org>
11243
11244 * w32font.c (logfonts_match): Don't check adstyle here.
11245 (font_matches_spec): Check here against physical font instead.
11246 (add_font_entity_to_list): Avoid some substitutions.
11247
11248 * font.c (font_parse_fcname): Default weight and slant to normal.
11249 (font_score): Prefer normal fonts if weight or slant unspecified.
11250 (font_score) [WINDOWSNT]: Scale weight difference down to closer
11251 match freetype scores.
11252
112532008-02-01 Jason Rumney <jasonr@gnu.org>
11254
11255 * w32font.c (w32font_text_extents): Don't use the frame stored in the
11256 font, as it may have been deleted.
11257 (w32_enumfont_pattern_entity): Map generic family to adstyle using
11258 most common hyphenless variation.
11259 (logfonts_match): Check generic family.
11260 (font_matches_spec): Don't check generic family here.
11261 (fill_in_logfont): Set generic family based on adstyle.
11262
11263 * w32font.h (w32font_get_cache): Update declaration.
11264
112652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11266
11267 * ftfont.c (ftfont_get_cache): Adjust the argument type.
11268
11269 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
11270 If none of the new drivers are available, call font_update_drivers
11271 with the old drivers.
11272
11273 * w32font.c (w32font_get_cache): Adjust the argument type.
11274
11275 * xfont.c (xfont_get_cache): Adjust the argument type.
11276
11277 * font.h (struct font_driver): Change argument type of get_cache.
11278
11279 * xftfont.c (xftfont_start_for_frame): Delete prototype.
11280
11281 * font.c (Ffont_get): Fix arguments to Fassoc.
11282 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
11283 (font_clear_cache): New function.
11284 (font_list_entities, font_matching_entity): Use font_get_cache.
11285 (font_update_drivers): Call font_clear_cache when finishing a driver.
11286
11287 * fontset.c (fontset_find_font): Fix previous change.
11288
112892008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11290
11291 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
11292 dpyinfo->font_table.
11293 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
11294 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
11295
11296 * font.c (font_at): Handle the case that the arg C is negative.
11297 Handle the unibyte case.
11298 (Ffont_at): Call font_at with the arg C -1.
11299
11300 * xdisp.c (handle_auto_composed_prop): Don't get a character at
11301 the position here, and call font_at with the arg C -1.
11302 Don't check the range of the existing composition at the point.
11303
113042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11305
11306 * fontset.c (fontset_add): New args charset_id and family.
11307 Change caller.
11308 (load_font_get_repertory, fontset_find_font): Assume that
11309 font_spec is always a font-spec object.
11310 (Fset_fontset_font): Always store a font-spec object in a fontset.
11311
11312 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
11313 instead of get_property_and_range.
11314
113152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11316
11317 * xftfont.c (struct xftfont_info): Delete the member ft_face.
11318 (xftfont_open): Don't keep locking face.
11319 (xftfont_close): Don't unlock face.
11320 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
11321
11322 * fontset.c (fontset_find_font): Don't prefer a font of
11323 supplementary charset.
11324
113252008-02-01 Kenichi Handa <handa@m17n.org>
11326
11327 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
11328 script, langsys_tag to langsys, new member script.
11329 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 11330 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
11331 listing to the script specified in that property. Fix arg to
11332 OTF_check_features.
11333
113342008-02-01 Jason Rumney <jasonr@gnu.org>
11335
11336 * w32font.h: New file.
11337
11338 * w32font.c: Include it.
11339 (struct w32font_info): Add owning_frame field. Move to w32font.h.
11340 (w32font_open): Set owning_frame.
11341 (w32font_text_extents): Use owning_frame.
11342 (struct font_callback_data): Add opentype_only field.
11343 (add_font_entity_to_list): Use it to filter fonts.
11344 Don't check against full name.
11345 (w32font_list_internal): New function.
11346 (w32font_list): Use it.
11347 (w32font_match_internal): New function.
11348 (w32font_match): Use it.
11349 (w32font_open_internal): New function.
11350 (w32font_open): Use it.
11351 (w32font_get_cache, w32font_close, w32font_has_char)
11352 (w32font_encode_char, w32font_text_extents, w32font_draw):
11353 Make non-static.
11354
11355 * makefile.w32-in (w32font.o): Depend on w32font.h.
11356
113572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11358
11359 * charset.c (Fdefine_charset_internal): Record a supplementary
11360 charset at the tail of Vcharset_order_list.
11361
11362 * font.c (Ffont_shape_text): Fix the return value.
11363
11364 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
11365
11366 * xdisp.c (handle_auto_composed_prop): Fix previous change.
11367
113682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11369
11370 * ftfont.c (struct OpenTypeSpec): New struct.
11371 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
11372 (ftfont_get_open_type_spec): New function.
11373 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
11374
11375 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
11376
113772008-02-01 Jason Rumney <jasonr@gnu.org>
11378
11379 * w32font.c (add_font_entity_to_list): Compare only the beginning
11380 of full name.
11381
113822008-02-01 Kenichi Handa <handa@m17n.org>
11383
11384 * xdisp.c (handle_auto_composed_prop): Simplify the code.
11385 Never return HANDLED_RECOMPUTE_PROPS.
11386
113872008-02-01 Kenichi Handa <handa@m17n.org>
11388
11389 * font.c (font_gstring_produce): Delete it.
11390
11391 * composite.h (COMPOSITION_METHOD):
11392 Handle COMPOSITION_WITH_GLYPH_STRING.
11393
113942008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11395
11396 * xfont.c (Qx): Delete.
11397 (syms_of_xfont): Don't initialize Qx.
11398
11399 * composite.h (enum composition_method):
11400 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
11401
114022008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11403
11404 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
11405 (choose_face_font): Accept new form of font-spec.
11406
11407 * frame.h (font_driver_list): Declare it unconditionally.
11408 (struct frame): Define members font_driver_list and font_data_list
11409 unconditionally.
11410
11411 * fontset.c: Include "font.h" unconditionally.
11412 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
11413 (Fset_fontset_font): Accept a font-spec object.
11414
11415 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
11416 PIXEL_SIZE part a wild card.
11417
11418 * dispextern.h (struct glyph_string): Define members clip and
11419 num_clips unconditionally.
11420 (struct face): Define members font_info and extra unconditionally.
11421
11422 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
11423 ftfont_info only when HAVE_LIBOTF is defined.
11424
114252008-02-01 Andreas Schwab <schwab@suse.de>
11426
11427 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
11428 and end.
11429
114302008-02-01 Jason Rumney <jasonr@gnu.org>
11431
11432 * w32font.c (w32font_driver): Add new fields.
11433
114342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11435
11436 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
11437 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
11438 (LIBES): Add @M17N_FLT_CFLAGS@.
11439
11440 * composite.c (compose_text): Don't treat the new style
11441 composition specially.
11442
11443 * emacs.c (main): Call syms_of_font unconditionally.
11444
11445 * font.h (FONT_ENTITY_NOT_LOADABLE)
11446 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
11447 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
11448 (struct font_driver): New member shape.
11449 (font_registry_charsets): Extern it.
11450 (font_find_for_lface, font_prepare_composition): Adjust prototype.
11451 (font_otf_capability, font_drive_otf): Delete their externs.
11452
11453 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
11454 (font_charset_alist, font_registry_charsets): Move from xfont.c
11455 and rename.
11456 (font_prop_validate_otf): New function.
11457 (font_property_table): Register it for QCotf.
11458 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
11459 (font_drive_otf): Delete.
11460 (font_prepare_composition): New arg F. Adjust for the change of
11461 lispy gstring.
11462 (font_find_for_lface): New arg C.
11463 (font_load_for_face): Adjust for the change of font_find_for_lface.
11464 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
11465 lispy gstring.
11466 (Ffont_shape_text): New function.
11467 (Fopen_font): If the font size is not given, use 12-pixel.
11468 (Ffont_at): New arg STRING.
11469 (syms_of_font): Initalize font_charset_alist.
11470 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
11471 conditionally.
11472
11473 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
11474 fonts of the same font-spec. Change the format of RFONT-DEF.
11475 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
11476 Adjust for the change of RFONT-DEF.
11477 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
11478
11479 * ftfont.h: New file.
11480
11481 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
11482 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
11483 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
11484 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
11485 font_otf_capability and font_drive_otf, set ftfont_shape.
11486 (ftfont_list): Adjust for the change of :otf property value.
11487 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
11488 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
11489 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
11490 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
11491 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
11492 (otf_gstring, gstring, m17n_flt_initialized): New variables.
11493
11494 * w32term.c (x_draw_composite_glyph_string_foreground):
11495 Adjust for the change of lispy gstring.
11496
11497 * xdisp.c (handle_composition_prop): Adjust for the change of
11498 lispy gstring. Call a function for auto-composition with the
11499 third arg it->window.
11500 (fill_composite_glyph_string): Adjust for the change of lispy string.
11501 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
11502
11503 * xfaces.c (set_font_frame_param): Adjust for the change of
11504 font_find_for_lface.
11505
11506 * xfont.c (x_font_charset_alist): Move to font.c and rename.
11507 (xfont_registry_charsets): Likewise. Change caller.
11508 (syms_of_xfont): Don't handle x_font_charset_alist.
11509
11510 * xftfont.c: Include "ftfont.h".
11511 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
11512 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
11513 (xftfont_close) [HAVE_LIBOTF]: Close otf.
11514 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
11515 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
11516 Set xftfont_driver.shape to xftfont_shape.
11517
11518 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
11519 the change of lispy gstring.
11520
115212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11522
11523 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
11524
115252008-02-01 Jason Rumney <jasonr@gnu.org>
11526
11527 * w32font.c (w32font_draw): Fill background manually.
11528
115292008-02-01 Jason Rumney <jasonr@gnu.org>
11530
11531 * font.c (Qfontp): Remove unused symbol.
11532 (QCantialias): New symbol.
11533 (syms_of_font): Define it.
11534 (font_property_table): Set a validator for QCantialias.
11535
11536 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
11537 Define if not already.
11538 (QCfamily): Share with xfaces.c.
11539 (Qstandard, Qsubpixel, Qnatural): New symbols.
11540 (syms_of_w32font): Define them. Don't define QCfamily here.
11541 (w32_antialias_type, lispy_antialias_type): New functions.
11542 (w32_enumfont_pattern_entity): New arg requested_font.
11543 Set antialias parameter if non-default was requested.
11544 (fill_in_logfont): Fill in lfQuality if :antialias specified.
11545
115462008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11547
11548 * lread.c (read1): Undo the previous change.
11549
115502008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
11551
11552 * frame.c (Fdelete_frame): Call font_update_drivers only when
11553 USE_FONT_BACKEND is defined.
11554
115552008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11556
11557 * font.h (struct font_bitmap): New member bits_per_pixel.
11558 (struct font_driver): New members start_for_frame and end_for_frame.
11559 (struct font_data_list): New struct.
11560 (font_put_frame_data, font_get_frame_data): Extern them.
11561
11562 * frame.h (struct frame): New member font_data_list.
11563
11564 * font.c (font_update_drivers): Call driver->start_for_frame and
11565 driver->end_for_frame at proper timings.
11566 (font_put_frame_data, font_get_frame_data): New functions.
11567 (Ffont_spec): Add usage in the docstring.
11568
11569 * frame.c (make_frame): Initialize f->font_data_list to NULL.
11570 (Fdelete_frame): Call font_update_drivers.
11571
11572 * xftfont.c (struct xftface_info): Delete the member xft_draw.
11573 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
11574 (xftfont_get_xft_draw): New function.
11575 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
11576 (xftfont_end_for_frame): New function.
11577 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
11578
11579 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
11580 Change argument. Cache GCs in the per-frame data.
11581 (struct ftxfont_frame_data): New struct.
11582 (ftxfont_draw_bitmap): New arg gc_fore and flush.
11583 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
11584 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
11585 (ftxfont_end_for_frame): New function.
11586 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
11587
11588 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
11589
115902008-02-01 Kenichi Handa <handa@m17n.org>
11591
11592 * xselect.c (Vselection_coding_system)
11593 (Vnext_selection_coding_system): Delete them.
11594 (syms_of_xselect): Don't declare selection-coding-system and
11595 next-selection-coding-system. They are declared in select.el.
11596
115972008-02-01 Jason Rumney <jasonr@gnu.org>
11598
11599 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
11600
11601 * w32fns.c: Include imm.h.
11602 (get_composition_string_fn, get_ime_context_fn): New optional
11603 system functions.
11604 (globals_of_w32fns): Load them from imm32.dll.
11605 (ignore_ime_char): New flag.
11606 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
11607 WM_IME_ENDCOMPOSITION messages.
11608
11609 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
11610 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
11611
116122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11613
11614 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
11615 (READCHAR_REPORT_MULTIBYTE): New macro.
11616 (readchar): New 2nd arg MULTIBYTE.
11617 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
11618 Make symbol's name multibyte according to the multibyteness of the
11619 source.
11620
116212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11622
11623 * xfaces.c (face_for_overlay_string): Call lookup_face with
11624 correct arguments (fix of synching with the trunk).
11625
116262008-02-01 Kenichi Handa <handa@m17n.org>
11627
11628 * font.c (font_prop_validate_symbol, font_prop_validate_style)
11629 (font_prop_validate_non_neg, font_prop_validate_spacing):
11630 Delete argument prop_index.
11631 (font_property_table): Change arguments to validater. Change Callers.
11632 (font_lispy_object): Delete.
11633 (font_at): Use font_find_object instead fo font_lispy_object.
11634
116352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11636
11637 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
11638 and file names.
11639
116402008-02-01 Jason Rumney <jasonr@gnu.org>
11641
11642 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
11643 (font_matches_spec): Remove debug output.
11644 (add_font_entity_to_list): Avoid using substituted fonts.
11645
116462008-02-01 Jason Rumney <jasonr@gnu.org>
11647
11648 * doc.c (Fsnarf_documentation):
11649 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
11650
116512008-02-01 Miles Bader <miles@gnu.org>
11652
11653 * dispextern.h (struct glyph_row): Only define "clip" field if
11654 HAVE_WINDOW_SYSTEM is defined.
11655
116562008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
11657
11658 Fix up multi-tty merge.
11659
11660 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
11661 and indentation.
11662
11663 * xfaces.c (free_realized_face, clear_face_gcs):
11664 Include font_done_for_face in the input_blocked section, just in case.
11665
11666 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
11667 (get_char_face_and_encoding): Undo last change and remove the *other*
11668 duplicate definition (i.e. keep the one that's better scoped and that
11669 includes code for the font-backend).
11670
11671 * terminal.c (create_terminal): Default keyboard_coding to
11672 `no-conversion' and terminal_coding to `undecided'.
11673
11674 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
11675
11676 * fontset.c (free_realized_fontsets): Check that the table entry does
11677 contain a fontset before trying to compare it to `base'.
11678
11679 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
11680 syms_of_charset, and syms_of_coding earlier because init_window_once
11681 now needs Vcoding_system_hash_table to be setup.
11682
11683 * coding.h (default_buffer_file_coding): Remove.
11684
11685 * coding.c (default_buffer_file_coding): Remove.
11686 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
11687 than ->symbol, and use the terminal-local coding system.
11688 (syms_of_coding): Don't setup the coding-systems that are not
11689 terminal-local.
11690 (Fdefine_coding_system_internal): Use XCAR/XCDR.
11691
11692 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
11693 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
11694
11695 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
11696 in chartab.c and were re-added here by mistake.
11697 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
11698
11699 * doc.c (Fsnarf_documentation):
11700 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
11701 src to etc.
11702
11703 * ChangeLog.10: Add mistakenly removed entry.
11704
117052008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
11706
11707 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
11708
117092008-02-01 Miles Bader <miles@gnu.org>
11710
11711 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
11712 Add extra args to FACE_FOR_CHAR.
11713
117142008-02-01 Kenichi Handa <handa@m17n.org>
11715
11716 * keymap.c (where_is_internal_1): If key is a cons, store the copy
11717 in sequence.
11718
11719 * chartab.c (map_sub_char_table, map_char_table): If the range
11720 contains just one character, call the function with that character
11721 even if the depth is not 3.
11722
117232008-02-01 Jason Rumney <jasonr@gnu.org>
11724
11725 * w32font.c (w32font_text_extents): Calculate metrics for the
11726 whole string.
11727
117282008-02-01 Jason Rumney <jasonr@gnu.org>
11729
11730 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
11731
117322008-02-01 Jason Rumney <jasonr@gnu.org>
11733
11734 * w32term.c (x_set_glyph_string_clipping): Use
11735 get_glyph_string_clip_rects.
11736 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
11737 Adjust for the change of struct glyph_string.
11738
11739 * w32font.c (w32font_draw): Do clipping here.
11740
117412008-02-01 Kenichi Handa <handa@m17n.org>
11742
11743 * xftfont.c (xftfont_draw): Adjust for the change of struct
11744 glyph_string.
11745
11746 * xterm.c (x_set_glyph_string_clipping): Use
11747 get_glyph_string_clip_rects.
11748 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
11749 Adjust for the change of struct glyph_string.
11750
11751 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
11752 the resulting clip(s}.
11753 (expose_overlaps): Add arg r. Change callers. Set it to
11754 row->clip temporarily.
11755 (expose_window): Redraw rows overlapping the exposed area.
11756
11757 * dispextern.h (struct glyph_row): New member clip.
11758 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
11759 clip_height, new member clip, and num_clips.
11760
117612008-02-01 Kenichi Handa <handa@m17n.org>
11762
11763 * data.c (Fchar_or_string_p): Fix docstring.
11764
117652008-02-01 Kenichi Handa <handa@m17n.org>
11766
11767 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
11768 create a temporary XftDraw object.
11769
117702008-02-01 Kenichi Handa <handa@m17n.org>
11771
11772 * font.c (Ffontp): Fix docstring.
11773
11774 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
11775 strong evidence of ISO-2022.
11776
117772008-02-01 Kenichi Handa <handa@m17n.org>
11778
11779 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
11780 SYNTAX_ENTRY_FOLLOW_PARENT.
11781
117822008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
11783
11784 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
11785 its type.
11786 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
11787 Update to the new type of weak_hash_tables and next_weak.
11788
11789 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
11790 a plain C pointer to Lisp_Hash_Table.
11791
11792 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
11793 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
11794 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
11795 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
11796 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
11797 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
11798 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
11799 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
11800 (GC_EQ): Remove since they've been identical to their non-GC_
11801 alter-egos ever since the markbit was eradicated.
11802
11803 * alloc.c:
11804 * buffer.c:
11805 * buffer.h:
11806 * data.c:
11807 * fileio.c:
11808 * filelock.c:
11809 * fns.c:
11810 * frame.h:
11811 * lisp.h:
11812 * macterm.c:
11813 * print.c:
11814 * process.c:
11815 * w32fns.c:
11816 * w32menu.c:
11817 * w32term.c:
11818 * xfns.c:
11819 * xmenu.c:
11820 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
11821
118222008-02-01 Kenichi Handa <handa@m17n.org>
11823
11824 * chartab.c (map_sub_char_table): Make it work for the top-level
11825 char-table. Fix handling of parent char-table.
11826 (map_char_table): Adjust for the above change.
11827
118282008-02-01 Jason Rumney <jasonr@gnu.org>
11829
11830 * w32font.c (Qgdi): Rename from Qw32.
11831
118322008-02-01 Jason Rumney <jasonr@gnu.org>
11833
11834 * w32bdf.c (get_quoted_string): Make function static.
11835
118362008-02-01 Kenichi Handa <handa@m17n.org>
11837
11838 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
11839 bigger ascent and descent than those of the font, use them as
11840 font's ascent and descent.
11841
118422008-02-01 Kenichi Handa <handa@m17n.org>
11843
11844 * Makefile.in (${lispsource}international/charprop.el): Move this
11845 target within "#ifdef HAVE_UNIDATA" and "#endif".
11846
118472008-02-01 Kenichi Handa <handa@m17n.org>
11848
11849 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
11850 (shortlisp): Add ../lisp/language/tai-viet.el.
11851
118522008-02-01 Ulrich Mueller <ulm@gentoo.org>
11853
11854 * Makefile.in (${lispsource}international/charprop.el): Depend on
11855 temacs${EXEEXT}.
11856
118572008-02-01 Jason Rumney <jasonr@gnu.org>
11858
11859 * w32font.c (w32font_close): Delete the GDI font object.
11860
11861 * w32menu.c: Include character.h.
11862
11863 * w32proc.c: Likewise.
11864
11865 * w32select.c: Likewise.
11866
11867 * makefile.w32-in (w32proc.o): Depend on character.h.
11868
118692008-02-01 Jason Rumney <jasonr@gnu.org>
11870
11871 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
11872
11873 * w32menu.c (syms_of_w32menu): Likewise.
11874
11875 * w32proc.c (syms_of_ntproc): Likewise.
11876
11877 * w32select.c (syms_of_w32select): Likewise.
11878
11879 * w32term.c (syms_of_w32term): Likewise.
11880
118812008-02-01 Jason Rumney <jasonr@gnu.org>
11882
11883 * w32font.c (w32font_draw): Delete brush after using it.
11884
118852008-02-01 Jason Rumney <jasonr@gnu.org>
11886
11887 * w32font.c (w32font_open): Don't set font_idx.
11888 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
11889 to font settings.
11890 (w32font_draw): Fill background explicitly.
11891
118922008-02-01 Jason Rumney <jasonr@gnu.org>
11893
11894 * w32term.c (w32_initialize): Don't call w32font_initialize.
11895
11896 * w32font.c (w32font_info): Remove subranges.
11897 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
11898 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
11899 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
11900 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
11901 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
11902 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
11903 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
11904 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
11905 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
11906 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
11907 New symbols.
11908 (font_callback_data): New struct.
11909 (w32font_list, w32font_match): Use it.
11910 (w32font_open): Don't populate subranges.
11911 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
11912 (w32font_encode_char): Always return unicode code-point as-is.
11913 (w32font_text_extents): Supply a transformation matrix to
11914 GetGlyphOutline. Never look up by glyph index. Avoid looping
11915 twice. Use unicode version of GetTexExtentPoint32 instead of
11916 glyph index version.
11917 (set_fonts_frame): Remove.
11918 (w32_enumfont_pattern_entity): Add frame parameter, use it to
11919 set frame parameter. Use backward compatible fake foundries.
11920 Save generic family in extra slot under QCfamily. Make width slot
11921 constant. Save QCspacing value. Save list of scripts instead of
11922 binary subranges.
11923 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
11924 (add_font_entity_to_list): Use font_callback_data struct. Filter
11925 unwanted fonts.
11926 (add_one_font_entity_to_list): Use font_callback_data struct.
11927 (w32_registry): Default to iso10646_1.
11928 (fill_in_logfont): Use dpi from extra slot. Don't bother with
11929 string font registries. Don't fill in font name if it is a generic
11930 family name, fill family instead. Use spacing, family and script
11931 extra info to fill pitch, family and charset fields.
11932 (list_all_matching_fonts): Use font_callback_data struct.
11933 (unicode_range_for_char): Remove.
11934 (font_supported_scripts): New function.
11935 (w32font_initialize): Remove.
11936 (syms_of_w32font): Update which symbols are defined.
11937
119382008-02-01 Jason Rumney <jasonr@gnu.org>
11939
11940 * font.c (font_pixel_size): Reverse assq_no_quit args.
11941
11942 * w32term.h (FONT_WIDTH): Report max width, not average.
11943 (FONT_MAX_WIDTH): Remove.
11944 (FONT_AVG_WIDTH): New macro.
11945
11946 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
11947 redefinition of FONT_WIDTH.
11948
11949 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
11950 (w32_cache_char_metrics): Use FONT_WIDTH.
11951
11952 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
11953
119542008-02-01 Jason Rumney <jasonr@gnu.org>
11955
11956 * w32font.c (w32font_open): Make lfHeight negative.
11957
11958 * w32fns.c (x_default_font_parameter): Use new style font name.
11959 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
11960
119612008-02-01 Jason Rumney <jasonr@gnu.org>
11962
11963 * w32font.c (QCsubranges): New symbol.
11964 (w32font_open, w32font_has_char): Get subranges from subproperty
11965 of extra.
11966 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
11967 (syms_of_w32font): Define :subranges symbol.
11968
11969 * font.c (font_put_extra): Expose externally.
11970
11971 * font.h (font_put_extra): Move declaration from font.c.
11972
11973 * font.c (Ffont_get): Use font driver to determine otf capability.
11974 (adjust_anchor): Check if driver defines anchor_point before using.
11975
11976 * w32font.c (w32font_open): Handle size, height and pixel_size better.
11977 (w32font_draw): Use options.
11978 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
11979 Fix detection of truetype fonts.
11980 (registry_to_w32_charset): Handle charsets other than iso8859-1
11981 expressed as lisp symbols.
11982 (w32_registry): Express charset as lisp symbol.
11983 (fill_in_logfont): Reverse pixel and point height logic.
11984 Don't set width here. Set quality to default.
11985
11986 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
11987 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
11988
11989 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
11990 Remove redundant loop and allocation.
11991
11992 * makefile.w32-in (font.o, w32font.o): New objects.
11993 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
11994 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
11995
11996 * xdisp.c (fill_composite_glyph_string): Make the first arg to
11997 STORE_XCHARB a valid l-value.
11998
11999 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
12000 calculations for non-Truetype fonts.
12001 (x_draw_glyph_string): Sync with xterm.c.
12002 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
12003 Remove redundant code.
12004 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
12005
12006 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
12007 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
12008
12009 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
12010 (x_to_w32_charset, w32_to_x_charset): Expose externally.
12011
12012 * w32font.c: New file for w32 font backend.
12013
120142008-02-01 Kenichi Handa <handa@m17n.org>
12015
12016 * term.c: Don't include "buffer.h" twice.
12017
120182008-02-01 Kenichi Handa <handa@m17n.org>
12019
12020 * character.c (Funibyte_string): New function.
12021 (syms_of_character): Defsubr it.
12022
120232008-02-01 Jason Rumney <jasonr@gnu.org>
12024
12025 * w32term.c [USE_FONT_BACKEND]:
12026 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
12027 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
12028 (x_draw_glyph_string, x_draw_glyph_string_foreground)
12029 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
12030 (x_free_frame_resources): Sync with xterm.c.
12031
120322008-02-01 Andreas Schwab <schwab@suse.de>
12033
12034 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
12035 char-table size.
12036
120372008-02-01 Kenichi Handa <handa@m17n.org>
12038
12039 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
12040
120412008-02-01 Kenichi Handa <handa@m17n.org>
12042
12043 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
12044 font_otf_gpos, add font_drive_otf.
12045
12046 * fontset.c (fontset_find_font): Pay attention to font size
12047 specified for a font.
12048 (reorder_font_vector): Check contents of font_def.
12049
12050 * font.c (struct otf_list): Delete it.
12051 (otf_list): Make it a lisp variable.
12052 (otf_open): Use lispy otf_list.
12053 (generate_otf_features): Rename from parse_gsub_gpos_spec.
12054 (check_otf_features): New function.
12055 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
12056 New functions.
12057 (font_drive_otf): New function merging font_otf_gsub and
12058 font_otf_gpos.
12059 (font_open_for_lface): New arg spec. Change argument order.
12060 (font_load_for_face): Adjust for the change of font_open_for_lface.
12061 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
12062 Ffont_otf_gpos.
12063 (syms_of_font): Staticpro otf_list. Delete defsubr of
12064 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
12065
12066 * xfaces.c (set_font_frame_param): Adjust for the change of
12067 font_open_for_lface.
12068
12069 * font.h (font_open_for_lface): Adjust prototype.
12070 (struct font_driver): Delete members otf_gsub and otf_gpos, add
12071 member otf_drive.
12072 (font_otf_gsub, font_otf_gpos): Delete externs.
12073 (font_drive_otf): Extern it.
12074
120752008-02-01 Kenichi Handa <handa@m17n.org>
12076
12077 * font.c (font_at): If the window W is not on a window system,
12078 return Qnil.
12079
12080 * coding.c (produce_chars, encode_coding): Don't call
12081 insert_from_gap if no characters to produce.
12082
120832008-02-01 Kenichi Handa <handa@m17n.org>
12084
12085 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
12086 Fclear_face_cache.
12087
12088 * xfaces.c (face_for_font): Check also face->font==font->font.font.
12089
120902008-02-01 Miles Bader <miles@gnu.org>
12091
12092 * emacs.c (main): Change default value of `enable_font_backend' to 1.
12093 Parse "--disable-font-backend" option.
12094 (standard_args): Add "--disable-font-backend" option.
12095
120962008-02-01 Kenichi Handa <handa@m17n.org>
12097
12098 * fontset.c (fontset_find_font): New function.
12099 (fontset_font): Use fontset_find_font.
12100 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
12101 Register the specified font for all Latin characters.
12102 (new_fontset_from_font): Register the specified font for all Latin
12103 characters.
12104 (dump_fontset): For a realized fontset, include the base fontset
12105 name in the returned vector.
12106
121072008-02-01 Kenichi Handa <handa@m17n.org>
12108
12109 * character.h (CHAR_STRING): Cast C to unsigned on calling
12110 char_string.
12111
12112 * character.c (char_string): Type of arg C changed to unsigned.
12113 Signal an error if C is an invalid character code.
12114
12115 * editfns.c (general_insert_function, Fchar_to_string):
12116 Use CHARACTERP, not INTEGERP.
12117
121182008-02-01 Kenichi Handa <handa@m17n.org>
12119
12120 * character.h (MIN_MULTIBYTE_LEADING_CODE)
12121 (MAX_MULTIBYTE_LEADING_CODE): New macros.
12122
12123 * regex.c (analyse_first): Fix for multibyte characters in "case
12124 charset:" and "case categoryspec:".
12125
121262008-02-01 Andreas Schwab <schwab@suse.de>
12127
12128 * Makefile.in (LIBES): Move standard libraries to the end.
12129
121302008-02-01 Kenichi Handa <handa@m17n.org>
12131
12132 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
12133 nonzero, don't shrink the buffer nextb.
12134
12135 * buffer.h (struct buffer_text): New member inhibit_shrinking.
12136
12137 * coding.c (coding_alloc_by_making_gap): New arg offset.
12138 (alloc_destination): Call coding_alloc_by_making_gap with the arg
12139 offset.
12140 (decode_coding_iso_2022): Update coding->safe_charsets.
12141 (decode_coding_gap): Temporarily set
12142 current_buffer->text->inhibit_shrinking to 1.
12143
121442008-02-01 Kenichi Handa <handa@m17n.org>
12145
12146 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
12147 indexing into elements of s->cmp and s->char2b.
12148
121492008-02-01 Juanma Barranquero <lekktu@gmail.com>
12150
12151 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
12152
121532008-02-01 Kenichi Handa <handa@m17n.org>
12154
12155 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
12156 target_multibyte instead of multibyte.
12157 (re_match_2_internal): Call bcmp_translate with target_multibyte.
12158 (bcmp_translate): Change the argument name from multibyte to
12159 target_multibyte.
12160
121612008-02-01 Kenichi Handa <handa@m17n.org>
12162
12163 These changes are to compile a regexp into a pattern that can be
12164 used both for multibyte and unibyte targets.
12165
12166 * Makefile.in (search.o): Depend on charset.h.
12167
12168 * character.c (multibyte_char_to_unibyte_safe): New function.
12169
12170 * search.c: Include "charset.h".
12171 (compile_pattern_1): Delete argument multibyte. Don't set
12172 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
12173 (compile_pattern): Don't compare cp->buf.target_multibyte.
12174 Compare cp->buf.charset_unibyte.
12175 (compile_pattern): Set cp->buf.target_multibyte.
12176
12177 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
12178
12179 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
12180
12181 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
12182 multibyte. Change callers.
12183 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
12184 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
12185 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
12186 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
12187 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
12188 (regex_compile): Make the compiled pattern usable both for
12189 multibyte and unibyte targets.
12190 (analyse_first): Make the fastmap usable both for multibyte and
12191 unibyte targets.
12192 (TRANSLATE_VIA_MULTIBYTE): Delete.
12193 (re_match_2_internal): Pay attention to the case that the
12194 multibyteness of bufp and target may be different.
12195
121962008-02-01 Kenichi Handa <handa@m17n.org>
12197
12198 * xdisp.c (x_produce_glyphs): When a font is not found, make the
12199 empty box occupy at least one column width.
12200
122012008-02-01 Miles Bader <miles@gnu.org>
12202
12203 * Makefile.in: Remove redundant HAVE_XFT clause.
12204
122052008-02-01 Kenichi Handa <handa@m17n.org>
12206
12207 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
12208
122092008-02-01 Kenichi Handa <handa@m17n.org>
12210
12211 * fontset.c (Finternal_char_font): Fix for the case of POSITION
12212 being nil.
12213
122142008-02-01 Kenichi Handa <handa@m17n.org>
12215
12216 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
12217
122182008-02-01 Kenichi Handa <handa@m17n.org>
12219
12220 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
12221
122222008-02-01 Kenichi Handa <handa@m17n.org>
12223
12224 * search.c (simple_search): Fix previous change.
12225
122262008-02-01 Kenichi Handa <handa@m17n.org>
12227
12228 * xftfont.c (ftfont_font_format): Extern declaration.
12229
12230 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
12231
12232 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
12233 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
12234
12235 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
12236 (ftfont_font_format): Fix previous change.
12237
12238 * font.h (Ffont_xlfd_name): EXFUN it.
12239
12240 * font.c (font_parse_xlfd): Fix the array size of `f'.
12241 (register_font_driver): Use EQ to compare driver->type.
12242
12243 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
12244 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
12245 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
12246
122472008-02-01 Kenichi Handa <handa@m17n.org>
12248
12249 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
12250 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
12251
122522008-02-01 Kenichi Handa <handa@m17n.org>
12253
12254 * xfont.c (xfont_open): Set font->format.
12255
12256 * xftfont.c (xftfont_open): Set font->format.
12257
12258 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
12259 (ftfont_list): Include FC_FONTFORMAT in FcObject.
12260 (ftfont_open): Set font->format.
12261 (ftfont_font_format): New function.
12262
12263 * font.h (struct font): New member format.
12264
12265 * font.c (Qopentype): New variable.
12266 (syms_of_font): Defsym it.
12267 (Fquery_font): Change the format of the last element of the return
12268 value.
12269
122702008-02-01 Kenichi Handa <handa@m17n.org>
12271
12272 * xfns.c (xic_create_xfontset): Try the default fontset name as a
12273 last resort.
12274
122752008-02-01 Kenichi Handa <handa@m17n.org>
12276
12277 * coding.c (detect_coding_charset): Fix detection of multi-byte
12278 charset.
12279
122802008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
12281
12282 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
12283
122842008-02-01 Kenichi Handa <handa@m17n.org>
12285
12286 * xdisp.c (get_next_display_element): Set it->face_id for the
12287 first component of a composition.
12288 (x_produce_glyphs): Check if the font is changed or not for composition.
12289
122902008-02-01 Kenichi Handa <handa@m17n.org>
12291
12292 * fontset.c (Qlatin): New variable.
12293 (syms_of_fontset): Define it as a lisp symbol.
12294 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
12295
122962008-02-01 Kenichi Handa <handa@m17n.org>
12297
12298 * font.c (font_unparse_fcname): Pay attention to the case that
12299 some of font property is a null string.
12300
123012008-02-01 Kenichi Handa <handa@m17n.org>
12302
12303 * term.c: Include "composite.h".
12304 (encode_terminal_code): Output all components of composition.
12305 Check the size of encode_terminal_src.
12306 (produce_glyphs): For composition, call produce_composite_glyph.
12307 (append_composite_glyph, produce_composite_glyph): New functions.
12308
12309 * xdisp.c (x_produce_glyphs): In handling composition, if a font
12310 is not found, get font_info from the current ascii face.
12311
123122008-02-01 Kenichi Handa <handa@m17n.org>
12313
12314 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
12315 buffer-file-name to Qnil before calling insert_from_buffer.
12316
12317 * font.c (font_unparse_fcname): Pay attention to the case that
12318 foundry is a null string.
12319
123202008-02-01 Kenichi Handa <handa@m17n.org>
12321
12322 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
12323
12324 * font.c (Qunicode_sip): New variable.
12325 (syms_of_font): Declare it as a Lisp symbol.
12326
12327 * font.h (Qunicode_sip): Extern it.
12328
123292008-02-01 Kenichi Handa <handa@m17n.org>
12330
12331 * composite.c (get_composition_id): Pay attention to TAB component.
12332
12333 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
12334 TAB. Adjust for the change of s->char2b which always points to
12335 the first element of allocated memory.
12336
12337 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
12338
12339 * xdisp.c (handle_composition_prop): Set it->c to the first
12340 non-TAB component.
12341 (fill_composite_glyph_string): Change argument.
12342 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
12343 (x_produce_glyphs): Fix handling of left/right padding.
12344
123452008-02-01 Kenichi Handa <handa@m17n.org>
12346
12347 * coding.c (detect_coding_system): Fix for handling off
12348 inhibit_iso_escape_detection. Fix for the case that no coding
12349 system is defined for a specific coding category.
12350
123512008-02-01 Kenichi Handa <handa@m17n.org>
12352
12353 * font.c (font_matching_entity): Delete unused local var.
12354
12355 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
12356 opening a font.
12357
12358 * fileio.c (Finsert_file_contents): On recovering a file, assume
12359 Unix-like eol.
12360 (choose_write_coding_system): On auto-saving a file, force
12361 Unix-like eol.
12362
12363 * coding.c (setup_coding_system): Fix setting of
12364 coding->common_flags based on eol_type.
12365 (coding_inherit_eol_type): If PARENT is not nil, be sure to
12366 inherit from it.
12367
123682008-02-01 Kenichi Handa <handa@m17n.org>
12369
12370 * alloc.c (NSTATICS): Increas to 0x600.
12371
123722008-02-01 Kenichi Handa <handa@m17n.org>
12373
12374 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
12375 (ftfont_list): Don't check :name property.
12376 (ftfont_match): New function.
12377 (ftfont_pattern_entity): If the pattern doesn't contain
12378 FC_SPACING, don't assume FC_MONO.
12379
12380 * font.h (struct font_driver): New member `match'.
12381 (font_update_drivers): Adjust prototype.
12382
12383 * font.c (font_parse_fcname, font_parse_name): Don't change :name
12384 property of FONT.
12385 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
12386 them unconditionally.
12387 (font_matching_entity): New function.
12388 (font_open_by_name): Try font_matching_entity if exact match is
12389 not found.
12390 (font_update_drivers): Delete the arg FONT. Return a list of
12391 actually used backends. Don't free faces, font caches here.
12392 Don't store data in frame parameters. Don't call x_set_font.
12393 (Ffont_spec): Store :name property as is.
12394 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
12395 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
12396 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
12397 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
12398 Call font->driver->otf_gsub instead of font_otf_gsub.
12399
12400 * frame.c (x_set_font_backend): Do more works that were done in
12401 font_update_drivers before.
12402
12403 * xfont.c (xfont_match): New function.
12404 (xfont_driver): Set xfont_driver.match to xfont_match.
12405 (xfont_draw): Set font in GC if necessary.
12406
12407 * ftxfont.c (ftxfont_match): New function.
12408 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
12409
12410 * xftfont.c (xftfont_match): New function.
12411 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
12412
124132008-02-01 Kenichi Handa <handa@m17n.org>
12414
12415 * font.h (struct font): New member scalable.
12416 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
12417 (font_otf_gsub): Adjust prototype.
12418
12419 * font.c (font_otf_capability): Fix handling of the default langsys.
12420 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
12421 Check the contents of SPEC.
12422 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
12423 (check_gstring): New function.
12424 (REPLACEMENT_CHARACTER): New macro.
12425 (font_otf_gsub): New arg alternate_subst. Be sure to set all
12426 glyph codes of GSTRING.
12427 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
12428 (font_prepare_composition): Set cmp->glyph_len.
12429 (font_open_entity): Set font->scalable.
12430 (Ffont_get): Handle :otf property.
12431 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
12432 functions.
12433 (Fquery_font): Use font->font.full_name.
12434 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
12435 Sfont_otf_alternates.
12436
12437 * ftfont.c (ftfont_open): Set font->font.full_name and
12438 font->font.name properly. Fix calculation of font->font.height
12439 and font->min_width.
12440
12441 * ftxfont.c (ftxfont_create_gcs): New function.
12442 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
12443 (ftxfont_draw_backgrond): Fix filling region.
12444 (ftxfont_default_fid): New function.
12445 (ftxfont_open): Set xfont->fid to the return value of
12446 ftxfont_default_fid.
12447 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
12448 (ftxfont_done_face): Free only GCs that are created by
12449 ftxfont_create_gcs.
12450 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
12451
12452 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
12453 Clip to src->width, etc (not src->clip_XXX).
12454
12455 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
12456 FontBackend frame parameter.
12457
124582008-02-01 Kenichi Handa <handa@m17n.org>
12459
12460 * font.h (struct font_driver_list): New member `on'.
12461 (Fclear_font_cache): EXFUN it.
12462 (font_update_drivers): Extern it.
12463
12464 * font.c (font_unparse_fcname): Fix typo (swidth->width).
12465 (font_list_entities): Check driver_list->on.
12466 (register_font_driver): Initalize `on' member to 0.
12467 (font_update_drivers): New function.
12468 (Fclear_font_cache): Check driver_list->on.
12469
12470 * frame.h (Qfont_backend): Extern it.
12471 (x_set_font_backend): Extern it.
12472
12473 * frame.c (Qfont_backend): New variable.
12474 (frame_parms): New element for font-backend.
12475 (x_set_font_backend): New function.
12476
12477 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
12478 FontBackend frame parameter.
12479 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
12480 x_set_font_backend.
12481
12482 * xfont.c (xfont_list): Don't try listing by :name property if the
12483 name is not for XLFD.
12484
124852008-02-01 Kenichi Handa <handa@m17n.org>
12486
12487 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
12488 (LGLYPH_SET_TO): New macros.
12489 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
12490 element of G is vector or not.
12491 (font_at): Extern it.
12492
12493 * font.c: Include window.h.
12494 (font_lispy_object): New function.
12495 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
12496 end of valid glyph.
12497 (font_close_object): Fix getting (struct font *).
12498 (font_at): New function.
12499 (Ffont_get): If FONT is a font-object, get entity from it.
12500 (Ffont_make_gstring): Initialize elements of glyphs with nil.
12501 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
12502 range check.
12503 (Ffont_at): New function.
12504 (syms_of_font): Defsubr Sfont_at.
12505
12506 * xdisp.c (it_props): Move the entry for Qauto_composed to just
12507 before the entry for Qcomposition.
12508 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
12509 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
12510 the font in gstring.
12511 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
12512 LGLYPH_FORM (g) to detect the end of valid glyph.
12513 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
12514 we are composing with gstring.
12515
12516 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
12517 Check if adjustment is vector or not.
12518
12519 * Makefile.in (font.o): Make it depends on window.h.
12520
125212008-02-01 Kenichi Handa <handa@m17n.org>
12522
12523 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
12524 adjustment is vector or not.
12525
125262008-02-01 Miles Bader <miles@gnu.org>
12527
12528 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
12529
125302008-02-01 Kenichi Handa <handa@m17n.org>
12531
12532 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
12533 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
12534 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
12535
12536 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
12537 (DEVICE_DELTA): Fix typo.
12538 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
12539 LGLYPH format.
12540
12541 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
12542 the change of LGLYPH format.
12543
125442008-02-01 Kenichi Handa <handa@m17n.org>
12545
12546 * ftfont.c (ftfont_list): Fix typo.
12547 (ftfont_build_basic_charsets): Don't include letters with diacritics.
12548
125492008-02-01 Jan Djärv <jan.h.d@swipnet.se>
12550
12551 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
12552
12553 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
12554 xftface_info is non-NULL.
12555
125562008-02-01 Jan Djärv <jan.h.d@swipnet.se>
12557
12558 * ftfont.c (ftfont_list): Move misplaced #endif.
12559
125602008-02-01 Kenichi Handa <handa@m17n.org>
12561
12562 * ftfont.c (ftfont_list): Pay attention to the case that
12563 FC_CAPABILITY is not defined.
12564
125652008-02-01 Kenichi Handa <handa@m17n.org>
12566
12567 * xftfont.c (xftfont_open): Set charset related members to -1.
12568
12569 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
12570 QCname.
12571 (ftfont_open): Set charset related members to -1.
12572
12573 * fontset.c (Votf_script_alist): New variable.
12574 (syms_of_fontset): Initialize it.
12575 (fontset_font): Delete unused variable.
12576
12577 * fontset.h (Votf_script_alist): Extern it.
12578
12579 * font.c (font_find_for_lface): Optimize code.
12580
12581 * font.h (font_close_object, font_merge_old_spec): Extern them.
12582
125832008-02-01 Kenichi Handa <handa@m17n.org>
12584
12585 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
12586 (syms_of_font): Initialize them.
12587 (font_pixel_size): Allow float value in dpi.
12588 (font_prop_validate_type): Delete.
12589 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
12590 Change caller.
12591 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
12592 (font_prop_validate_extra): Delete.
12593 (font_prop_validate_spacing): New function.
12594 (font_property_table): Add elements for all known properties.
12595 (get_font_prop_index): Rename from check_font_prop_name. New
12596 argument FROM. Change caller.
12597 (font_prop_validate): Validate all known properties.
12598 (font_put_extra): Delete argument force. Change caller.
12599 (font_expand_wildcards): Make it static. Fix the way of shrinking
12600 the possible range.
12601 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
12602 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
12603 Change caller.
12604 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
12605 (font_parse_fcname): Delete argument merge. Fix parsing of point
12606 size. Don't validate properties values here. Change caller.
12607 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
12608 (font_open_by_name): Delete unused variable.
12609 (Ffont_spec): Likewise. Validate property values.
12610 (Ffont_match_p): New function.
12611
12612 * font.h (QCscalable): Extern it.
12613 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
12614
12615 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
12616
12617 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
12618 (xfont_list_pattern): New function.
12619 (xfont_list): Use xfont_list_pattern.
12620
126212008-02-01 Kenichi Handa <handa@m17n.org>
12622
12623 * font.h (Flist_fonts): EXFUN it.
12624
126252008-02-01 Jason Rumney <jasonr@gnu.org>
12626
12627 * w32term.c (w32_initialize): Add back smoothing_type and
12628 smoothing_enabled definitions.
12629
126302008-02-01 Kenichi Handa <handa@m17n.org>
12631
12632 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
12633 s->face->font on determining underline position.
12634
126352008-02-01 Kenichi Handa <handa@m17n.org>
12636
12637 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
12638 (font_has_char): Accept font-object too.
12639 (font_find_for_lface): Try at first with a size specified in face.
12640
126412008-02-01 Kenichi Handa <handa@m17n.org>
12642
12643 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
12644 font_open_by_name.
12645
126462008-02-01 Kenichi Handa <handa@m17n.org>
12647
12648 * font.h (QCspacing, QCdpi): Extern them.
12649 (enum font_spacing): New enum.
12650 (FONT_PIXEL_SIZE_QUANTUM): New macro.
12651
12652 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
12653 (QCspacing, QCdpi): New variables.
12654 (syms_of_font): Initialize them.
12655 (font_pixel_size): New function.
12656 (font_put_extra): New function.
12657 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
12658 in FONT_EXTRA.
12659 (font_parse_fcname): Handle enumerated values (e.g. bold).
12660 Fix handling font size. Add QCname property that contains only
12661 unknown properties.
12662 (font_score): Change argument. Change caller. Pay attention to
12663 FONT_PIXEL_SIZE_QUANTUM.
12664 (font_sort_entites, font_list_entities, font_find_for_lface)
12665 (font_open_for_lface, font_open_by_name): Fix handling of font size.
12666 (Ffont_spec): Add QCname property that contains only unknown properties.
12667
12668 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
12669 include weight in listing pattern, instead check weight of each
12670 listed font. Don't include scalable in pattern. Pay attention to
12671 FONT_PIXEL_SIZE_QUANTUM.
12672
126732008-02-01 Kenichi Handa <handa@m17n.org>
12674
12675 * font.c (font_parse_fcname): Fix parsing of point-size.
12676 (font_unparse_fcname): Produce symbolic names for style properties.
12677 (font_list_entities): Handle float size correctly.
12678 (font_open_by_name): Prefer `normal' property values if the name
12679 doesn't specify them.
12680
12681 * fontset.c (Finternal_char_font): Use font_get_name, not
12682 Ffont_xlfd_name.
12683
12684 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
12685 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
12686 pattern. Don't force scalable.
12687
12688 * xftfont.c (xftfont_open): For generating a name, start from
12689 96-byte buffer.
12690
126912008-02-01 Jan Djärv <jan.h.d@swipnet.se>
12692
12693 * frame.h (x_new_fontset2): Fix prototype.
12694
126952008-02-01 Kenichi Handa <handa@m17n.org>
12696
12697 * font.h (struct font_driver): Delete member parse_name.
12698 (font_match_p, font_get_spec, font_parse_fcname)
12699 (font_unparse_fcname): Extern them.
12700 (font_get_name): Adjust prototype.
12701
12702 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
12703 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
12704 (font_expand_wildcards): Fix handling ENCODING field. Avoid
12705 unnecessary checks for weight, slant, and swidth.
12706 (font_parse_fcname): New function.
12707 (font_unparse_fcname): New function.
12708 (font_parse_name): New function.
12709 (font_match_p): New function.
12710 (font_get_name): Change return value to Lisp string.
12711 (font_get_spec): New function.
12712 (Qunspecified, Qignore_defface): Don't extern them.
12713 (font_find_for_lface): Assume that LFACE is fully specified.
12714 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
12715 object, use it for FACE.
12716 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
12717 driver->parse_name.
12718 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
12719
12720 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
12721 prototype.
12722
12723 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
12724 argument F. Don't call Fnew_fontset. Instead, directly call
12725 make_fontset.
12726
12727 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
12728
12729 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
12730 of x_new_fontset2.
12731
12732 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
12733 (Qsans__serif): New variables.
12734 (ftfont_generic_family_list): New variable.
12735 (syms_of_ftfont): Initialize the above variables.
12736 (ftfont_pattern_entity): Delete argument NAME.
12737 (ftfont_list_generic_family): New function.
12738 (ftfont_parse_name): Delete this function.
12739 (ftfont_list): Try generic family only when FcFontList found no font.
12740 (ftfont_list_family): Fix args to FcObjectSetBuild.
12741
12742 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
12743 object in attrs[LFACE_FONT_INDEX].
12744 (set_lface_from_font_name): Cancel all changes for font-backend.
12745 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
12746 function.
12747 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
12748 font object in QCfont attribute.
12749 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
12750 (realize_default_face) [USE_FONT_BACKEND]: Call
12751 set_lface_from_font_and_fontset.
12752
12753 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
12754 "fixed", and signal error here if no suitable font was found.
12755
12756 * xfont.c (xfont_parse_name): Delete this function.
12757
12758 * xftfont.c (xftfont_open): Change coding style of error
12759 handling. Generate fontconfig's fontname pattern.
12760
12761 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
12762 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
12763
12764 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
12765 Both args FONTSET and FONT_OBJECT must be existing ones.
12766
127672008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12768
12769 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
12770
127712008-02-01 Kenichi Handa <handa@m17n.org>
12772
12773 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
12774
12775 * font.h (struct font): Fix typo.
12776
12777 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
12778 XLFD_XXX_INDEX.
12779 (enum xlfd_field_mask): New enum.
12780 (intern_font_field): Changed argument. Change caller. If digits
12781 are followed by non-digits, return a symbol.
12782 (font_expand_wildcards): New function.
12783 (font_parse_xlfd): Fix wildcard handling.
12784 (Ffont_spec): If :name is specified, reflect the info in the other
12785 properties.
12786
12787 * ftfont.c (ftfont_pattern_entity): Fix typo.
12788 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
12789 locale.
12790
127912008-02-01 Kenichi Handa <handa@m17n.org>
12792
12793 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
12794
12795 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
12796 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
12797 registry doesn't specify encoding part.
12798 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
12799 (font_open_by_name): At first try parsing the name.
12800 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
12801 as Lisp symbols.
12802
12803 * fontset.c (reorder_font_vector): Pay attention to the case that
12804 the 3rd element of font_def is nil.
12805 (fontset_font): For the default fontset, append one more fontset
12806 elements for a script-based font specification. Don't add script
12807 attribute on finding a font.
12808 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
12809 font name.
12810 (fontset_ascii_font): If a font can't be opened, return nil.
12811
12812 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
12813 (ftfont_pattern_entity): New function.
12814 (ftfont_get_cache): Assume that freetype_font_cache is already
12815 initialized.
12816 (ftfont_list): Handle the case that a file is specified in font
12817 name. Use ftfont_pattern_entity to generate entities.
12818 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
12819 (syms_of_ftfont): Initialize freetype_font_cache.
12820
12821 * xftfont.c (xftfont_open): Make the font name fontconfig's
12822 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
12823 (xftfont_close): Free font->font.name if not NULL.
12824
12825 * xfont.c (xfont_list): If script is specified for a font, return
12826 null_vector.
12827 (xfont_list_family): Declare argument type.
12828
12829 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
12830 name, set LFACE_FONT (lface) to nil.
12831
12832 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
12833 return Qnil.
12834
128352008-02-01 Kenichi Handa <handa@m17n.org>
12836
12837 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
12838 (standard_args): Add "-enable-font-backend".
12839
128402008-02-01 Kenichi Handa <handa@m17n.org>
12841
12842 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
12843 (struct xftdraw_list, xftdraw_list): Delete them.
12844 (register_xftdraw, check_xftdraw): Delete them.
12845 (xftfont_prepare_face): Don't call register_xftdraw.
12846 (xftfont_done_face): Don't call check_xftdraw.
12847 (xftfont_draw): Get background color only when with_background is
12848 nonzero.
12849
12850 * xfont.c (xfont_encode_char): Fix calculation of char2b.
12851
128522008-02-01 Kenichi Handa <handa@m17n.org>
12853
12854 These changes are for the new font handling codes.
12855
12856 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
12857 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
12858 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
12859 (FONTSRC, FONTOBJ): New variables.
12860 (obj): Add $(FONTOBJ).
12861 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
12862 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
12863 @LIBOTF_LIBS@.
12864 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
12865 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
12866
12867 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
12868
12869 * character.h (Vscript_representative_chars): Extern it.
12870
12871 * character.c (Vscript_representative_chars): New variable.
12872 (syms_of_character): Declare it as a Lisp variable.
12873
12874 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
12875 enable_font_backend is nonzero, accept the composition method
12876 COMPOSITION_WITH_GLYPH_STRING.
12877
12878 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
12879 enumeration COMPOSITION_WITH_GLYPH_STRING.
12880
12881 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
12882 members clip_x, clip_y, clip_width, and clip_height.
12883 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
12884
12885 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
12886 --enable-font-backend. Call syms_of_font.
12887
12888 * fns.c (assoc_no_quit): New function.
12889
12890 * fontset.h (FONT_INFO_FROM_FACE): New macro.
12891 (face_for_font, new_fontset_from_font)
12892 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
12893
12894 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
12895 (fontset_font, fontset_ascii, face_for_char)
12896 (make_fontset_for_ascii_face, Ffont_info)
12897 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
12898 is nonzero, use font-backend mechanism.
12899 (find_font_encoding): Make it non-static.
12900 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
12901 New functions.
12902
12903 * frame.h (struct frame): New members resx and resy.
12904 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
12905 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
12906
12907 * frame.c [USE_FONT_BACKEND]: Include "font.h".
12908 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
12909
12910 * lisp.h (assoc_no_quit): Extern it.
12911
12912 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
12913 Through out the file, use FONT_INFO_FROM_FACE instead of
12914 FONT_INFO_FROM_ID, use get_per_char_metric instead of
12915 rif->per_char_metric.
12916 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
12917 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
12918 (get_glyph_face_and_encoding, fill_composite_glyph_string)
12919 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
12920 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
12921 nonzero, use font-backend mechanism.
12922 (get_per_char_metric): New function.
12923
12924 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
12925 (set_lface_from_font_name)
12926 (set_font_frame_param, free_realized_face)
12927 (prepare_face_for_display, clear_face_gcs)
12928 (Finternal_set_font_selection_order, realize_x_face)
12929 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
12930 font-backend mechanism.
12931 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
12932 (load_face_font) [USE_FONT_BACKEND]: Abort.
12933 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
12934 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
12935
12936 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
12937 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
12938 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
12939 nonzero, register all available font drivers. Call
12940 x_default_font_parameter for deciding a font.
12941 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
12942
12943 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
12944 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
12945 (x_set_glyph_string_clipping_exactly)
12946 (x_compute_glyph_string_overhangs)
12947 (x_draw_glyph_string_foreground)
12948 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
12949 (x_free_frame_resources) [USE_FONT_BACKEND]: If
12950 enable_font_backend is nonzero, use font-backend mechanism.
12951 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
12952
129532008-02-01 Kenichi Handa <handa@m17n.org>
12954
12955 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
12956 system_eol_type.
12957 (syms_of_coding): Initialize system_eol_type.
12958
12959 * process.c (Fset_process_coding_system): Inherit system's eol
12960 format if necessary.
12961
129622008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12963
12964 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
12965
129662008-02-01 Kenichi Handa <handa@m17n.org>
12967
12968 * coding.c (decode_eol): Pay attention to buffer relocation in
12969 del_range_2.
12970 (decode_coding): Call decode_eol before restoring undo_list.
12971
129722008-02-01 Kenichi Handa <handa@m17n.org>
12973
12974 * charset.c (Fdefine_charset_internal): Fix setting of
12975 emacs_mule_bytes.
12976
129772008-02-01 Kenichi Handa <handa@m17n.org>
12978
12979 * keyboard.c (read_char): Check if C is a character or not before
12980 looking up Vkeyboard_translate_table.
12981
129822008-02-01 Kenichi Handa <handa@m17n.org>
12983
12984 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
12985 condition to terminate the loop.
12986
129872008-02-01 Kenichi Handa <handa@m17n.org>
12988
12989 * coding.c (produce_composition): Compare charbuf[i] instead of
12990 args[i] against 0.
12991 (Fterminal_coding_system): Use EQ to compare Lisp objects.
12992
129932008-02-01 Kenichi Handa <handa@m17n.org>
12994
12995 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
12996 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
12997 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
12998 detect_coding.
12999 (emacs_mule_char): Handle old style (Emacs 20) component character
13000 of a composition.
13001 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
13002 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
13003 composition rule.
13004 (decode_coding_emacs_mule): Handle invalid bytes correctly.
13005
130062008-02-01 Kenichi Handa <handa@m17n.org>
13007
13008 * coding.c (encode_coding_ccl): Allocate destination dynamically
13009 when necessary.
13010
130112008-02-01 Kenichi Handa <handa@m17n.org>
13012
13013 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
13014 the loop. When quitted, show a proper error message.
13015
130162008-02-01 Kenichi Handa <handa@m17n.org>
13017
13018 * xterm.c (x_set_glyph_string_clipping_exactly): Set
13019 src->clip_head and src->clip_tail temporarily instead of src->hl.
13020
13021 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
13022 character sequence.
13023 (Fccl_execute_on_string): Use ASET, not XSET.
13024
130252008-02-01 Kenichi Handa <handa@m17n.org>
13026
13027 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
13028
130292008-02-01 Kenichi Handa <handa@m17n.org>
13030
13031 * coding.c (decode_coding): Fix the condition of terminating the
13032 decoding loop.
13033
130342008-02-01 Kenichi Handa <handa@m17n.org>
13035
13036 * data.c (Faset): On setting a character bigger than 255 in a
13037 unibyte string, signal an error instead of make the string multibyte.
13038
130392008-02-01 Kenichi Handa <handa@m17n.org>
13040
13041 * charset.c (map_charset_chars): Fix for ascii-compatible charset
13042 made by a mapping table.
13043
130442008-02-01 Kenichi Handa <handa@m17n.org>
13045
13046 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
13047 not.
13048 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
13049 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
13050
13051 * xterm.c (x_draw_composite_glyph_string_foreground): Check
13052 s->face is NULL or not.
13053
130542008-02-01 Kenichi Handa <handa@m17n.org>
13055
13056 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
13057 (x_draw_glyph_string): Fix drawing of right_overhang and
13058 left_overhang around/on cursor.
13059
13060 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
13061
130622008-02-01 Kenichi Handa <handa@m17n.org>
13063
13064 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
13065
130662008-02-01 Kenichi Handa <handa@m17n.org>
13067
13068 * coding.c (Fdefine_coding_system_internal)
13069 (Fdefine_coding_system_alias): Avoid a duplicated element in
13070 Vcoding_system_alist.
13071
130722008-02-01 Kenichi Handa <handa@m17n.org>
13073
13074 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
13075
13076 * coding.c (Qcoding_system_define_form): New variable.
13077 (syms_of_coding): Intern and staticpro it.
13078 (Fcoding_system_p): Check Qcoding_system_define_form.
13079 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
13080
13081 * coding.h (CODING_SYSTEM_P): If ID is not available, call
13082 Fcoding_system_p.
13083 (CHECK_CODING_SYSTEM): If ID is not available, call
13084 Fcheck_coding_system.
13085 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
13086 Try also Fcheck_coding_system.
13087
130882008-02-01 Kenichi Handa <handa@m17n.org>
13089
13090 * coding.c (code_conversion_restore): GCPRO arg.
13091
130922008-02-01 Kenichi Handa <handa@m17n.org>
13093
13094 * character.c (lisp_string_width): Check multibyteness of STRING.
13095
130962008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13097
13098 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
13099 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
13100 (decode_mac_font_name): Use decode_coding_c_string instead of
13101 decode_coding.
13102 (x_load_font): Initialize fontp->fontset to -1. Set
13103 fontp->encoding_type.
13104
131052008-02-01 Kenichi Handa <handa@m17n.org>
13106
13107 * search.c (search_buffer): Give up BM search on case-fold-search
13108 if one of a target character has a case-equivalence of different
13109 byte length even if that target charcter is an ASCII.
13110 (simple_search): Fix calculation of byte length of matched text.
13111 (boyer_moore): Fix handling of case-equivalent multibyte characters.
13112
131132008-02-01 Kenichi Handa <handa@m17n.org>
13114
13115 * coding.c (decode_coding): Fix handling of invalid bytes.
13116
131172008-02-01 Kenichi Handa <handa@m17n.org>
13118
13119 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
13120 Unicode characters.
13121
131222008-02-01 Kenichi Handa <handa@m17n.org>
13123
13124 * coding.c (encode_coding_object): If a pre-write-conversion
13125 function makes a new buffer, kill it.
13126
131272008-02-01 Kenichi Handa <handa@m17n.org>
13128
13129 * coding.c (QCascii_compatible_p): New variable.
13130 (syms_of_coding): Initialize it.
13131 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
13132 calling string_char.
13133 (record_conversion_result): Add `default:' case.
13134 (coding_charset_list): Delete unused variable `coding_type'.
13135 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
13136 property in the plist of the coding system.
13137 (Fcoding_system_put): Check QCascii_compatible_p.
13138
131392008-02-01 Miles Bader <miles@gnu.org>
13140
13141 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
13142 removed calculation of frame `f', as it's now used.
13143
131442008-02-01 Kenichi Handa <handa@m17n.org>
13145
13146 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
13147 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
13148 (UNIDATA): New variable.
13149 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
13150 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
13151 $(RUN_TEMACS) unconditionally.
13152
131532008-02-01 Kenichi Handa <handa@m17n.org>
13154
13155 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
13156 (admindir): New variable.
13157 ($(lispsource)international/charprop.el): New target.
13158
131592008-02-01 Miles Bader <miles@gnu.org>
13160
13161 * character.c (chars-in-region): Remove obsolete function.
13162 (syms_of_character): Remove its initialization.
13163
131642008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
13165
13166 * w32select.c (validate_coding_system)
13167 (setup_windows_coding_system): New functions.
13168 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
13169 setup_windows_coding_system.
13170 (setup_config, Fw32_get_clipboard_data): Use
13171 validate_coding_system.
13172 (Fx_selection_exists): Move call to setup_config to a place
13173 where signals are allowed.
13174
13175 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
13176 (Fcheck_coding_system): Add declarations.
13177
131782008-02-01 Kenichi Handa <handa@m17n.org>
13179
13180 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
13181
131822008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13183
13184 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
13185 string as the second argument for x_new_fontset.
13186
131872008-02-01 Kenichi Handa <handa@m17n.org>
13188
13189 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
13190 (encode_coding_object): Use safe_call instead of call2.
13191
131922008-02-01 Kenichi Handa <handa@m17n.org>
13193
13194 * fontset.c (Fset_fontset_font): Check family element of a given vector.
13195
13196 * Makefile.in (lisp): Include charprop.el.
13197
131982008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13199
13200 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
13201 Not sure if it's unnecessary.
13202
132032008-02-01 Steven Tamm <steventamm@mac.com>
13204
13205 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
13206 some possibly unnecessary fontset checking code that crashed
13207 when creating a new frame.
13208
132092008-02-01 Kenichi Handa <handa@m17n.org>
13210
13211 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
13212 lookup_face.
13213
13214 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
13215
13216 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
13217
132182008-02-01 Kenichi Handa <handa@m17n.org>
13219
13220 * coding.c: Cancel the change done in HEAD on 2008-02-01.
13221 (coding_charset_list): New function.
13222
13223 * coding.h (coding_charset_list): Extern it.
13224
132252008-02-01 Kenichi Handa <handa@m17n.org>
13226
13227 * fontset.c (Fset_fontset_font): Call find_font_encoding with
13228 concatenation of family and registry.
13229
132302008-02-01 Kenichi Handa <handa@m17n.org>
13231
13232 * character.h (BYTE8_STRING): Fix typo.
13233
13234 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
13235 string to multibyte (sync to HEAD).
13236
13237 * casefiddle.c (casify_region): Handle changes in byte-length
13238 using replace_range_2 (sync to HEAD).
13239
132402008-02-01 Andreas Schwab <schwab@suse.de>
13241
13242 * chartab.c (map_char_table): GCPRO table and arg.
13243
132442008-02-01 Kenichi Handa <handa@m17n.org>
13245
13246 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
13247 already at limit.
13248
132492008-02-01 Kenichi Handa <handa@m17n.org>
13250
13251 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
13252 instead of fast_c_string_match_ignore_case.
13253 (find_font_encoding): Change argument to Lisp_Object. Use
13254 fast_string_match_ignore_case instead of
13255 fast_c_string_match_ignore_case. Change caller.
13256
132572008-02-01 Kenichi Handa <handa@m17n.org>
13258
13259 * xdisp.c (get_next_display_element): In unibyte case, decide to
13260 display in octal form by checking a character by
13261 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
13262
13263 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
13264
13265 * character.c (unibyte_has_multibyte_table): New variable.
13266
13267 * character.h (unibyte_has_multibyte_table): Extern it.
13268 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
13269
132702008-02-01 Kenichi Handa <handa@m17n.org>
13271
13272 * coding.c (encode_coding_iso_2022): Fix handling of charset
13273 annotation.
13274
132752008-02-01 Kenichi Handa <handa@m17n.org>
13276
13277 * coding.c (setup_coding_system): If coding_system is nil, use
13278 Qundecided.
13279 (Fterminal_coding_system): Return nil if terminal coding system is
13280 `undecided'.
13281 (syms_of_coding): Define coding-system `undecided' here. Setup
13282 terminal_coding as `undecided'.
13283
132842008-02-01 Kenichi Handa <handa@m17n.org>
13285
13286 * xdisp.c (message_dolog, set_message_1): Call
13287 unibyte_char_to_multibyte with arg type int.
13288
13289 * lread.c (read1): Fix reading of a char-table.
13290
13291 * print.c (print_object): Include sub char-table in circularities
13292 detection.
13293
132942008-02-01 Kenichi Handa <handa@m17n.org>
13295
13296 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
13297 Append the found sequences in car of ARGS instead of prepending.
13298
132992008-02-01 Kenichi Handa <handa@m17n.org>
13300
13301 * fileio.c (report_file_error): Make a unibyte string from
13302 strerror (errorno).
13303 (Fsubstitute_in_file_name): Fix the arg to
13304 unibyte_char_to_multibyte. It is evaluated twice.
13305
133062008-02-01 Kenichi Handa <handa@m17n.org>
13307
13308 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
13309
133102008-02-01 Kenichi Handa <handa@m17n.org>
13311
13312 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
13313 BOM is not found.
13314 (detect_coding, detect_coding_system): Optimization for ISO-2022
13315 when no 8-bit data is found.
13316
133172008-02-01 Jason Rumney <jasonr@gnu.org>
13318
13319 * w32fns.c (x_to_w32_font): Update to use new coding struct.
13320
133212008-02-01 Kenichi Handa <handa@m17n.org>
13322
13323 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
13324 CHARS.
13325
133262008-02-01 Steven Tamm <steventamm@mac.com>
13327
13328 * macterm.c (mac_encode_char): Add charset argument and update
13329 to use encoding_type.
13330 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
13331 switch to pure fontset.
13332 (decode_mac_font_name): Temporarily remove decoding.
13333 (x_font_name_to_mac_font_name): Temporarily remove encoding.
13334 (x_load_font): Temporarily remove encoding.
13335
133362008-02-01 Kenichi Handa <handa@m17n.org>
13337
13338 * xfaces.c (Fface_font): If frame is not on a window system,
13339 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
13340 refer to face->font.
13341 (split_font_name_into_vector, build_font_name_from_vector)
13342 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
13343 when HAVE_WINDOW_SYSTEM is defined.
13344
133452008-02-01 Kenichi Handa <handa@m17n.org>
13346
13347 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
13348 (x_produce_glyphs): Fix setting of members of cmp in case
13349 cmp->glyph_len is zero.
13350
13351 * fontset.c (Fset_fontset_font): Fix docstring.
13352 (Ffontset_info): Make it backward compatible. New arg ALL.
13353
133542008-02-01 Kim F. Storm <storm@cua.dk>
13355
13356 * process.c (read_process_output): Grow decoding_buf when needed;
13357 this could cause a crash in allocate_string and compact_small_strings.
13358
133592008-02-01 Kenichi Handa <handa@m17n.org>
13360
13361 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
13362
133632008-02-01 Kenichi Handa <handa@m17n.org>
13364
13365 * coding.c (setup_coding_system): Set coding->common_flags
13366 correctly for raw-text.
13367 (consume_chars): On encoding unibyte text by raw-text, don't check
13368 multibyte form.
13369 (encode_coding): On encoding by raw-text, never use translation tables.
13370
13371 * fileio.c (e_write): Short cut for the case of no encoding.
13372
133732008-02-01 Kenichi Handa <handa@m17n.org>
13374
13375 * coding.c (detect_coding, detect_coding_system): Delete unused
13376 variables.
13377
133782008-02-01 Kenichi Handa <handa@m17n.org>
13379
13380 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
13381 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
13382
133832008-02-01 Kenichi Handa <handa@m17n.org>
13384
13385 * coding.c (Ffind_coding_systems_region_internal): Include
13386 raw-text and no-conversion in the result.
13387
133882008-02-01 Kenichi Handa <handa@m17n.org>
13389
13390 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
13391 (load_font_get_repertory): Delete unnecessary check of ENCODING of
13392 FONT_DEF.
13393 (font_def_arg, add_arg, from_arg, to_arg): New args.
13394 (set_fontset_font): Change argument.
13395 (Fset_fontset_font): Fix for the case that TARGET is a script
13396 name and charset name.
13397 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
13398
133992008-02-01 Kenichi Handa <handa@m17n.org>
13400
13401 * fontset.c (fontset_font): Rename from fontset_face. Change return
13402 value.
13403 (face_suitable_for_char_p, face_for_char): Adjust for the change
13404 of fontset_font.
13405 (make_fontset_for_ascii_face): Fix setting of the fontset element
13406 for ASCII.
13407 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
13408 to get a font name.
13409 (Ffontset_info): Adjust for the change of fontset_font.
13410
13411 * coding.c (emacs_mule_char): Check invalid code more rigidly.
13412
13413 * character.h (LEADING_CODE_LATIN_1_MIN)
13414 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
13415
134162008-02-01 Kenichi Handa <handa@m17n.org>
13417
13418 * editfns.c (check_translation): New function.
13419 (Ftranslate_region_internal): Handle M:N mapping.
13420
134212008-02-01 Kenichi Handa <handa@m17n.org>
13422
13423 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
13424
134252008-02-01 Kenichi Handa <handa@m17n.org>
13426
13427 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
13428 goto invalid_code.
13429 (decode_coding_iso_2022): Fix handling of invalid designation.
13430
13431 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
13432 after calling code_conversion_save.
13433
134342008-02-01 Kenichi Handa <handa@m17n.org>
13435
13436 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
13437
13438 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
13439
13440 * fontset.c: Include "intervals.h".
13441 (fontset_face): Fix comparing of Lisp_Objects.
13442 (free_face_fontset, new_fontset_from_font_name): Fix
13443 Lisp_Object/int mixup.
13444
13445 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
13446
13447 * coding.c: Add many prototypes for static functions.
13448 (get_translation_table): Allow max_lookup to be NULL.
13449 (decode_coding, Ffind_coding_systems_region_internal)
13450 (Funencodable_char_position, Fcheck_coding_systems_region): Call
13451 get_translation_table with max_lookup NULL.
13452
134532008-02-01 Kenichi Handa <handa@m17n.org>
13454
13455 * coding.c (get_translation_table): Declare it as Lisp_Object.
13456 (LOOKUP_TRANSLATION_TABLE): New macro.
13457 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
13458 instead of CHAR_TABLE_REF.
13459
134602008-02-01 Kenichi Handa <handa@m17n.org>
13461
13462 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
13463 annotation data format.
13464 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
13465 Change arguments FROM and TO to single argument NCHARS. Change caller.
13466 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
13467 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13468 (decode_coding_ccl, decode_coding_charset): Pay attention to
13469 coding->charbuf_used.
13470 (get_translation): New function.
13471 (produce_chars): New arguments translation_table and last_block.
13472 Translate characters here. Return number of carryover chars.
13473 Change caller.
13474 (produce_composition): New argument pos. Change caller.
13475 Adjust for the change of annotation data format.
13476 (produce_charset, produce_annotation): Likewise.
13477 (decode_coding, encode_coding): Don't call translate_chars.
13478 (consume_chars): New arg translation_table. Change caller.
13479 (translate_chars): Delete.
13480 (syms_of_coding): Make translation-table's number of extra slots 2.
13481
134822008-02-01 Kenichi Handa <handa@m17n.org>
13483
13484 * search.c (simple_search): Fix setting this_pos_byte in backward
13485 search.
13486
13487 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
13488 byte sequence.
13489 (detect_coding_ccl): Fix setting of the variable valids.
13490
134912008-02-01 Kenichi Handa <handa@m17n.org>
13492
13493 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
13494
13495 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
13496
13497 * editfns.c (Ftranslate_region_internal): Rename from
13498 Ftranslate_region. Accept a char-table in TABLE.
13499 (syms_of_editfns): Defsubr Stranslate_region_internal.
13500
13501 * xfaces.c (set_lface_from_font_name): If a font is specified for
13502 a frame, generate a fontset from the font.
13503 (build_scalable_font_name): If the scalable font is requested for
13504 a specific size, don't change that size.
13505 (try_font_list): Try a scalable font also in the case that a
13506 pattern string is specified.
13507
135082008-02-01 Kenichi Handa <handa@m17n.org>
13509
13510 * xfaces.c (Fface_font): New optional arg CHARACTER.
13511
135122008-02-01 Kenichi Handa <handa@m17n.org>
13513
13514 * charset.h (CHARSET_OFFSET): New macro.
13515
135162008-02-01 Kenichi Handa <handa@m17n.org>
13517
13518 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
13519
13520 * fontset.c (fontset_face): Handle the case that repertory is a
13521 char-table.
13522 (find_font_encoding): Return nil for unknown encoding.
13523 (Fset_fontset_font): Ignore a font of unknown encoding.
13524
135252008-02-01 Kenichi Handa <handa@m17n.org>
13526
13527 * keymap.c (describe_vector): Handle default value of a char table.
13528
13529 * fontset.c (fontset_face): Handle fallback fonts correctly.
13530 (Ffontset_info): Return infomation about fallback fonts.
13531
135322008-02-01 Kenichi Handa <handa@m17n.org>
13533
13534 * fontset.c (FONTSET_DEFAULT): New macro.
13535 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
13536 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
13537 the case that it is nil.
13538 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
13539 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
13540
13541 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
13542 subset or superset.
13543
135442008-02-01 Kenichi Handa <handa@m17n.org>
13545
13546 * emacs.c (main): Call init_charset after syms_of_XXX.
13547
13548 * charset.c (Vcharset_map_directory): Delete.
13549 (Vcharset_map_path): New variable.
13550 (load_charset_map_from_file): Use Vcharset_map_path instead.
13551 (init_charset): Initialize Vcharset_map_path.
13552 (syms_of_charset): Delete declaration of "charset-map-directory",
13553 add declaration of "charset-map-path".
13554
135552008-02-01 Kenichi Handa <handa@m17n.org>
13556
13557 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
13558 ASCII only string.
13559
13560 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
13561
13562 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
13563 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
13564
135652008-02-01 Kenichi Handa <handa@m17n.org>
13566
13567 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
13568
13569 * coding.c (QCmnemonic, QCdefalut_char)
13570 (QCdecode_translation_table, QCencode_translation_table)
13571 (QCpost_read_conversion, QCpre_write_conversion): New variables.
13572 (get_translation_table): Return a list of translation tables if
13573 necessary.
13574 (decode_coding): Call get_translation_table with ENCODEP 0.
13575 (char_encodable_p): If translation_table is non-nil, always call
13576 translate_char.
13577 (Fdefine_coding_system_internal): Accept list of translation
13578 tables as :encode-translation-table and :decode-translation-table.
13579 (Fcoding_system_put): New function.
13580 (syms_of_coding): Declare new symbols. Defsubr
13581 Scoding_system_put.
13582 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
13583 typically JISX0212.
13584
13585 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
13586 when the charset is superset type.
13587
13588 * character.c (translate_char): Accept list of translation tables.
13589
135902008-02-01 Kenichi Handa <handa@m17n.org>
13591
13592 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
13593 (CODING_ATTR_TRANS_TBL): New macro.
13594
13595 * coding.c (get_translation_table): New function.
13596 (translate_chars): Fix the bug of skipping annotation data.
13597 (decode_coding, encode_coding): Utilize get_translation_table.
13598 (char_encodable_p, Funencodable_char_position): Translate char if
13599 necessary.
13600 (Ffind_coding_systems_region_internal)
13601 (Fcheck_coding_systems_region): Setup translation table for encode
13602 in a coding system attribute vector in advance.
13603 (Fdefine_coding_system_internal): Allow a symbol as translation
13604 table. For shift-jis type coding system, allow 4th charset.
13605
136062008-02-01 Kenichi Handa <handa@m17n.org>
13607
13608 * coding.c (decode_coding_sjis): Check the first byte rigidly.
13609
13610 * xdisp.c (get_next_display_element): Pass -1 as POS to
13611 FACE_FOR_CHAR if displaying a C-string.
13612
136132008-02-01 Kenichi Handa <handa@m17n.org>
13614
13615 * composite.c (get_composition_id): Handle xoff and yoff in a
13616 composition rule.
13617
13618 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
13619 (struct composition): New member lbearing and rbearing.
13620
13621 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
13622 (x_get_glyph_overhangs): Handle a composition glyph.
13623 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
13624
13625 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
13626 composition glyph.
13627
136282008-02-01 Kenichi Handa <handa@m17n.org>
13629
13630 * print.c: Include charset.h.
13631 (Vprint_charset_text_property): New variable.
13632 (Qdefault): Extern it.
13633 (PRINT_STRING_NON_CHARSET_FOUND)
13634 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
13635 (print_check_string_result): New variable.
13636 (print_check_string_charset_prop): New function.
13637 (print_prune_charset_plist): New variable.
13638 (print_prune_string_charset): New function.
13639 (print_object): Call print_prune_string_charset if
13640 Vprint_charset_text_property is not t.
13641 (print_interval): Print nothing if interval->plist is nil.
13642 (syms_of_print): Declare Vprint_charset_text_property as a lisp
13643 variable. Init and staticpro print_prune_charset_plist.
13644
136452008-02-01 Kenichi Handa <handa@m17n.org>
13646
13647 * fontset.c (new_fontset_from_font_name): Use the specified font
13648 for all characters in the new fontset.
13649
13650 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
13651 OBJECT args.
13652
13653 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
13654 OBJECT args for composition too.
13655
13656 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
13657 OBJECT args.
13658
136592008-02-01 Kenichi Handa <handa@m17n.org>
13660
13661 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
13662
13663 * fontset.c (reorder_font_vector): Adjust for the change of
13664 FONT_DEF format.
13665 (fontset_face): New arg id. Change caller.
13666 (face_for_char): New args pos and object.
13667 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
13668 (fs_query_fontset): Check NAME by Fassoc too.
13669 (Fset_fontset_font): Allow non-XLFD font name.
13670 (Ffontset_info): Adjust for the change of FONT_DEF format.
13671
13672 * fontset.h (face_for_char): Adjust prototype.
13673
13674 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
13675 (append_space, extend_face_to_end_of_line)
13676 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
13677 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
13678
13679 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
13680 POS and OBJECT args.
13681
13682 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
13683 POS and OBJECT args.
13684
136852008-02-01 Jason Rumney <jasonr@gnu.org>
13686
13687 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
13688 of GlobalAlloc'ed memory.
13689
136902008-02-01 Kenichi Handa <handa@m17n.org>
13691
13692 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
13693
13694 * charset.h (charset_table_used): Delete extern.
13695
13696 * charset.c (charset_table_used): Make it static.
13697 (map_charset_chars): Fix args to c_function with.
13698
13699 * chartab.c (map_sub_char_table_for_charset): Fix args to
13700 c_function with.
13701
13702 * coding.h (enum coding_result_code): Delete
13703 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
13704
13705 * coding.c (Qinsufficient_source, Qinconsistent_eol)
13706 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
13707 (Vlast_code_conversion_error): New variables.
13708 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
13709 (ONE_MORE_BYTE): Record error if any instead of signaling an
13710 error. If non-ASCII multibyte char is found, return the negative
13711 value of the code. All callers changed to check it.
13712 (ONE_MORE_BYTE_NO_CHECK): Likewise.
13713 (record_conversion_result): New function. Change all codes setting
13714 coding->result to call this function.
13715 (detect_coding_utf_8, decode_coding_utf_8)
13716 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
13717 Don't use the local variable incomplete.
13718 (emacs_mule_char): Change the second arg to `const'.
13719 (decode_coding): Fix of flushing out unprocessed data.
13720 (make_conversion_work_buffer): Fix making of a work buffer.
13721 (decode_coding_object): Return coding->dst_object.
13722
13723 * fontset.c (set_fontset_font): Fix args.
13724
13725 * lisp.h (CHARACTERBITS): Define as 22.
13726
13727 * process.c (send_process): Be sure to set coding->src_multibyte.
13728
13729 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
13730
137312008-02-01 Kenichi Handa <handa@m17n.org>
13732
13733 * xdisp.c (handle_auto_composed_prop): Give limit to
13734 Fnext_single_char_property_change.
13735
137362008-02-01 Kenichi Handa <handa@m17n.org>
13737
13738 * composite.c (syms_of_composite): Don't make the composition hash
13739 table weak.
13740
13741 * fontset.c (Fset_fontset_font): Fix docstring.
13742
13743 * lisp.h (detect_coding_system): Adjust prototype.
13744
13745 * fileio.c (kill_workbuf_unwind): Delete this function.
13746 (Finsert_file_contents): Adjust the call of detect_coding_system.
13747 Get conversion_buffer by code_conversion_save. Use the macro
13748 CODING_MAY_REQUIRE_DECODING. After decoding, update
13749 coding_system.
13750
13751 * coding.h (make_conversion_work_buffer): Delete extern.
13752 (code_conversion_save): Extern it.
13753
13754 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
13755 (CODING_GET_INFO): Delete argument eol_type. Change callers.
13756 (decode_coding_utf_8): Don't do eol converion.
13757 (detect_coding_utf_16): Check coding->src_chars, not
13758 coding->src_bytes. Add heuristics for those that have no signature.
13759 (decode_coding_emacs_mule, decode_coding_iso_2022)
13760 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
13761 Don't do eol converion.
13762 (adjust_coding_eol_type): Return a new coding system.
13763 (detect_coding): Don't detect eol. Fix for utf-16 detection.
13764 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
13765 each change.
13766 (decode_coding): Pay attention to undo_list. Do eol conversion for
13767 all types of coding-systems (if necessary).
13768 (Vcode_conversion_work_buf_list): Delete it.
13769 (Vcode_conversion_reused_workbuf): Rename from
13770 Vcode_conversion_reused_work_buf.
13771 (Vcode_conversion_workbuf_name): New variable.
13772 (reused_workbuf_in_use): New variable.
13773 (make_conversion_work_buffer): Delete the arg DEPTH.
13774 (code_conversion_restore): Change argument to cons.
13775 (code_conversion_save): Delete the argument BUFFER. Change callers.
13776 (detect_coding_system): New argument src_chars. Change callers.
13777 Fix for utf-16 detection.
13778 (init_coding_once): Don't use ISO_carriage_return.
13779 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
13780 reused_workbuf_in_use.
13781
137822008-02-01 Kenichi Handa <handa@m17n.org>
13783
13784 * keymap.c (store_in_keymap): Pay attention to the case that idx
13785 is a cons specifying a character range.
13786
137872008-02-01 Kenichi Handa <handa@m17n.org>
13788
13789 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
13790 HANDLED_RECOMPUTE_PROPS.
13791
13792 * coding.c (Fdefine_coding_system_internal): Fix checking of
13793 ascii compatibility.
13794
137952008-02-01 Kenichi Handa <handa@m17n.org>
13796
13797 * charset.c (find_charsets_in_text): Delete unused locale variable.
13798 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
13799
13800 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
13801 Resync charset_list to Vemacs_mule_charset_list.
13802
13803 * keymap.c (store_in_keymap): Pay attention to the case that idx
13804 is a cons specifying a character range.
13805
138062008-02-01 Kenichi Handa <handa@m17n.org>
13807
13808 * composite.c (update_compositions): Bind inhibit-read-only, etc
13809 to t before calling remove-list-of-text-properties.
13810
13811 * print.c (print_object): Always print ASCII chars as is.
13812
138132008-02-01 Kenichi Handa <handa@m17n.org>
13814
13815 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
13816
13817 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
13818 is a char table.
13819
138202008-02-01 Kenichi Handa <handa@m17n.org>
13821
13822 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
13823
138242008-02-01 Kenichi Handa <handa@m17n.org>
13825
13826 * xfaces.c (set_lface_from_font_name): Fix for the case that
13827 FONTNAME is not fontset name.
13828
138292008-02-01 Kenichi Handa <handa@m17n.org>
13830
13831 * fns.c (base64_encode_1): Fix previous change.
13832
138332008-02-01 Kenichi Handa <handa@m17n.org>
13834
13835 * fontset.c (set_fontset_font): New function.
13836 (Fset_fontset_font): If a font is specified for a charset, use
13837 map_charset_chars to store the font spec in a fontset.
13838
138392008-02-01 Kenichi Handa <handa@m17n.org>
13840
13841 * fontset.c (fontset_face): Create a fallback fontset on demand.
13842 (make_fontset): Don't create a fallback fontset here.
13843 (free_face_fontset): Free a fallback fontset (if any) too.
13844 (n_auto_fontsets): Delete this variable.
13845 (auto_fontset_alist): New variable.
13846 (new_fontset_from_font_name): Check auto_fontset_alist.
13847 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
13848 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
13849 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
13850 Defsubr Sfontset_list_all.
13851
138522008-02-01 Kenichi Handa <handa@m17n.org>
13853
13854 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
13855
138562008-02-01 Kenichi Handa <handa@m17n.org>
13857
13858 * fontset.c (Fnew_fontset): Check NAME more rigidly.
13859
138602008-02-01 Kenichi Handa <handa@m17n.org>
13861
13862 * editfns.c (Fgoto_char): Fix docstring.
13863
138642008-02-01 Kenichi Handa <handa@m17n.org>
13865
13866 * insdel.c (insert_from_gap): Adjust intervals correctly.
13867
138682008-02-01 Jason Rumney <jasonr@gnu.org>
13869
13870 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
13871 (pfnGetFontUnicodeRanges): New dynamically loaded function.
13872 (w32_initialize): Try to load it.
13873 (x_get_font_repertory): Use it if available.
13874 (w32_encode_char): Add shortcut for unicode output.
13875
13876 * w32fns.c (w32_load_system_font): Default charset to -1.
13877 (x_to_w32_charset): Match all fonts for unicode.
13878 (w32_to_x_charset): New parameter matching. Don't return partial
13879 or wildcard charsets.
13880 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
13881 (w32_codepage_for_font): Return CP_UNICODE for unicode.
13882 (w32_to_x_font): Match charset to real charset.
13883 (enum_font_cb2): Always list unicode versions.
13884
13885 * makefile.w32-in (temacs): Increase EMHEAP.
13886
138872008-02-01 Jason Rumney <jasonr@gnu.org>
13888
13889 * w32term.c (w32_encode_char): New charset parameter.
13890 font_info.encoding becomes encoding_type.
13891 (x_get_font_repertory): New function. Warning: stub only!
13892 (x_new_font): Return quickly if font already set.
13893 (x_new_fontset): fontsetname parameter is Lisp_Object.
13894 Use new fs_query_fontset. Try new_fontset_from_font_name.
13895 Use fontset_name for return value.
13896
13897 * w32term.h: Declare x_get_font_repertory.
13898
13899 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
13900 place of find_charset_in_text. Use encode_coding_object in place
13901 of encode_coding.
13902 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
13903 decode_coding.
13904
13905 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
13906 of x_new_fontset.
13907 (w32_load_system_font): Initialize charset as unicode.
13908 font_info.encoding becomes encoding_type.
13909 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
13910 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
13911 (syms_of_w32fns): Set get_font_repertory_func.
13912
13913 * w32console.c: Include character.h. Use terminal_encode_buffer
13914 from term.c.
13915 (write_glyphs): Use new version of encode_terminal_code. Use
13916 encode_coding_object in place of encode_coding.
13917
13918 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
13919 encoding becomes encoding_type.
13920
13921 * term.c (terminal_encode_buffer): Make externally visible.
13922
13923 * makefile.w32-in: Add character.h dependancies.
13924 (character.o, chartab.o): New targets.
13925
139262008-02-01 Kenichi Handa <handa@m17n.org>
13927
13928 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
13929 CODING_ID_EOL_TYPE.
13930
139312008-02-01 Andreas Schwab <schwab@suse.de>
13932
13933 * coding.c (produce_chars): Revert last change.
13934
139352008-02-01 Kenichi Handa <handa@m17n.org>
13936
13937 * charset.h (charset_unicode): Extern it.
13938
13939 * charset.c (string_xstring_p): Check by (C >= 0x100).
13940 (find_charsets_in_text): Change format of the arc CHARSETS. New
13941 arg MULTIBYTE.
13942 (Ffind_charset_region, Ffind_charset_string): Adjust for the
13943 change of find_charsets_in_text.
13944 (Fsplit_char): Fix doc. Never return unknown.
13945
13946 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
13947
13948 * coding.c (Fdefine_coding_system_alias): Update
13949 Vcoding_system_list.
13950
13951 * fontset.c (load_font_get_repertory): Pay attention to the case
13952 that ENCODING of a font is specified by a char-table.
13953
13954 * xterm.c (x_get_font_repertory): Handle the case that the
13955 encoding of font is other than Unicode.
13956
139572008-02-01 Kenichi Handa <handa@m17n.org>
13958
13959 * term.c (encode_terminal_code): Don't handle glyph-table. Check
13960 if a character is encodable by the terminal coding system. If
13961 not, produces proper number of `?'s. Update
13962 terminal_encode_buffer and terminal_encode_buf_size if necessary.
13963 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
13964
139652008-02-01 Kenichi Handa <handa@m17n.org>
13966
13967 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
13968 variables.
13969 (encode_terminal_code): Change argument. Encode multiple
13970 characters at once. Store the result of encoding in
13971 terminal_encode_buffer.
13972 (write_glyphs, insert_glyphs): Adjust for the change of
13973 encode_terminal_code.
13974 (term_init): Initialize terminal_encode_buffer and
13975 terminal_encode_buf_size.
13976
13977 * coding.c (consume_chars): If coding->src_object is nil, don't
13978 check annotation.
13979
139802008-02-01 Kenichi Handa <handa@m17n.org>
13981
13982 * character.c (char_string): Use ASCII_CHAR_P instead of
13983 SINGLE_BYTE_CHAR_P.
13984
139852008-02-01 Kenichi Handa <handa@m17n.org>
13986
13987 * xdisp.c (handle_auto_composed_prop): Check if the last
13988 characters of auto-composed region is newly composed with the
13989 following characters.
13990 (handle_composition_prop): Fix checking of point being inside
13991 composition.
13992
139932008-02-01 Kenichi Handa <handa@m17n.org>
13994
13995 * fns.c (concat): Don't change multibyteness of the result by
13996 concatenating an 8-bit character.
13997
13998 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
13999 multibyteness of the result when newelt is an 8-bit character.
14000
140012008-02-01 Dave Love <fx@gnu.org>
14002
14003 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
14004 EMACS_INT.
14005
14006 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
14007
14008 * xfaces.c (face_numeric_value): Declare dim size_t.
14009 (Finternal_lisp_face_equal_p): Remove unused f.
14010
14011 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
14012 (MATRIX_ROW): Remove unused vars.
14013 (draw_glyphs, x_insert_glyphs, fast_find_position)
14014 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
14015 byte/char counts.
14016
14017 * regex.c (regex_compile): Remove unused var.
14018
14019 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
14020
14021 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
14022 (Faccessible_keymaps, where_is_internal): Remove unused vars.
14023
14024 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
14025
14026 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
14027
14028 * fileio.c (Fwrite_region): Remove unused var.
14029
14030 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
14031 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
14032
14033 * composite.c (Fremove_list_of_text_properties): Declare.
14034
14035 * coding.c (inhibit_pre_post_conversion): Remove (unused).
14036 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
14037 (coding_inherit_eol_type): Remove unused attrs.
14038 (detect_coding): Cast arg of detect_eol.
14039
14040 * charset.c (syms_of_charset): Remove unused var p.
14041 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
14042 byte/char counts.
14043
14044 * casetab.c (set_case_table): Remove unused var.
14045
14046 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
14047 unused vars.
14048
140492008-02-01 Dave Love <fx@gnu.org>
14050
14051 * xterm.c (x_bitmap_mask): Declare.
14052
140532008-02-01 Dave Love <fx@gnu.org>
14054
14055 * xterm.c (x_term_init): Fix type error.
14056
14057 * lisp.h: Add Funibyte_char_to_multibyte.
14058
14059 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
14060 (Fset_coding_system_priority): Doc fix.
14061
14062 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
14063
14064 * indent.c (check_composition): Make start and end EMACS_INT.
14065
14066 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
14067
14068 * xdisp.c (handle_composition_prop, check_point_in_composition):
14069 Make buffer positions EMACS_INT.
14070
14071 * composite.c (find_composition, run_composition_function)
14072 (update_compositions, Ffind_composition_internal): Make buffer
14073 positions EMACS_INT.
14074
14075 * composite.h (find_composition, update_compositions): Make
14076 position args EMACS_INT.
14077
14078 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
14079
14080 * intervals.c (get_property_and_range):
14081 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
14082
14083 * unexalpha.c: Don't include varargs.h.
14084
140852008-02-01 Dave Love <fx@gnu.org>
14086
14087 * coding.h (ENCODE_UTF_8): New.
14088
14089 * Makefile.in (gtkutil.o): Depend on coding.h.
14090
14091 * coding.c (Fset_coding_system_priority): Doc fix.
14092
140932008-02-01 Kenichi Handa <handa@m17n.org>
14094
14095 * fileio.c (Finsert_file_contents): Call setup_coding_system in
14096 the case of auto saving.
14097
140982008-02-01 Andreas Schwab <schwab@suse.de>
14099
14100 * chartab.c (map_char_table, map_char_table_for_charset): Protect
14101 `range' from GC.
14102
141032008-02-01 Kenichi Handa <handa@m17n.org>
14104
14105 * coding.c (decode_coding_sjis): Check bytes more rigidly.
14106
141072008-02-01 Kenichi Handa <handa@m17n.org>
14108
14109 * fileio.c (choose_write_coding_system): Return a decided coding system.
14110 (Fwrite_region): Set Vlast_coding_system_used to the return value
14111 of choose_write_coding_system.
14112
141132008-02-01 Kenichi Handa <handa@m17n.org>
14114
14115 * charset.c (Fset_charset_priority): Pay attention to duplicated
14116 arguments.
14117
14118 * coding.c (QCcategory): New variable.
14119 (syms_of_coding): Defsym it. Set all elements of
14120 Vcoding_category_table and their symbol values.
14121 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
14122 coding-category-XXX, and coding-category-list.
14123 (Fdefine_coding_system_internal): Add category in the plist.
14124
141252008-02-01 Kenichi Handa <handa@m17n.org>
14126
14127 * callproc.c (Fcall_process): Handle carryover correctly.
14128
14129 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
14130 (raw_text_coding_system): Check NILP (coding_system).
14131 (coding_inherit_eol_type): Check NILP (coding_system) and
14132 NILP (parent).
14133 (consume_chars): Fix for the case of raw-text.
14134
14135 * process.c (read_process_output): Handle carryover correctly.
14136
141372008-02-01 Dave Love <fx@gnu.org>
14138
14139 * regex.c (re_search_2): Fix last change.
14140
141412008-02-01 Kenichi Handa <handa@m17n.org>
14142
14143 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
14144 target_multibyte. Even in a unibyte case, return a converted
14145 multibyte char.
14146 (GET_CHAR_AFTER): New macro.
14147 (PATFETCH): Translate via multibyte char.
14148 (HANDLE_UNIBYTE_RANGE): Delete this macro.
14149 (SETUP_MULTIBYTE_RANGE): New macro.
14150 (regex_compile): Setup compiled code so that its multibyteness
14151 matches that of a target. Fix the handling of "[X-YZ]" using
14152 SETUP_MULTIBYTE_RANGE.
14153 (analyse_first) <charset>: For filling fastmap for all multibyte
14154 characters, don't check by BASE_LEADING_CODE_P.
14155 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
14156 the same as RE_MULTIBYTE_P (bufp) now.
14157 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
14158 (TARGET_CHAR_AND_LENGTH): Delete this macro.
14159 (TRANSLATE_VIA_MULTIBYTE): New macro.
14160 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
14161 It is the same as RE_MULTIBYTE_P (bufp) now.
14162 <exactn>: Translate via multibyte.
14163 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
14164 translate it.
14165 <charset, charset_not>: Fetch a character by
14166 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
14167 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
14168 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
14169 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
14170 by GET_CHAR_AFTER.
14171 (bcmp_translate): Likewise.
14172
14173 * search.c (compile_pattern): Check the member target_multibyte,
14174 not the member multibyte of buf.
14175
14176 * lread.c (read1): While reading a string, set force_singlebyte
14177 and force_multibyte correctly.
14178
14179 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
14180 up of unibyte_to_multibyte_table.
14181
141822008-02-01 Kenichi Handa <handa@m17n.org>
14183
14184 * coding.c (setup_coding_system): If coding has
14185 post-read-conversion or pre-write-conversion, set
14186 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
14187 respectively.
14188 (decode_coding_gap): Run post-read-conversion if any.
14189
14190 * fileio.c (Finsert_file_contents): Even if we read into a
14191 unibyte buffer, check if we must decode the result or not.
14192
141932008-02-01 Kenichi Handa <handa@m17n.org>
14194
14195 * coding.c (make_conversion_work_buffer): Change the work buffer
14196 name to the same one as that of Emacs 21.
14197
141982008-02-01 Kenichi Handa <handa@m17n.org>
14199
14200 * coding.h (make_conversion_work_buffer): Adjust prototype.
14201 (code_conversion_restore): Don't extern it.
14202
14203 * coding.c (detected_mask): Delete unused variable.
14204 (decode_coding_iso_2022): Pay attention to the byte sequence of
14205 CTEXT extended segment, and retain those bytes as is.
14206 (decode_coding_ccl): Delete unused variable `valids'.
14207 (setup_coding_system): Delete unused variable `category'.
14208 (consume_chars): Delete unused variable `category'. Make it work
14209 for non-multibyte case.
14210 (make_conversion_work_buffer): Change argument.
14211 (saved_coding): Delete unused variable.
14212 (code_conversion_restore): Don't check saved_coding->destination.
14213 (code_conversion_save): New function.
14214 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
14215 instead of record_unwind_protect.
14216 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
14217 (detect_coding_system): Delete unused variable `mask'.
14218 (Fdefine_coding_system_internal): Delete unused variable id.
14219
14220 * fileio.c (kill_workbuf_unwind): New function.
14221 (Finsert_file_contents): On replacing, call
14222 make_conversion_work_buffer with correct args, and call
14223 record_unwind_protect with the first arg kill_workbuf_unwind.
14224
14225 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
14226
142272008-02-01 Kenichi Handa <handa@m17n.org>
14228
14229 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
14230 (fontset_add): Fix for the case that TO is less than TO1.
14231 (Ffontset_info): Don't use fallback fontset on checking the
14232 default fontset.
14233 (dump_fontset): New function for debugging.
14234
14235 * coding.c (Fdefine_coding_system_internal): Fix for the case that
14236 coding_type is Qcharset.
14237
142382008-02-01 Kenichi Handa <handa@m17n.org>
14239
14240 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
14241 (map_char_table): Don't inherit the value from the parent on
14242 initializing VAL. Adjust for the above change.
14243
142442008-02-01 Kenichi Handa <handa@m17n.org>
14245
14246 * coding.c (Qsignature, Qendian): Delete these variables.
14247 (syms_of_coding): Don't initialize them.
14248 (CATEGORY_MASK_UTF_16_AUTO): New macro.
14249 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
14250 detect_info->found.
14251 (decode_coding_utf_16): Don't detect BOM here.
14252 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
14253 is NOT utf_16_without_bom.
14254 (setup_coding_system): For a coding system of type utf-16, check
14255 if the attribute :endian is Qbig or not (not nil or not), and set
14256 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
14257 (detect_coding): If coding type is utf-16 and BOM detection is
14258 required, detect it.
14259 (Fdefine_coding_system_internal): For a coding system of type
14260 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
14261
142622008-02-01 Kenichi Handa <handa@m17n.org>
14263
14264 * coding.c (coding_set_source): Fix for the case that the current
14265 buffer is different from coding->src_object.
14266 (decode_coding_object): Don't use the conversion work buffer if
14267 DST_OBJECT is a buffer.
14268
142692008-02-01 Dave Love <fx@gnu.org>
14270
14271 * lread.c (read_emacs_mule_char) [len==2]: Index
14272 emacs_mule_charset correctly.
14273
142742008-02-01 Dave Love <fx@gnu.org>
14275
14276 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
14277 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
14278 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
14279 treated specially.)
14280 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
14281 (detected_mask): Remove Big5 bits.
14282
142832008-02-01 Kenichi Handa <handa@m17n.org>
14284
14285 The following changes are to make the font rescaling facility
14286 compatible with Emacs 21.
14287
14288 * xfaces.c (Vface_font_rescale_alist): Rename from
14289 Vface_resizing_fonts.
14290 (struct font_name): Rename member resizing_ratio to rescale_ratio.
14291 (font_rescale_ratio): Rename from font_resizing_ratio.
14292 (split_font_name): Set font->rescale_ratio.
14293 (better_font_p): Pay attention to font->rescale_ratio.
14294 (build_scalable_font_name): Likewise. Change RESX, and RESY
14295 fields.
14296 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
14297
142982008-02-01 Kenichi Handa <handa@m17n.org>
14299
14300 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
14301 (Qutf_16_le): Remove these variables.
14302 (syms_of_coding): Don't DEFSYM them.
14303 (decode_coding_utf_16): Fix handling of BOM.
14304 (encode_coding_utf_16): Fix handling of BOM.
14305
143062008-02-01 Kenichi Handa <handa@m17n.org>
14307
14308 * fileio.c (Finsert_file_contents): On replacing, before decoding
14309 the file into the work buffer, set point of the work buffer to the end.
14310
143112008-02-01 Dave Love <fx@gnu.org>
14312
14313 * coding.c (Fcheck_coding_systems_region): Fix type errors.
14314
143152008-02-01 Dave Love <fx@gnu.org>
14316
14317 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
14318 and fix C types.
14319
143202008-02-01 Kenichi Handa <handa@m17n.org>
14321
14322 * xdisp.c (SKIP_GLYPHS): New macro.
14323 (set_cursor_from_row): Pay attention to string display properties.
14324
14325 * category.c (copy_category_entry): Fix for the case that RANGE
14326 is an integer.
14327
14328 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
14329
14330 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
14331
143322008-02-01 Kenichi Handa <handa@m17n.org>
14333
14334 * charset.c (Fcharset_id_internal): New function.
14335 (syms_of_charset): Defsubr it.
14336
14337 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
14338 with the last arg charset_list acquired from coding.
14339 (Fdefine_coding_system_internal): For ccl-based coding system, fix
14340 the attribute coding_attr_ccl_valids.
14341
14342 * coding.h (enum define_coding_ccl_arg_index): Set the first
14343 member coding_arg_ccl_decoder to coding_arg_max.
14344
14345 * ccl.h (ccl_driver): Adjust prototype.
14346
14347 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
14348 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 14349 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
14350 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
14351 last arg Qnil.
14352
143532008-02-01 Kenichi Handa <handa@m17n.org>
14354
14355 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
14356 call encode_char.
14357
14358 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
14359
143602008-02-01 Dave Love <fx@gnu.org>
14361
14362 * composite.c (syms_of_composite): Make composition_hash_table weak.
14363
143642008-02-01 Kenichi Handa <handa@m17n.org>
14365
14366 * dispextern.h (check_face_attributes, generate_ascii_font_name)
14367 (font_name_registry): Don't extern them.
14368 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
14369
14370 * fontset.h (Qfontset): Don't extern it.
14371 (new_fontset_from_font_name): Extern it.
14372
14373 * fontset.c: Give 8 extra slots to fontset objects.
14374 (Qfontset_info): New variable.
14375 (syms_of_fontset): Defsym it.
14376 (FONTSET_FALLBACK): New macro.
14377 (fontset_face): Try also the default fontset.
14378 (make_fontset): Realize a fallback fontset from the default fontset.
14379 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
14380 using split_font_name_into_vector and build_font_name_from_vector.
14381 (Fset_fontset_font): Access the elements of font_spec by enum
14382 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
14383 name by using split_font_name_into_vector.
14384 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
14385 generate a proper font name from the fontset name. Update
14386 Vfontset_alias_alist.
14387 (n_auto_fontsets): New variable.
14388 (new_fontset_from_font_name): New function.
14389 (Ffont_info): Store the information about fonts generated from the
14390 default fontset in the first extra slot of the returned char-table.
14391
14392 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
14393 (font_name_registry): Delete function.
14394 (split_font_name_into_vector): New function.
14395 (build_font_name_from_vector): New function.
14396 (font_list): The argument REGISTRY is now a list of registry names.
14397 (choose_face_font): If we are choosing an ASCII font, and ATTRS
14398 specifies an explicit font name, return the name as is. Make a
14399 list of registy names.
14400
14401 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
14402 of x_new_fontset.
14403 (Fx_create_frame): Don't call x_new_fontset here. Just use
14404 x_list_fonts to check the existence of fonts.
14405
14406 * xterm.h (x_new_fontset): Adjust prototype.
14407
14408 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
14409 string. Use new_fontset_from_font_name to create a fontset from a
14410 font name.
14411
144122008-02-01 Kenichi Handa <handa@m17n.org>
14413
14414 * syntax.c (Vfind_word_boundary_function_table): New name for
14415 Vnext_word_boundary_function_table.
14416 (find-word-boundary-function-table): New name for
14417 next-word-boundary-function-table.
14418
144192008-02-01 Dave Love <fx@gnu.org>
14420
14421 * Makefile.in: Fix some dependencies.
14422
14423 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
14424 set it to nil before returning.
14425
14426 * composite.c (update_compositions): Fix type error.
14427
14428 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
14429
144302008-02-01 Kenichi Handa <handa@m17n.org>
14431
14432 * xterm.c (x_new_font): Optimize for the case that the font is
14433 already set for the frame.
14434
144352008-02-01 Kenichi Handa <handa@m17n.org>
14436
14437 * chartab.c (char_table_ascii): Check if the char table contents
14438 is sub-char-table or not.
14439 (char_table_set, char_table_set_range): Fix argument to
14440 char_table_ascii.
14441
14442 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
14443 (detect_coding_utf_8, detect_coding_utf_16)
14444 (detect_coding_emacs_mule, detect_coding_iso_2022)
14445 (detect_coding_sjis, detect_coding_big5)
14446 (detect_coding_ccl, detect_coding_charset): Change argument MASK
14447 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
14448 sequence is valid in this coding system. Change callers.
14449 (MAX_ANNOTATION_LENGTH): New macro.
14450 (ADD_ANNOTATION_DATA): New macro.
14451 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
14452 ADD_ANNOTATION_DATA. Change the format of annotation data.
14453 (ADD_CHARSET_DATA): New macro.
14454 (emacs_mule_char): New argument ID. Change callers.
14455 (decode_coding_emacs_mule, decode_coding_iso_2022)
14456 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
14457 Produce charset annotation data in coding->charbuf.
14458 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
14459 to charset annotation data in coding->charbuf.
14460 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
14461 coding->common_flags if the coding system is iso-2022 based and
14462 uses designation.
14463 (produce_composition): Adjust for the new annotation data format.
14464 (produce_charset): New function.
14465 (produce_annotation): Handle charset annotation.
14466 (handle_composition_annotation, handle_charset_annotation): New
14467 functions.
14468 (consume_chars): Handle charset annotation. Utilize the above two
14469 functions.
14470 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
14471 buffer, get the deleted text as a string and set
14472 coding->src_object to that string.
14473 (detect_coding, detect_coding_system): Use the new struct
14474 coding_detection_info.
14475
14476 * coding.h (struct coding_detection_info): New structure.
14477 (struct coding_system): Adjust prototype of the member `detector'.
14478 (CODING_ANNOTATE_CHARSET_MASK): New macro.
14479
144802008-02-01 Kenichi Handa <handa@m17n.org>
14481
14482 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
14483
144842008-02-01 Dave Love <fx@gnu.org>
14485
14486 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
14487 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
14488 to new local and nullify apropos_accumulate before returning.
14489 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
14490
144912008-02-01 Kenichi Handa <handa@m17n.org>
14492
14493 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
14494 correctly.
e3eea1fc 14495
aac0c6e3
MR
144962008-02-01 Dave Love <fx@gnu.org>
14497
14498 * fns.c (Flanginfo): Call synchronize_system_time_locale.
14499
145002008-02-01 Kenichi Handa <handa@m17n.org>
14501
14502 The following changes are to make character composition happen
14503 automatically on displaying.
14504
14505 * Makefile.in (lisp, shortlisp): Add composite.elc.
14506
14507 * composite.h (Qauto_composed, Vauto_composition_function)
14508 (Qauto_composition_function): Extern them.
14509
14510 * composite.c (Vcomposition_function_table)
14511 (Qcomposition_function_table): Delete variables.
14512 (Qauto_composed, Vauto_composition_function)
14513 (Qauto_composition_function): New variables.
14514 (run_composition_function): Don't call
14515 compose-chars-after-function.
14516 (update_compositions): Clear `auto-composed' text property.
14517 (compose_chars_in_text): Delete this function.
14518 (syms_of_composite): Staticpro Qauto_composed and
14519 Qauto_composition_function. Declare Vauto_composition_function as
14520 a Lisp variable.
14521
14522 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
14523
14524 * xdisp.c (it_props): Add an entry for Qauto_composed.
14525 (handle_auto_composed_prop): New function.
14526
14527 * xselect.c (selection_data_to_lisp_data): Don't call
14528 compose_chars_in_text.
14529
145302008-02-01 Dave Love <fx@gnu.org>
14531
14532 * keyboard.c (read_char): Modify checking around use of
14533 Vkeyboard_translate_table.
14534
14535 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
14536 and fix C types.
14537
145382008-02-01 Kenichi Handa <handa@m17n.org>
14539
14540 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
14541 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14542 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
14543 the case that the last byte is '\r' correctly.
14544 (decode_coding): Flush out the unprocessed data correctly.
14545 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
14546
145472008-02-01 Dave Love <fx@gnu.org>
14548
14549 * xterm.c (XTread_socket): Fix changes for defined keysyms.
14550 Add XK_ISO... case.
14551 (xaw_scroll_callback): Revert last change.
14552
145532008-02-01 Kenichi Handa <handa@m17n.org>
14554
14555 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
14556
145572008-02-01 Kenichi Handa <handa@m17n.org>
14558
14559 * xfaces.c (Vface_resizing_fonts): New variable.
14560 (struct font_name): New member `resizing_ratio'.
14561 (font_resizing_ratio): New function.
14562 (split_font_name): Set font->resizing_ratio.
14563 (better_font_p): Pay attention to font->resizing_ratio.
14564 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
14565 RESX, and RESY fields.
14566 (try_alternative_families): Try scalable fonts if
14567 Vscalable_fonts_allowed is not Qt.
14568 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
14569
145702008-02-01 Dave Love <fx@gnu.org>
14571
14572 * xterm.c (xaw_scroll_callback): Cast correctly.
14573
145742008-02-01 Dave Love <fx@gnu.org>
14575
14576 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
14577 (lispy_kana_keys): Comment out.
14578 (make_lispy_event) [XK_kana_A]: Comment out.
14579
14580 * xterm.c (xaw_scroll_callback): Cast call_data.
14581 (XTread_socket): Deal with ASCII keysyms.
14582 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
14583
145842008-02-01 Dave Love <fx@gnu.org>
14585
14586 * xterm.c (Vx_keysym_table): New.
14587 (syms_of_xterm): Initialize it.
14588 (XTread_socket): Use it.
14589 From head: Eliminate incorrect optimization that tried to avoid
14590 decoding the output of X*LookupString.
14591 (x_get_font_repertory): Delete charset declaration.
14592
145932008-02-01 Kenichi Handa <handa@m17n.org>
14594
14595 * coding.c (detect_coding_charset): If only ASCII bytes are found,
14596 return 0.
14597 (Fdefine_coding_system_internal): Setup
14598 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
14599
146002008-02-01 Dave Love <fx@gnu.org>
14601
14602 * coding.c (Fcheck_coding_system): Doc fix.
14603
14604 * editfns.c (Finsert_byte): Return a proper value.
14605
146062008-02-01 Kenichi Handa <handa@m17n.org>
14607
14608 * coding.c (decode_coding): Fix args to translate_chars. Pay
14609 attention to Vstandard_translation_table_for_decode.
14610 (encode_coding): Fix args to translate_chars. Pay attention to
14611 Vstandard_translation_table_for_encode.
14612
14613 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
14614 SINGLE_BYTE_CHAR_P.
14615
14616 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
14617 not by SINGLE_BYTE_CHAR_P.
14618
14619 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
14620 SINGLE_BYTE_CHAR_P.
14621
14622 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
14623 SINGLE_BYTE_CHAR_P.
14624
14625 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
14626 by SINGLE_BYTE_CHAR_P.
14627
14628 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
14629 SINGLE_BYTE_CHAR_P.
14630
146312008-02-01 Dave Love <fx@gnu.org>
14632
14633 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
14634
146352008-02-01 Dave Love <fx@gnu.org>
14636
14637 * fns.c (Flanginfo): Fix typo.
14638
14639 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
14640
146412008-02-01 Kenichi Handa <handa@m17n.org>
14642
14643 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
14644 (detect_coding_emacs_mule, detect_coding_iso_2022)
14645 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
14646 incomplete byte sequence. Don't update *mask when correctly detected.
14647 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
14648 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
14649 (detect_coding, detect_coding_system): Adjust for the changes above.
14650
146512008-02-01 Kenichi Handa <handa@m17n.org>
14652
14653 * character.c (char_string): Rename from
14654 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
14655 (string_char): Rename from string_char.
14656
14657 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
14658 if C is greater than MAX_3_BYTE_CHAR.
14659 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
14660 string_char instead of string_char_with_unification.
14661
146622008-02-01 Dave Love <fx@gnu.org>
14663
14664 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
14665
146662008-02-01 Kenichi Handa <handa@m17n.org>
14667
14668 * keymap.c (push_key_description): Pay attention to force_multibyte.
14669
14670 * regex.c (re_search_2): Fix for the case of unibyte buffer.
14671
146722008-02-01 Dave Love <fx@gnu.org>
14673
14674 * charset.c (define_charset_internal): Rename `supprementary'.
14675
14676 * Makefile.in (lisp, shortlisp): Remove latin-N.
14677
146782008-02-01 Dave Love <fx@gnu.org>
14679
14680 * xfns.c (x_window, x_window): Use use_xim.
14681
14682 * xterm.c (use_xim): Initialize.
14683 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
14684 (x_term_init): Maybe set use_xim.
14685
14686 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
14687
146882008-02-01 Kenichi Handa <handa@m17n.org>
14689
14690 * search.c (search_buffer): Fix case-fold-search of multibyte
14691 characters.
14692 (boyer_moore): Rename the last argument to char_high_bits.
14693
146942008-02-01 Kenichi Handa <handa@m17n.org>
14695
14696 * xdisp.c (display_string): Fix for the case of zero width glyph.
14697
14698 * xfns.c (x_set_font): Change the error message of the case that
14699 x_new_fontset returns Qt.
14700
14701 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
14702 (Finternal_set_lisp_face_attribute): Use signal_error for the
14703 error of invalid fontset.
14704
14705 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
14706 fontset, return Qt.
14707
147082008-02-01 Dave Love <fx@gnu.org>
14709
14710 * unexelf.c (unexec): Make .got handling not SGI-specific.
14711
14712 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
14713
14714 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
14715
14716 * keyboard.c (read_key_sequence): Fix type error.
14717
14718 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
14719 type error.
14720
14721 * fontset.c (fontset_add): Return Lisp_Object.
14722
147232008-02-01 Dave Love <fx@gnu.org>
14724
14725 * charset.h (charset_ordered_list_tick): Declare extern.
14726
147272008-02-01 Kenichi Handa <handa@m17n.org>
14728
14729 The following changes (and some of 2008-02-01 changes of mine) are
14730 for handling syntax, category, and case conversion for unibyte
14731 characters by converting them to multibyte on the fly. With these
14732 changes, we don't have to setup syntax and case tables for unibyte
14733 characters in each language environment.
14734
14735 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
14736 multibyte if necessary.
14737
14738 * bytecode.c (Fbyte_code): Likewise.
14739
14740 * character.h (LEADING_CODE_LATIN_1_MIN)
14741 (LEADING_CODE_LATIN_1_MAX): New macros.
14742 (unibyte_to_multibyte_table): Extern it.
14743 (unibyte_char_to_multibyte): New macro.
14744 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
14745 (CHAR_LEADING_CODE): New macro.
14746 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
14747
14748 * character.c (unibyte_to_multibyte_table): New variable.
14749 (unibyte_char_to_multibyte): Move to character.h and define as macro.
14750 (multibyte_char_to_unibyte): If C is an eight-bit character,
14751 convert it to the corresponding byte value.
14752
14753 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
14754 not 1, signals an error. Update the elements of
14755 unibyte_to_multibyte_table.
14756 (init_charset_once): Initialize unibyte_to_multibyte_table.
14757 (syms_of_charset): Define the charset `iso-8859-1'.
14758
14759 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
14760 as is without converting it to unibyte. In a unibyte buffer,
14761 convert C to multibyte before checking the syntax.
14762
14763 * lisp.h (unibyte_char_to_multibyte): Delete extern.
14764
14765 * minibuf.c (Fminibuffer_complete_word): Use the macro
14766 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
14767
14768 * regex.h (struct re_pattern_buffer): New member target_multibyte.
14769
14770 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
14771 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
14772 that is zero, convert an eight-bit char to multibyte.
14773 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
14774 non-emacs case.
14775 (PATFETCH): Convert an eight-bit char to multibyte.
14776 (HANDLE_UNIBYTE_RANGE): New macro.
14777 (regex_compile): Setup the compiled pattern for multibyte chars
14778 even if the given regex string is unibyte. Use PATFETCH_RAW
14779 instead of PATFETCH in many places. To handle `charset'
14780 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
14781 only for ASCII chars.
14782 (analyse_first) <exactn>: Simplify because the compiled pattern
14783 is multibyte.
14784 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
14785 <charset>: Use CHAR_LEADING_CODE to get leading codes.
14786 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
14787 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
14788 multibyte always 1.
14789 (re_search_2): In emacs, set the locale variable multibyte to 1,
14790 otherwise to 0. New local variable target_multibyte. Check it
14791 to decide the multibyteness of STR1 and STR2. If
14792 target_multibyte is zero, convert unibyte chars to multibyte
14793 before translating and checking fastmap.
14794 (TARGET_CHAR_AND_LENGTH): New macro.
14795 (re_match_2_internal): In emacs, set the locale variable multibyte
14796 to 1, otherwise to 0. New local variable target_multibyte. Check
14797 it to decide the multibyteness of STR1 and STR2. Use
14798 TARGET_CHAR_AND_LENGTH to fetch a character from D.
14799 <charset, charset_not>: If multibyte is nonzero, check fastmap
14800 only for ASCII chars. Call bcmp_translate with
14801 target_multibyte, not with multibyte.
14802 <begline>: Declare the local variable C as `unsigned'.
14803 (bcmp_translate): Change the last arg name to target_multibyte.
14804
14805 * search.c (compile_pattern_1): Don't adjust the multibyteness of
14806 the regexp pattern and the matching target. Set cp->buf.multibyte
14807 to the multibyteness of the regexp pattern. Set
14808 cp->but.target_multibyte to the multibyteness of the matching target.
14809 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
14810 FETCH_STRING_CHAR_ADVANCE.
14811 (Freplace_match): Convert unibyte chars to multibyte.
14812
14813 * syntax.c (char_quoted, back_comment, scan_words)
14814 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
14815 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
14816 unibyte chars to multibyte.
14817 (skip_chars): Delete the arg syntaxp, and move the code for
14818 handling syntaxes to skip_syntaxes. Change callers.
14819 Fix the case that the multibyteness of STRING and the current
14820 buffer doesn't match.
14821 (skip_syntaxes): New function.
14822 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
14823 SINGLE_BYTE_CHAR_P.
14824
148252008-02-01 Kenichi Handa <handa@m17n.org>
14826
14827 * xfaces.c (QCfontset): New variable.
14828 (LFACE_FONTSET): New macro.
14829 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
14830 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
14831 (Finternal_set_lisp_face_attribute)
14832 (Finternal_get_lisp_face_attribute): Handle QCfontset.
14833 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
14834 check also LFACE_FONTSET_INDEX.
14835 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
14836 attrs[LFACE_FONT_INDEX].
14837 (syms_of_xfaces): Intern and staticpro QCfontset.
14838
14839 * dispextern.h (enum lface_attribute_index): New member
14840 LFACE_FONTSET_INDEX.
14841
14842 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
14843
148442008-02-01 Kenichi Handa <handa@m17n.org>
14845
14846 * coding.c (coding_set_destination): Fix coding->destination for
14847 the case converting a region.
14848 (encode_coding_utf_8): Encode eight-bit chars as single byte.
14849 (encode_coding_object): Fix coding->dst_pos and
14850 coding->dst_pos_byte for the case converting a region.
14851
14852 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
14853
14854 * character.h (BYTE8_STRING): New macro.
14855
14856 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
14857
148582008-02-01 Kenichi Handa <handa@m17n.org>
14859
14860 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
14861 characters by octal form.
14862
14863 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
14864
14865 * buffer.h (_fetch_multibyte_char_len): Delete extern.
14866 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
14867 _fetch_multibyte_char_len.
14868 (FETCH_CHAR_AS_MULTIBYTE): New macro.
14869
14870 * casetab.c (set_canon, set_identity, shuffle): Simplify.
14871
14872 * casefiddle.c (casify_object): Simplify. Handle the case that
14873 the case conversion change the byte length.
14874 (casify_region): Likewise.
14875
14876 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
14877
14878 * character.c (_fetch_multibyte_char_len): Delete this variable.
14879 (syms_of_character): Setup Vprintable_chars.
14880
14881 * editfns.c (Fchar_equal): Fix for the unibyte case.
14882 (Finsert_byte): New function.
14883 (syms_of_editfns): Defsubr it.
14884
14885 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
14886 of direct code 0x3ffff.
14887
14888 * search.c (Freplace_match): Fix for the unibyte case.
14889
148902008-02-01 Kenichi Handa <handa@m17n.org>
14891
14892 * lread.c (safe_to_load_p): Fix the logic.
14893
14894 * syntax.c (scan_words): Don't treat characters belonging to
14895 different scripts as constituting a word.
14896
14897 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
14898
14899 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
14900
14901 * emacs.c (main): In the case of --unibyte, instead of aborting on
14902 finding non-empty buffer, make it unibyte.
14903
149042008-02-01 Kenichi Handa <handa@m17n.org>
14905
14906 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
14907 to create a fontset.
14908
149092008-02-01 Dave Love <fx@gnu.org>
14910
14911 * character.c (Funibyte_char_to_multibyte): Doc fix.
14912
14913 * xfns.c [HAVE_STDLIB_H]: Fix last change.
14914
149152008-02-01 Kenichi Handa <handa@m17n.org>
14916
14917 * fontset.c (fontset_add): Make the type `int'.
14918 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
14919
14920 * character.c (unibyte_char_to_multibyte)
14921 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
14922 charset_unibyte, not charset_primary.
14923
14924 * charset.h (charset_unibyte): Extern it instead of charset_primary.
14925
14926 * charset.c (charset_unibyte): Rename from charset_primary.
14927 (Funibyte_charset): Rename from Fprimary_charset.
14928 (Fset_unibyte_charset): Rename from Fset_primary_charset.
14929 (syms_of_charset): Adjust for the above changes.
14930
14931 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
14932 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
14933 it->multibyte_p is zero.
14934
14935 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
14936 Delete extern.
14937
149382008-02-01 Kenichi Handa <handa@m17n.org>
14939
14940 * coding.c (Fdefine_coding_system_internal): Fix category setting
14941 for a coding system of type iso-2022.
14942
149432008-02-01 Kenichi Handa <handa@m17n.org>
14944
14945 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
14946
149472008-02-01 Kenichi Handa <handa@m17n.org>
14948
14949 * syntax.c (Vnext_word_boundary_function_table): New variable.
14950 (next-word-boundary-function-table): Declare it as a Lisp variable
14951 in syms_of_syntax.
14952 (scan_words): Call functions in Vnext_word_boundary_function_table
14953 if any.
14954
14955 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
14956
14957 * fontset.c (fs_load_font): If fontp->charset is not negative,
14958 return fontp without setting its members.
14959
149602008-02-01 Dave Love <fx@gnu.org>
14961
14962 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
14963
14964 * m/sparc.h (HAVE_ALLOCA): Delete.
14965
14966 * s/irix6-5.h: Don't include strings.h.
14967 (bcopy, bzero, bcmp): Don't undef.
14968
14969 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
14970
14971 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
14972 (TIOCSIGSEND): Don't test IRIX6.
14973 (bcopy, bzero, bcmp): Define conditionally.
14974
149752008-02-01 Kenichi Handa <handa@m17n.org>
14976
14977 * buffer.c (Qas, Qmake, Qto): New variables.
14978 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
14979 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
14980
14981 * callproc.c (Fcall_process): Don't call insert_1_both directly if
14982 we are inserting a process output into a multibyte buffer.
14983
14984 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
14985 multibyte_char_to_unibyte.
14986
14987 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
14988 by the primary charset, make it eight-bit char.
14989 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
14990
14991 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
14992 (charset_8_bit__control, charset_8_bit_graphic)
14993 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
14994 (define_charset_internal): New function.
14995 (syms_of_charset): Call define_charset_internal for pre-defined
14996 charsets.
14997
14998 * charset.h (charset_8_bit): Extern it.
14999
15000 * coding.c (make_conversion_work_buffer): Adjust for the change
15001 of Fset_buffer_multibyte.
15002 (encode_coding_raw_text): Increment p0 in the loop.
15003
15004 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
15005
15006 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
15007 for the change of Fset_buffer_multibyte.
15008
15009 * fns.c (Fstring_to_multibyte): New function.
15010 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
15011
150122008-02-01 Dave Love <fx@gnu.org>
15013
15014 * xfns.c (x_put_x_image): Declare args.
15015
15016 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
15017 (try_font_list): Declare an arg.
15018
15019 * xdisp.c (message2_nolog, set_message): Declare an arg.
15020
15021 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
15022
15023 * syntax.c (scan_sexps_forward): Declare an arg.
15024
15025 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
15026 Declare an arg.
15027
15028 * lisp.h (Fnew_fontset): Declare.
15029
15030 * keymap.c (push_key_description): Call CHARACTERP correctly.
15031
15032 * fontset.c (fontset_add): Declare args. Call make_number correctly.
15033 (face_for_char): Delete unused vars.
15034 (Fset_fontset_font): Doc fix. Delete unused vars.
15035
15036 * doc.c (Fsubstitute_command_keys): Delete unused vars.
15037
15038 * composite.c (update_compositions): Declare arg.
15039
15040 * cm.c (calccost, cmgoto): Declare args.
15041
15042 * charset.c: Remove `emacs' conditional. Doc fixes.
15043 (map_char_table_for_charset): Declare.
15044
15045 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
15046
15047 * ccl.c: Remove `emacs' conditional.
15048
150492008-02-01 Kenichi Handa <handa@m17n.org>
15050
15051 The following changes are to allow specifying multiple font
15052 patterns for a character range (specified by script or charset).
15053
15054 * Makefile.in (abbrev.o): Depend on syntax.h.
15055 (xfaces.o): Depend on charset.h.
15056
15057 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
15058 SINGLE_BYTE_CHAR_P.
15059
15060 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
15061
15062 * character.h (Vchar_script_table): Extern it.
15063
15064 * character.c (Vscript_alist): Delete.
15065 (Vchar_script_table, Qchar_script_table): New variable.
15066 (syms_of_character): Declare Vchar_script_table as a lisp variable
15067 and initialize it.
15068
15069 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
15070 have property char-table-extra-slots, make no extra slot.
15071
15072 * dispextern.h (struct face): Delete member `charset'.
15073 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
15074 SINGLE_BYTE_CHAR_P.
15075 (choose_face_font, lookup_non_ascii_face, font_name_registry):
15076 Add prototypes.
15077 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
15078 (generate_ascii_font_name): Rename from generate_ascii_font.
15079
15080 * fontset.h (get_font_repertory_func): New prototype.
15081 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
15082 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
15083
15084 * fontset.c (Qprepend, Qappend): New variables.
15085 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
15086 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
15087 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
15088 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
15089 (fontset_ref_and_range, fontset_add, reorder_font_vector)
15090 (load_font_get_repertory): New functions.
15091 (fontset_set): Delete.
15092 (fontset_face): New arg FACE. Return face ID, not face.
15093 Complete re-write to handle new fontset structure. Change caller.
15094 (free_face_fontset): Use ASET istead of AREF (X) = Y.
15095 (face_for_char): Don't call lookup_face.
15096 (make_fontset_for_ascii_face): New arg FACE.
15097 (fs_load_font): New arg CHARSET_ID. Don't check
15098 Vfont_encoding_alist here.
15099 (find_font_encoding): New function.
15100 (list_fontsets): Use STRINGP, not ! NILP.
15101 (accumulate_script_ranges): New function.
15102 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
15103 re-written to handle new fontset structure.
15104 (Ffontset_font): Return a copy of element.
15105 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
15106 docstring of font-encoding-alist.
15107
15108 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
15109 (Fset_fotset_font): Fix arguments to 5.
15110
15111 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
15112
15113 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
15114 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
15115 (highlight_trailing_whitespace): Adjust for the change of
15116 lookup_named_face.
15117
15118 * xfaces.c: Include charset.h.
15119 (load_face_font): Delete argument C. Change caller.
15120 (generate_ascii_font_name): Rename from generate_ascii_font.
15121 (font_name_registry): New function.
15122 (cache_face): Store ascii faces before non-ascii faces in buckets.
15123 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
15124 Lookup only ascii faces.
15125 (lookup_non_ascii_face): New function.
15126 (lookup_named_face): Delete argument C. Change caller.
15127 (lookup_derived_face): Delete argument C. Change caller.
15128 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
15129 a string, just call font_list with it.
15130 (choose_face_font): Delete arguments FACE and C. New arg
15131 FONT_SPEC. Change caller.
15132 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
15133 Change caller.
15134 (realize_non_ascii_face): New function.
15135 (realize_x_face): Call load_face_font here.
15136 (realize_tty_face): Delete argument C. Change caller.
15137 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
15138 get a face ID.
15139 (dump_realized_face): Don't print charset of FACE.
15140
15141 * xfns.c (x_set_font): Always call x_new_fontset and
15142 store_frame_parameter.
15143 (Fx_create_frame): Call x_new_fontset, not x_new_font.
15144 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
15145
15146 * xterm.h (x_get_font_repertory): Extern it.
15147
15148 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
15149 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
15150 it->multibyte_p is zero.
15151 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
15152 (x_new_fontset): If FONTSETNAME doesn't match any existing
15153 fontsets, create a new one.
15154 (x_get_font_repertory): New function.
15155
151562008-02-01 Kenichi Handa <handa@m17n.org>
15157
15158 * coding.c (Ffind_coding_systems_region_internal): Detect an
15159 ASCII only string correctly.
15160
15161 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
15162 version is 0.
15163
151642008-02-01 Kenichi Handa <handa@m17n.org>
15165
15166 * lread.c: Include "coding.h".
15167 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
15168 (load_each_byte, unread_char): New variables.
15169 (readchar_backlog): Delete.
15170 (readchar): Return a character unless load_each_byte is nonzero.
15171 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
15172 cons. If unread_char is not -1, simply return it.
15173 (unreadchar): Handle the case that readcharfun is
15174 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
15175 (read_multibyte): Delete.
15176 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
15177 (read_emacs_mule_char): New functions.
15178 (Fload): Even if the file doesn't have the extension ".elc", if
15179 safe_to_load_p returns a positive version number, assume that the
15180 file contains bytecompiled code. If the version is less than 22,
15181 load the file while decoding multibyte sequences by emacs-mule.
15182 (readevalloop): Don't use readchar_backlog.
15183 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
15184 (Fread_from_string): Pay attention to the case that STREAM is a cons.
15185 (read_escape): Delete the arg BYTEREP.
15186 (read1): Set load_each_byte to 1 temporarily while handling
15187 #@NUMBER. Don't call read_multibyte.
15188 (read_vector): Call Fread with a cons. If readcharfun is
15189 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
15190 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
15191 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
15192 and Qload_force_doc_strings.
15193
151942008-02-01 Kenichi Handa <handa@m17n.org>
15195
15196 * xdisp.c (face_before_or_after_it_pos): Call
15197 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
15198
151992008-02-01 Kenichi Handa <handa@m17n.org>
15200
15201 * character.h (TRAILING_CODE_P): New macro.
15202 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
15203 (string_char_with_unification): Fix prototype.
15204 (Vscript_alist): Extern it.
15205
15206 * character.c (Vscript_alist): New variable.
15207 (string_char_with_unification, str_as_unibyte)
15208 (string_escape_byte8): Add `const' to local variables.
15209 (syms_of_character): Declare script-alist as a Lisp variable.
15210
15211 * charset.h (Vcharset_ordered_list): Extern it.
15212 (charset_ordered_list_tick): Extern it.
15213 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
15214 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
15215 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
15216 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
15217 (Funify_charset): Adjust for the change of Funify_charset.
15218
15219 * charset.c (charset_ordered_list_tick): New variable.
15220 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
15221 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
15222 deunify intead of unify a charset.
15223 (string_xstring_p): Add `const' to local variables.
15224 (find_charsets_in_text): Add `const' to arguments and local variables.
15225 (encode_char): Adjust for the change of Funify_charset. Fix
15226 detecting of invalid code.
15227 (Fset_charset_priority): Increment charset_ordered_list_tick.
15228 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
15229 and TO_CODE.
15230
15231 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
15232 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
15233 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
15234 (decode_coding_ccl, consume_chars)
15235 (Ffind_coding_systems_region_internal)
15236 (Fcheck_coding_systems_region): Add `const' to local variables.
15237
15238 * print.c (print_object): Use octal form for printing the
15239 contents of a bool vector.
15240
152412008-02-01 Dave Love <fx@gnu.org>
15242
15243 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
15244 <version == 20>: Refuse to load.
15245
152462008-02-01 Dave Love <fx@gnu.org>
15247
15248 * fns.c: Move coding.h.
15249 (Qcodeset, Qdays, Qmonths): New.
15250 (concat): Use CHARACTERP instead of INTEGERP.
15251 (Flocale_codeset): Delete.
15252 (Flanginfo): New function.
15253 (syms_of_fns): Change accordingly.
15254
15255 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
15256
152572008-02-01 Dave Love <fx@gnu.org>
15258
15259 * casetab.c (init_casetab_once, init_casetab_once): Fix
15260 CHAR_TABLE_SET call.
15261
15262 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
15263
15264 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
15265
15266 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
15267 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
15268 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
15269
15270 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
15271
15272 * coding.c (ENCODE_DESIGNATION, decode_eol)
15273 (make_conversion_work_buffer, code_conversion_restore)
15274 (Fdefine_coding_system_internal): Convert Lisp types.
15275 (code_conversion_restore): Use EQ, not ==.
15276 (Fencode_coding_string): Fix code_convert_string call.
15277
15278 * coding.h (code_convert_region): Fix prototype.
15279
15280 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
15281
15282 * fontset.c (fontset_ref, fontset_set, fs_load_font)
15283 (Ffontset_info): Convert Lisp types.
15284
15285 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
15286
15287 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
15288
15289 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
15290
15291 * chartab.c: Include "...h", not <...h> in some cases.
15292
15293 * callproc.c (Fcall_process): Remove unused variables.
15294
152952008-02-01 Dave Love <fx@gnu.org>
15296
15297 * coding.c (Fset_coding_system_priority): Allow null arg list.
15298
152992008-02-01 Dave Love <fx@gnu.org>
15300
15301 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
15302 (Fself_insert_and_exit): Use CHARACTERP.
15303
15304 * callproc.c (Fcall_process): Remove unused vars.
15305
15306 * xterm.c (XTread_socket): Add extra dead keysyms.
15307
15308 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
15309
15310 * dispextern.h: Remove prototypes for redraw_frame,
15311 redraw_garbaged_frames.
15312
15313 * cmds.c (Fself_insert_command): Use CHARACTERP.
15314
15315 * chartab.c (make_sub_char_table): Remove unused var.
15316 (Fset_char_table_default, Fmap_char_table): Doc fix.
15317
15318 * keymap.c (access_keymap): Remove generic char code.
15319 (push_key_description): Use CHARACTERP.
15320
153212008-02-01 Dave Love <fx@gnu.org>
15322
15323 * charset.c: Doc fixes.
15324 (Funify_charset): Extra checking.
15325
153262008-02-01 Dave Love <fx@gnu.org>
15327
15328 * lread.c: Remove some unused variables.
15329 (safe_to_load_p): If safe, return the magic number version byte.
15330 (Fload): Maybe use load-with-code-conversion.
15331
153322008-02-01 Kenichi Handa <handa@m17n.org>
15333
15334 * category.c (Fmodify_category_entry): Don't modify the contents
15335 of category_set for characters out of the range. Avoid
15336 unnecessary modification.
15337
15338 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
15339 Vchar_unify_table. The default value of the table is now nil.
15340
15341 * character.c (syms_of_character): Setup Vchar_width_table for
15342 eight-bit-control and raw-byte chars.
15343
15344 * charset.h (enum define_charset_arg_index): Delete
15345 charset_arg_parents and add charset_arg_subset and
15346 charset_arg_superset.
15347 (enum charset_attr_index): Delete charset_parents and add
15348 charset_subset and charset_superset.
15349 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
15350 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
15351 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
15352 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
15353 (CHARSET_SUPERSET): New macros.
15354 (charset_work): Extern it.
15355 (ENCODE_CHAR): Use charset_work.
15356 (CHAR_CHARSET_P): Adjust for the change of encoder format.
15357 (map_charset_chars): Extern it.
15358
15359 * charset.c (load_charset_map): Set the default value of encoder
15360 and deunifier char-tables to nil.
15361 (map_charset_chars): Change argument. Change callers. Use
15362 map_char_table_for_charset instead of map_char_table.
15363 (Fmap_charset_chars): New optional args from_code and to_code.
15364 (Fdefine_charset_internal): Adjust for the change of
15365 `define-charset' (:parents -> :subset or :superset).
15366 (charset_work): New variable.
15367 (encode_char, syms_of_charset): Adjust for the change of
15368 Fdefine_charset_internal.
15369 (Ffind_charset_string): Setup the vector `charsets' correctly.
15370
15371 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
15372 the previous change.
15373 (char_table_ref_and_range): Adjust for the above change.
15374 (map_sub_char_table_for_charset): New function.
15375 (map_char_table_for_charset): New function.
15376
15377 * keymap.c (describe_vector): Handle a char-table directly here.
15378 (describe_char_table): Delete.
15379
15380 * lisp.h (map_charset_chars): Delete.
15381
153822008-02-01 Dave Love <fx@gnu.org>
15383
15384 * fns.c (count_combining): Comment out (unused).
15385 (Flocale_codeset): New.
15386 (syms_of_fns): Defsubr it.
15387
15388 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
15389 (size_t): Remove.
15390
153912008-02-01 Dave Love <fx@gnu.org>
15392
15393 * Makefile.in (chartab.o): Depend on charset.h.
15394
153952008-02-01 Kenichi Handa <handa@m17n.org>
15396
15397 * character.c (syms_of_character): Set the default value of
15398 Vprintable_chars to Qnil.
15399
154002008-02-01 Dave Love <fx@gnu.org>
15401
15402 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
15403
154042008-02-01 Kenichi Handa <handa@m17n.org>
15405
15406 * charset.c (load_charset_map): Handle the case that from < to
15407 correctly.
15408
15409 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
15410 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
15411 Pay attention to raw-8-bit chars.
15412
154132008-02-01 Kenichi Handa <handa@m17n.org>
15414
15415 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
15416 It is not bytecompiled now.
15417
15418 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
15419 (charset_jisx0208): New variables.
15420 (Fdefine_charset_internal): Setup them if appropriate.
15421 (init_charset_once): Initialize them to -1.
15422
15423 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
15424 (charset_jisx0208): Extern them.
15425
15426 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
15427 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
15428 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
15429 (setup_iso_safe_charsets): Fix arguments to Fassq.
15430 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
15431 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
15432 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
15433 (encode_coding_iso_2022): Change the 1st arg to
15434 ENCODE_ISO_CHARACTER to a variable.
15435
154362008-02-01 Kenichi Handa <handa@m17n.org>
15437
15438 * charset.h (enum define_charset_arg_index): New enums
15439 charset_arg_min_code and charset_arg_max_code.
15440 (struct charset): New member char_index_offset.
15441
15442 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
15443 Take charset->char_index_offset into account.
15444 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
15445 args[charset_arg_max_code]. Setup charset.char_index_offset.
15446 (syms_of_charset): Fix args to Fdefine_charset_internal.
15447
154482008-02-01 Dave Love <fx@gnu.org>
15449
15450 * coding.c (decode_coding_utf_8): Reject overlong sequences.
15451
154522008-02-01 Dave Love <fx@gnu.org>
15453
15454 * coding.c: Doc fixes.
15455 (Fcoding_system_aliases): Fix return value.
15456 (Qmac): Remove (duplicated) definition.
15457
154582008-02-01 Dave Love <fx@gnu.org>
15459
15460 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
15461 functions.
15462
15463 * character.c (Fstring): Doc fix.
15464
15465 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
15466
15467 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
15468 ids.
15469 (font-encoding-alist): Doc fix.
15470
154712008-02-01 Dave Love <fx@gnu.org>
15472
15473 * term.c (costs_set): Declare static, non-initialized for pcc.
15474 (encode_terminal_code): Remove unused var.
15475
15476 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
15477 for K&R.
15478
15479 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
15480
15481 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
15482 (suffixes): Move out of make_subsidiaries for K&R.
15483
15484 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
15485
15486 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
15487
154882008-02-01 Dave Love <fx@gnu.org>
15489
15490 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
15491
15492 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
15493
154942008-02-01 Yong Lu <lyongu@asia-infonet.com>
15495
15496 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
15497
15498 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
15499
155002008-02-01 Kenichi Handa <handa@m17n.org>
15501
15502 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
15503 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
15504
155052008-02-01 Kenichi Handa <handa@m17n.org>
15506
15507 * coding.c (decode_coding_charset): Adjust for the change of
15508 Fdefine_coding_system_internal.
15509 (Fdefine_coding_system_internal): For a coding system of
15510 `charset' type, store a list of charset IDs in
15511 `charset_attr_charset_valids' element of coding attributes.
15512
155132008-02-01 Kenichi Handa <handa@m17n.org>
15514
15515 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
15516 (emacs_mule_char): New arg src. Delete arg `composition'. Change
15517 caller. Handle 2-byte and 3-byte charsets correctly.
15518 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
15519 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
15520 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
15521 (DECODE_EMACS_MULE_21_COMPOSITION): Call
15522 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
15523 sequence.
15524 (decode_coding_emacs_mule): Handle composition correctly. Rewind
15525 `src' and `consumed_chars' correctly before calling emacs_mule_char.
15526 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
15527 and alt&rule composition.
15528 (decode_coding_iso_2022): Handle composition correctly.
15529 (init_coding_once): Setup emacs_mule_bytes for private charsets.
15530
15531 * charset.c (Fdefine_charset_internal): Fix bug for the case of
15532 re-defining a charset. If the charset has :emacs-mule-id, setup
15533 emacs_mule_bytes.
15534 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
15535
155362008-02-01 Kenichi Handa <handa@m17n.org>
15537
15538 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
15539 (encode_coding_big5, encode_coding_charset): If coding requires safe
15540 encoding, produce a character specified by
15541 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
15542
155432008-02-01 Dave Love <fx@gnu.org>
15544
15545 * xterm.c (XSetIMValues): Declare.
15546
15547 * process.c: Conditionally include sys/wait.h, pty.h.
15548
15549 * print.c (print_object): Fix print format for 64-bit systems.
15550
15551 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
15552
15553 * buffer.c (emacs_strerror): Declare.
15554
15555 * fontset.c (Fclear_face_cache): Declare.
15556 (accumulate_font_info): Comment-out (unused).
15557 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
15558 variables.
15559
15560 * character.h (string_escape_byte8): Declare.
15561
15562 * charset.c (load_charset_map, load_charset_map_from_file): Remove
15563 unused vars.
15564 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
15565 (Fmap_charset_chars): Doc fix.
15566
15567 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
15568 (Fset_coding_system_priority, Fset_coding_system_priority)
15569 (Fdefine_coding_system_internal): Doc fix.
15570
155712008-02-01 Dave Love <fx@gnu.org>
15572
15573 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
15574
155752008-02-01 Kenichi Handa <handa@m17n.org>
15576
15577 * character.c (string_escape_byte8): Make multibyte string with
15578 correct size.
15579
15580 * charset.c (Fmake_char): Delete unnecessary code.
15581
155822008-02-01 Kenichi Handa <handa@m17n.org>
15583
15584 * xfns.c (x_encode_text): Allocate coding.destination here, and
15585 call encode_coding_object with dst_object Qnil.
15586
15587 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
15588 multibyte form correctly.
15589
15590 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
15591 against Vfont_encoding_alist.
15592
15593 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
15594 handling of charset list.
15595 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
15596 (decode_coding_object): Move point to coding->dst_pos before
15597 calling post-read-conversion function.
15598 (encode_coding_object): Give correct arguments to
15599 pre-write-conversion. Ignore the return value of
15600 pre-write-conversion function. Pay attention to the case that
15601 pre-write-conversion changes the current buffer. If dst_object is
15602 Qt, even if coding->src_bytes is zero, allocate at least one byte
15603 to coding->destination.
15604
15605 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
15606
15607 * charset.c (Fmake_char): Make it more backward compatible.
15608 (Fmap_charset_chars): Fix docstring.
15609
156102008-02-01 Dave Love <fx@gnu.org>
15611
15612 * coding.c: Doc fixes.
15613 (Fdefine_coding_system_alias): Use names, not symbols, in
15614 coding-system-alist.
15615
156162008-02-01 Kenichi Handa <handa@m17n.org>
15617
15618 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
15619 of calling free_realized_face.
15620
156212008-02-01 Yong Lu <lyongu@asia-infonet.com>
15622
15623 * charset.c (read_hex): Don't treat SPC as a comment starter.
15624 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
15625 (Fdecode_char): Fix typo.
15626
156272008-02-01 Kenichi Handa <handa@m17n.org>
15628
15629 * charset.h (struct charset): New member `code_space_mask'.
15630
15631 * coding.c (coding_set_source): Delete the local variable beg_byte.
15632 (encode_coding_charset, Fdefine_coding_system_internal):
15633 Delete the local variable charset.
15634 (Fdefine_coding_system_internal): Setup
15635 attrs[coding_attr_charset_valids] correctly.
15636
15637 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
15638 member to check if CODE is valid or not.
15639 (Fdefine_charset_internal): Initialize `code_space_mask' member.
15640 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
15641 is within the range of charset->min_code and carset->max_code.
15642
156432008-02-01 Dave Love <fx@gnu.org>
15644
15645 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
15646
15647 * dispextern.h (generate_ascii_font): Fix return type.
15648
15649 * xfaces.c (generate_ascii_font): Fix arg declaration.
15650
15651 * coding.c (coding_inherit_eol_type)
15652 (Fset_terminal_coding_system_internal)
15653 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
15654
156552008-02-01 Kenichi Handa <handa@m17n.org>
15656
15657 * coding.c (decode_coding_charset, encode_coding_charset): Handle
15658 multiple charsets correctly.
15659
156602008-02-01 Kenichi Handa <handa@m17n.org>
15661
15662 * search.c (boyer_moore): Fix handling of multibyte character
15663 translation.
15664
15665 * xdisp.c (display_mode_element): When the variable `elt' is
15666 changed, update `this' and `lisp_string'.
15667
156682008-02-01 Kenichi Handa <handa@m17n.org>
15669
15670 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
15671
15672 * callproc.c (Fcall_process): Be sure to give the current buffer
15673 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
15674
15675 * charset.c (struct charset_map_entries): New struct.
15676 (load_charset_map): Rename from parse_charset_map. New args
15677 entries and n_entries. Change caller.
15678 (load_charset_map_from_file): Rename from load_charset_map.
15679 Change caller. New arg control_flag. Call load_charset_map at
15680 the tail.
15681 (load_charset_map_from_vector): New function.
15682 (Fdefine_charset_internal): Setup charset.compact_codes_p.
15683 (encode_char): If the charset is compact, change a character index
15684 to a code point.
15685
15686 * coding.c (coding_alloc_by_making_gap): Check the case that the
15687 source and destination are the same correctly.
15688 (decode_coding_raw_text): Set coding->consumed_char and
15689 coding->consumed to 0.
15690 (produce_chars): If coding->chars_at_source is nonzero, update
15691 coding->consumed_char and coding->consumed before calling
15692 alloc_destination.
15693 (Fdefine_coding_system_alias): Register ALIAS in
15694 Vcoding_system_alist.
15695 (syms_of_coding): Define `no-conversion' coding system at the tail.
15696
15697 * fileio.c (Finsert_file_contents): Set coding_system instead of
15698 val. If the current buffer is multibyte, always call
15699 decode_coding_gap.
15700
15701 * xfaces.c (try_font_list): Give higher priority to fontset's
15702 family than face's family.
15703
157042008-02-01 Kenichi Handa <handa@m17n.org>
15705
15706 * callproc.c (Fcall_process): Be sure to give the current buffer
15707 to decode_coding_c_string.
15708
15709 * xfaces.c (try_font_list): Give a family specified in a fontset
15710 higher priority than a family specified in a face.
15711
157122008-02-01 Kenichi Handa <handa@m17n.org>
15713
15714 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
15715 Fix arguments to insert_from_buffer.
15716
15717 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
15718
157192008-02-01 Kenichi Handa <handa@m17n.org>
15720
15721 * coding.c (produce_chars): Set the variable `multibytep' correctly.
15722 (decode_coding_gap): Set coding->dst_multibyte correctly.
15723
157242008-02-01 Kenichi Handa <handa@m17n.org>
15725
15726 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
15727 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
15728 (encode_coding_utf_16): Substitute coding->default_char for
15729 non-Unicode characters.
15730 (decode_coding): Don't call record_insert here.
15731 (setup_coding_system): Initialize `surrogate' of
15732 coding->spec.utf_16 to 0.
15733 (EMIT_ONE_BYTE): Fix for multibyte case.
15734
15735 * insdel.c (insert_from_gap): Call record_insert.
15736
157372008-02-01 Kenichi Handa <handa@m17n.org>
15738
15739 * casefiddle.c (casify_region): Fix multibyte case.
15740
15741 * character.c (c_string_width): Add return type `int'.
15742 (char_string_with_unification): Delete arg ADVANCED.
15743
15744 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
15745 (CHAR_STRING): Adjust for the change of char_string_with_unification.
15746 (CHAR_STRING_ADVANCE): Make it do-while statement.
15747
15748 * chartab.c (sub_char_table_set_range): Optimize for the case
15749 DEPTH == 3. Add workaround code for a GCC optimization bug.
15750
15751 * charset.c (parse_charset_map): Remove an unused variable.
15752
15753 * coding.c: Delete unused variables.
15754
15755 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
15756 earlier. If inserted is zero and the coding system doesn't
15757 require flushing, don't call decode_coding_gap.
15758
15759 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
15760
157612008-02-01 Kenichi Handa <handa@m17n.org>
15762
15763 The following changes are for using Unicode as an internal
15764 character model, and use UTF-8 format for buffer/string
15765 representation.
15766
15767 * .gdbinit (xchartable): Adjust for the change of char table structure.
15768 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
15769
15770 * Makefile.in (obj): Add character.o and chartab.o.
15771 (lisp, shortlisp): Remove utf-8.elc.
15772 (*.o): For many files, change dependency on charset.h to
15773 character.h, and add dependency on character.h.
15774 (character.o, chartab.o): New targets.
15775
15776 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
15777 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
15778 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
15779 of "charset.h".
15780
15781 * dired.c, filelock.c: Include "character.h".
15782
15783 * alloc.c: Include "character.h" instead of "charset.h".
15784 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
15785 (syms_of_alloc): Remove defsubr for Smake_char_table.
15786
15787 * buffer.c: Include "character.h" instead of "charset.h", don't
15788 include "coding.h".
15789 (Fset_buffer_multibyte): Adjust for UTF-8.
15790
15791 * buffer.h: EXFUN Fbuffer_live_p.
15792
15793 * callproc.c: Include "character.h" instead of "charset.h".
15794 (Fcall_process): Big change for the new code-conversion APIs.
15795
15796 * casetab.c: Include "character.h" instead of "charset.h".
15797 (set_canon, set_identity, shuffle): Adjust for the new
15798 map_char_table spec.
15799 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
15800 accessing the char table structure.
15801
15802 * chartab.c: New file that implements char table.
15803
15804 * category.c: Include "character.h".
15805 (copy_category_entry): New function.
15806 (copy_category_table): Call map_char_table and copy_category_entry.
15807 (Fmake_category_table): Initialize all top-level slots.
15808 (char_category_set): New function.
15809 (modify_lower_category_set): Delete.
15810 (Fmodify_category_entry): Call char_table_ref_and_range.
15811
15812 * category.h (CATEGORY_SET): Just call char_category_set.
15813
15814 * ccl.c: Include "character.h".
15815 (Qccl, Qcclp): New variables.
15816 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
15817 it's less than 256.
15818 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
15819 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
15820 and DST type.
15821 (ccl_driver): Change types of argument, adjust code accordingly.
15822 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
15823 ccl_driver.
15824 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
15825
15826 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
15827 New members src_multibyte, dst_multibyte, consumed, and produced.
15828 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
15829 (CODING_SPEC_CCL_PROGRAM): New macro.
15830 (ccl_driver): Update prototype.
15831 (Qccl, Qcclp, Fccl_program_p): Extern them.
15832 (CHECK_CCL_PROGRAM): New macro.
15833
15834 * character.c, character.h, chartab.c: New files.
15835
15836 * charset.c: Mostly re-written. Move character and multibyte sequence
15837 handling codes to character.c.
15838
15839 * charset.h: Mostly re-written. Move character and multibyte sequence
15840 handling codes to character.h.
15841
15842 * coding.c, coding.h: Mostly re-written.
15843
15844 * composite.c: Include "character.h" instead of "charset.h".
15845 (CHAR_WIDTH): Move to character.h.
15846 (HASH_KEY, HASH_VALUE): Delete.
15847
15848 * composite.h (enum composition_method): Change order of enumeration
15849 symbols.
15850
15851 * data.c: Include "character.h" instead of "charset.h".
15852 (Faref): Call CHAR_TABLE_REF for a char table.
15853 (Faset): Call CHAR_TABLE_SET for a char table.
15854
15855 * dispextern.h (free_realized_face, check_face_attribytes)
15856 (generate_ascii_font): Extern them.
15857 (free_realized_multibyte_face): Delete extern.
15858
15859 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
15860 table structure.
15861
15862 * editfns.c: Include "character.h" instead of "charset.h".
15863 (Fchar_to_string): Always call CHAR_STRING.
15864
15865 * emacs.c (main): Call init_charset_once, init_charset,
15866 syms_of_chartab, and syms_of_character.
15867
15868 * fileio.c: Include "character.h" instead of "charset.h".
15869 (Finsert_file_contents): Big change for the new code-conversion API.
15870 (choose_write_coding_system, Fwrite_region): Likewise.
15871 (build_annotations_2): Delete.
15872 (e_write): Big change for the new code-conversion API.
15873
15874 * fns.c: Include "character.h" instead of "charset.h".
15875 (copy_sub_char_table): Move to chartab.c.
15876 (Fcopy_sequence): Call copy_char_table for a char table.
15877 (concat): Delete codes calling count_multibyte.
15878 (string_char_to_byte, string_byte_to_char): Adjust for the new
15879 multibyte form.
15880 (internal_equal): Adjust for the change of char table structure.
15881 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
15882 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
15883 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
15884 (char_table_translate, optimize_sub_char_table)
15885 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
15886 chartab.c.
15887 (char_table_ref_and_index): Delete.
15888 (HASH_KEY, HASH_VALUE): Move to lisp.h.
15889 (Fmd5): Call preferred_coding_system instead of accessing
15890 Vcoding_category_list. Adjust for the new code-conversion API.
15891 (syms_of_fns): Move defsubr for char table related functions to
15892 chartab.c.
15893
15894 * fontset.c: Mostly re-written.
15895
15896 * fontset.h (struct font_info): Change type of the member encoding_type.
15897 (enum FONT_SPEC_INDEX): New enum.
15898 (fontset_font_pattern, fs_load_font): Update prototype.
15899 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
15900
15901 * indent.c: Include "character.h" instead of "charset.h".
15902 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
15903
15904 * insdel.c: Include "character.h" instead of "charset.h".
15905 (copy_text): Don't refer to Vnonascii_translation_table.
15906 (insert_from_gap): New function.
15907
15908 * keyboard.c: Include "character.h" instead of "charset.h".
15909 (command_loop_1): Never call direct_output_forward_char before
15910 a non-ASCII character.
15911 (read_char): If Vkeyboard_translate_table is a char table, always
15912 translate a character.
15913
15914 * keymap.c: Include "character.h".
15915 (store_in_keymap): Handle the case that IDX is a cons.
15916 (Fdefine_key): Handle the case that KEY is a cons and the car part
15917 is also a cons (range).
15918 (push_key_description): Adjust for the new character code.
15919 (describe_vector): Call describe_char_table for a char table.
15920 (describe_char_table): New function.
15921
15922 * keymap.h (describe_char_table): Extern it.
15923
15924 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
15925 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
15926 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
15927 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
15928 Delete.
15929 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
15930 structure.
15931 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
15932 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
15933 (CHARTAB_SIZE_BITS_3): New macros.
15934 (chartab_size): Extern it.
15935 (struct Lisp_Char_Table): Re-design.
15936 (struct Lisp_Sub_Char_Table): New structure.
15937 (HASH_KEY, HASH_VALUE): Move from fns.c.
15938 (CHARACTERBITS): Define as 22.
15939 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
15940 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
15941 (GC_SUB_CHAR_TABLE_P): New macro.
15942 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
15943 (code_convert_string_norecord): Deleted extern.
15944 (init_character_once, syms_of_character, init_charset)
15945 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
15946
15947 * lread.c: Include "character.h".
15948 (read_multibyte): New arg NBYTES.
15949 (read_escape): Change the meaning of returned *BYTEREP.
15950 (to_multibyte): Delete.
15951 (read1): Adjust the handling of char table and string.
15952
15953 * print.c: Include "character.h" instead of "charset.h".
15954 (print_string): Convert 8-bit raw bytes to octal form by
15955 string_escape_byte8.
15956 (print_object): Adjust for the new multibyte form. Print 8-bit
15957 raw bytes always in octal form. Handle sub char table correctly.
15958
15959 * process.c: Include "character.h" instead of "charset.h".
15960 (read_process_output, send_process): Adjust for the new
15961 code-conversion API.
15962
15963 * puresize.h (BASE_PURESIZE): Increase.
15964
15965 * regex.c: Include "character.h" instead of "charset.h".
15966 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
15967 (regex_compile): Accept a range whose starting and ending
15968 character have different leading bytes.
15969 (analyse_first): Adjust for the above change.
15970
15971 * search.c: Include "character.h" instead of "charset.h".
15972 (search_buffer, boyer_moore): Adjust for the new multibyte form.
15973 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
15974
15975 * syntax.c: Include "character.h" instead of "charset.h".
15976 (syntax_parent_lookup): Delete.
15977 (Fmodify_syntax_entry): Accept a cons as CHAR.
15978 (skip_chars): Adjust for the new multibyte form.
15979 (init_syntax_once): Call char_table_set_range instead of directly
15980 accessing the structure of a char table.
15981
15982 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
15983 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
15984 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
15985 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
15986
15987 * term.c: Include "buffer.h" and "character.h".
15988 (encode_terminal_code, write_glyphs): Adjust for the new
15989 code-conversion API.
15990 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
15991
15992 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
15993
15994 * xdisp.c: Include "character.h".
15995 (get_next_display_element): Adjust for the new multibyte form.
15996 (disp_char_vector): Adjust for the new char table structure.
15997 (decode_mode_spec_coding): Adjust for the new structure of
15998 coding system.
15999 (decode_mode_spec): Adjust for the new code-conversion API.
16000
16001 * xfaces.c: Include "character.h" instead of "charset.h".
16002 (load_face_font): Adjust for the change of choose_face_font and
16003 FS_LOAD_FONT.
16004 (generate_ascii_font): New function.
16005 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
16006 (set_font_frame_param): Adjust for the change of choose_face_font.
16007 (free_realized_face): Make it public.
16008 (free_realized_faces_for_fontset): Rename from
16009 free_realized_multibyte_face. Free also faces realized for ASCII.
16010 (choose_face_font): Change arguments. Adjust for the change of
16011 fontset_font_pattern and FS_LOAD_FONT.
16012
16013 * xfns.c: Include "character.h".
16014 (x_encode_text): Adjust for the new code-conversion API.
16015
16016 * xselect.c: Don't include "charset.h".
16017 (selection_data_to_lisp_data): Adjust for the new code conversion API.
16018
16019 * xterm.c: Include "character.h".
16020 (x_encode_char): New argument CHARSET. Change caller.
16021 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
16022 Call ENCODE_CHAR instead of SPLIT_CHAR.
16023 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
16024 CHAR_WIDTH instead of CHARSET_WIDTH.
16025 (XTread_socket): Adjust for the new code-conversion API.
16026 (x_new_font): Adjust for the change of FS_LOAD_FONT.
16027 (x_load_font): Adjust for the change of struct font.
16028
160292008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16030
16031 * xfaces.c (face_at_buffer_position): Remove unused vars.
16032
160332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16034
16035 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
16036 Fix overflow checking.
16037
160382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16039
16040 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
16041 Cancel previous change.
16042
160432008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
16044
16045 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
16046 ccl->eight_bit_control. Fix check for buffer overflow.
16047 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
16048 (ccl_driver): Initialize extra_bytes to 0.
16049
160502008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
16051
16052 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
16053 return it ORed with ctrl_modifier.
16054
160552008-01-29 Miles Bader <miles@gnu.org>
16056
16057 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
16058
160592008-01-28 Jason Rumney <jasonr@gnu.org>
16060
16061 * w32.c (stat): Don't double check for networked drive.
16062
160632008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
16064
16065 * window.c (run_window_configuration_change_hook): New function.
16066 Code extracted from set_window_buffer. Set the selected frame.
16067 (set_window_buffer): Use it.
16068 * window.h (run_window_configuration_change_hook): Declare.
16069 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
16070
16071 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
16072
160732008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
16074
16075 * Makefile.in: Remove references to unused macros.
16076
160772008-01-26 Eli Zaretskii <eliz@gnu.org>
16078
16079 * w32.c (g_b_init_get_sid_sub_authority)
16080 (g_b_init_get_sid_sub_authority_count): New static variables.
16081 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
16082 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
16083 (init_user_info): Use them to retrieve uid and gid.
16084 Use 500/513, the Windows defaults, as Administrator's uid/gid.
16085 (fstat): Use pw_uid and pw_gid from the_passwd structure for
16086 st_uid and st_gid of the file.
16087
160882008-01-26 Jason Rumney <jasonr@gnu.org>
16089
16090 * w32.c (logon_network_drive): New function.
16091 (stat): Use it.
16092
160932008-01-26 Chong Yidong <cyd@stupidchicken.com>
16094
16095 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
16096 invisible text covered with an ellipsis.
16097
160982008-01-25 Richard Stallman <rms@gnu.org>
16099
16100 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
16101 jump back to beginning. Move some other initializations after that.
16102 (Qwindow_text_change_functions, Vwindow_text_change_functions):
16103 New variables.
16104 (syms_of_xdisp): Init them.
16105
16106 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
16107
16108 * buffer.c (reset_buffer_local_variables):
16109 Implement `permanent-local-hook'.
16110 (Qpermanent_local_hook): New variable.
16111 (syms_of_buffer): Init and staticpro it.
16112
161132008-01-25 Michael Albinus <michael.albinus@gmx.de>
16114
16115 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
16116
161172008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
16118
16119 * fns.c (Fclrhash): Return TABLE.
16120
161212008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16122
16123 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
16124 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
16125 is set even without positional changes.
16126 (x_scroll_bar_clear): Set bar->redraw_needed_p.
16127
16128 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
16129
161302008-01-23 Jason Rumney <jasonr@gnu.org>
16131
16132 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
16133
16134 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
16135 the unicode range available in MULE by locale-coding-system.
16136 Improve dbcs lead byte detection. Set event timestamp and modifiers
16137 earlier.
16138
161392008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16140
16141 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
16142 [MAC_OSX] (init_mac_osx_environment): Initialize it.
16143 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
16144 when used on child processes.
16145
161462008-01-21 Michael Albinus <michael.albinus@gmx.de>
16147
16148 * dbusbind.c (Fdbus_method_return_internal): Rename from
16149 Fdbus_method_return.
16150 (Fdbus_unregister_object): Move to dbus.el.
16151 (Fdbus_call_method, Fdbus_method_return_internal)
16152 (Fdbus_send_signal): Improve debug messages.
16153
161542008-01-20 Martin Rudalics <rudalics@gmx.at>
16155
16156 * undo.c (undo_inhibit_record_point): New variable.
16157 (syms_of_undo): Initialize it.
16158 (record_point): Don't record point when undo_inhibit_record_point
16159 is set.
16160
161612008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
16162
16163 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
16164
16165 * xdisp.c (Qauto_hscroll_mode): New var.
16166 (syms_of_xdisp): Initialize it.
16167 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
16168 window's buffer.
16169 (hscroll_windows): Don't check automatic_hscrolling_p here.
16170
16171 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
16172 vscroll if we're setting window-buffer to the value it already has.
16173
161742008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
16175
16176 * m/intel386.h: Remove references to XENIX.
16177
161782008-01-17 Andreas Schwab <schwab@suse.de>
16179
16180 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
16181 instead of HAVE_X86_64_LIB64_DIR.
16182 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
16183
161842008-01-17 Glenn Morris <rgm@gnu.org>
16185
16186 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
16187 to HAVE_X86_64_LIB64_DIR.
16188
161892008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
16190
16191 * s/irix3-3.h:
16192 * s/irix4-0.h:
16193 * s/386-ix.h:
16194 * s/domain.h:
16195 * s/hpux9-x11r4.h:
16196 * s/hpux9shxr4.h: Remove files for systems no longer supported.
16197
16198 * sysdep.c: Remove code containing references to symbols defined
16199 by unsupported systems.
16200
162012008-01-16 Glenn Morris <rgm@gnu.org>
16202
16203 * coding.c (select-safe-coding-system-function): Doc fix.
16204
162052008-01-15 Glenn Morris <rgm@gnu.org>
16206
16207 * config.in: Revert 2008-01-13 change: this is a generated file.
16208
162092008-01-13 Tom Tromey <tromey@redhat.com>
16210
16211 * lisp.h: Fix typo.
16212
162132008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
16214
16215 * m/sequent-ptx.h:
16216 * m/sequent.h:
16217 * s/ptx.h:
16218 * s/ptx4-2.h:
16219 * s/ptx4.h: Remove files for systems no longer supported.
16220
16221 * callproc.c (Fcall_process): Fix previous change.
16222
162232008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
16224
16225 * unexsunos4.c: Remove file, system not supported anymore.
16226
16227 * m/mips.h:
16228 * m/intel386.h:
16229 * callproc.c:
16230 * config.in:
16231 * ecrt0.c:
16232 * emacs.c:
16233 * fileio.c:
16234 * frame.c:
16235 * getpagesize.h:
16236 * keyboard.c:
16237 * lread.c:
16238 * process.c:
16239 * puresize.h:
16240 * sysdep.c:
16241 * systty.h:
16242 * syswait.h:
16243 * unexec.c:
16244 * xdisp.c:
16245 * alloc.c: Remove code containing references to symbols defined by
16246 unsupported systems.
16247
162482008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
16249
16250 * coding.c (detect_coding_mask): Fix previous change.
16251
162522008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
16253
16254 * coding.c (detect_coding_iso2022): New arg
16255 latin_extra_code_state. Allow Latin extra codes only
16256 when *latin_extra_code_state is nonzero.
16257 (detect_coding_mask): If there is a NULL byte, detect the encoding
16258 as UTF-16 or binary. If Latin extra codes exist, detect the
16259 encoding as ISO-2022 only when there's no other proper encoding is
16260 found.
16261
162622008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16263
16264 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
16265 #ifdef MAC_OS.
16266
162672008-01-08 Richard Stallman <rms@gnu.org>
16268
16269 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
16270
162712008-01-06 Nick Roberts <nickrob@snap.net.nz>
16272
16273 * keyboard.c (parse_menu_item): Don't enclose key bindings on
16274 menu bar in parentheses.
16275
162762008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
16277
16278 * m/7300.h:
16279 * m/acorn.h:
16280 * m/alliant-2800.h:
16281 * m/alliant.h:
16282 * m/alliant1.h:
16283 * m/alliant4.h:
16284 * m/altos.h:
16285 * m/amdahl.h:
16286 * m/apollo.h:
16287 * m/att3b.h:
16288 * m/aviion-intel.h:
16289 * m/aviion.h:
16290 * m/celerity.h:
16291 * m/clipper.h:
16292 * m/cnvrgnt.h:
16293 * m/convex.h:
16294 * m/cydra5.h:
16295 * m/delta88k.h:
16296 * m/dpx2.h:
16297 * m/dual.h:
16298 * m/elxsi.h:
16299 * m/f301.h:
16300 * m/gould-np1.h:
16301 * m/gould.h:
16302 * m/i860.h:
16303 * m/ibmps2-aix.h:
16304 * m/ibmrt-aix.h:
16305 * m/ibmrt.h:
16306 * m/irist.h:
16307 * m/is386.h:
16308 * m/isi-ov.h:
16309 * m/mega68.h:
16310 * m/mg1.h:
16311 * m/news-r6.h:
16312 * m/news-risc.h:
16313 * m/news.h:
16314 * m/nh3000.h:
16315 * m/nh4000.h:
16316 * m/ns16000.h:
16317 * m/ns32000.h:
16318 * m/nu.h:
16319 * m/orion.h:
16320 * m/orion105.h:
16321 * m/paragon.h:
16322 * m/pfa50.h:
16323 * m/plexus.h:
16324 * m/pyramid.h:
16325 * m/pyrmips.h:
16326 * m/sh3el.h:
16327 * m/sps7.h:
16328 * m/sr2k.h:
16329 * m/stride.h:
16330 * m/sun1.h:
16331 * m/sun2.h:
16332 * m/sun3-68881.h:
16333 * m/sun3-fpa.h:
16334 * m/sun3-soft.h:
16335 * m/sun3.h:
16336 * m/sun386.h:
16337 * m/symmetry.h:
16338 * m/tad68k.h:
16339 * m/tahoe.h:
16340 * m/targon31.h:
16341 * m/tek4300.h:
16342 * m/tekxd88.h:
16343 * m/tower32.h:
16344 * m/tower32v3.h:
16345 * m/ustation.h:
16346 * m/wicat.h:
16347 * m/xps100.h:
16348 * s/cxux.h:
16349 * s/cxux7.h:
16350 * s/dgux.h:
16351 * s/dgux4.h:
16352 * s/dgux5-4-3.h:
16353 * s/dgux5-4r2.h:
16354 * s/esix.h:
16355 * s/esix5r4.h:
16356 * s/hiuxmpp.h:
16357 * s/hiuxwe2.h:
16358 * s/iris3-5.h:
16359 * s/iris3-6.h:
16360 * s/isc2-2.h:
16361 * s/isc3-0.h:
16362 * s/isc4-0.h:
16363 * s/isc4-1.h:
16364 * s/newsos5.h:
16365 * s/newsos6.h:
16366 * s/osf1.h:
16367 * s/osf5-0.h:
16368 * s/riscix1-1.h:
16369 * s/riscix12.h:
16370 * s/sco4.h:
16371 * s/sco5.h:
16372 * s/sunos4-0.h:
16373 * s/sunos4-1.h:
16374 * s/sunos413.h:
16375 * s/sunos4shr.h:
16376 * s/umax.h:
16377 * s/unipl5-2.h:
16378 * s/xenix.h:
16379 * cxux-crt0.s:
16380 * unexapollo.c:
16381 * unexconvex.c:
16382 * unexenix.c:
16383 * unexsni.c: Remove files for systems no longer supported.
16384
16385 * m/intel386.h: Remove references to unsupported systems.
16386
16387 * w32.c (get_emacs_configuration): Remove reference to i860.
16388
16389 * sysdep.c: Remove dead code.
16390
163912008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
16392
16393 * s/rtu.h:
16394 * m/masscomp.h: Remove files. Platform is obsolete.
16395
163962008-01-04 Michael Albinus <michael.albinus@gmx.de>
16397
16398 * dbusbind.c (Fdbus_method_return): New function.
16399 (xd_read_message): Add the serial number to the event.
16400 (Fdbus_register_method): Activate the function.
16401
164022008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
16403
16404 * keyboard.c (read_key_sequence): Fix typo.
16405
164062008-01-03 Michael Albinus <michael.albinus@gmx.de>
16407
16408 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
16409 (xd_signature, xd_append_arg): Handle element type detection for
16410 empty arrays.
16411 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
16412 SDATA () calls; this must be solved more general.
16413 (Fdbus_register_signal): Use SBYTES instead of strlen.
16414
164152008-01-03 Magnus Henoch <magnus@zemdatav>
16416
16417 * dbusbind.c (xd_append_arg): Use unsigned char instead of
16418 unsigned int for byte values (necessary for big-endian platform).
16419 (Fdbus_call_method): Handle the case of no returned arguments.
16420
164212007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
16422
16423 * dbusbind.c (xd_read_message): Use non-static input_event struct.
16424
164252007-12-31 Magnus Henoch <mange@freemail.hu>
16426
16427 * dbusbind.c (xd_signature): Signature of variant is just "v".
16428
164292007-12-30 Michael Albinus <michael.albinus@gmx.de>
16430
16431 * dbusbind.c: Fix several errors and compiler warnings.
16432 Reported by Tom Tromey <tromey@redhat.com>.
16433 (XD_ERROR, XD_DEBUG_MESSAGE)
16434 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
16435 (xd_append_arg): Part for basic D-Bus types rewritten.
16436 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
16437 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
16438 appropriate.
16439 (xd_read_message): Return Qnil. Don't signal an error; it is not
16440 useful during event reading.
16441 (Fdbus_register_signal): Signal an error if the check for
16442 FUNCTIONP fails.
16443 (Fdbus_register_method): New function. The implementation is not
16444 complete, the call of the function signals an error therefore.
16445 (Fdbus_unregister_object): New function, renamed from
16446 Fdbus_unregister_signal. The initial check signals an error, if
16447 the object is not well formed.
16448
164492007-12-30 Richard Stallman <rms@gnu.org>
16450
16451 * textprop.c (get_char_property_and_overlay):
16452 Signal error if POSITION is out of range in a buffer.
16453
164542007-12-29 Martin Rudalics <rudalics@gmx.at>
16455
16456 * w32fns.c (Fx_create_frame): Make copy of frame parameters
16457 because the original parameters are in pure storage now.
16458
164592007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16460
16461 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
16462
164632007-12-22 Eli Zaretskii <eliz@gnu.org>
16464
16465 * callint.c (syms_of_callint) <command-history>: Add reference to
16466 history-length in the doc string.
16467
164682007-12-17 Jason Rumney <jasonr@gnu.org>
16469
16470 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
16471 before passing as wParam.
16472
164732007-12-22 Michael Albinus <michael.albinus@gmx.de>
16474
16475 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
16476 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
16477 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
16478 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
16479 as number.
16480 (Fdbus_call_method): Fix docstring.
16481
164822007-12-21 Michael Albinus <michael.albinus@gmx.de>
16483
16484 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
16485 New macros.
16486 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
16487 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
16488 Simplify.
16489 (xd_signature): New function.
16490 (xd_append_arg): Compute also signatures. Major rewrite.
16491 (xd_retrieve_arg): Make debug messages friendly.
16492 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
16493 Check for signatures of arguments.
16494
164952007-12-19 Michael Albinus <michael.albinus@gmx.de>
16496
16497 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
16498 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
16499 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
16500 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
16501 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
16502 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
16503 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
16504 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
16505 (xd_retrieve_value): Remove. Functionality included in ...
16506 (xd_append_arg): New function.
16507 (Fdbus_call_method, Fdbus_send_signal): Apply it.
16508
165092007-12-16 Michael Albinus <michael.albinus@gmx.de>
16510
16511 * dbusbind.c (top): Include <stdio.h>.
16512 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
16513 dbus_message_new_method_call and dbus_message_new_signal.
16514 (Fdbus_register_signal): Rename unique_name to uname.
16515 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
16516 non-existing unique name. Fix typos in matching rule. Return an
16517 object which is useful in Fdbus_unregister_signal.
16518 (Fdbus_unregister_signal): Reimplementation, in order to remove
16519 only the corresponding entry.
16520 (Vdbus_registered_functions_table): Change the order of entries.
16521 Apply these changes in xd_read_message and Fdbus_register_signal.
16522
165232007-12-16 Andreas Schwab <schwab@suse.de>
16524
16525 * fileio.c (Finsert_file_contents): Fix overflow check to not
16526 depend on undefined integer overflow.
16527
165282007-12-14 Jason Rumney <jasonr@gnu.org>
16529
16530 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
16531 for characters above 127.
16532
165332007-12-13 Jason Rumney <jasonr@gnu.org>
16534
16535 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
16536 before dereferencing array.
16537 (lookup_vk_code): Remove zero comparison.
16538
165392007-12-14 Michael Albinus <michael.albinus@gmx.de>
16540
16541 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
16542 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
16543 Use `unsigned int' instead of `uint'.
16544 (xd_read_message, Fdbus_register_signal): Split expressions into
16545 multiple lines before operators "&&" and "||", according to the
16546 GNU Coding Standards.
16547
165482007-12-14 Eli Zaretskii <eliz@gnu.org>
16549
16550 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
16551
165522007-12-12 Juri Linkov <juri@jurta.org>
16553
16554 * buffer.c (Frename_buffer): In interactive spec replace
16555 `read-buffer' with `read-string' that uses `buffer-name-history'
16556 as history, and the current buffer's name as default.
16557
165582007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
16559
16560 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
16561 manipulating the backtrace manually.
16562 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
16563 (struct backtrace, backtrace_list): Remove.
16564 (command_loop_1): Remove dead var `no_direct'.
16565
16566 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
16567 preserve non-built-in buffer-local variables.
16568 (Fkill_all_local_variables): Don't re-create&re-set permanent
16569 buffer-local variables.
16570
165712007-12-09 Juri Linkov <juri@jurta.org>
16572
16573 * buffer.c (Frename_buffer): Change interactive spec from "s" to
16574 Lisp code that uses `read-buffer' with current buffer as default.
16575
165762007-12-08 Michael Albinus <michael.albinus@gmx.de>
16577
16578 * dbusbind.c (xd_read_message): Generate an event for every
16579 registered handler. There might be several handlers registered
16580 for the same signal.
16581 (Fdbus_register_signal): Don't overwrite a registration for the
16582 same signal. Add a new registration if handlers are different.
16583 (Vdbus_registered_functions_table): Rework doc string.
16584
165852007-12-07 Michael Albinus <michael.albinus@gmx.de>
16586
16587 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
16588 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
16589 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
16590 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
16591 Unify argument lists.
16592 (xd_read_message, Fdbus_register_signal): Reorder and extend event
16593 arguments and hash table keys. Use unique name for service.
16594 (Fdbus_unregister_signal): Remove checks.
16595 (Vdbus_registered_functions_table): Fix doc string.
16596
165972007-12-05 Magnus Henoch <mange@freemail.hu>
16598
16599 * process.c (make_process): Initialize pty_flag to 0.
16600
166012007-12-05 Jason Rumney <jasonr@gnu.org>
16602
16603 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
16604 specified XBMs.
16605
166062007-12-05 Richard Stallman <rms@gnu.org>
16607
16608 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
16609
166102007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16611
16612 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
16613 New variable.
16614 (mac_try_close_socket) [MAC_OSX]: New function.
16615 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
16616 Update cfsockets_for_select. Replace invalid CFRunLoop source.
16617
16618 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
16619 Use mac_try_close_socket.
16620
166212007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16622
16623 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
16624 reloc_base.
16625 (copy_dysymtab): Compute relocation base here.
16626 (rebase_reloc_address) [__ppc64__]: New function.
16627 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
16628 changed.
16629
166302007-12-05 Jason Rumney <jasonr@gnu.org>
16631
16632 * w32proc.c (sys_spawnve): Quote args with wildcards.
16633
166342007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16635
16636 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
16637 __objc_* sections.
16638 (unrelocate) [_LP64]: Set relocation base to address of data segment.
16639
166402007-12-05 Michael Albinus <michael.albinus@gmx.de>
16641
16642 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
16643 Move check for Vdbus_registered_functions_table to
16644 xd_read_queued_messages.
16645 (xd_read_queued_messages): Protect xd_read_message calls by
16646 internal_condition_case_1.
16647
166482007-12-04 Michael Albinus <michael.albinus@gmx.de>
16649
16650 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
16651 Qdbus_system_bus and Qdbus_session_bus, respectively.
16652 (Vdbus_intern_symbols): Remove.
16653 (Vdbus_registered_functions_table): New hash table.
16654 (XD_SYMBOL_INTERN_SYMBOL): Remove.
16655 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
16656 Rewrite in order to manage registered functions by hash table
16657 Vdbus_registered_functions_table.
16658
166592007-12-03 Jan Djärv <jan.h.d@swipnet.se>
16660
16661 * xterm.c: Update URL to Window Manager Specification in comment.
16662
166632007-12-02 Michael Albinus <michael.albinus@gmx.de>
16664
16665 * config.in (HAVE_DBUS): Add.
16666
16667 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
16668 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
16669 (obj): Add $(DBUS_OBJ).
16670 (LIBES): Add $(DBUS_LIBS).
16671 (dbusbind.o): New target.
16672
16673 * dbusbind.c: New file.
16674
16675 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
16676
16677 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
16678 (Qdbus_event): New Lisp symbol.
16679 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
16680 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 16681 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
16682
16683 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
16684
166852007-12-01 Richard Stallman <rms@gnu.org>
16686
16687 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
16688
166892007-11-30 Jason Rumney <jasonr@gnu.org>
16690
16691 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
16692 (w32con_reset_terminal_modes): Clear screen buffer.
16693 (w32_face_attributes): Don't use color indexes that are out of range.
16694 Only reverse the default colors.
16695
16696 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
16697 WINDOWSNT.
16698
16699 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
16700
167012007-11-29 Jason Rumney <jasonr@gnu.org>
16702
16703 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
16704 (w32_face_attributes): Use Vtty_defined_color_alist to determine
16705 if the terminal colors are initialized.
16706 (unspecified_fg, unspecified_bg): Remove unused declarations.
16707
167082007-11-29 Andreas Schwab <schwab@suse.de>
16709
16710 * keyboard.c (apply_modifiers): Fix typo.
16711
167122007-11-29 Richard Stallman <rms@gnu.org>
16713
16714 * keymap.c (Fcurrent_local_map): Doc fix.
16715
167162007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
16717
16718 * s/gnu-kfreebsd.h: New file.
16719
167202007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
16721
16722 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
16723 Don't cast redundantly.
16724
16725 * keyboard.c (KEY_TO_CHAR): New macro.
16726 (parse_modifiers, apply_modifiers): Accept integer arguments.
16727 (read_key_sequence): Use them to unify the "shift->unshift" mapping
16728 for chars and symbol keys.
16729 After doing such remapping, apply function-key-map again.
16730
167312007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
16732
16733 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
16734 compiled anymore.
16735
167362007-11-26 Andreas Schwab <schwab@suse.de>
16737
16738 * process.c (list_processes_1): Fix indentation level of the
16739 command column.
16740
167412007-11-23 Andreas Schwab <schwab@suse.de>
16742
16743 * editfns.c (Fformat): Handle %c specially since it requires the
16744 argument to be of type int.
16745
167462007-11-23 Markus Triska <markus.triska@gmx.at>
16747
16748 * emacs.c (main): Call init_editfns before init_process, since
16749 init_process sets Vprocess_connection_type depending on OS release.
16750
167512007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
16752
16753 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
16754 (find_symbol_value): Use do_symval_forwarding.
16755
16756 * data.c (set_internal): Set the value in the `cons-cell' (for
16757 Buffer_Local_values) not only for frame-local variables.
16758
167592007-11-22 Andreas Schwab <schwab@suse.de>
16760
16761 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
16762 values to sprintf.
16763 * keymap.c (Fsingle_key_description): Likewise.
16764 * print.c (print_object): Likewise.
16765
167662007-11-22 Jan Djärv <jan.h.d@swipnet.se>
16767
16768 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
16769 file for image is nil.
16770
167712007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
16772
16773 * term.c: Include stdarg.h.
16774 (fatal): Implement using varargs.
16775 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
16776
167772007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
16778
16779 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
16780 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
16781 Update call to buffer_slot_type_mismatch.
16782 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
16783 (buffer_slot_type_mismatch): Update.
16784 * buffer.c (buffer_local_types): Remove.
16785 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
16786 (defvar_per_buffer): Set the type in the buffer_objfwd.
16787
167882007-11-21 Jason Rumney <jasonr@gnu.org>
16789
16790 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
16791 CreateFileMapping returns NULL on failure.
16792
167932007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
16794
16795 * search.c (Fset_match_data): Remove the `evaporate' feature.
16796 (unwind_set_match_data): Don't use the `evaporate' feature.
16797
167982007-11-21 Jason Rumney <jasonr@gnu.org>
16799
16800 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
16801
16802 * w32console.c (w32con_write_glyphs): Remove unused variables.
16803
168042007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
16805
16806 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
16807
16808 * s/darwin.h (MULTI_KBOARD): Remove.
16809
16810 * macfns.c (x_create_tip_frame, Fx_create_frame)
16811 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
16812
168132007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
16814
16815 * buffer.c (Fbuffer_local_value): Remove redundant test.
16816 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
16817 than in `current-buffer' to match the comment.
16818 Do the swap using swap_in_global_binding.
16819
16820 * data.c (store_symval_forwarding, set_internal):
16821 * eval.c (specbind): Remove dead code.
16822
16823 * coding.c (detect_coding, Fupdate_coding_systems_internal):
16824 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
16825 Since we do not want to see internal Lisp_*fwd objects here.
16826
168272007-11-18 Jan Djärv <jan.h.d@swipnet.se>
16828
16829 * sysdep.c (init_system_name): Use getaddrinfo if available.
16830
16831 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
16832 (x_scroll_bar_note_movement): start, end, with, height in struct
16833 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
16834
168352007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
16836
16837 * puresize.h (BASE_PURESIZE): Increase to 1190000.
16838
168392007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
16840
16841 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
16842 This undoes Richard's change of 14-Oct-2002.
16843
16844 * alloc.c (allocate_other_vector):
16845 * lisp.h (allocate_other_vector): Remove.
16846
16847 * window.c (struct save_window_data): Move non-lisp data to the end
16848 and make it `int' rather than Lisp_Object.
16849 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
16850 Done wrap/unwrap integer values.
16851 (Fset_window_configuration, compare_window_configurations):
16852 Update use of fields to their new types.
16853
16854 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
16855 Turn integer fields into `int'. Merge x_window_low and x_window_high.
16856 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
16857 (SET_SCROLL_BAR_X_WINDOW): Remove.
16858 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
16859 Access the new x_window field directly.
16860 * xterm.c (x_scroll_bar_create): Use a pseudovector.
16861 Don't wrap/unwrap integers into Lisp_Objects.
16862 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
16863 (x_scroll_bar_report_motion):
16864 Don't wrap/unwrap integers into Lisp_Objects.
16865 (x_term_init): Use SDATA.
16866 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
16867 (x_scroll_bar_set_handle, x_scroll_bar_remove)
16868 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
16869 (x_scroll_bar_report_motion, x_scroll_bar_clear):
16870 * xfns.c (x_set_background_color):
16871 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
16872 Access the new x_window field directly.
16873
16874 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
16875 (allocate_pseudovector): Make non-static.
16876
16877 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
16878 (allocate_pseudovector): Declare.
16879 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
16880
168812007-11-15 Andreas Schwab <schwab@suse.de>
16882
16883 * editfns.c (Fformat): Correctly format EMACS_INT values.
16884 Also take precision into account when formatting an integer.
16885
16886 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
16887
168882007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
16889
16890 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
16891 (syms_of_keyboard): Defsubr it.
16892
16893 * data.c (swap_in_global_binding): Fix longstanding bug where
16894 store_symval_forwarding was not called with the right second argument,
16895 thus causing objfwd-ing from being dropped.
16896
168972007-11-14 Juanma Barranquero <lekktu@gmail.com>
16898
16899 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
16900 (Fx_display_pixel_height, Fx_display_planes)
16901 (Fx_display_color_cells, Fx_server_max_request_size)
16902 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
16903 (Fx_display_visual_class, Fx_display_save_under):
16904 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
16905 (Fx_display_pixel_height, Fx_display_planes)
16906 (Fx_display_color_cells, Fx_server_max_request_size)
16907 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
16908 (Fx_display_mm_height, Fx_display_mm_width)
16909 (Fx_display_backing_store, Fx_display_visual_class)
16910 (Fw32_select_font, Fx_display_save_under):
16911 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
16912 (Fx_display_pixel_height, Fx_display_planes)
16913 (Fx_display_color_cells, Fx_server_max_request_size)
16914 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
16915 (Fx_display_save_under): Fix typos in docstrings.
16916
169172007-11-14 Juanma Barranquero <lekktu@gmail.com>
16918
16919 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
16920 corresponding to deleted entries; they are an implementation detail.
16921 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
16922 Remove variables.
16923 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
16924 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
16925 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
16926 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
16927 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
16928 (Fw32_define_rgb_color, Fw32_load_color_file)
16929 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
16930 Fix typos in docstrings.
16931 (Fx_server_version): Reflow docstring.
16932 (Fw32_shell_execute): Doc fixes.
16933
169342007-11-13 Juanma Barranquero <lekktu@gmail.com>
16935
16936 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
16937 if w32_parse_hot_key returned nil.
16938
169392007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
16940
16941 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
16942
169432007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 16944
aac0c6e3
MR
16945 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
16946
16947 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
16948
16949 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
16950 Remove W32_SCROLL_BAR_CLICK_EVENT.
16951
16952 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
16953 Add MULTIMEDIA_KEY_EVENT.
16954
16955 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
16956 (lispy_multimedia_keys) [WINDOWSNT]: New array.
16957 (make_lispy_event) [WINDOWSNT]: Use it to translate
16958 MULTIMEDIA_KEY_EVENT.
16959
16960 * w32term.h (WM_APPCOMMAND): Define if not already.
16961 (GET_APPCOMMAND_LPARAM): Likewise.
16962
16963 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
16964 WM_APPCOMMAND.
16965
16966 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
16967 (syms_of_w32fns): Export and initialize it.
16968 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
16969
169702007-11-09 Chong Yidong <cyd@stupidchicken.com>
16971
16972 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
16973 twice.
16974
16975 * xdisp.c (handle_face_prop): Fix last change.
16976
169772007-11-09 Richard Stallman <rms@gnu.org>
16978
16979 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
16980 not just for after-strings and before-strings.
16981 Call face_for_overlay_string and pass the overlay to it.
16982 (handle_display_prop): Determine whether property came from an overlay.
16983 Pass OVERLAY arg to handle_single_display_spec.
16984 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
16985 (load_overlay_strings): Fill in it->string_overlays.
16986 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
16987
16988 * xfaces.c (face_for_overlay_string): Function renamed from
16989 face_at_buffer_position_no_overlays, and add arg OVERLAY.
16990
16991 * dispextern.h (struct it): New elt string_overlays.
16992 New elt from_overlay, also in stack.
16993 Rearrange a few elements.
16994 (face_for_overlay_string): Decl renamed from
16995 face_at_buffer_position_no_overlays, and add argument.
16996
169972007-11-09 Richard Stallman <rms@gnu.org>
16998
16999 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
17000 to get the base face for an overlay string.
17001
17002 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
17003
17004 * xfaces.c (face_at_buffer_position_no_overlays): New function.
17005
17006 * xdisp.c (handle_stop): Move some code out of loop.
17007
170082007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17009
17010 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
17011 Fix conversion from Lisp object to ATSUFontID.
17012
170132007-11-09 Jason Rumney <jasonr@gnu.org>
17014
17015 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
17016
170172007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17018
17019 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
17020 Don't assume regions are aligned to page boundary.
17021 (print_load_command_name): Add LC_UUID if defined.
17022
170232007-11-09 Richard Stallman <rms@gnu.org>
17024
17025 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
17026
170272007-11-07 Jason Rumney <jasonr@gnu.org>
17028
17029 * s/windows95.h: Remove.
17030
170312007-11-06 Jan Djärv <jan.h.d@swipnet.se>
17032
17033 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
17034 abort with a message on unhandled store_type values.
17035
170362007-11-01 Jan Djärv <jan.h.d@swipnet.se>
17037
17038 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
17039 Remove HAVE_X11R5 and HAVE_X11R4.
17040
170412007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
17042
17043 * Makefile.in: Remove references to sunfns.c and sunfns.o.
17044
170452007-11-01 Johan Bockgård <bojohan@gnu.org>
17046
17047 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
17048 Don't set s->stippled_p here, since it has already been set by
17049 x_set_glyph_string_gc from x_draw_glyph_string.
17050
170512007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
17052
17053 * sunfns.c: Remove file.
17054
17055 * m/sun386.h:
17056 * m/sun2.h:
17057 * m/sparc.h: Remove Sun windows code.
17058
170592007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
17060
17061 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
17062 (init_keyboard): Set current_kboard's window-system to nil.
17063 (tty_read_avail_input): Typo.
17064 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
17065
170662007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
17067
17068 * s/usg5-4.h:
17069 * s/usg5-3.h:
17070 * s/ptx.h:
17071 * m/is386.h:
17072 * m/ibmps2-aix.h:
17073 * Makefile.in: Remove all mentions of X10.
17074
17075 * dispnew.c (syms_of_display): Don't mention version 10.
17076
170772007-10-28 Juanma Barranquero <lekktu@gmail.com>
17078
17079 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
17080 ($(BLD)/abbrev.$(O)): Remove.
17081
170822007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
17083
17084 Rewrite abbrev.c in Elisp.
17085 * image.c (Qcount): Don't declare as extern.
17086 (syms_of_image): Initialize and staticpro `Qcount'.
17087 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
17088 * emacs.c (main): Don't call syms_of_abbrev.
17089 * Makefile.in (obj): Remove abbrev.o.
17090 (abbrev.o): Remove.
17091 * abbrev.c: Remove.
17092
170932007-10-26 Martin Rudalics <rudalics@gmx.at>
17094
17095 * window.c (window_min_size_2): Don't count header-line.
17096
170972007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
17098
17099 * frame.h (struct frame): Move all bit fields after the first bit
17100 field to take advantage of the available space. Group all the
17101 chars together to reduce wasted space due to padding.
17102
171032007-10-26 Juanma Barranquero <lekktu@gmail.com>
17104
17105 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
17106
17107 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
17108 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
17109 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
17110 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
17111 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
17112 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
17113 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
17114 (last_marked, mark_object_loop_halt): Make static.
17115
17116 * frame.c (syms_of_frame) <delete-frame-functions>:
17117 Fix typo in docstring.
17118
171192007-10-25 Juanma Barranquero <lekktu@gmail.com>
17120
17121 * w32.c (init_environment): Fix tiny memory leak.
17122 (w32_get_resource): Remove unused variable `ok'.
17123
171242007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
17125
17126 Make `window-system' into a keyboard-local variable (rather than
17127 frame-local as done originally by multi-tty).
17128
17129 * keyboard.h (struct kboard): Add Vwindow_system.
17130 * keyboard.c (init_kboard): Set a default for Vwindow_system.
17131 (mark_kboards): Mark Vwindow_system.
17132
17133 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
17134 (init_display): Don't set the obsolete `window-system' frame-param.
17135
17136 * xterm.c (x_term_init):
17137 * w32term.c (w32_create_terminal):
17138 * term.c (init_tty): Set Vwindow_system.
17139 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
17140 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
17141
17142 * xfns.c (Fx_create_frame, x_create_tip_frame):
17143 * w32fns.c (Fx_create_frame, x_create_tip_frame):
17144 * macfns.c (Fx_create_frame):
17145 Don't set the obsolete `window-system' frame-param.
17146
17147 * frame.h (Qwindow_system): Remove.
17148 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
17149 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
17150
171512007-10-24 Richard Stallman <rms@gnu.org>
17152
17153 * frame.c (x_figure_window_size): For fullscreen case,
17154 set USPosition | PPosition without clobbering rest of window_prompting.
17155
17156 * keyboard.c (Fcurrent_idle_time): Doc fix.
17157
17158 * print.c (Fwith_output_to_temp_buffer): Doc fix.
17159
171602007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
17161
17162 * process.c (unwind_request_sigio): Only define if __ultrix__.
17163
17164 * callproc.c (child_setup): Remove spurious *.
17165
17166 * lisp.h (Fget_text_property): Declare.
17167 (have_menus_p): Declare it here rather than in sys-dep header files.
17168 * macterm.h (have_menus_p):
17169 * msdos.h (have_menus_p):
17170 * xterm.h (have_menus_p): Remove.
17171
17172 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
17173 (Fmake_variable_frame_local): Just check the variable's const-ness
17174 rather than checking nil or t.
17175
171762007-10-22 Jason Rumney <jasonr@gnu.org>
17177
17178 * w32fns.c: Include math.h.
17179 (w32_abort): Declaration moved to nt/config.nt.
17180
17181 * s/ms-w32.h (HAVE_STDLIB_H): Define.
17182 (abort): Redefinition moved to nt/config.nt.
17183
17184 * m/windowsnt.h: Remove.
17185
171862007-10-22 Juanma Barranquero <lekktu@gmail.com>
17187
17188 * emacs.c (Fdump_emacs): Fix typo in message.
17189 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
17190 <installation-directory>: Reflow docstring.
17191
171922007-10-22 Juri Linkov <juri@jurta.org>
17193
17194 * minibuf.c: Allow minibuffer default to be a list of default values.
17195 With empty input use the first element of this list as returned default.
17196 (string_to_object)
17197 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
17198 (read_minibuf): If defalt is cons, set histstring to its car.
17199 (Fread_string): If default_value is cons, set val to its car.
17200 (Fread_buffer): If def is cons, use its car.
17201 (Fcompleting_read): If defalt is cons, set val to its car.
17202
172032007-10-21 Michael Albinus <michael.albinus@gmx.de>
17204
17205 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
17206
172072007-10-20 Juanma Barranquero <lekktu@gmail.com>
17208
17209 * doc.c (Fdocumentation): Check for advice in all cases.
17210
172112007-10-19 Chong Yidong <cyd@stupidchicken.com>
17212
17213 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
17214
172152007-10-19 Richard Stallman <rms@gnu.org>
17216
17217 * doc.c (Fdocumentation): Check for and handle an advised function.
17218
172192007-10-19 Juanma Barranquero <lekktu@gmail.com>
17220
17221 * process.c (Fset_process_filter): Doc fix.
17222
172232007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
17224
17225 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
17226 which caused key-translation-map to applied repeatedly (thus breaking
17227 double-mode).
17228
172292007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
17230
17231 * xselect.c (x_own_selection, x_handle_selection_clear)
17232 (x_clear_frame_selections):
17233 * w32menu.c (list_of_panes, list_of_items):
17234 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
17235 * textprop.c (validate_plist, interval_has_all_properties)
17236 (interval_has_some_properties, interval_has_some_properties_list)
17237 (add_properties, text_property_list):
17238 * process.c (Fget_buffer_process, list_processes_1, status_notify):
17239 * minibuf.c (Fassoc_string):
17240 * macselect.c (x_own_selection, x_clear_frame_selections)
17241 (Fx_disown_selection_internal):
17242 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
17243 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
17244
172452007-10-17 Chong Yidong <cyd@stupidchicken.com>
17246
17247 * process.c: Link to libs for calling res_init() if available.
17248 (Fmake_network_process): Call res_init() before getaddrinfo or
17249 gethostbyname, if possible.
17250
172512007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
17252
17253 * lread.c (read1): Set pvectype for char_tables.
17254
17255 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
17256 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
17257 Add type checks.
17258 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
17259
17260 * alloc.c (free_misc): Use XMISCTYPE.
17261 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
17262
172632007-10-17 Glenn Morris <rgm@gnu.org>
17264
17265 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
17266 (syms_of_minibuf): Add Qcompletion_ignore_case.
17267 * dired.c (Qcompletion_ignore_case): Change to external.
17268 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
17269 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
17270 (Fread_file_name): Use it rather than intern'ing.
17271
17272 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
17273 (Fread_coding_system): Ignore case of user input.
17274
172752007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17276
17277 * xdisp.c (handle_display_prop): Ignore display specs after
17278 replacing one when string text is being replaced.
17279 (handle_single_display_spec): Pretend as if characters with display
17280 property haven't been consumed only when buffer text is being replaced.
17281
172822007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
17283
17284 * xfns.c (Fx_create_frame, Fx_display_list):
17285 * window.c (window_fixed_size_p, enlarge_window)
17286 (shrink_window_lowest_first):
17287 * macterm.c (init_font_name_table):
17288 * macfns.c (Fx_create_frame, Fx_display_list):
17289 * lread.c (close_load_descs):
17290 * keyboard.c (read_char_x_menu_prompt):
17291 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
17292 * coding.c (code_convert_region_unwind): Test the type of an object
17293 rather than just !NILP before extracting data from it.
17294
17295 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
17296
17297 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
17298 (XMISCANY): New macro.
17299 (XMISCTYPE): Use it.
17300 (struct Lisp_Misc_Any): New type.
17301 (union Lisp_Misc): Use it.
17302 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
17303 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
17304 (find_symbol_value, set_internal, default_value, Fset_default)
17305 (Fmake_variable_buffer_local, Fmake_local_variable)
17306 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
17307 (Flocal_variable_if_set_p, Fvariable_binding_locus):
17308 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
17309 * alloc.c (allocate_buffer): Set the size and tag.
17310 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
17311 Use XMISCANY.
17312 (die): Follow the GNU convention for error messages.
17313 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
17314 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
17315 tag any more.
17316 (set_buffer_internal_1):
17317 * frame.c (store_frame_param):
17318 * eval.c (specbind):
17319 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
17320
17321 * doc.c (Fsnarf_documentation): Simplify.
17322
173232007-10-14 Juanma Barranquero <lekktu@gmail.com>
17324
17325 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
17326 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
17327
173282007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
17329
17330 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
17331
173322007-10-14 Juanma Barranquero <lekktu@gmail.com>
17333
17334 * eval.c (do_autoload): Don't save autoloads.
17335
17336 * data.c (Ffset): Save autoload of the function being set.
17337
173382007-10-07 John Paul Wallington <jpw@pobox.com>
17339
17340 * xfns.c (x_create_tip_frame): Set the `display-type' frame
17341 parameter before setting up faces.
17342
173432007-10-13 Eli Zaretskii <eliz@gnu.org>
17344
17345 * ccl.c (Fregister_code_conversion_map):
17346 * keyboard.c (append_tool_bar_item): Reformat last change.
17347
17348 * lisp.h (eabs): Rename from `abs'. All callers changed.
17349
173502007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
17351
17352 * buffer.c (add_overlay_mod_hooklist):
17353 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
17354 * fontset.c (make_fontset):
17355 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
17356 (append_tool_bar_item):
17357 * macmenu.c (grow_menu_items):
17358 * w32menu.c (grow_menu_items):
17359 * xmenu.c (grow_menu_items): Use larger_vector.
17360
173612007-10-13 Eli Zaretskii <eliz@gnu.org>
17362
17363 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
17364 selected frame'' on MSDOS).
17365
173662007-10-12 Martin Rudalics <rudalics@gmx.at>
17367
17368 * frame.c (Qexplicit_name): New variable.
17369 (x_report_frame_params): Report it in parameter alist.
17370 (syms_of_frame): Intern and staticpro it.
17371
173722007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
17373
17374 * macfns.c (x_create_tip_frame): Set terminal for frame.
17375
173762007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
17377
17378 * frame.c (Qenvironment): Remove.
17379 (syms_of_frame) <Qenvironment>: Don't initialize.
17380 (Fdelete_frame): Don't treat the `environment' param specially.
17381 * frame.h (Qenvironment): Don't declare.
17382 * callproc.c (set_initial_environment): Don't set unused frame param.
17383
17384 * frame.c (Fframe_with_environment): Remove.
17385 (syms_of_frame) <Sframe_with_environment>: Don't declare.
17386
17387 * lisp.h (Fframe_with_environment): Don't declare.
17388
173892007-10-10 Juanma Barranquero <lekktu@gmail.com>
17390
17391 * indent.c (indent_tabs_mode, last_known_column)
17392 (last_known_column_modified): Make static.
17393 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
17394
173952007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
17396
17397 * puresize.h (BASE_PURESIZE): Increase to 1170000.
17398
173992007-10-09 Jason Rumney <jasonr@gnu.org>
17400
17401 * w32term.c (x_set_window_size): Disable code that attempts to tell
17402 Lisp code about a size change before it actually happens.
17403
174042007-10-09 Richard Stallman <rms@gnu.org>
17405
17406 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
17407 return HANDLED_RETURN.
17408
174092007-10-08 Martin Rudalics <rudalics@gmx.at>
17410
17411 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
17412 when there's an unread command event.
17413
17414 * frame.c (focus_follows_mouse): Move here from frame.el to allow
17415 window autoselection act appropriately when leaving selected frame.
17416 (syms_of_frame): Initialize focus_follows_mouse.
17417 * frame.h (focus_follows_mouse): Extern it.
17418 * macterm.c (XTread_socket): When focus_follows_mouse is nil
17419 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
17420 * msdos.c (dos_rawgetc): Likewise.
17421 * w32term.c (w32_read_socket): Likewise.
17422 * xterm.c (handle_one_xevent): Likewise.
17423 * xdisp.c (syms_of_xdisp): In doc-string of
17424 mouse-autoselect-window mention focus-follows-mouse.
17425
174262007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17427
17428 * macterm.c (mac_load_query_font): Fix missing return value.
17429 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
17430 Add BLOCK_INPUT.
17431
174322007-10-08 Richard Stallman <rms@gnu.org>
17433
17434 * xdisp.c (get_window_cursor_type): Implement documented behavior
17435 for cursor-in-non-selected-windows = t.
17436
174372007-10-08 Jason Rumney <jasonr@gnu.org>
17438
17439 * w32.c (w32_get_resource): Always close registry keys.
17440
174412007-10-08 Jason Rumney <jasonr@gnu.org>
17442
17443 * makefile.w32-in (LIBS): Add COMCTL32.
17444
17445 * w32fns.c (globals_of_w32fns): Init common controls.
17446
174472007-10-08 Richard Stallman <rms@gnu.org>
17448
17449 * image.c (our_memory_buffer): Rename from omfib_buffer.
17450
174512007-10-08 Richard Stallman <rms@gnu.org>
17452
17453 * buffer.c (Foverlays_at): Doc fix.
17454
174552007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
17456
17457 * fns.c (Fplist_put): Preserve uneven tail data.
17458
174592007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
17460
17461 * termhooks.h (enum event_kind): Remove trailing comma.
17462
17463 * frame.h (enum): Remove trailing comma.
17464
174652007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
17466
17467 * w32proc.c (delete_child): Don't terminate threads of zombies.
17468
174692007-10-08 Martin Rudalics <rudalics@gmx.at>
17470
17471 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
17472
17473 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
17474 last-repeatable-command.
17475 (init_kboard): Initialize Vlast_repeatable_command.
17476 (command_loop_1): Set it to real_this_command unless that was
17477 bound to an input event.
17478 (mark_kboards): Mark it.
17479
174802007-10-08 Richard Stallman <rms@gnu.org>
17481
17482 * eval.c (condition-case): Doc fix.
17483
174842007-10-08 Masatake YAMATO <jet@gyve.org>
17485
17486 * xfaces.c (tty_supports_face_attributes_p): Fix code
17487 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
17488 was copied and not edited.
17489
174902007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
17491
17492 Add new `input-decode-map' keymap and use it for terminal
17493 escape sequences.
17494 * keyboard.h (struct kboard): Add Vinput_decode_map.
17495 Remove Vlocal_key_translation_map.
17496 * keyboard.c (read_key_sequence): Add support for input-decode-map.
17497 (init_kboard): Init input-decode-map.
17498 Replace local-key-translation-map back with key-translation-map.
17499 (syms_of_keyboard): Declare input-decode-map.
17500 Remove local-key-translation-map. Update docstrings.
17501 (mark_kboards): Mark Vinput_decode_map.
17502 Don't mark Vlocal_key_translation_map.
17503 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
17504 Replace local-key-translation-map back with key-translation-map.
17505 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
17506 Bind in input-decode-map rather than function-key-map.
17507
17508 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
17509 This was made redundant by the previous introduction of XSETPVECTYPE.
17510
175112007-10-09 Richard Stallman <rms@gnu.org>
17512
17513 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
17514
175152007-09-29 Richard Stallman <rms@gnu.org>
17516
17517 * eval.c (internal_condition_case_2, internal_condition_case_1)
17518 (internal_condition_case): Reenable abort if x_catching_errors ()
17519 to see if that really happens and why.
17520
175212007-10-06 Andreas Schwab <schwab@suse.de>
17522
17523 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
17524
175252007-10-04 Juanma Barranquero <lekktu@gmail.com>
17526
17527 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
17528
175292007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
17530
17531 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
17532
175332007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
17534
17535 * window.h (struct window):
17536 * window.c (struct save_window_data, struct saved_window):
17537 * termhooks.h (struct terminal):
17538 * process.h (struct Lisp_Process):
17539 * frame.h (struct frame):
17540 * buffer.h (struct buffer):
17541 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
17542 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
17543 The size field of (pseudo)vectors is now unsigned.
17544 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
17545
17546 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
17547 Turn `count' into an integer.
17548
17549 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
17550 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
17551 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
17552 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
17553 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
17554
17555 * alloc.c (allocate_pseudovector): New fun.
17556 (ALLOCATE_PSEUDOVECTOR): New macro.
17557 (allocate_window, allocate_terminal, allocate_frame)
17558 (allocate_process): Use it.
17559 (mark_vectorlike): New function.
17560 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
17561 (mark_terminals): Use it.
17562 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
17563 (Fmake_byte_code): Use XSETPVECTYPE.
17564
17565 * frame.c (Fframe_parameters): Minor simplification.
17566
17567 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
17568
17569 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
17570
17571 * buffer.c (Fget_buffer_create, init_buffer_once):
17572 * lread.c (defsubr):
17573 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
17574
17575 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
17576 defined differently in the m/*.h files.
17577 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
17578 (XSETPVECTYPE): New macro.
17579 (XSETPSEUDOVECTOR): Use it.
17580
17581 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
17582 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
17583
17584 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
17585 * lread.c (defvar_per_buffer):
17586 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
17587
17588 * window.c (candidate_window_p): Only consider as visible frames that
17589 are on the same terminal.
17590
17591 * m/ibms390x.h (MARKBIT): Remove unused macro.
17592
175932007-10-01 Juanma Barranquero <lekktu@gmail.com>
17594
17595 * lread.c (Fload): Fix typo in docstring.
17596
175972007-10-01 Michaël Cadilhac <michael@cadilhac.name>
17598
17599 * floatfns.c (Fexpt): Manually check for overflows, so that a power
17600 of a non-zero value can't yield zero.
17601
176022007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
17603
17604 * term.c (term_clear_mouse_face, term_mouse_highlight)
17605 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
17606
17607 * print.c (safe_debug_print): Use XHASH.
17608
17609 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
17610 Lisp elements such as tags.
17611 (XHASH): New macro.
17612 (EQ): Use it.
17613 (SREF, SSET, STRING_COPYIN): Use SDATA.
17614 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
17615
17616 * alloc.c (mark_terminal): Remove left-over declaration.
17617 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
17618 (allocate_vectorlike): Remove type argument. Adjust callers.
17619 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
17620 Only handle the one remaining MEM_TYPE_VECTORLIKE.
17621
17622 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
17623 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
17624 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
17625 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
17626 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
17627 Use them.
17628
17629 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
17630 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
17631 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
17632
176332007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
17634
17635 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
17636 loaded by default.
17637
176382007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
17639
17640 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
17641 on this tty.
17642 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
17643
17644 * term.c (mouse_face_window): Rename from Qmouse_face_window.
17645 Update all users.
17646 (handle_one_term_event): Use Gpm_DrawPointer.
17647 (Fgpm_mouse_start): Rename from Fterm_open_connection.
17648 Signal errors instead of returning nil. Always return nil.
17649 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
17650 Make it a noop if gpm-mouse was not activated.
17651 (syms_of_term): Update names.
17652
176532007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
17654
17655 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
17656 (init_sys_modes): Check that gpm_tty is the current tty.
17657
17658 * alloc.c (allocate_terminal): Set the vector size to only count the
17659 lisp fields. Initialize those to nil.
17660 (mark_object): Don't treat terminals specially.
17661 (mark_terminal): Remove.
17662 (mark_terminals): Use mark_object instead.
17663
17664 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
17665 the GC to the beginning.
17666
17667 * indent.h:
17668 * indent.c: Use EMACS_INT for ints coming from Elisp data.
17669
17670 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
17671
176722007-09-25 Jason Rumney <jasonr@gnu.org>
17673
17674 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
17675
17676 * w32console.c (create_w32cons_output): Remove.
17677
17678 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
17679
17680 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
17681 (reset_sys_modes): Use reset_terminal_modes_hook.
17682
176832007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
17684
17685 * eval.c (do_autoload): Don't output any message.
17686
176872007-09-24 Juri Linkov <juri@jurta.org>
17688
17689 * emacs.c (standard_args): Change priority of "--no-splash"
17690 from 40 to 3. Add "--no-desktop" with the same priority.
17691
176922007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
17693
17694 * alloc.c (gc_sweep): Check cons cell mark bits word by word
17695 and optimize the case where they are all 1.
17696
176972007-09-23 Johannes Weiner <hannes@saeurebad.de>
17698
17699 * lisp.h (abs): Define if not defined.
17700 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
17701 Don't define `abs', since it's defined in lisp.h.
17702
177032007-09-22 Eli Zaretskii <eliz@gnu.org>
17704
17705 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
17706 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
17707 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
17708 (init_tty): Use DEV_TTY instead of "/dev/tty".
17709 [WINDOWSNT]: No need to protect from NAME arg being null.
17710
177112007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
17712
17713 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
17714 up the tty state.
17715
177162007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
17717
17718 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
17719 (gpm_tty): Change its type.
17720 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
17721 (gpm_tty): Change its type and initialize it.
17722 (Fterm_open_connection): Check the frame is indeed a tty.
17723 Use the new gpm_tty.
17724 (Fterm_close_connection): Use the new gpm_tty.
17725 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
17726 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
17727
177282007-09-21 Juanma Barranquero <lekktu@gmail.com>
17729
17730 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
17731 underline_color, to draw strike-through.
17732
177332007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
17734
17735 * lisp.h (allocate_terminal): Declare.
17736
17737 * window.c (candidate_window_p): Consider frames that are being placed
17738 by the user as somewhere between visible and iconified.
17739 (window_loop): Prefer windows on the current frame.
17740 (Fselect_window): Move the use of select-frame to the beginning so we
17741 can just delegate all the work (it'll call us back anyway).
17742
17743 * frame.c (Qdisplay_environment_variable):
17744 * frame.h (Qdisplay_environment_variable): Delete.
17745
17746 * .gdbinit (xbacktrace): Print the arg's address rather than the value
17747 of the first arg, since that value may be a union.
17748
17749 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
17750 parameter rather than Qdisplay_environment_variable. If all else
17751 fails, look for DISPLAY in initial-environment.
17752
177532007-09-21 Glenn Morris <rgm@gnu.org>
17754
17755 * Makefile.in (emacstool): Remove target.
17756 (lisp, shortlisp): Remove termdev.elc.
17757
177582007-09-21 Markus Triska <markus.triska@gmx.at>
17759
17760 * xterm.c (x_delete_display): Compile session management conditionally.
17761
177622007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
17763
17764 * callproc.c (getenv_internal_1): New function.
17765 (getenv_internal): Use it.
17766 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
17767
17768 * terminal.c (get_terminal): Don't accept ints to represent terminals.
17769 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
17770 (Fset_terminal_parameter): Work with dead terminals as well.
17771 (Fmodify_terminal_parameters): Remove.
17772
17773 * terminal.c (get_terminal): Handle terminals.
17774 Make sure the terminal returned is live.
17775 (create_terminal): Use allocate_terminal.
17776 (mark_terminals): Move to alloc.c.
17777 (delete_terminal): Use terminal->name as liveness status.
17778 NULL out fields after freeing their contents.
17779 Don't deallocate the object.
17780 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
17781 rather than an int.
17782 (Fterminal_live_p): Accept non-integer arguments.
17783 (Fterminal_list): Return terminal objects rather than an ints.
17784
17785 * alloc.c (enum mem_type): New member for `terminal' objects.
17786 (allocate_terminal): New function.
17787 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
17788 Handle terminals.
17789 (mark_terminal): New fun.
17790 (mark_terminals): Move from terminal.c.
17791
17792 * term.c (get_tty_terminal): Don't treat output_initial specially.
17793 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
17794 (delete_tty): Use terminal->name as liveness status.
17795
17796 * termhooks.h (struct terminal): Make it into a pseudovector.
17797 Remove `deleted' replaced by checking `name's nullness.
17798
17799 * print.c (print_object): Handle terminals.
17800
17801 * lisp.h (enum pvec_type): New `terminal' pseudovector.
17802 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
17803
17804 * frame.c (make_terminal_frame):
17805 * keyboard.c (tty_read_avail_input):
17806 * w32term.c (x_delete_terminal):
17807 * xfns.c (Fx_create_frame, x_create_tip_frame):
17808 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
17809
178102007-09-20 Glenn Morris <rgm@gnu.org>
17811
17812 * process.c (Fmake_network_process): Doc fix.
17813
178142007-09-19 Jason Rumney <jasonr@gnu.org>
17815
17816 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
17817
178182007-09-19 Michaël Cadilhac <michael@cadilhac.name>
17819
17820 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
17821 Fix a C warning regarding variable constness.
17822
17823 * xterm.c (handle_one_xevent): Fix a C warning.
17824
178252007-09-18 Jason Rumney <jasonr@gnu.org>
17826
17827 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
17828
178292007-09-17 Jan Djärv <jan.h.d@swipnet.se>
17830
17831 * gtkutil.c (gdpy_def): New variable.
17832 (xg_initialize): Initialize gdpy_def.
17833 (xg_display_close): If no other display exists, set gdpy_def to a
17834 new connection.
17835
178362007-09-16 Jan Djärv <jan.h.d@swipnet.se>
17837
17838 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
17839 when we have no file name for the icon.
17840 (xg_tool_bar_expose_callback): Remove.
17841 (xg_create_tool_bar): Don't connect expose signal to
17842 xg_tool_bar_expose_callback.
17843 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
17844
178452007-09-16 Andreas Schwab <schwab@suse.de>
17846
17847 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
17848 values instead of zapping them.
17849
178502007-09-14 Glenn Morris <rgm@gnu.org>
17851
17852 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
17853 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
17854 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
17855 scope and rename to omfib_buffer for clarity.
17856 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
17857
178582007-09-14 Kenichi Handa <handa@m17n.org>
17859
17860 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
17861
178622007-09-13 Jason Rumney <jasonr@gnu.org>
17863
17864 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
17865
17866 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
17867
17868 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
17869 (mac_term_init): Call here instead, passing rif.
17870
178712007-09-13 Glenn Morris <rgm@gnu.org>
17872
17873 * s/hpux.h: No longer define `static' as nothing.
17874
178752007-09-13 Johan Bockgård <bojohan@gnu.org>
17876
17877 * callint.c (Fcall_interactively): Remove unused var `fun'.
17878
178792007-09-12 Romain Francoise <romain@orebokech.com>
17880
17881 * window.c (prefer_window_split_horizontally, display_buffer):
17882 Revert 2007-09-08 change.
17883
178842007-09-12 Glenn Morris <rgm@gnu.org>
17885
17886 * alloca.c: Remove file.
17887 * Makefile.in (alloca): Do not undef.
17888 (allocaobj, alloca.o): Remove.
17889 (otherobj): Remove allocaobj.
17890 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
17891 * regex.c (C_ALLOCA): Remove all references and code that was only
17892 used when this was defined.
17893 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
17894 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
17895 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
17896
17897 * Makefile.in (SOURCES, unlock, relock): Delete.
17898
17899 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
17900 (menu_grab_callback): All uses changed.
17901
17902 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
17903 (x_reply_selection_request): All uses changed.
17904
179052007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
17906
17907 * lread.c (load_warn_old_style_backquotes): Change message to look
17908 better when it appears in the middle of byte-compiler messages.
17909
179102007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
17911
17912 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
17913
17914 * xterm.c (x_create_terminal): Add comment.
17915
17916 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
17917
179182007-09-10 Richard Stallman <rms@gnu.org>
17919
17920 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
17921
179222007-09-10 Michaël Cadilhac <michael@cadilhac.name>
17923
17924 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
17925 (DEFUN): Document `intspec', use it instead of `prompt'.
17926
17927 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
17928
17929 * data.c (Finteractive_form): If the interactive specification starts
17930 with a `(', use it as a Lisp form.
17931
17932 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
17933 name and file modes.
17934
17935 * callint.c (Fcall_interactively): Comment fixes.
17936
179372007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
17938
17939 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
17940 and compiled functions.
17941
179422007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
17943
17944 * window.c (prefer_window_split_horizontally): New variable.
17945 (display_buffer): Consider splitting window horizontally depending
17946 on prefer_window_split_horizontally.
17947
179482007-09-08 Eli Zaretskii <eliz@gnu.org>
17949
17950 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
17951
179522007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
17953
17954 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
17955
17956 * frame.c (x_set_frame_parameters): Check number is positive before
17957 using XFASTINT.
17958
17959 * window.c (freeze_window_start): Don't presume selected_window holds
17960 a window object.
17961 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
17962
179632007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
17964
17965 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
17966
179672007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
17968
17969 * window.c (Vsplit_window_preferred_function): New var.
17970 (Fdisplay_buffer): Use it.
17971 (syms_of_window): Export, and initialize it.
17972
179732007-09-06 Pixel <pixel@mandriva.com> (tiny change)
17974
17975 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
17976
179772007-09-06 Glenn Morris <rgm@gnu.org>
17978
17979 * gtkutil.c (menu_grab_callback) <cnt>:
17980 * xselect.c (x_reply_selection_request) <cnt>: Move static
17981 variable to file scope.
17982
179832007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
17984
17985 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
17986 consistent values of selected_frame and selected_window.
17987
179882007-09-04 Jason Rumney <jasonr@gnu.org>
17989
17990 * w32console.c (initialize_w32_display): Zero unused hooks.
17991
179922007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
17993
17994 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
17995 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
17996
179972007-09-04 Jason Rumney <jasonr@gnu.org>
17998
17999 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
18000 in w32console.c. Set up input. Remove XXX comments that have been
18001 confirmed as correct.
18002
18003 * s/ms-w32.h (MULTI_KBOARD): Define.
18004
18005 * w32console.c (one_and_only_w32cons): Remove.
18006 (initialize_w32_display): Take terminal argument.
18007
18008 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
18009 initialize_w32_display.
18010 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
18011
18012 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
18013
18014 * keyboard.c (discard_mouse_events): Discard it.
18015 (make_lispy_event): Translate it to a lisp event.
18016 (lispy_wheel_names): Add wheel-left and right events.
18017 (syms_of_keyboard): Enlarge wheel_syms.
18018
18019 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
18020 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
18021
18022 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
18023
18024 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
18025 from WM_MOUSEHWHEEL.
18026 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
18027
18028 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
18029 terminal.
18030
18031 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
18032 keyboard for the terminal.
18033
180342007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
18035
18036 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
18037 (Vresume_tty_hook): Rename from Vresume_tty_functions.
18038 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
18039 and resume-tty-function to resume-tty-hook.
18040 (Fsuspend_tty, Fresume_tty): Use new names.
18041
180422007-09-02 Jan Djärv <jan.h.d@swipnet.se>
18043
18044 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
18045 if it starts with "n:".
18046
180472007-08-31 Jan Djärv <jan.h.d@swipnet.se>
18048
18049 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
18050
180512007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
18052
18053 * frame.h:
18054 * frame.c (Qterm_environment_variable): Remove.
18055 (syms_of_frame): Don't init and staticpro it.
18056
18057 * callproc.c (getenv_internal): Remove special case for $TERM.
18058
18059 * callproc.c (Vinitial_environment): New variable.
18060 (set_initial_environment): Initialize it.
18061 (syms_of_callproc): Declare it.
18062 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
18063 TERM under which a process runs is never related to the TERM in which
18064 Emacs is running.
18065
180662007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
18067
18068 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
18069 * s/darwin.h: ... do it here.
18070
180712007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
18072
18073 * lisp.h (set_initial_environment): Rename from set_global_environment.
18074
18075 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
18076 removed by mistake on the multi-tty branch.
18077
18078 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
18079 (Fmodify_frame_parameters): Return a value.
18080
18081 * image.c (png_load): Comment-out var only used in commented-out code.
18082
18083 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
18084 before passing it to mark_object.
18085
18086 * xfaces.c (internal_resolve_face_name): Return a value.
18087 (internal_resolve_face_name, resolve_face_name_error): Comment out.
18088
18089 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
18090 (x_icon): Comment-out var only used in commented-out code.
18091
180922007-08-29 Romain Francoise <romain@orebokech.com>
18093
18094 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
18095 QUIT hasn't been provided.
18096
180972007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
18098
18099 * callproc.c (child_setup, getenv_internal): Use the
18100 display-environment-variable and term-environment-variable frame params.
18101 (set_initial_environment): Initialise Vprocess_environment.
18102
18103 * config.in: Disable multi-keyboard support on a mac.
18104
18105 * frame.c (Qterm_environment_variable)
18106 (Qdisplay_environment_variable): New variables.
18107 (syms_of_frame): Intern and staticpro them.
18108 (Fmake_terminal_frame): Disable output method test.
18109
18110 * frame.h: Declare them here.
18111
18112 * macfns.c (x_set_mouse_color): Get rif from the frame.
18113 (x_set_tool_bar_lines): Don't use updating_frame.
18114 (mac_window): Add 2 new parameters for consistency with other systems.
18115 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
18116 frame parameters following what is done in X11 and w32. Don't use
18117 FRAME_MAC_DISPLAY_INFO.
18118 (Fx_open_connection, start_hourglass): Remove window-system check.
18119 (x_create_tip_frame): Get the keyboard from the terminal.
18120
18121 * macmenu.c: Reorder includes.
18122 (Fx_popup_menu): Use terminal specific mouse_position_hook.
18123
18124 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
18125 terminal parameter.
18126 (x_clear_frame): Add a frame parameter.
18127 (note_mouse_movement): Get rif from the frame.
18128 (mac_term_init): Initialize the terminal.
18129 (mac_initialize): Make static and move terminal initialization ...
18130 (mac_create_terminal): ... to this new function.
18131
18132 * macterm.h (struct mac_display_info): Add terminal.
18133 (mac_initialize): Delete declaration.
18134
18135 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
18136
18137 * sysdep.c: Comment out text after #endif.
18138
18139 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
18140 is defined. Better initialize ttys in windows. Use terminal
18141 specific mouse_position_hook.
18142
18143 * termhooks.h (union display_info): Add mac_display_info.
18144
18145 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
18146 Set the default minibuffer frame, window_system and the rest of the
18147 frame parameters following what is done in X11.
18148
18149 * w32term.c (w32_initialize): Make static.
18150
18151 * xselect.c (x_handle_selection_clear): Only access
18152 terminal->kboard when MULTI_KBOARD is defined.
18153
18154 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
18155 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
18156
181572007-08-29 Jason Rumney <jasonr@gnu.org>
18158
18159 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
18160 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
18161
18162 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
18163 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
18164
18165 * keyboard.c (restore_kboard_configuration): Only define when
18166 MULTI_KBOARD defined.
18167
18168 * makefile.w32-in: Update dependancies from Makefile.in.
18169 (OBJ1): Add terminal.$(O)
18170
18171 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
18172 Don't define function body.
18173 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
18174
18175 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
18176
18177 * w32.c (request_sigio, unrequest_sigio): Remove.
18178
18179 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
18180 (w32con_clear_frame, w32con_clear_end_of_line)
18181 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
18182 (w32con_delete_glyphs, w32con_set_terminal_window)
18183 (scroll_line, w32_sys_ring_bell): Add frame arg.
18184 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
18185 Add terminal arg.
18186 (PICK_FRAME): Remove.
18187 (w32con_write_glyphs): Use frame specific terminal coding.
18188 (one_and_only_w32cons): New global variable.
18189 (initialize_w32_display): Use it for storing hooks.
18190 (create_w32cons_output): New function.
18191
18192 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
18193 arg a frame.
18194
18195 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
18196 Set window_system.
18197 (x_set_tool_bar_lines): Don't use updating_frame.
18198 (Fx_create_frame): Set terminal and ref count.
18199 (Fx_open_connection): Remove window-system check.
18200
18201 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
18202
18203 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
18204 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
18205 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
18206 Add frame arg.
18207 (x_delete_terminal, w32_create_terminal): New functions.
18208 (w32_term_init): Create a terminal.
18209 (w32_initialize): Move terminal specific initialization to
18210 w32_create_terminal.
18211
18212 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
18213 (w32_clear_rect, w32_clear_area): Use background from frame.
18214 (w32_display_info): Add terminal.
18215 (w32_sys_ring_bell, x_delete_display): Declare here.
18216
18217 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
18218
18219 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
18220
182212007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
18222
18223 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
18224 Fix get_named_tty calls for the controlling tty.
18225
182262007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
18227
18228 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
18229
182302007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
18231
18232 * term.c (tty_insert_glyphs): Add missing first parameter.
18233
182342007-08-29 Károly Lőrentey <karoly@lorentey.hu>
18235
18236 * buffer.c (Fbuffer_list, Fbury_buffer):
18237 Take frame->buried_buffer_list into account.
18238
18239 * cm.c (current_tty): New variable, for cmputc().
18240 (cmputc): Use it.
18241 (cmcheckmagic): Add tty parameter, look up terminal streams there.
18242 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
18243 (cmgoto): Add tty parameter. Pass it on to calccost().
18244 Use emacs_tputs() instead of tputs().
18245
18246 * cm.h (emacs_tputs): New macro to set current_tty, and then call
18247 tputs().
18248 (current_tty): New variable, for cmputc().
18249 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
18250
18251 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
18252 (internal_condition_case, internal_condition_case_1)
18253 (internal_condition_case_2): Don't abort when x_catching_errors.
18254
18255 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
18256 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
18257 prevent crashes caused by bogus longjmps in read_char.
18258
18259 * keymap.h (Fset_keymap_parent): Add EXFUN.
18260
18261 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
18262 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
18263 Remove redundant definition.
18264
18265 * macfns.c (x_set_mouse_color, x_make_gc):
18266 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
18267
18268 * w32term.c (x_free_frame_resources):
18269 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
18270 (w32_initialize): Use the accessor macros for terminal characteristics.
18271
18272 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
18273 Use the accessor macros for terminal characteristics.
18274 * msdos.c (internal_terminal_init): Use the accessor macros for
18275 terminal characteristics.
18276 (ScreenVisualBell, internal_terminal_init):
18277 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
18278
18279 * termopts.h (no_redraw_on_reenter): Declare.
18280
18281 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
18282 (mark_terminals, mark_ttys): Declare.
18283 (Fgarbage_collect): Call them.
18284 (mark_object): Mark buried_buffer_list.
18285
18286 * prefix-args.c: Include stdlib.h for exit.
18287
18288 * syssignal.h: Add comment.
18289
18290 * indent.c: Include stdio.h.
18291
18292 * window.h (Vinitial_window_system): Declare.
18293 (Vwindow_system): Delete declaration.
18294
18295 * fontset.c (Finternal_char_font): Use FRAME_RIF.
18296
18297 * image.c (lookup_image): Don't initialize `c' until the xasserts
18298 have been run.
18299
18300 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
18301 FRAME_FOREGROUND_PIXEL.
18302
18303 * print.c (print_preprocess): Don't lose print_depth levels while
18304 iterating.
18305
18306 * widget.c (update_from_various_frame_slots):
18307 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
18308
18309 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
18310 frames.
18311 (window_internal_height): Remove bogus make_number call.
18312 (init_window_once): Call make_terminal_frame with two zero parameters.
18313
18314 * fileio.c (Fread_file_name): Update comment.
18315
18316 * callint.c (Fcall_interactively):
18317 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
18318 Make sure it is correctly unwound.
18319
18320 * xsmfns.c (x_session_close): New function.
18321
18322 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
18323 Delete declarations.
18324
18325 * xterm.h: Remove declaration for x_fully_uncatch_errors.
18326 (x_output): Remove background_pixel and foreground_pixel fields.
18327 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
18328 (x_delete_device, x_session_close): Declare.
18329
18330 * lread.c: Include setjmp.h. Update declaration of `read_char'.
18331 (read_filtered_event): Call `read_char' with a local
18332 `wrong_kboard_jmpbuf'.
18333
18334 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
18335 Don't call single_kboard_state. Use FRAME_RIF.
18336
18337 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
18338 systems.
18339
18340 * lisp.h (set_process_environment): Rename to `set_global_environment'.
18341 (Fframe_with_environment, Fset_input_meta_mode)
18342 (Fset_quit_char): EXFUN.
18343 (x_create_device, tty_output, terminal, tty_display_info): Declare.
18344 (init_sys_modes, reset_sys_modes): Update prototypes.
18345 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
18346
18347 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
18348 Vlocal_key_translation_map, and Vkeyboard_translate_table.
18349 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
18350 Delete declarations.
18351 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
18352 (temporarily_switch_to_single_kboard, tty_read_avail_input):
18353 New declarations.
18354
18355 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
18356 already does that during init_display(). Call syms_of_keymap
18357 before syms_of_keyboard. Call `syms_of_terminal'.
18358 Call set_initial_environment, not set_process_environment.
18359 (shut_down_emacs): Call reset_all_sys_modes() instead of
18360 reset_sys_modes().
18361
18362 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
18363 (internal_resolve_face_name, resolve_face_name_error): New functions.
18364 (resolve_face_name): Protect against loops and errors thrown by Fget.
18365 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
18366 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
18367
18368 * scroll.c: Replace CURTTY() with local variables throughout the
18369 file (where applicable).
18370 (calculate_scrolling, calculate_direct_scrolling)
18371 (scrolling_1, scroll_cost): Use the accessor macros for terminal
18372 characteristics.
18373
18374 * keymap.c (Vfunction_key_map): Remove.
18375 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
18376 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
18377 (Vkey_translation_map): Remove.
18378 (syms_of_keymap): Remove DEFVAR for key-translation-map.
18379 (Fdescribe_buffer_bindings)
18380 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
18381 Update for terminal-local key-translation-map.
18382
18383 * Makefile.in (callproc.o): Update dependencies.
18384 (lisp, shortlisp): Add termdev.elc.
18385 (obj): Add terminal.o.
18386 (terminal.o): Add dependencies.
18387 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
18388 (data.o, fns.o): Add termhooks.h dependency.
18389 (SOME_MACHINE_LISP): Add dnd.elc.
18390 (minibuf.o): Fix typo.
18391 Update dependencies.
18392
18393 * data.c (do_symval_forwarding, store_symval_forwarding)
18394 (find_symbol_value): Use the selected frame's keyboard, not
18395 current_kboard.
18396
18397 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
18398 Vwindow_system.
18399
18400 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
18401 Fmenu_bar_open.
18402 (syms_of_xmenu): Update defsubr.
18403 (mouse_position_for_popup, Fx_popup_menu)
18404 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
18405 (set_frame_menubar, free_frame_menubar)
b97439ce 18406 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
18407 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
18408 an X frame.
18409
18410 * xselect.c (x_own_selection): Abort if not an X frame.
18411 (some_frame_on_display): Check if it is an X frame.
18412 (x_handle_selection_clear): Deal with MULTI_KBOARD.
18413
18414 * coding.c: Include frame.h and termhooks.h.
18415 (terminal_coding, keyboard_coding): Delete.
18416 (Fset_terminal_coding_system_internal)
18417 (Fset_keyboard_coding_system_internal)
18418 (Fkeyboard_coding_system)
18419 (Fterminal_coding_system): Add a terminal parameter.
18420 Get terminal_coding from the terminal.
18421 (init_coding_once): Don't call setup_coding_system here.
18422
18423 * dispextern.h (set_scroll_region, turn_off_insert)
18424 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
18425 (tty_clear_end_of_line, tty_setup_colors)
18426 (delete_tty, updating_frame)
18427 (produce_special_glyphs, produce_glyphs, write_glyphs)
18428 (insert_glyphs): Remove.
18429 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
18430 (tty_turn_off_highlight, get_tty_size): Add declaration.
18431 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
18432
18433 * frame.h (enum output_method): Add output_initial.
18434 (struct x_output): Delete.
18435 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
18436 Access foreground_pixel and background_pixel directly from the frame.
18437 (tty_display): Delete.
18438 (struct frame): Add buried_buffer_list, foreground_pixel,
18439 background_pixel and terminal. Delete kboard.
18440 (union output_data): Add tty.
18441 (FRAME_KBOARD): Get the kboard from the terminal.
18442 (FRAME_INITIAL_P): New macro.
18443 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
18444 (Qterm_environment_variable, Qdisplay_environment_variable)
18445 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
18446 New declarations.
18447
18448 * termchar.h (tty_output, tty_display_info): New structures.
18449 (tty_list): Declare.
18450 (FRAME_TTY, CURTTY): New macros.
18451 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
18452 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
18453 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
18454 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
18455
18456 * callproc.c: Include frame.h and termhooks.h, for terminal
18457 parameters.
18458 (add_env): New function.
18459 (child_setup): Use it.
18460 (child_setup, getenv_internal): Handle the new Vprocess_environment.
18461 (getenv_internal): Fix get_terminal_param call.
18462 (Fgetenv_internal, egetenv): Update doc.
18463 (syms_of_callproc): Initialize Vprocess_environment to nil.
18464 Register and initialize them. Remove obsolete defvars. Update doc
18465 strings.
18466 (child_setup): Handle Vlocal_environment_variables.
18467 (getenv_internal): Add terminal parameter.
18468 Handle Vlocal_environment_variables.
18469 (Fgetenv_internal): Add terminal parameter.
18470 (child_setup, getenv_internal, Fgetenv_internal): Store the local
18471 environment in a frame (not terminal) parameter. Update doc strings.
18472 (set_initial_environment): Rename from set_global_environment.
18473 Store Emacs environment in initial frame parameter.
18474
18475 * xdisp.c (redisplay_internal): Update references to
18476 `previous_terminal_frame'.
18477 (display_mode_line, Fformat_mode_line): Replace calls to
18478 `push_frame_kboard' with `push_kboard'.
18479 (get_glyph_string_clip_rects): Add extra parentheses and
18480 braces to prevent compiler warnings.
18481 (calc_pixel_width_or_height): Add xassert to check that the
18482 frame is alive. Don't call `lookup_image' on a termcap frame.
18483 (message2_nolog, message3_nolog, redisplay_internal)
18484 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
18485 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
18486 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
18487 (Fx_display_pixel_width, Fx_display_pixel_height)
18488 (Fx_display_planes, Fx_display_color_cells)
18489 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
18490 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
18491 (Fx_display_backing_store, Fx_display_visual_class)
18492 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
18493 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
18494
18495 * xfns.c (x_set_foreground_color x_set_background_color)
18496 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
18497 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
18498 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
18499 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
18500 terminal that is being deleted.
18501 (Fx_create_frame): Use `store_frame_param' to set `window-system'
18502 frame parameter, and make sure it overrides any user-supplied setting.
18503 (Fx_close_connection, Fx_synchronize): Unify argument names with
18504 the rest of the DEFUNs.
18505
18506 * dispnew.c (Fsend_string_to_terminal): Update call to
18507 `get_tty_terminal'.
18508 (Fredraw_frame, Fsend_string_to_terminal)
18509 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
18510 FRAME_TERMCAP_P and FRAME_TTY.
18511 (window_change_signal): Don't believe width/height values that are
18512 impossibly small.
18513 (Vinitial_window_system): Rename from Vwindow_system.
18514 (termscript, Wcm, rif): Delete.
18515
18516 * termhooks.h (struct terminal): New struct containing the
18517 previously global text display hooks and new members NAME,
18518 DELETED and PARAM_ALIST.
18519 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
18520 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
18521 (FRAME_RIF): New macros.
18522 (get_terminal_param, get_device): New declarations.
18523 (termscript): Delete declaration.
18524
18525 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
18526 (XTflash, x_free_frame_resources, x_scroll_bar_create)
18527 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
18528 FRAME_FOREGROUND_PIXEL.
18529 (x_fully_uncatch_errors): Disable definition.
18530 (x_scroll_bar_expose): Fix reference to foreground pixel.
18531 (XTread_socket): Disable loop on all X displays.
18532 (x_delete_terminal): Don't set terminal->deleted and let
18533 delete_terminal delete the frames on the terminal.
18534 (x_delete_display): Doc update to reflect changes in
18535 delete_terminal.
18536 (x_display_info) <terminal>: Move member earlier in the struct.
18537 (deleting_tty): Remove old variable.
18538 (Fsuspend_tty): Call clear_tty_hooks.
18539 (Fresume_tty, init_tty): Call set_tty_hooks.
18540 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
18541 errors on X frames.
18542 (x_catch_errors_unwind): Abort if x_error_message is NULL.
18543 (handle_one_xevent): Initialize `f' to NULL.
18544 (x_delete_terminal, x_create_terminal): New functions.
18545 (XTset_terminal_modes, XTreset_terminal_modes)
18546 (XTread_socket, x_connection_closed, x_term_init)
18547 (x_term_init, x_delete_display): Add terminal parameter.
18548 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
18549 X connections.
18550
18551 * frame.c: Include termchar.h.
18552 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
18553 (Qwindow_system, Qenvironment, Qterm_environment_variable)
18554 (Qdisplay_environment_variable): New vars.
18555 (Fframep): Deal with output_initial.
18556 (Fframe-live-p): Doc fix.
18557 (Fwindow-system): New function.
18558 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
18559 (make_terminal_frame): Don't create frames on a terminal that is
18560 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
18561 (store_frame_param): Check for found_for_frame before calling XFRAME.
18562 (Fmake_terminal_frame): Handle NULL tty names correctly.
18563 (syms_of_frame): Enhance doc string of `default-frame-alist'.
18564 (Fdelete_frame): Remove unused variable `count'. Don't allow other
18565 frames to refer to a deleted frame in their 'environment parameter.
18566 (Fframe_with_environment): New function.
18567 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
18568 (get_future_frame_param): New function.
18569 (Fmake_terminal_frame): Use it.
18570 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
18571
18572 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
18573 * sysdep.c (reset_sys_modes): Update for renames.
18574
18575 * keyboard.c (tty_read_avail_input): New function.
18576 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
18577 (syms_of_keyboard): Defsubr them.
18578 (Fset_input_meta_mode, Fset_quit_char): New functions.
18579 (Fset_input_mode): Split to above functions.
18580 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
18581 parameter. Use it in call to `read_char'.
18582 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
18583 Set wrong_kboard_jmpbuf correctly in recursive calls.
18584 Use current_kboard to access Vkeyboard_translate_table.
18585 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
18586 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
18587 Update longjmp invocations. Remember the original current_kboard,
18588 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
18589 changes it. Comment out unnecessary calls to
18590 `record_single_kboard_state' and `any_kboard_state'.
18591 Update recursive calls.
18592 (wrong_kboard_jmpbuf): Remove global variable.
18593 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
18594 Handle deleted interrupted_kboards correctly; that is a legal
18595 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
18596 and read_char calls. Abort if interrupted_kboard died in read_char.
18597 (any_kboard_state, single_kboard_state)
18598 (push_frame_kboard): Remove function.
18599 (pop_kboard): Switch out of single_kboard mode if the kboard has
18600 been deleted. Remove unused variable. Help debugging by not
18601 changing current_kboard unnecessarily. Set current_kboard to the
18602 kboard of the selected frame when the stored kboard object has
18603 been deleted before pop_kboard.
18604 (temporarily_switch_to_single_kboard): Change first parameter to a
18605 frame pointer. Throw an error when caller wants to change kboards
18606 while in single_kboard mode. Don't push_kboard if we weren't in
18607 single kboard state. Don't pop_kboard if we popped into any
18608 kboard state.
18609 (restore_kboard_configuration): Abort if pop_kboard changed the
18610 kboard in single_kboard mode. Call pop_kboard only after setting
18611 up single_kboard mode.
18612 (Frecursive_edit): Switch to single_kboard mode only in nested
18613 command loops.
18614 (cmd_error, command_loop, command_loop_1, timer_check):
18615 Comment out unnecessary call to `any_kboard_state' and
18616 `record_single_kboard_state'.
18617 (delete_kboard): Exit single_kboard mode if we have just deleted
18618 that kboard. Use FRAME_KBOARD.
18619 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
18620 `fatal_error_signal'.
18621 (record_single_kboard_state): Don't push_kboard if we weren't in
18622 single kboard state. Don't pop_kboard if we popped into any
18623 kboard state.
18624 (push_frame_kboard): Rename to push_kboard.
18625 (kbd_buffer_get_event): Use FRAME_TERMINAL.
18626 (read_avail_input): Read input from all terminals.
18627 (mark_kboards): Also mark Vkeyboard_translate_table.
18628 (kbd_buffer_store_event_hold): Simplify condition.
18629 (read_key_sequence): Reinitialize fkey and keytran at each replay.
18630 (Vkeyboard_translate_table): Move to struct kboard.
18631 (init_kboard): Initialize Vkeyboard_translate_table.
18632 (syms_of_keyboard): Use DEFVAR_KBOARD to define
18633 Vkeyboard_translate_table. Update doc strings. Update docs of
18634 local-function-key-map and function-key-map.
18635
18636 * terminal.c: New file.
18637
18638 * term.c: Include errno.h.
18639 (Vring_bell_function, device_list, initial_device)
18640 (next_device_id, ring_bell, update_begin, update_end)
18641 (set_terminal_window, cursor_to, raw_cursor_to)
18642 (clear_to_end, clear_frame, clear_end_of_line)
18643 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
18644 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
18645 (syms_of_term): Move their initialization to terminal.c.
18646 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
18647 (Ftty_display_color_cells)
18648 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
18649 (clear_tty_hooks, set_tty_hooks)
18650 (init_tty, maybe_fatal): New functions.
18651 (Ftty_type): Return nil if terminal is not on a tty instead of
18652 throwing an error. Doc update.
18653 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
18654 Doc update. Initialize new subrs and variables.
18655 (delete_tty): Use terminal->deleted.
18656 (tty_set_terminal_modes): Rename from set_terminal_modes.
18657 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
18658 (set_scroll_region): Rename to `tty_set_scroll_region'.
18659 (turn_on_insert): Rename to `tty_turn_on_insert'.
18660 (turn_off_insert): Rename to `tty_turn_off_insert'.
18661 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
18662 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
18663 (toggle_highligh): Rename to `tty_toggle_highlight'.
18664 (background_highlight): Rename to `tty_background_highlight'.
18665 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
18666 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
18667 (tty_set_scroll_region, tty_background_highlight)
18668 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
18669 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
18670 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
18671 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
18672 Add static modifier.
18673 (tty_reset_terminal_modes, tty_set_terminal_window)
18674 (tty_set_scroll_region, tty_background_highlight)
18675 (tty_highlight_if_desired, tty_cursor_to)
18676 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
18677 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
18678 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
18679 renames.
18680
186812007-08-28 Jan Djärv <jan.h.d@swipnet.se>
18682
18683 * keyboard.c: Qrtl is new.
18684 (parse_tool_bar_item): Handle :rtl keyword.
18685 (syms_of_keyboard): Intern :rtl keyword.
18686
18687 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
18688
18689 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
18690 so no Lisp code is executed.
18691 (file_for_image, find_rtl_image): New functions.
18692 (xg_get_image_for_pixmap): Use file_for_image.
18693 (update_frame_tool_bar): If direction is RTL, use RTL image if
18694 defined. Use Gtk stock images if defined.
18695
186962007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18697
18698 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
18699 for nonexistent or zero-width glyph in composition glyph.
18700
187012007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
18702
18703 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
18704
18705 * xdisp.c (Finvisible_p): New function.
18706 (syms_of_xdisp): defsubr it.
18707
187082007-08-24 Juanma Barranquero <lekktu@gmail.com>
18709
18710 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
18711 Doc fixes.
18712
187132007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18714
18715 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
18716
187172007-08-24 Martin Rudalics <rudalics@gmx.at>
18718
18719 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
18720 whether decoding has modified buffer contents.
18721
187222007-08-24 Jason Rumney <jasonr@gnu.org>
18723
18724 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
18725 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
18726 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
18727 (init_svg_functions) [HAVE_NTGUI]: New function.
18728 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
18729 (svg_load_image): Use them.
18730 (svg_load_image) [HAVE_NTGUI]: Implement background.
18731
187322007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18733
18734 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
18735 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
18736 (LIBX): Remove @RSVG_LIBS@.
18737 (LIBES): Add $(RSVG_LIBS).
18738
18739 * image.c (svg_load_image): Blend with specified background if exists.
18740 Use IMAGE_BACKGROUND. Add Mac OS Support.
18741
18742 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
18743 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
18744 Remove macros.
18745 [MAC_OSX] (socket_callback): Do nothing.
18746 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
18747 ReceiveNextEvent.
18748 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
18749 socket_callback.
18750 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
18751
187522007-08-22 Glenn Morris <rgm@gnu.org>
18753
18754 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
18755
187562007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
18757
18758 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
18759
18760 * image.c: Add support for SVG images. Some additional comments
18761 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
18762 (svg_image_p): New function to test for SVG image.
18763 (svg_load): New function to load SVG image.
18764 (svg_load_image): New function, helper for svg_load.
18765 (Qsvg): New Lisp_object.
18766 (svg_keyword_index): New enum.
18767 (svg_format): New static `image_keyword' struct.
18768 (svg_type): New static `image_type' struct.
18769 (librsvg/rsvg.h): Include it.
18770
187712007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
18772
18773 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
18774
187752007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
18776
18777 * lread.c (Qold_style_backquotes): New var.
18778 (syms_of_lread): Init and staticpro it.
18779 (load_warn_old_style_backquotes): New fun.
18780 (Fload): Use them to warn about old style backquotes.
18781 (end_of_file_error, Fload): Remove unused vars.
18782
18783 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
18784
18785 * lread.c (Vold_style_backquotes): New var.
18786 (syms_of_lread): Init and export it to Elisp.
18787 (read1): Set it when we find an old-style (back)quote.
18788
187892007-08-22 Jason Rumney <jasonr@gnu.org>
18790
18791 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
18792
187932007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
18794
18795 * puresize.h (BASE_PURESIZE): Increase to 1140000.
18796
187972007-08-19 Richard Stallman <rms@gnu.org>
18798
18799 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
18800
188012007-08-19 Andreas Schwab <schwab@suse.de>
18802
18803 * alloc.c (pure): Round PURESIZE up.
18804
188052007-08-17 Jan Djärv <jan.h.d@swipnet.se>
18806
18807 * xterm.c (handle_one_xevent): Remove check that mouse click is in
18808 active frame.
18809
188102007-08-16 Richard Stallman <rms@gnu.org>
18811
18812 * eval.c (Fcommandp): Add parens to clarify.
18813
18814 * minibuf.c (Fall_completions): Use enum for type of table.
18815
18816 * emacs.c (USAGE2): Improve text.
18817
188182007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
18819
18820 * term.c (tty_default_color_capabilities): Declare static
18821 variables in file scope, to avoid HPUX compiler problem.
18822
188232007-08-13 Jan Djärv <jan.h.d@swipnet.se>
18824
18825 * gtkutil.c (update_frame_tool_bar): Use -1 as index
18826 to gtk_toolbar_insert.
18827
188282007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
18829
18830 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
18831
18832 * insdel.c (reset_var_on_error): New fun.
18833 (signal_before_change, signal_after_change):
18834 Use it to reset (after|before)-change-functions to nil in case of error.
18835 Bind inhibit-modification-hooks to t.
18836 Don't bind (after|before)-change-functions to nil while they run.
18837
188382007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18839
18840 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
18841 filling pixmap with stippled background.
18842
188432007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18844
18845 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
18846 Don't use invisible frame as parent window for repositioning.
18847
188482007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
18849
18850 * print.c (new_backquote_output): Rename from old_backquote_output.
18851 (print): Inverse its logic (according to its name) so as to match the
18852 behavior of new_backquote_flag in lread.c.
18853
188542007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18855
18856 * gmalloc.c (posix_memalign): New function.
18857
18858 * macterm.c (frame_highlight, frame_unhighlight): Don't call
18859 ActivateControl/DeactivateControl here.
18860 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
18861 frame-notice-user-settings is non-nil.
18862 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
18863 for kEventParamFMFontStyle.
18864 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
18865 mac_pass_command_to_system and mac_pass_control_to_system here.
18866 (XTread_socket): Call ActivateControl/DeactivateControl here.
18867 (XTread_socket) [TARGET_API_MAC_CARBON]:
18868 Check mac_pass_command_to_system and mac_pass_control_to_system here.
18869 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
18870 for window repositioning.
18871
188722007-08-08 Glenn Morris <rgm@gnu.org>
18873
18874 * Replace `iff' in doc-strings and comments.
18875
188762007-08-07 Chong Yidong <cyd@stupidchicken.com>
18877
18878 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
18879
188802007-08-07 Martin Rudalics <rudalics@gmx.at>
18881
18882 * fileio.c (Finsert_file_contents): Run format-decode and
18883 after_insert_file_functions on entire buffer when REPLACE is
18884 non-nil and inhibit modification_hooks and point_motion_hooks.
18885 For consistency, run after_insert_file_functions iff something
18886 got inserted. Move signal_after_change and update_compositions
18887 after code running after_insert_file_functions. Make sure that
18888 undo_list doesn't record intermediate steps of the decoding process.
18889
188902007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18891
18892 * emacs.c (main)
18893 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
18894 Call malloc_enable_thread on interactive startup.
18895
18896 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
18897 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
18898 [USE_PTHREAD]: Conditionalize with it.
18899 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
18900 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
18901 New functions.
18902
189032007-08-06 Chong Yidong <cyd@stupidchicken.com>
18904
18905 * xdisp.c (redisplay_window): When restoring original buffer
18906 position, make sure it is still valid.
18907
18908 * image.c (png_load): Ignore png-supplied background color.
18909
189102007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18911
18912 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
18913 Use kCFAbsoluteTimeIntervalSince1970.
18914
18915 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
18916 New variable.
18917 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
18918 event loop should be quit.
18919 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
18920 Quit dialog event loop if quit_dialog_event_loop is set.
18921
18922 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
18923 (Selection): New typedef. Use instead of ScrapRef.
18924 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
18925 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
18926 (mac_clear_selection): Rename from clear_scrap.
18927 (get_flavor_type_from_symbol): New argument SEL and subsume function of
18928 scrap_has_target_type. All uses changed.
18929 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
18930 (mac_selection_has_target_p): New functions.
18931 (mac_put_selection_value): Rename from put_scrap_string.
18932 (mac_get_selection_value): Rename from get_scrap_string.
18933 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
18934 (put_scrap_private_timestamp, scrap_has_target_type)
18935 (get_scrap_private_timestamp): Remove functions.
18936 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
18937 (x_own_selection, x_get_local_selection):
18938 Use mac_valid_selection_value_p.
18939 (x_own_selection): Don't use put_scrap_private_timestamp.
18940 Record OWNERSHIP-INFO into Vselection_alist instead.
18941 (x_get_local_selection): Don't check type if request is local.
18942 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
18943 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
18944
189452007-08-04 Jan Djärv <jan.h.d@swipnet.se>
18946
18947 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
18948 add comment explaining why.
18949
189502007-08-03 Richard Stallman <rms@gnu.org>
18951
18952 * fileio.c (Fvisited_file_modtime): Use make_time.
18953
189542007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
18955
18956 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
18957 build.
18958
189592007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
18960
18961 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
18962
189632007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
18964
18965 * puresize.h (BASE_PURESIZE): Increase to 1130000.
18966
189672007-07-30 Richard Stallman <rms@gnu.org>
18968
18969 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
18970
189712007-07-29 Jan Djärv <jan.h.d@swipnet.se>
18972
18973 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
18974
189752007-07-28 Nick Roberts <nickrob@snap.net.nz>
18976
18977 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
18978 remote default-directory.
18979
18980 * buffer.c (mode-line-format): Update doc string.
18981
189822007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18983
18984 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
18985 scroll bar gap.
18986 (x_scroll_bar_create): Set bar->fringe_extended_p.
18987 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
18988 on frame edge. Check fringe background extension. Don't clear
18989 extended fringe background area.
18990
18991 * w32term.h (struct scroll_bar): New member fringe_extended_p.
18992 (w32_fill_area): Enclose multiple statements with do ... while (0).
18993
18994 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
18995 Extend fringe background to scroll bar gap.
18996 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
18997 Set bar->fringe_extended_p.
18998 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
18999 Put leftmost/rightmost scroll bars on frame edge. Check fringe
19000 background extension. Don't clear extended fringe background area.
19001
19002 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
19003 New member fringe_extended_p.
19004
190052007-07-25 Glenn Morris <rgm@gnu.org>
19006
19007 * Relicense all FSF files to GPLv3 or later.
19008
19009 * COPYING: Switch to GPLv3.
19010
190112007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
19012
19013 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
19014
19015 * data.c (Finteractive_form): Check for the presence of an
19016 `interactive-form' symbol property more thoroughly.
19017
19018 * data.c (Finteractive_form): Use an `interactive-form' property if
19019 present, analogous to the function-documentation property.
19020
190212007-07-24 Jason Rumney <jasonr@gnu.org>
19022
19023 * w32fns.c (x_real_positions): Get real position from OS instead of
19024 calculating it.
19025
190262007-07-23 Jason Rumney <jasonr@gnu.org>
19027
19028 * filelock.c (current_lock_owner): Allow for @ sign in username.
19029
190302007-07-22 Nick Roberts <nickrob@snap.net.nz>
19031
19032 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
19033 remote default-directory.
19034
19035 * buffer.c (mode-line-format): Describe above case in doc string.
19036
190372007-07-20 Eli Zaretskii <eliz@gnu.org>
19038
19039 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
19040 Define if not defined.
19041
190422007-07-18 Jason Rumney <jasonr@gnu.org>
19043
19044 * w32proc.c (w32_executable_type): Handle 64 bit executables.
19045
190462007-07-18 Richard Stallman <rms@gnu.org>
19047
19048 * data.c (Fsetq_default): Doc fix.
19049
19050 * eval.c (Fsetq): Doc fix.
19051
190522007-07-18 Juanma Barranquero <lekktu@gmail.com>
19053
19054 * coding.c (Ffind_operation_coding_system):
19055 * eval.c (For, Fand): Doc fixes.
19056 Reported by Johan Bockgård.
19057
190582007-07-18 Jan Djärv <jan.h.d@swipnet.se>
19059
19060 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
19061
19062 * xterm.h: Declare x_ewmh_activate_frame.
19063
19064 * xterm.c (x_ewmh_activate_frame): New function.
19065 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
19066
190672007-07-17 Martin Rudalics <rudalics@gmx.at>
19068
19069 * window.c (Fdisplay_buffer): If largest or LRU window is the
19070 only window, split it even if it is not eligible for splitting.
19071 This restores the original behavior broken by the 2007-07-15
19072 change.
19073
190742007-07-17 Glenn Morris <rgm@gnu.org>
19075
19076 * abbrev.c (abbrev_check_chars): New function.
19077 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
19078 Call abbrev_check_chars to check abbrev characters are word
19079 constituents. Doc fix.
19080
190812007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
19082
19083 * process.c (Fstart_process, Fmake_network_process)
19084 (read_process_output): Fix up last changes.
19085
190862007-07-16 Eli Zaretskii <eliz@gnu.org>
19087
19088 * makefile.w32-in (clean): Don't delete *~.
19089
190902007-07-16 Andreas Schwab <schwab@suse.de>
19091
19092 * window.c (Fdisplay_buffer): Use NILP.
19093 (Fset_window_scroll_bars): Likewise.
19094
190952007-07-15 Martin Rudalics <rudalics@gmx.at>
19096
19097 * window.c (window_min_size_2): New function.
19098 (window_min_size_1, size_window, Fdisplay_buffer)
19099 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
19100 windows without mode- or header-lines when window-min-height is
19101 too small.
19102 (size_window): Reset nodelete_p after testing it, following an
19103 earlier note by Kim F. Storm.
19104 (display_buffer): Do not set split_height_threshold to twice the
19105 value of window_min_height to avoid changing the value of a
19106 customizable variable. Rather explicitly check whether the
19107 height of the window that shall be splitted is at least as large
19108 as split_height_threshold.
19109 (Fwindow_full_width_p): New defun.
19110 (syms_of_window): Defsubr it.
19111
19112 * window.h: Add EXFUN for Fwindow_full_width_p.
19113
191142007-07-14 Jason Rumney <jasonr@gnu.org>
19115
19116 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
19117
191182007-07-14 Richard Stallman <rms@gnu.org>
19119
19120 * eval.c (maybe_call_debugger): New function.
19121 (find_handler_clause): Use maybe_call_debugger.
19122 Call it when the handler says `debug'.
19123 Eliminate DEBUGGER_VALUE_PTR.
19124 (Fsignal): Eliminate debugger_value.
19125 (Qdebug): New variable.
19126 (syms_of_eval): Initialize it.
19127
191282007-07-14 Juanma Barranquero <lekktu@gmail.com>
19129
19130 * eval.c (Fprogn):
19131 * keyboard.c (Ftrack_mouse):
19132 * print.c (Fwith_output_to_temp_buffer):
19133 * window.c (Fsave_window_excursion): Doc fix.
19134
191352007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
19136
19137 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
19138
191392007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
19140
19141 * process.h (struct Lisp_Process): Turn slots infd, outfd,
19142 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
19143 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
19144 read_output_delay, and read_output_skip from Lisp_Objects to ints.
19145 Remove unused encoding_carryover.
19146 * process.c: Adjust all functions accordingly.
19147
191482007-07-12 Richard Stallman <rms@gnu.org>
19149
19150 * term.c: Include unistd.h only if HAVE_UNISTD_H.
19151
191522007-07-11 Jason Rumney <jasonr@gnu.org>
19153
19154 * makefile.w32-in (LIBS): Include OLE32.
19155
19156 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
19157 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
19158
191592007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
19160
19161 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
19162 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
19163 from a Lisp_Object into a bare pointer.
19164 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
19165 Adjust the code correspondingly.
19166
19167 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
19168
19169 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
19170 (term_show_mouse_face): Remove unused var `j'.
19171 (handle_one_term_event): Remove unused vars `i' and `j'.
19172 Don't cast return value of ttyname since it's not necessary.
19173
191742007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
19175
19176 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
19177 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
19178
19179 * fns.c (map_char_table): Use an array of int for `indices' rather than
19180 an array of Lisp_Objects (which are only ever integers anyway).
19181 (Fmap_char_table): Update caller.
19182 * lisp.h: Update prototype.
19183 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
19184 * fontset.c (Ffontset_info):
19185 * casetab.c (set_case_table): Update callers.
19186
19187 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
19188
19189 * keymap.c (struct accessible_keymaps_data)
19190 (struct where_is_internal_data): New structures.
19191 (accessible_keymaps_1, where_is_internal_1): Use them to change
19192 interface to adhere to the one used by map_keymap.
19193 (Faccessible_keymaps, where_is_internal): Use map_keymap.
19194 (accessible_keymaps_char_table, where_is_internal_2): Remove.
19195
19196 * keymap.h (map_keymap_function_t): More informative prototype.
19197
191982007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
19199
19200 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
19201 (looking_at_1): Don't change search_regs and last_thing_searched
19202 if `inhibit-changing-match-data' is non-nil.
19203 (string_match_1, search_buffer, set_search_regs): Likewise.
19204 (syms_of_search): Add Lisp level definition for
19205 `inhibit-changing-match-data' and set it to nil.
19206 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
19207 start and end of the match, instead of using values in search_regs.
19208
192092007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
19210
19211 * minibuf.c (Fcompleting_read): New value `confirm-only'
19212 for `require-match'.
19213
192142007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
19215
19216 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
19217 part of the 2007-06-27 change to syms_of_fileio.
19218
192192007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19220
19221 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
19222 Check WINDOWP before using XWINDOW. Consolidate return statements.
19223
192242007-06-27 Richard Stallman <rms@gnu.org>
19225
19226 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
19227
192282007-06-27 Juanma Barranquero <lekktu@gmail.com>
19229
19230 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
19231
192322007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19233
19234 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
19235 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
19236 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
19237 (_free_internal, memalign): Use them.
19238 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
19239 Initialize to PTHREAD_MUTEX_INITIALIZER.
19240 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
19241 (morecore_nolock): Rename from morecore. All uses changed.
19242 Use only nolock versions of internal allocation functions.
19243 (_malloc_internal_nolock, _realloc_internal_nolock)
19244 (_free_internal_nolock): New functions created from
19245 _malloc_internal, _realloc_internal, and _free_internal.
19246 (_malloc_internal, _realloc_internal, _free_internal): Use them.
19247 Copy hook value to automatic variable before its use.
19248 (memalign): Copy hook value to automatic variable before its use.
19249
192502007-06-26 Kenichi Handa <handa@m17n.org>
19251
19252 * coding.c (Ffind_operation_coding_system): Docstring improved.
19253 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
19254
192552007-06-25 David Kastrup <dak@gnu.org>
19256
19257 * keymap.c (Fcurrent_active_maps): Add `position' argument.
19258 (Fwhere_is_internal): Adjust call to `current-active-maps' to
19259 cater for additional parameter.
19260
19261 * keymap.h: Adjust number of parameters to `current-active-maps'.
19262
19263 * doc.c (Fsubstitute_command_keys): Adjust call of
19264 `current-active-maps'.
19265
192662007-06-25 David Kastrup <dak@gnu.org>
19267
19268 * callint.c (Fcall_interactively): Make the parsing of interactive
19269 specs somewhat more readable.
19270
192712007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19272
19273 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
19274 to scroll bar gap also when bitmap fills fringe. Draw only foreground
19275 if extended background has already been filled.
19276
192772007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19278
19279 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
19280 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
19281
19282 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
19283 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
19284 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
19285 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
19286 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
19287 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
19288 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
19289 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
19290 Run timers during dialog popup.
19291 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
19292
192932007-06-21 Jason Rumney <jasonr@gnu.org>
19294
19295 * image.c (convert_mono_to_color_image): Swap fore and background.
19296
192972007-06-20 Jason Rumney <jasonr@gnu.org>
19298
19299 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
19300 (w32_free_bdf_font): Unmap memory not handle.
19301
193022007-06-20 Sam Steingold <sds@gnu.org>
19303
19304 * gmalloc.c (__morecore): Fix the declaration to comply with the
19305 definition.
19306
193072007-06-20 Juanma Barranquero <lekktu@gmail.com>
19308
19309 * w32term.c (w32_delete_display): Remove leftover declaration.
19310 (w32_define_cursor, w32_initialize): Make static.
19311
19312 * w32.c (_wsa_errlist): Fix typo in error message.
19313 (init_environment): Ignore any environment variable from the
19314 registry having a null value.
19315
193162007-06-20 Glenn Morris <rgm@gnu.org>
19317
19318 * Makefile.in (LIBGIF): Default to -lgif.
19319
193202007-06-17 Jason Rumney <jasonr@gnu.org>
19321
19322 * w32menu.c (add_menu_item): Don't use multibyte string functions on
19323 unicode strings.
19324
193252007-06-16 Juanma Barranquero <lekktu@gmail.com>
19326
19327 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
19328 Fix typo in docstring.
19329
193302007-06-16 Eli Zaretskii <eliz@gnu.org>
19331
19332 * w32menu.c (add_menu_item): Escape `&' characters in menu items
19333 and their keybindings.
19334
193352007-06-15 Chong Yidong <cyd@stupidchicken.com>
19336
19337 * composite.c (update_compositions): Fix last fix.
19338
193392007-06-14 Jason Rumney <jasonr@gnu.org>
19340
19341 * w32.c (get_process_times_fn): New function pointer.
19342 (globals_of_w32): Intialize it if present in kernel32.dll.
19343 (w32_get_internal_run_time): New function.
19344
19345 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
19346
193472007-06-14 Kenichi Handa <handa@etlken.m17n.org>
19348
19349 * composite.c (update_compositions): Check the validness of
19350 compositions.
19351
193522007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19353
19354 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
19355 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
19356
19357 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
19358 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
19359
19360 * macgui.h (USE_MAC_TOOLBAR): New define.
19361
19362 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
19363 Return immediately unless popup is activated.
19364
19365 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
19366 background to scroll bar gap.
19367 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
19368 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
19369 scroll bars on frame edge. Check fringe background extension.
19370 Don't clear extended fringe background area.
19371 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
19372 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
19373 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
19374 [USE_MAC_TOOLBAR]: New macros.
19375 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
19376 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
19377 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
19378 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
19379 [USE_MAC_TOOLBAR]: New functions.
19380 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
19381 manually if previous repositioning has failed.
19382 (mac_handle_keyboard_event): Use precomputed event kind.
19383 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
19384 as tool bar item click. Handle mouse movement over tool bar items.
19385
19386 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
19387 toolbar_win_gravity.
19388 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
19389 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
19390 Add externs.
19391
19392 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
19393 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
19394
193952007-06-14 Chong Yidong <cyd@stupidchicken.com>
19396
19397 * image.c (search_image_cache): Remove unused variable.
19398
193992007-06-13 Chong Yidong <cyd@stupidchicken.com>
19400
19401 * xfns.c, xmenu.c: Link to xaw3d if available.
19402
194032007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19404
19405 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
19406 frame_foreground and frame_background.
19407
19408 * image.c (lookup_image): Save frame foreground and background colors.
19409 (search_image_cache): Check if saved and current frame colors match.
19410
194112007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
19412
19413 * regex.c (regex_compile): Remove the `regnum' counter.
19414 Use bufp->re_nsub instead. Add support for \(?N:RE\).
19415
194162007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
19417
19418 * term.c: Include intervals.h to declare Fget_text_property.
19419
194202007-06-10 Jason Rumney <jasonr@gnu.org>
19421
19422 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
19423
194242007-06-08 Juanma Barranquero <lekktu@gmail.com>
19425
19426 * callint.c (Fcall_interactively):
19427 * editfns.c (Fdelete_and_extract_region):
19428 * fileio.c (Fread_file_name):
19429 * fns.c (Fmapconcat):
19430 * keyboard.c (cmd_error_internal):
19431 * keymap.c (Fkey_description):
19432 * lread.c (openp):
19433 * minibuf.c (read_minibuf):
19434 * search.c (wordify):
19435 * sunfns.c (sel_read):
19436 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
19437 * xfns.c (x_default_scroll_bar_color_parameter):
19438 * xmenu.c (menu_help_callback):
19439 * xselect.c (Fx_get_atom_name):
19440 * xterm.c (x_term_init): Use empty_unibyte_string.
19441
194422007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
19443
19444 * alloc.c (init_strings): Initialize canonical empty strings.
19445 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
19446 canonical empty string when the requested size is 0.
19447
19448 * emacs.c (empty_unibyte_string): Rename from empty_string.
19449 (empty_multibyte_string): New canonical empty string.
19450 (syms_of_emacs): Don't initialize empty_string.
19451
19452 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
19453 string, if appropriate.
19454 (empty_unibyte_string, empty_multibyte_string): New externs.
19455 (empty_string): Remove extern.
19456
19457 * lread.c (syms_of_lread): Use empty_unibyte_string.
19458
194592007-06-07 Jason Rumney <jasonr@gnu.org>
19460
19461 * s/ms-w32.h: Don't define HAVE_TZNAME.
19462
19463 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
19464
194652007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19466
19467 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
19468
19469 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
19470 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
19471
19472 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
19473 Don't call next handler.
19474 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
19475 Remove argument. Install handler to application.
19476 (set_frame_menubar): Don't change deep_p.
19477 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
19478 FRAME_OUTER_TO_INNER_DIFF_Y.
19479 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
19480 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
19481 [HAVE_DIALOGS]: New macros.
19482 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
19483 Use them.
19484 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
19485
19486 * macselect.c [MAC_OSX] (install_service_handler): Rename from
19487 init_service_handler. All callers changed. Return OSStatus value.
19488
19489 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
19490 All callers changed so as not to call SetPortWindowPort.
19491 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
19492 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
19493 mac_draw_string_common.
19494 (mac_draw_image_string_qd): Likewise.
19495 (mac_draw_string_common): Use them. Add INLINE.
19496 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
19497 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
19498 GetGlobalMouse.
19499 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
19500 and FRAME_OUTER_TO_INNER_DIFF_Y.
19501 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
19502 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
19503 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
19504 repositioning window to mac_handle_window_event.
19505 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
19506 saving window location to mac_handle_window_event
19507 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
19508 (install_menu_target_item_handler): Remove argument in extern.
19509 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
19510 Also accept command events.
19511 (do_keystroke): New function created from XTread_socket.
19512 (init_command_handler): Remove functions.
19513 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
19514 and save window location by kEventWindowShowing and kEventWindowHiding
19515 handlers here. Don't call next handler for window state change and
19516 focus events.
19517 (mac_handle_application_event, mac_handle_keyboard_event)
19518 [TARGET_API_MAC_CARBON]: New functions.
19519 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
19520 kEventWindowShowing and kEventWindowHiding events. Move installation
19521 of mouse, font, text input and menu target item handlers to
19522 install_application_handler.
19523 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
19524 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
19525 New function.
19526 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
19527 Register it.
19528 (XTread_socket) [TARGET_API_MAC_CARBON]:
19529 Consolidate SendEventToEventTarget calls.
19530 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
19531 Move application activation handler to mac_handle_application_event.
19532 Move keyboard handler to mac_handle_keyboard_event.
19533 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
19534 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
19535 init_command_handler. Call install_application_handler.
19536
19537 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
19538 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
19539
195402007-06-07 Glenn Morris <rgm@gnu.org>
19541
19542 * emacs.c (main): Use `emacs-copyright' in --version output.
19543
195442007-06-06 Chong Yidong <cyd@stupidchicken.com>
19545
19546 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
19547
195482007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19549
19550 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
19551
19552 * macgui.h: Replace WindowPtr with WindowRef.
19553
19554 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
19555 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
19556 Replace ControlHandle with ControlRef.
19557 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
19558
19559 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
19560 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
19561 Replace ControlHandle with ControlRef.
19562 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
19563 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
19564
19565 * macterm.h (struct scroll_bar): Rename member control_handle_low
19566 and control_handle_high to control_ref_low and control_ref_high.
19567 All uses changed.
19568 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
19569 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
19570 respectively. All uses changed.
19571 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
19572 (install_window_handler, remove_window_handler): Replace WindowPtr
19573 with WindowRef in externs.
19574
195752007-06-05 Juanma Barranquero <lekktu@gmail.com>
19576
19577 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
19578
195792007-06-03 Nick Roberts <nickrob@snap.net.nz>
19580
19581 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
19582
19583 * frame.c (Fmouse_position, Fmouse_pixel_position):
19584 Condition on HAVE_GPM too.
19585
19586 * term.c (term_mouse_highlight): Remove unused variables.
19587 (Fterm_open_connection): Set gpm_zerobased to 1.
19588 (term_mouse_movement, term_mouse_click, handle_one_term_event):
19589 Use zero based co-ordinates.
19590 (handle_one_term_event): Report a drag as mouse movement too.
19591
19592 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
19593
195942007-06-03 Chong Yidong <cyd@stupidchicken.com>
19595
19596 * image.c (search_image_cache): New function. Require background
19597 color match if background color is unspecified in the image spec.
19598 (uncache_image, lookup_image): Use it.
19599
196002007-06-01 Juanma Barranquero <lekktu@gmail.com>
19601
19602 * window.c (Fshrink_window): Reflow docstring.
19603
196042007-06-02 Chong Yidong <cyd@stupidchicken.com>
19605
19606 * Version 22.1 released.
19607
196082007-06-01 Richard Stallman <rms@gnu.org>
19609
19610 * xfns.c (x_encode_text): Add GCPRO.
19611
196122007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19613
19614 * xfns.c (x_set_name_internal): Save encoded name before
19615 x_encode_text in case string data is relocated.
19616
196172007-05-31 Richard Stallman <rms@gnu.org>
19618
19619 * buffer.c (syms_of_buffer): Doc fix.
19620
196212007-05-30 Nick Roberts <nickrob@snap.net.nz>
19622
19623 * sysdep.c (init_sys_modes): Add rather than replace with
19624 O_NONBLOCK.
19625
19626 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
19627 term_mouse_moveto.
19628
19629 * termhooks.h (term_mouse_moveto): New extern.
19630
19631 * term.c (mouse_face_window): Rename...
19632 (Qmouse_face_window): ...to this.
19633 (term_show_mouse_face, term_clear_mouse_face)
19634 (term_mouse_highlight): Use Qmouse_face_window.
19635 (term_mouse_moveto): New function.
19636 (term_mouse_position): Make it work.
19637 (syms_of_term): Uncomment assignment to mouse_position_hook.
19638 Staticpro Qmouse_face_window.
19639
196402007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19641
19642 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
19643 around current_column call.
19644
196452007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
19646
19647 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
19648 * xdisp.c (next_element_from_buffer):
19649 * window.c (delete_window):
19650 * term.c (term_mouse_highlight):
19651 * msdos.c (getdefdir):
19652 * macterm.c (mac_create_bitmap_from_bitmap_data)
19653 (init_font_name_table):
19654 * fns.c (Fsxhash):
19655 * data.c (Fmake_local_variable):
19656 * ccl.c (ccl_driver): Likewise.
19657
196582007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19659
19660 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
19661 Call mac_wakeup_from_rne on window size change.
19662
196632007-05-25 Chong Yidong <cyd@stupidchicken.com>
19664
19665 * image.c (uncache_image): Fix typo.
19666
196672007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
19668
19669 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
19670
196712007-05-22 Richard Stallman <rms@gnu.org>
19672
19673 * xterm.c (x_connection_closed): Remove NO_RETURN.
19674
196752007-05-22 Martin Rudalics <rudalics@gmx.at>
19676
19677 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
19678
196792007-05-21 Chong Yidong <cyd@stupidchicken.com>
19680
19681 * image.c (uncache_image): New function.
19682 (Fimage_refresh): New function.
19683
196842007-05-20 Jan Djärv <jan.h.d@swipnet.se>
19685
19686 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
19687
196882007-05-20 Nick Roberts <nickrob@snap.net.nz>
19689
19690 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
19691 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
19692
196932007-05-20 Nick Roberts <nickrob@snap.net.nz>
19694
19695 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
19696 conditional on [HAVE_GPM_H].
19697
196982007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
19699
19700 * syntax.c (skip_chars): Update syntax-table only after we checked that
19701 the new location is valid.
19702
197032007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19704
19705 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
19706 mac_get_window_bounds.
19707
197082007-05-20 Nick Roberts <nickrob@snap.net.nz>
19709
19710 * Makefile.in (LIBGPM): Allow it to be set from configure.
19711 If set then link Emacs with it.
19712
19713 * config.in: Regenerate.
19714
19715 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
19716 New externs.
19717
19718 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
19719 Include gpm.h.
19720 (handle_one_term_event, term_gpm): New externs.
19721
19722 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
19723 and allow it to be interrupted by SIGIO.
19724
19725 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
19726 (wait_reading_process_output): Wait on gpm_fd too.
19727 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
19728 (add_gpm_wait_descriptor_called_flag): New variable.
19729 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
19730
19731 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
19732 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
19733 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
19734 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
19735 (make_lispy_event): Add case GPM_CLICK_EVENT.
19736 (read_avail_input): Handle mouse input.
19737
19738 * term.c (write_glyphs_with_face): New function.
19739 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
19740 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
19741 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
19742 (mouse_face_face_id, term_gpm, pos_x, pos_y)
19743 (last_mouse_x, last_mouse_y): New variables.
19744 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
19745 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
19746 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
19747 (Fterm_close_connection): New functions.
19748 (term_init): Initialise mouse_face_window.
19749
197502007-05-19 Chong Yidong <cyd@stupidchicken.com>
19751
19752 * xdisp.c (redisplay_window): If first window line is a
19753 continuation line, recompute the new window start instead of
19754 recentering.
19755
197562007-05-18 Glenn Morris <rgm@gnu.org>
19757
19758 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
19759 Suggested by Alfred M. Szmidt <ams@gnu.org>.
19760
197612007-05-17 Glenn Morris <rgm@gnu.org>
19762
19763 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
19764
197652007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19766
19767 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
19768 dead key repeat and up events.
19769
197702007-05-14 Chong Yidong <cyd@stupidchicken.com>
19771
19772 * image.c (pbm_load): Check image size for monochrome pbm.
19773
197742007-05-13 Chong Yidong <cyd@stupidchicken.com>
19775
19776 * xterm.c (XTread_socket): Revert last change.
19777
197782007-05-12 Chong Yidong <cyd@stupidchicken.com>
19779
19780 * image.c (pbm_load): Correctly check image size for greyscale pbm.
19781
19782 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
19783
197842007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
19785
19786 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
19787 mixup (YAILOM).
19788
197892007-05-07 Andreas Schwab <schwab@suse.de>
19790
19791 * keymap.c (Flookup_key): Fix typo in last change.
19792
197932007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
19794
19795 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
19796 mapping for unibyte strings.
19797
197982007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19799
19800 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
19801 (Fx_popup_dialog) [MAC_OSX]: Likewise.
19802
198032007-04-29 Richard Stallman <rms@gnu.org>
19804
19805 * insdel.c (replace_range): For undo, record insertion first.
19806
198072007-04-29 Andreas Schwab <schwab@suse.de>
19808
19809 * lisp.h (VECSIZE): Use OFFSETOF.
19810
198112007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19812
19813 * xdisp.c (try_window_reusing_current_matrix): Fix number of
19814 disabled lines.
19815
198162007-04-28 Richard Stallman <rms@gnu.org>
19817
19818 * lread.c (read_escape): In a string, \s is always space.
19819
198202007-04-27 Jan Djärv <jan.h.d@swipnet.se>
19821
19822 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
19823
19824 * gtkutil.c (xg_update_menubar, create_menus): Create empty
19825 submenu for menu bar items.
19826
19827See ChangeLog.10 for earlier changes.
19828
19829;; Local Variables:
19830;; coding: utf-8
19831;; add-log-time-zone-rule: t
aac0c6e3
MR
19832;; End:
19833
76b6f707 19834 Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
aac0c6e3
MR
19835
19836 This file is part of GNU Emacs.
19837
19838 GNU Emacs is free software: you can redistribute it and/or modify
19839 it under the terms of the GNU General Public License as published by
19840 the Free Software Foundation, either version 3 of the License, or
19841 (at your option) any later version.
19842
19843 GNU Emacs is distributed in the hope that it will be useful,
19844 but WITHOUT ANY WARRANTY; without even the implied warranty of
19845 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19846 GNU General Public License for more details.
19847
19848 You should have received a copy of the GNU General Public License
19849 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
19850
19851;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40