Fix a comment.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
0bae4e09
AR
12009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
2
3 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
4 carefully. (Bug #4339)
5
fcfe06f3
CY
62009-09-18 Chong Yidong <cyd@stupidchicken.com>
7
d798ba87 8 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 9
31642728
AR
102009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
11
12 * emacs.c (inhibit_x_resources): Update doc string for NS.
13 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 14 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
15
16 * nsterm.h (ns_no_defaults): Remove.
17
18 * nsterm.m (ns_no_defaults): Remove.
19 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
20 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
21 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
22 don't update the NSWindow itself.
23 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
24 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
25
26 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
27 ns_use_qd_smoothing.
28
29 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
30 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 31 (x-close-connection): Drop PSFlush() under OS X.
0bae4e09 32 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 33
8686ac71
JB
342009-09-17 Juanma Barranquero <lekktu@gmail.com>
35
36 * emacs.c (inhibit_x_resources): New variable.
37 (main) [HAVE_NS]: Don't process --quick command line option.
38 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
39
40 * lisp.h (inhibit_x_resources): Declare it extern.
41
42 * w32reg.c (x_get_string_resource):
43 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
44
e227ba05
EZ
452009-09-17 Eli Zaretskii <eliz@gnu.org>
46
47 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP): Add
48 lisp/term/internal.elc.
49
742d40e8
SM
502009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
51
52 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
53 (bug#4461).
54
005bd5a2
DN
552009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
56
57 * puresize.h (BASE_PURESIZE): Increase to 1290000.
58
59 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
60 (OBJECTS_MACHINE): Remove, unused.
61
f9af9719
SM
622009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
63
64 * frame.c (x_get_resource_string): Remove unused.
65
0307c7d2
JD
662009-09-15 Jan Djärv <jan.h.d@swipnet.se>
67
68 * xterm.c (x_new_font): Call change_frame_size before calling
69 x_set_window_size, in case frame size won't change.
70
71 * frame.c (x_set_font): Remove dead code.
72
428b13d6
SM
732009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
74
75 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
76
5766c380
SM
772009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
78
79 * lread.c (Fload): Don't output a message after loading an obsolete
80 package any more (done in Lisp now).
81
2fd0161b
CY
822009-09-12 Chong Yidong <cyd@stupidchicken.com>
83
84 * fns.c (syms_of_fns): Doc fix (Bug#4227).
85
bc5e75b6
SM
862009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
87
88 * keymap.c (Fwhere_is_internal): Use nconc2.
89
c31c985e
AM
902009-09-11 Alan Mackenzie <acm@muc.de>
91
92 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
93 batch mode.
94
78012bd2
AS
952009-09-11 Andreas Schwab <schwab@linux-m68k.org>
96
97 * xdisp.c (display_mode_element): Detect cycles.
98
9d889332
SM
992009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
100
101 * keymap.c (where_is_internal): Don't erroneously return nil right after
102 filling the cache.
103 (where_is_internal_1): Fix up typo.
104
7ab5d780
GM
1052009-09-11 Glenn Morris <rgm@gnu.org>
106
107 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
108 share a common doc-string.
109
5238a749
SM
1102009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
111
66d77eda
SM
112 * keymap.c (get_keymap): Return the actual keymap symbol rather than
113 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
114
5238a749
SM
115 * keymap.c (QCadvertised_binding): New constant.
116 (syms_of_keymap): Initialize it.
117 (Fwhere_is_internal): Try and use bindings from :advertised-binding
118 if applicable.
119
19f48442
SM
1202009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
121
50d4ba39
SM
122 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
123 (parse_menu_item): Streamline since bindings are recomputed all the
124 time anyway. Don't bother checking Vdefine_key_rebound_commands any
125 more and don't support lmenu's menu-alias any more either.
126
a88a5372
SM
127 * keymap.c (where_is_internal_data): Make noindirect a boolean.
128 (where_is_internal): Strip it down to only traverse the keymaps.
129 Move the cache handling from Fwhere_is_internal to here.
130 (Fwhere_is_internal): Move the handling of remapping and the choice of
131 the best binding from where_is_internal to here.
132 Unify the cached/noncached paths, so remapping is also handled
133 correctly when the cache is used, and so the cache can be used to
134 speed up remap-handling when applicable.
135 Give preference to non-remapped bindings.
136 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
137 non-remapped bindings.
138 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
139 command remapping.
140
19f48442
SM
141 * xdisp.c (display_mode_element): Move list length limit from 50 to
142 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
143
599498c3 1442009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
145
146 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
147
f9b7b5ac
SM
1482009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
149
150 * keymap.c (where_is_internal): Filter out shadowed remappings.
151 Assume that where_is_internal returns unshadowed bindings to simplify
152 the code and get rid of the gotos. Use ASIZE.
153
04f4b72d
JD
1542009-09-04 Jan Djärv <jan.h.d@swipnet.se>
155
4da146f2
JD
156 * xterm.c (x_focus_changed): If we get a focusout and pointer
157 is invisible, make it visible.
158
04f4b72d
JD
159 * xterm.h: Remove condition for declaration of
160 x_*_window_to_frame.
161
7cef7ce3
SM
1622009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
163
164 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
165 initial terminal as well.
166
a54fa5b7
JD
1672009-09-02 Jan Djärv <jan.h.d@swipnet.se>
168
169 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 170 x_menubar_window_to_frame.
a54fa5b7
JD
171
172 * xterm.c: Remove declarations also in xterm.h
173 (XTmouse_position): Do not return valid positions
174 for clicks in the menubar and the toolbar for Gtk+.
175
176 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
177 if the widget for the event has the same top level as a frame,
178 return the frame.
179 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
180 internal windows, bug #4122.
181 (x_non_menubar_window_to_frame): Remove.
182
5a021dd0
GM
1832009-09-02 Glenn Morris <rgm@gnu.org>
184
185 * buffer.c (default-major-mode): Move most of the doc from here...
186 (major-mode): ... to here.
187
548fe2f3
NR
1882009-08-30 Nick Roberts <nickrob@snap.net.nz>
189
190 * process.c (wait_reading_process_output): Keep the descriptor
191 when pty is used by a non-child process, e.g., in I/O buffer of
192 GDB this allows inferior to be restarted.
193
e0840eef
EZ
1942009-08-29 Eli Zaretskii <eliz@gnu.org>
195
196 * xdisp.c (redisplay_internal): Remove redundant test and collapse
197 both branches into one.
198
82e98df4
SM
1992009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
200
201 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
202 (main): Use enable-multibyte-characters rather than
203 default-enable-multibyte-characters. Output a warning message when
204 running a unibyte session.
205
890617cb
YM
2062009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
207
208 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
209 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
210 (copy_data_segment): Also copy __program_vars section.
211 (copy_dyld_info) [LC_DYLD_INFO]: New function.
212 (dump_it) [LC_DYLD_INFO]: Use it.
213
214 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
215
e7adeadc
EZ
2162009-08-28 Eli Zaretskii <eliz@gnu.org>
217
218 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
219 $(SRC)/buildobj.h.
220 (buildobj.h): Renamed from $(SRC)/buildobj.h.
221 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
222 $(SRC)/buildobj.h.
223 (clean): Add buildobj.h.
224
3ed8bbdc
TZ
2252009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
226
227 * print.c (print_object): Set escapeflag to 1 when printing
228 hashtable keys and values.
229
155a6764
SM
2302009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
231
232 * lread.c (read_integer): Use doubles (and potentially return a float
233 number) as we do in string-to-number.
234 (read1): Use strtol to read integers, signal errors on strtol's
235 overflow and use floats if strtol's output is too large for
236 Elisp integers.
237
877610de
EZ
2382009-08-27 Eli Zaretskii <eliz@gnu.org>
239
240 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
241 (make-buildobj-SH): Fix last change.
242 (SRC): Move to before where it's first used.
243
ef73e7be
KH
2442009-08-27 Kenichi Handa <handa@m17n.org>
245
550c8289
KH
246 * process.c (send_process): Use encode_coding_object instead of
247 encode_coding_string to perform eol-conversion even if the string
248 is unibyte.
249
60afa08d
KH
250 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
251 character.
252
ef73e7be 253 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 254 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 255
7b3a82d7
DN
2562009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
257
5654bf63
DN
258 * callproc.c (Fcall_process): Remove always true #if.
259
7b3a82d7
DN
260 * lisp.h: Replace #if 0 code for checking with text pointing to
261 the --enable-checking configure flag.
262
263 * emacs.c (main): Mention the --enable-profiling configure flag
264 instead of using CFLAGS.
265
878bde49
KR
2662009-08-26 Ken Raeburn <raeburn@raeburn.org>
267
268 * Makefile.in (buildobj.h): New target.
269 (doc.o): Depend on it.
270 (temacs${EXEEXT}): Don't generate buildobj.lst.
271 (mostlyclean): Delete buildobj.h, not buildobj.lst.
272 * makefile.w32-in ($(SRC)/buildobj.h): New target.
273 ($(BLD)/doc.$(O)): Depend on it.
274 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
275 provided by Eli Zaretskii.)
276 ($(TEMACS)): Don't generate buildobj.lst.
277 * doc.c: Include buildobj.h.
278 (buildobj): New static variable.
279 (Fsnarf_documentation): Use it, instead of opening and reading
280 buildobj.lst.
281
1574224c
MA
2822009-08-25 Michael Albinus <michael.albinus@gmx.de>
283
284 * dbusbind.c (Fdbus_call_method)
285 (Fdbus_call_method_asynchronously): Use English numeric format for
286 timeout values in doc string.
287
d9da2f45
KH
2882009-08-25 Kenichi Handa <handa@m17n.org>
289
ef73e7be
KH
290 * alloc.c (mark_char_table): New function.
291 (mark_object): Use mark_char_table for a char-table.
292
d9da2f45
KH
293 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
294 (CHAR_TABLE_REF): Use it.
295
c8edcc01
KR
2962009-08-23 Ken Raeburn <raeburn@raeburn.org>
297
298 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
299 before invoking the newly build emacs to check for load-path
300 shadowing.
301
7763401b
GM
3022009-08-22 Glenn Morris <rgm@gnu.org>
303
304 * Makefile.in (bootstrap_exe): New variable.
305 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
306 Use ${bootstrap_exe}.
307
729eadda
EZ
3082009-08-22 Eli Zaretskii <eliz@gnu.org>
309
310 * coding.h (encode_coding_string): Don't encode unibyte strings.
311 (Bug#4047)
312
eb4c6ace
MA
3132009-08-22 Michael Albinus <michael.albinus@gmx.de>
314
315 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
316
317 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
318 intended as hotfix only.
319 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
320
36e34d1b
AR
3212009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
322
323 * nsterm.m (ns_get_color): Update documentation properly for last
324 change, and clean up loose ends in the code left by it. Fix
325 longstanding bug with 16-bit hex parsing, and add support for
326 yet another X11 format (rgb:r/g/b) for compatibility.
327 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
328 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
329
f983eb8a
SM
3302009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
331
332 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
333
3f56d3c6
MA
3342009-08-20 Michael Albinus <michael.albinus@gmx.de>
335
336 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
337 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
338 (xd_initialize, xd_pending_messages): Check, whether
339 $DBUS_SESSION_BUS_ADDRESS is set.
340
fb641d68
YM
3412009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
342
343 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
344
345 * nsterm.m (ns_get_color): Remove incompatible color formats again.
346
cf59a374
GM
3472009-08-20 Glenn Morris <rgm@gnu.org>
348
349 * emacs.c (system-type): Doc fix.
350
1373f3be
SM
3512009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
352
353 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
354 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
355
058ed861
MA
3562009-08-18 Michael Albinus <michael.albinus@gmx.de>
357
1373f3be
SM
358 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
359 New functions.
058ed861
MA
360 (xd_initialize): Revert change from 2009-08-16.
361
563a866e 3622009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
363
364 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 365 font-group vector, return nil.
5fc05db0 366
e42bdf01
CY
3672009-08-17 Chong Yidong <cyd@stupidchicken.com>
368
369 * process.c (status_notify): Don't perform redisplay.
370 (Fdelete_process, list_processes_1, process_send_signal):
371 Expliticly perform redisplay.
372 (wait_reading_process_output): Always check process status, but
373 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
374
4230ab74
KR
3752009-08-17 Ken Raeburn <raeburn@raeburn.org>
376
1373f3be 377 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
378 (XFLOAT_INIT): New macro for storing a float value.
379 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
380 * fns.c (sxhash): Copy out the value of a float in order to
381 examine its bytes.
382 * dbusbind.c (xd_append_arg): Likewise.
383
4230ab74
KR
384 * emacs.c (main): Don't call syms_of_data twice.
385
a0645cdd
MA
3862009-08-16 Michael Albinus <michael.albinus@gmx.de>
387
388 * dbusbind.c (xd_initialize): Add connection file descriptor to
389 input_wait_mask, in order to let select() detect, whether a new
390 message has been arrived.
ca4f31ea 391 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 392
485db0ba
MA
3932009-08-15 Michael Albinus <michael.albinus@gmx.de>
394
1373f3be
SM
395 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
396 New functions.
485db0ba
MA
397
398 * lisp.h (xd_pending_messages): Declare.
399
400 * keyboard.c (readable_events): Call xd_pending_messages.
401
b5b98ff4
CY
4022009-08-15 Chong Yidong <cyd@stupidchicken.com>
403
1373f3be 404 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 405
f8354c6e
CY
406 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
407
b5b98ff4
CY
408 * buffer.c (set_buffer_internal_1)
409 (swap_out_buffer_local_variables): Check for unbound local
410 variables (Bug#4138).
411
8b9fc636
EZ
4122009-08-14 Eli Zaretskii <eliz@gnu.org>
413
414 * process.c (create_pty): Fix last change.
415
ce959360
CY
4162009-08-13 Chong Yidong <cyd@stupidchicken.com>
417
418 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
419 (xbm_load_image): Caller changed.
64b807c9 420 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 421
c7baf7e9
NR
4222009-08-13 Nick Roberts <nickrob@snap.net.nz>
423
424 * process.c (create_pty): New function.
425 (Fstart_process): Use it to allow Emacs to just associate a pty
426 with the buffer. See associated change in gdb-mi.el.
427 (list_processes_1): Deal with no program name.
428 (start_process_unwind): Use pid == -2 to mean no process.
429
1ac9108a
SM
4302009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
431
432 * cmds.c (nonundocount): New global variable.
433 (keys_of_cmds): Initialize it.
434 (Fself_insert_command): Use it to combine upto 20 sequential chars
435 into a single undo entry, just like the Qself_insert_command code in
436 keyboard.c does.
437 Call frame_make_pointer_invisible, also like the Qself_insert_command
438 code in keyboard.c does.
439 * keyboard.c (command_loop_1): Use the new global nonundocount rather
440 than its own local replacement for it.
441
e267324c
KR
4422009-08-10 Ken Raeburn <raeburn@raeburn.org>
443
1ac9108a 444 * fns.c (concat): Don't re-set string length to its current value.
77437343 445
1ac9108a
SM
446 * coding.h (decode_coding_string, encode_coding_string):
447 Use SBYTES macro.
f0bed503 448
1ac9108a 449 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
450 (doprnt): Merge with doprnt1, discarding lispstrings code.
451 * lisp.h (doprnt_lisp): Don't declare.
452
416e006d
JL
4532009-08-07 Juri Linkov <juri@jurta.org>
454
455 * puresize.h (BASE_PURESIZE): Increase to 1270000.
456
6f7d5780
DN
4572009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
458
459 * print.c (syms_of_print): Undo previous change.
460
f19a0f5b
TZ
4612009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
462
463 * lread.c (read1, syms_of_lread): Read hashtables back from the
464 readable format.
465
466 * print.c (print_preprocess, print_object): Print hashtables fully
467 and readably.
468 (syms_of_print): Provide 'hashtable-print-readable.
469
b9173dc2
AR
4702009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
471
472 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
473 no family set.
474 (nsfont_open): Handle case when entity has no family.
475
1586503c
AR
4762009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
477
478 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
479 element, not a list, for match case.
480
087048cd
KH
4812009-07-28 Kenichi Handa <handa@m17n.org>
482
483 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
484 rigidly.
485
486 * xfont.c (xfont_list_pattern): Don't ignore the return value of
487 font_parse_xlfd. Check font properties more rigidly.
488
780c2506
DN
4892009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
490
31fd7c5c
JB
491 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
492 bsd-common.h.
780c2506 493
a8c0cc18
KH
4942009-07-27 Kenichi Handa <handa@m17n.org>
495
496 * xfaces.c (face_with_height): Call font_clear_prop.
497
4fbe2306
CY
4982009-07-26 Chong Yidong <cyd@stupidchicken.com>
499
111d9af3
CY
500 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
501
502 * xterm.c (x_term_init): Use Qx.
503
4fbe2306
CY
504 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
505
1ac9108a 506 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
507 (ns_get_color): Revert 2009-07-16 change.
508
beb0b7f9
EZ
5092009-07-25 Eli Zaretskii <eliz@gnu.org>
510
511 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 512 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 513
2baf5e76
KR
5142009-07-25 Ken Raeburn <raeburn@raeburn.org>
515
1ac9108a
SM
516 * coding.h (decode_coding_string, encode_coding_string):
517 Use SCHARS macro.
8890e5f5 518
2baf5e76 519 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 520 (load_depth): Delete.
2baf5e76
KR
521 (Qload_in_progress): New variable.
522 (load_unwind): Don't reference load_depth or load_in_progress.
523 (Fload): Likewise; specbind Qload_in_progress instead.
524 (init_lread): Don't initialize load_depth.
525 (syms_of_lread): Initialize and protect Qload_in_progress.
526
1395c6f5
AR
5272009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
528
529 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
530
4e2f36cf
AR
5312009-07-23 Yavor Doganov <yavor@gnu.org>
532
533 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
534
5dd9a6f7
AR
5352009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
536
537 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
538 Bugs 3792, 3720, 2402.
539 (ns_lookup_indexed_color): Check for bad index.
540 (ns_index_color): Init unused slot to 0.
541 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
542 Bug 3714, possibly 3082.
5dd9a6f7 543
c902b920
JR
5442009-07-22 Jason Rumney <jasonr@gnu.org>
545
1ac9108a
SM
546 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
547 Position IME window at cursor (Bug#2570).
c902b920
JR
548 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
549 (globals_of_w32fns): Dynamically load functions required above.
550
551 * w32term.c (w32_draw_window_cursor): Send message to reposition
552 any IME window.
553
090101cf
CY
5542009-07-21 Chong Yidong <cyd@stupidchicken.com>
555
556 * fileio.c: Revert 2009-07-16 changes.
557 (Vauto_save_include_big_deletions): New variable.
558 (Fdo_auto_save): Disable auto-save only if
559 auto-save-include-big-deletions is nil.
560
e6583e3d
CY
5612009-07-21 Chong Yidong <cyd@stupidchicken.com>
562
563 * xdisp.c (move_it_to): For continued lines ending in a tab, take
564 the overflowed pixels into account (Bug#3879).
565
ece435a5
KR
5662009-07-21 Ken Raeburn <raeburn@raeburn.org>
567
568 * lread.c (load_depth): New variable.
569 (Fload, load_unwind, init_lread): Set it to the load recursion
570 depth; set load_in_progress as a simple boolean based on the
571 current load_depth. (Bug#3892)
572
40b2d973
AR
5732009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
574
575 * nsfont.m (ns_has_attribute): Remove.
576 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
577
10be7e0d
JL
5782009-07-18 Juri Linkov <juri@jurta.org>
579
580 * process.c (Fset_process_query_on_exit_flag): Mention killing
581 a buffer in docstring.
582
fa055055
KH
5832009-07-17 Kenichi Handa <handa@m17n.org>
584
585 * casetab.c (shuffle): Fix the logic of setting up the cycle.
586
042f7b69
YM
5872009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
588
589 * nsfns.m (Fns_set_alpha): Remove function.
590 (syms_of_nsfns): Don't defsubr it.
591
592 * nsterm.m (ns_get_color): Remove incompatible color formats.
593 (ns_color_to_lisp): Generate #rrggbb color format string.
594
4be941e3
RS
5952009-07-16 Richard Stallman <rms@gnu.org>
596
597 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
598 (Fset_buffer_auto_saved): Handle save_length = -2.
599
4e6b227d
CY
6002009-07-16 Chong Yidong <cyd@stupidchicken.com>
601
602 * xterm.c (Qx_gtk_map_stock): New var.
603
604 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
605 of calling intern each time.
606
a1856973
YM
6072009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
608
609 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
610 does tiling.
611
612 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
613
497e54d8
KH
6142009-07-14 Kenichi Handa <handa@m17n.org>
615
72d36834
KH
616 * font.c (font_vconcat_entity_vectors): New function.
617 (struct font_sort_data): New member font_driver_preference.
618 (font_compare): Check font_driver_preference.
619 (font_sort_entities): The format of the first argument changed.
620 (font_delete_unmatched): Likewise.
621 (font_list_entities): The return type changed.
622 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
623 (font_find_for_lface): Adjuste for the above changes.
624 Don't suppress the checking of C even if the repertory supports it.
625 (Flist_fonts): Adjust for the above changes.
72d36834 626
1ac9108a
SM
627 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
628 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
629 Reject a font who has adstyle property that is different from a
630 langname derived from registry property.
1ac9108a 631 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 632
b6046155
EZ
6332009-07-13 Eli Zaretskii <eliz@gnu.org>
634
635 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
636 local copy of dirfilename.
637
fb6b6049
KH
6382009-07-13 Kenichi Handa <handa@m17n.org>
639
e2402a5e
KH
640 * chartab.c (sub_char_table_ref_and_range): Fix the range check
641 against max_char.
642
fb6b6049
KH
643 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
644 calling XSYMBOL (sym).
645
65156807
EZ
6462009-07-11 Eli Zaretskii <eliz@gnu.org>
647
1ac9108a
SM
648 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
649 New function.
650 (directory_files_internal) [WINDOWSNT]:
651 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
652 the filesystem of the directory is fast or slow.
653
654 * w32.c (logon_network_drive): Don't assume PATH is an absolute
655 file name.
656 (is_slow_fs): New function.
657 (stat): Use it to determine whether to issue more system calls to
658 get accurate file attributes, when w32-get-true-file-attributes is
659 `local'.
660
e0ab5fcf
JD
6612009-07-10 Jan Djärv <jan.h.d@swipnet.se>
662
663 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 664 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
665 parameter font-parameter as default to the font dialog.
666
784ceded
KH
6672009-07-10 Kenichi Handa <handa@m17n.org>
668
669 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
670
fb8edc0b
EZ
6712009-07-09 Eli Zaretskii <eliz@gnu.org>
672
1ac9108a 673 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 674
fb8edc0b
EZ
675 * w32.c (stat): Treat UNC file names as residing on remote
676 drives. (Bug#3542)
677
635c75b1
KH
6782009-07-09 Kenichi Handa <handa@m17n.org>
679
680 * fontset.c (fontset_find_font): Fix previous change.
681
c1d5ce94
MA
6822009-07-08 Michael Albinus <michael.albinus@gmx.de>
683
684 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
685 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
686 error flag.
687
edb61b39
KH
6882009-07-08 Kenichi Handa <handa@m17n.org>
689
374bf7e4
KH
690 * fontset.c (fontset_find_font): Fix the logic of handling
691 charset_matched.
692 (font_for_char): Delete unused var.
693 (generate_ascii_font_name): Delete it.
694
edb61b39
KH
695 * coding.h (JIS_TO_SJIS2): Fix the code range check.
696
697 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
698 (encode_coding_sjis): Fix the code range check.
699
0f3f018c
CY
7002009-07-07 Chong Yidong <cyd@stupidchicken.com>
701
702 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
703 (Fexpand_file_name): Copy string data properly (Bug#3772).
704
fcaf6f3a
JD
7052009-07-07 Jan Djärv <jan.h.d@swipnet.se>
706
707 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
708 first MapNotify.
709
6809ca75
KH
7102009-07-07 Kenichi Handa <handa@m17n.org>
711
712 * character.h (unibyte_has_multibyte_table): Delete extern.
713 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
714
715 * charset.c (Fset_charset_priority): Update charset_unibyte.
716 (syms_of_charset): Initialize charset_unibyte.
717
718 * character.c (unibyte_has_multibyte_table): Delete it.
719 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
720 charset_unibyte.
721 (multibyte_char_to_unibyte_safe): Likewise.
722 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
723
1ac9108a 724 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
725 (x_produce_glyphs): Likewise.
726
727 * .gdbinit (xcharset): Fix the treating $arg0.
728
ad9e2d54
EZ
7292009-07-04 Eli Zaretskii <eliz@gnu.org>
730
731 Emulation of `getloadavg' on MS-Windows.
732 * w32.c: Include float.h
733 (g_b_init_get_native_system_info, g_b_init_get_system_times)
734 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
735 (get_native_system_info, get_system_times): New functions.
736 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
737 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
738 (globals_of_w32): Initialize g_b_init_get_native_system_info,
739 g_b_init_get_system_times, and num_of_processors.
740
0a3472c7
JR
7412009-07-03 Jason Rumney <jasonr@gnu.org>
742
743 * w32term.c (w32_initialize): Use standard types.
744
80904120
EZ
7452009-07-03 Eli Zaretskii <eliz@gnu.org>
746
747 * dired.c (Ffile_attributes): Decode user and group names by the
748 locale's encoding. (Bug#3443)
749
6978862d
DN
7502009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
751
f8d23104
DN
752 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
753 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
754
755 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
756
757 * term.c (init_tty): Remove spurious #ifdef.
758
6978862d
DN
759 * m/mips.h: Mention this file is also used for netbsd.
760 * m/pmax.h: Remove file.
761
e044e4fc
JD
7622009-07-03 Jan Djärv <jan.h.d@swipnet.se>
763
764 * xterm.h (struct x_display_info): Add invisible_cursor.
765 (struct x_output): Add current_cursor.
766
767 * xterm.c (XTtoggle_invisible_pointer): New function.
768 (x_define_frame_cursor): Don't define cursor if invisible or the
769 same as before. Set current_cursor.
770 (x_create_terminal): Set toggle_invisible_pointer_hook.
771
772 * xfns.c (make_invisible_cursor): New function.
773 (x_set_mouse_color): Call make_invisible_cursor.
774 Set current_cursor.
775 (x_window): Set current_cursor.
776
777 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
778
779 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
780 inserting a character.
781 (read_avail_input): Call frame_make_pointer_visible.
782
783 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
784 (frame_make_pointer_invisible, frame_make_pointer_visible):
785 New functions.
e044e4fc
JD
786 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
787
788 * frame.h: Declare frame_make_pointer_invisible and
789 frame_make_pointer_visible.
790 (struct frame): Add pointer_invisible.
791
574c8efa
JD
7922009-07-02 Jan Djärv <jan.h.d@swipnet.se>
793
7b507248
JD
794 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
795 frame isn't visible.
796 (xg_frame_resized): If width/height is -1, get size of window
797 from X server.
798
799 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
800 for MapNotify.
801
835bdaa7 802 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 803 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 804 (flush_and_sync): Reintroduce.
574c8efa 805
3f1c6666 8062009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 807
31fd7c5c 808 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
809
810 * xterm.c (x_handle_net_wm_state): Also look for sticky.
811 (x_term_init): Initialize Xatom_net_wm_state_sticky.
812
813 * frame.h: Declare Qsticky.
814
cad9ef74
JD
815 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
816
817 * nsfns.m (ns_frame_parm_handlers): Ditto.
818
819 * frame.c: Declare Qsticky.
820 (frame_parms): Add sticky.
821
822 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
823
824 * xterm.h: Declare x_set_sticky.
825
826 * xterm.c (x_set_sticky): New function.
827
69b16610
JD
828 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
829 (xg_tool_bar_menu_proxy): Attach enter/leave events to
830 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
831
832 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
833
834 * frame.c: Qmaximized is new.
835 (x_set_frame_parameters): Do not handle fullscreen specially.
836 Only set width and height if explicitly set.
837 (x_set_fullscreen): Handle Qmaximized.
838 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
839 (syms_of_frame): Initialize Qmaximized.
840
1ac9108a
SM
841 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
842 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
843
844 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
845 for Expose event. Add call to x_check_fullscreen for MapNotify event.
846 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
847 set gravity to NorthWestGravity when USE_GTK.
848 (set_wm_state): New function.
31fd7c5c 849 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
850 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
851 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 852 or the case when no window manager is running. That means remove calls
3f1c6666
JD
853 to x_real_positions and x_fullscreen_adjust.
854
855 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
856 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
857 flush_and_sync.
858 (xg_height_changed): New function.
859 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
860 and gtk_window_set_policy. Set frame gravity after parsing the
861 geometry string.
3f1c6666
JD
862 (xg_update_frame_menubar, free_frame_menubar)
863 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
864 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
865 Remove calls to xg_frame_set_char_size.
866
fd503d99
KH
8672009-07-01 Kenichi Handa <handa@m17n.org>
868
869 * keyboard.c (decode_keyboard_code): New function.
870 (tty_read_avail_input): Decode the input bytes if necessary.
871
1ac9108a
SM
872 * coding.c (setup_coding_system):
873 Initialize coding->carryover_bytes to 0.
fd503d99
KH
874 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
875 use Qno_conversion.
876
24ed93fb
YM
8772009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
878
879 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
880
99061dfc
CY
8812009-06-30 Chong Yidong <cyd@stupidchicken.com>
882
1ac9108a 883 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 884
ff90fbde
JR
8852009-06-30 Jason Rumney <jasonr@gnu.org>
886
887 * w32term.c (w32_initialize): Use GetModuleHandle for library that
888 is already loaded.
889 Set user model ID if supported (bug#1849).
890
5f445726
JM
8912009-06-29 Jim Meyering <meyering@redhat.com>
892
893 Remove useless if-before-xfree test.
894 * nsfont.m (nsfont_close): Remove useless test.
895 * term.c (delete_tty): Likewise.
896 * w32.c (system_process_attributes): Likewise.
897 * w32font.c (w32font_close): Likewise.
898 * xfaces.c (x_free_gc): Likewise.
899 * xselect.c (buffer): Likewise.
900
b9607587
AS
9012009-06-28 Andreas Schwab <schwab@linux-m68k.org>
902
903 * process.c (send_process): Keep decoded string in a local
904 variable and protect it from GC. (Bug#3521)
905
89ba96f4
EZ
9062009-06-28 Eli Zaretskii <eliz@gnu.org>
907
908 * term.c (create_tty_output) [MSDOS]: #ifdef away.
909 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
910
098a1589
CY
9112009-06-28 Chong Yidong <cyd@stupidchicken.com>
912
485422be
CY
913 * xdisp.c (start_display, handle_face_prop)
914 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
915 (redisplay_window, try_window_id, produce_image_glyph):
916 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 917
098a1589
CY
918 * xterm.c (x_update_window_begin, x_new_focus_frame)
919 (x_scroll_bar_handle_click, handle_one_xevent)
920 (handle_one_xevent, XTread_socket, x_focus_on_frame)
921 (x_make_frame_visible, x_make_frame_invisible)
922 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
923 code chunks that are now obsolete.
924
78c38319
MA
9252009-06-28 Michael Albinus <michael.albinus@gmx.de>
926
927 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
928 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
929 for hours, when optimzation is enabled.
930 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
931 (xd_read_message): Make them static.
932
4189ed40
CY
9332009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
934
935 * term.c (turn_on_face): Allow simultaneously bold and dim
936 terminal faces (Bug#3530).
937
cd9b5e16
CY
9382009-06-27 Chong Yidong <cyd@stupidchicken.com>
939
4e23bedb
CY
940 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
941
cd9b5e16
CY
942 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
943 truncation glyphs (Bug#3686).
944
07cc3c35
GM
9452009-06-27 Glenn Morris <rgm@gnu.org>
946
947 * m/pmax.h: Restore file, with only netbsd portions.
948
31fd7c5c 9492009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 950
cd9b5e16 951 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 952
42d4a64f
KH
9532009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
954
955 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
956 the arg FORCE_SYMBOL.
957
930fe55b 9582009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
959
960 * fontset.c (fontset_find_font): When a usable rfont_def is found
961 in a fallback font-group, make it the first element of the group.
962
57ebc3fd
CY
9632009-06-24 Chong Yidong <cyd@stupidchicken.com>
964
965 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
966
f084f942
KH
9672009-06-24 Kenichi Handa <handa@m17n.org>
968
969 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
970 set for C.
971 (fontset_font): Record the availability of a font for C both in
972 the realized fontsets of the current one and the default one.
973
2f686c87
DN
9742009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
975
976 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
977 conditional, it is always defined on AIX.
978
666e158e
MB
9792009-06-23 Miles Bader <miles@gnu.org>
980
981 * window.c (Vrecenter_redisplay): New variable.
982 (syms_of_window): Initialize it.
983 (Qtty): New extern declaration.
984 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
985
c6da7cd2
JM
9862009-06-23 Jim Meyering <meyering@redhat.com>
987
1ac9108a
SM
988 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
989 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 990 pointer dereferences are guaranteed to be valid.
c6da7cd2 991
678dca3d
KH
9922009-06-23 Kenichi Handa <handa@m17n.org>
993
74d75424
KH
994 * emacs.c (main): Call init_font ().
995
996 * font.h (Vfont_log): Extern it.
997 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
998
999 * font.c (font_sort_entities, font_list_entities)
1000 (font_matching_entity, font_open_entity)
1001 (font_close_object): Change font_add_log to FONT_ADD_LOG.
1002 (Vfont_log): Delete static.
1003 (font_log_env_checked): Delete this variable.
1004 (font_add_log): Don't check font_log_env_checked.
1005 (font_deferred_log): Check Vfont_log.
1006 (init_font): New function.
1007
678dca3d
KH
1008 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
1009
1010 * w32font.c: Change font_add_log to FONT_ADD_LOG.
1011
1012 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
1013
1014 * xfont.c: Change font_add_log to FONT_ADD_LOG.
1015
1016 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
1017 (face_for_char): Don't call font_deferred_log here.
1018 (font_for_char): Likewise.
1019
8a668709
CY
10202009-06-22 Chong Yidong <cyd@stupidchicken.com>
1021
9a01ee33
CY
1022 * w32term.c (x_draw_glyph_string): Use the glyph string's width
1023 rather than its background_width for drawing the overline and
1024 underline (Bug#489).
1025
1026 * xterm.c (x_draw_glyph_string): Use the glyph string's width
1027 rather than its background_width for drawing the overline and
1028 underline (Bug#489).
ec7c9926
CY
1029 (xg_default_icon_file): New variable.
1030 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
1031 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 1032
8a668709
CY
1033 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
1034 (load_overlay_strings): Remove externs.
1035 (fast_find_position): Function deleted.
1036 (mouse_face_from_buffer_pos): New function, based on
1037 fast_find_position. Correctly handle before-strings,
1038 display-strings, and after-strings (Bug#1220).
1039 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
1040
4d4c02d8
CY
10412009-06-21 Chong Yidong <cyd@stupidchicken.com>
1042
1ac9108a 1043 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
1044 (move_it_in_display_line_to, move_it_in_display_line_to)
1045 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
1046
70243478
CY
10472009-06-21 Chong Yidong <cyd@stupidchicken.com>
1048
1049 * Branch for 23.1.
1050
13087e59
JR
10512009-06-21 Jason Rumney <jasonr@gnu.org>
1052
1053 * w32term.c (keyboard_codepage): New static variable.
1054 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
1055 (w32_read_socket) [WM_CHAR]: Use it to decode character
1056 input (bug#3237).
1057 (w32_initialize): Initialize it.
1058 (codepage_for_locale): New function.
1059
4735b74e
KR
10602009-06-20 Ken Raeburn <raeburn@raeburn.org>
1061
1062 * process.c (status_message): Pass Faset index argument as a lisp
1063 object, so as to work with USE_LISP_UNION_TYPE.
1064
0e727afa
YM
10652009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1066
1067 * coding.c (Ffind_coding_systems_region_internal):
1068 Cache checked characters.
1069
cf299835
KH
10702009-06-18 Kenichi Handa <handa@m17n.org>
1071
1ac9108a 1072 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 1073
90f20d94
AS
10742009-06-18 Andreas Schwab <aschwab@redhat.com>
1075
1076 * xdisp.c (redisplay_internal): Check that the frame is still
1077 live after redisplay of its windows.
1078 (redisplay_windows): Check that the window is still live.
1079
7f1faf1c
KH
10802009-06-17 Andreas Schwab <schwab@linux-m68k.org>
1081
1082 * coding.c (detect_coding_utf_16): Fix previous change.
1083
cc13543e
KH
10842009-06-16 Kenichi Handa <handa@m17n.org>
1085
1086 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
1087 UTF-16 by checking the dispersion of Eth and Oth bytes.
1088
977b85f4
AS
10892009-06-15 Andreas Schwab <schwab@linux-m68k.org>
1090
1091 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
1092
66bd43d1
KH
10932009-06-15 Kenichi Handa <handa@m17n.org>
1094
1095 * process.c (status_message): Fix previous change. Be sure to
1096 decode a localized string.
1097
cb5ca9c5
YM
10982009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1099
1100 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
1101 add comment explaining why.
1102
ec7709ba 11032009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 1104
ec7709ba 1105 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 1106
4b7f335c
AR
11072009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
1108
1109 * nsfont.m (ns_attribute_value): Remove.
1110 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
1111 (ns_has_attribute): Shrink the normal range.
1112 (ns_findfonts): Don't worry about requested spec in determining
1113 need for synthItal.
e41820ee 1114 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 1115
73b26103
SZ
11162009-06-14 Seiji Zenitani <zenitani@mac.com>
1117
1118 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
1119
5753e4da
KH
11202009-06-11 Kenichi Handa <handa@m17n.org>
1121
1122 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
1123 overhang for the static composition case.
1124
3561b671
KH
11252009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1126
5753e4da
KH
1127 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
1128 overhang for the automatic composition case.
1129
3561b671
KH
1130 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
1131 composition case.
1132
852bbd41
CY
11332009-06-10 Chong Yidong <cyd@stupidchicken.com>
1134
1135 * xdisp.c (get_next_display_element): When handling wrap-prefix
1136 and line-prefix, treat \n as a control character (bug#3502).
1137
9903d1e6
KH
11382009-06-10 Kenichi Handa <handa@m17n.org>
1139
1140 * font.c (font_parse_family_registry): Fix for one-char foundry.
1141 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
1142
0bcbaaaa
CY
11432009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
1144
1145 * process.c (status_message): Fix handling of multibyte signal
1146 string (Bug#3499).
1147
40aa3f13
JM
11482009-06-09 Jim Meyering <meyering@redhat.com>
1149
1f80c7e2
CY
1150 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
1151 color name is missing.
40aa3f13 1152
72d51285
KH
11532009-06-09 Kenichi Handa <handa@m17n.org>
1154
1155 * charset.c (Fmap_charset_chars): In docstring, state clearly that
1156 FROM-CODE and TO-CODE are codepoints of CHARSET.
1157
c1d04d84
AR
11582009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
1159
1160 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
1161
11622009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
1163
1164 Changes to support :script/:lang/:otf in NS font driver.
1165 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
1166 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
1167 indicate not part of font driver interface, and change callers.
1168 (ns_get_family): Remove pointless null check.
1169 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
1170 ns_spec_to_descriptor, ns_descriptor_to_entity.
1171 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
1172 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
1173 (ns_spec_to_descriptor, ns_descriptor_to_entity)
1174 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
1175 (ns_get_req_script, ns_accumulate_script_ranges)
1176 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
1177 New functions.
1178 (nsfont_list, nsfont_match): Use ns_findfonts.
1179 (nsfont_open): Use font descriptor instead of traits.
1180 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
1181 (dump_glyphstring): Rename to ns_dump_glyphstring.
1182
c7eb9816
AR
1183 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
1184
c1d04d84
AR
1185 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
1186
1187 * fontset.c (fontset_from_font): Remove NS-specific code.
1188
ec7709ba 11892009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
1190
1191 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
1192 nonactive windows.
1193
31fd7c5c 11942009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 1195
1ac9108a 1196 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 1197
68852c13 11982009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
1199
1200 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
1201
6756cd1d
CY
12022009-06-07 Chong Yidong <cyd@stupidchicken.com>
1203
1204 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
1205 account for the overflowing of newlines into the last glyph on the
1206 display line (Bug#3482).
1207
28bf482a
DR
12082009-06-05 David Reitter <david.reitter@gmail.com>
1209
ec7709ba
JB
1210 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
1211 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
1212 Fns_selection_exists_p, Fns_selection_owner_p.
1213
fdb55376
JR
12142009-06-03 Jason Rumney <jasonr@gnu.org>
1215
1216 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
1217 available. (Bug#3379)
1218
05129fbe
KH
12192009-05-29 Kenichi Handa <handa@m17n.org>
1220
1ac9108a
SM
1221 * coding.c (get_translation_table):
1222 Check Venable_character_translation.
05129fbe 1223
ec7709ba 12242009-05-26 David Reitter <david.reitter@gmail.com>
15891144 1225
ec7709ba
JB
1226 * nsterm.m (ns_raise_frame): Only raise frame if visible.
1227 (x_make_frame_visible): Move frame to front rather than calling
15891144 1228 ns_raise_frame().
ec7709ba 1229 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 1230 isn't key window.
ec7709ba 1231 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
1232 drawRect may be called by NSView even if the frame is hidden.
1233
ec7709ba
JB
1234 * nsfns.m (Fx_create_frame): Follow other ports in
1235 determining visibility; default to t. Ensure async_visible is set.
15891144 1236
21f73755
EZ
12372009-05-23 Eli Zaretskii <eliz@gnu.org>
1238
1239 * dired.c (Ffile_attributes): Doc fix.
1240
34001e41
CY
12412009-05-22 Chong Yidong <cyd@stupidchicken.com>
1242
1243 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
1244
46306a17
SM
12452009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
1246
1247 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
1248 and xfont_scratch_props.
1249 (syms_of_xfont): Do it here instead.
1250 (xfont_find_ccl_program): Delete, unused.
1251 (xfont_open): Delete unused var `i'.
1252
ef6e0694
KH
12532009-05-21 Kenichi Handa <handa@m17n.org>
1254
1255 * fontset.c (Qlatin): Don't make it static.
1256
46306a17
SM
1257 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
1258 New functions.
ef6e0694
KH
1259 (xfont_scripts_cache, xfont_scratch_props): New variables.
1260 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
1261 (xfont_list_pattern): Argument changed. Callers changed.
1262 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
1263 (xfont_list): Don't reject a font spec with :script property.
1264 (xfont_has_char): Fix setting of encoding.
1265 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
1266 xfont_scratch_props.
1267
12682009-05-19 Kenichi Handa <handa@m17n.org>
1269
46306a17 1270 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
1271 Callers changed.
1272
12732009-05-18 Kenichi Handa <handa@m17n.org>
1274
1275 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
1276
ac71ced7
SM
12772009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
1278
1279 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
1280 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
1281
1c6d1051
YM
12822009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1283
1284 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
1285 (x_delete_terminal): Dissociate resource database from display and
1286 then call XrmDestroyDatabase before closing display.
1287
9b9b779c
AR
12882009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
1289
1290 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
1291 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
1292 whether selected frame is viable before raising it (based on patch
1293 by David Reitter), and improve commentary.
1294 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 1295
cccd42d5
KH
12962009-05-15 Kenichi Handa <handa@m17n.org>
1297
1298 * font.c (Ffont_spec): Check arguments.
1299
337fbd17
CY
13002009-05-14 Chong Yidong <cyd@stupidchicken.com>
1301
1302 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
1303 weight when testing attributes (Bug#3282).
1304
47a6002f
JD
13052009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1306
1307 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
1308 what we expect to get in the next ConfigureNotify event.
1309
9cb363db
YM
1310 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
1311 before Xft one (Bug#1696).
1312
b9126609
CY
13132009-05-07 David Reitter <david.reitter@gmail.com>
1314
1315 * nsfns.m (Fx_display_planes): Compute bitplanes using
1316 NSBitsPerPixelFromDepth (Bug#3207).
1317
27a69fd9
CY
13182009-05-10 Chong Yidong <cyd@stupidchicken.com>
1319
1320 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
1321
00f37552
TTN
13222009-05-10 Ulrich Mueller <ulm@gentoo.org>
1323
1324 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
1325
2d82a920
DR
13262009-05-07 David Reitter <david.reitter@gmail.com>
1327
ec7709ba
JB
1328 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
1329 Respect mouse face background.
2d82a920 1330
46b0d52d
DR
13312009-05-07 David Reitter <david.reitter@gmail.com>
1332
ec7709ba
JB
1333 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
1334 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
1335 in ns_update_begin and ns_update_end.
1336
ce1b23bb
SM
13372009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
1338
5996e1b7
SM
1339 * nsfns.m (ns_get_screen): Rewrite.
1340 Don't presume selected-frame is of type `ns'.
1341
ba98e3a0
SM
1342 * font.c (font_update_drivers): Sanity fallback to avoid disabling
1343 all drivers.
1344
ce1b23bb
SM
1345 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
1346
bcda200f
YM
13472009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1348
1349 * keyboard.h (add_user_signal): Fix typo in extern.
1350
1351 * lisp.h (add_user_signal): Remove extern.
1352
1353 * unexelf.c (unexec): Consider a section to precede the .bss section
1354 if its addresses overlap that of .bss.
1355 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
1356 instead of dumping process.
1357
864660a2
SM
13582009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
1359
1360 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
1361
50da4e56
SM
13622009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
1363
1364 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
1365
51520a1a
DN
13662009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
1367
1368 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
1369 any statements.
1370
409ea3a1
AS
13712009-05-02 Andreas Schwab <schwab@linux-m68k.org>
1372
59c4c60f
AS
1373 * process.c (read_process_output): Make sure the current buffer is
1374 always restored.
1375
409ea3a1
AS
1376 * coding.c (record_conversion_result): Don't modify
1377 Vlast_code_conversion_error for successful result.
1378 (alloc_destination): Don't clobber conversion result. (Bug#1650)
1379
56f00ed2
KH
13802009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
1381
1382 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 1383 (load_charset_map): Remove unnecessary code.
56f00ed2 1384
4491c9d2
DR
13852009-04-30 David Reitter <david.reitter@gmail.com>
1386
35f5b128 1387 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
1388 through f24.
1389
6970f632
CY
13902009-04-30 Chong Yidong <cyd@stupidchicken.com>
1391
1392 * xfaces.c (face_at_buffer_position): New arg base_face_id.
1393
1394 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
1395 face_at_buffer_position.
1396 (face_before_or_after_it_pos, get_next_display_element)
1397 (note_mouse_highlight): Update face_at_buffer_position call.
1398
1399 * term.c (term_mouse_highlight):
1400 * msdos.c (IT_note_mouse_highlight):
1401 * fontset.c (Finternal_char_font):
35f5b128 1402 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
1403
1404 * dispextern.h (face_at_buffer_position): Update prototype.
1405
0c616f63
KH
14062009-04-30 Kenichi Handa <handa@m17n.org>
1407
35f5b128 1408 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 1409
ad3aaf33
AS
14102009-04-29 Andreas Schwab <schwab@linux-m68k.org>
1411
1412 * callproc.c (Fcall_process): Fix GC protection. Make sure
1413 current buffer is always restored.
1414
c3c963a0
YM
14152009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1416
1417 * atimer.c (init_atimer): Also clear stopped_atimers.
1418
1419 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
1420
7e3386cb
YM
1421 * process.c (create_process): Clean up merger residues of
1422 2008-07-17 change.
1423
91f68422
CY
14242009-04-29 Ulrich Mueller <ulm@gentoo.org>
1425
1426 * lread.c (Vread_circle): New variable.
1427 (read1): Disable recursive read if Vread_circle is nil.
1428
24b34550
KH
14292009-04-29 Kenichi Handa <handa@m17n.org>
1430
1431 * fontset.h (set_default_ascii_font): Delete extern.
1432
1433 * fontset.c (set_default_ascii_font): Delete this unused function.
1434
1435 * frame.c (x_set_font): When ARG is a font-object, check if the
1436 font-object matches with the ASCII font-spec of the frame's
9c358bda 1437 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 1438
77bf07e1
AS
14392009-04-28 Andreas Schwab <schwab@linux-m68k.org>
1440
1441 * fns.c (Flocale_info): Protect vector from GC during decoding.
1442
1443 * process.c (Fstart_process): Protect argv strings from GC during
1444 encoding.
1445
2c55aacf
AS
14462009-04-27 Andreas Schwab <schwab@linux-m68k.org>
1447
1448 * sysdep.c: Include <ctype.h>.
1449
b892d3c9
DR
14502009-04-27 David Reitter <david.reitter@gmail.com>
1451
35f5b128 1452 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
1453 Remove commented-out code.
1454
9d0644c4
JB
14552009-04-26 Johan Bockgård <bojohan@gnu.org>
1456
1457 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
1458
b7053016
JR
14592009-04-25 Jason Rumney <jasonr@gnu.org>
1460
1461 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
1462
4e8231f3
YM
14632009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1464
1465 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
1466 Swap bytes in short integer if fringe bitmap width > 8.
1467
493dcf2c
KH
14682009-04-23 Kenichi Handa <handa@m17n.org>
1469
1470 * xfaces.c (Fx_list_fonts): If a font size is specified in
1471 PATTERN, set it in returned scalable fonts.
1472
401e9e57
CY
14732009-04-22 Chong Yidong <cyd@stupidchicken.com>
1474
708e05dc
CY
1475 * keyboard.c (Fset_input_meta_mode): Doc fix.
1476
1477 * dispnew.c (Fsend_string_to_terminal): Doc fix.
1478
1ac9108a 1479 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
1480
1481 * coding.c (Fterminal_coding_system): Doc fix.
1482
1483 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
1484 (Fx_display_pixel_height, Fx_display_planes)
1485 (Fx_display_color_cells, Fx_server_max_request_size)
1486 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
1487 (Fx_display_mm_height, Fx_display_mm_width)
1488 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
1489 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
1490 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
1491 (check_x_display_info): Handle terminal objects instead of
1492 terminal ids.
1493
401e9e57
CY
1494 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
1495 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
1496 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
1497 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 1498
df80c7f0
KH
14992009-04-21 Kenichi Handa <handa@m17n.org>
1500
5a8f12af 1501 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 1502 (font_score): Check AVGWIDTH too.
908567ef 1503
df80c7f0
KH
1504 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
1505 worst case.
1ac9108a
SM
1506 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
1507 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 1508
705af33f
JR
15092009-04-19 Jason Rumney <jasonr@gnu.org>
1510
1511 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 1512 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
1513
1514 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
1515 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
1516 get_phys_cursor_geometry.
1517
b71ac3dd 1518 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
1519 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
1520 using get_phys_cursor_geometry.
1521
1522 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
1523 correctly calculated.
1524
dc2933eb
JD
15252009-04-19 Jan Djärv <jan.h.d@swipnet.se>
1526
1ac9108a
SM
1527 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
1528 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
1529 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
1530 is deprecated.
1531
973e7849
AS
15322009-04-18 Andreas Schwab <schwab@linux-m68k.org>
1533
1534 * font.c (font_put_frame_data): Use xfree instead of free.
1535
314d66f4
JB
15362009-04-17 Juanma Barranquero <lekktu@gmail.com>
1537
1538 * w32font.c (Qja, Qko): Remove declarations.
1539 (syms_of_w32font): Don't DEFSYM them.
1540
cf702558
CY
15412009-04-17 Chong Yidong <cyd@stupidchicken.com>
1542
1543 * font.c (Qja, Qko): Move definitions here from ftfont.c.
1544
1545 * font.h (Qja, Qko): Extern them.
1546
1547 * ftfont.c (Qja, Qko): Remove declarations.
1548
1549 * xfont.c (Qja, Qko): Remove declarations.
1550
b50504f5
KH
15512009-04-17 Kenichi Handa <handa@m17n.org>
1552
bde25748
KH
1553 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
1554 string from a vector to handle Latin-1 characters correctly.
1555
b50504f5
KH
1556 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
1557 entity even if the cache hits.
1558
f4646fff
AS
15592009-04-16 Andreas Schwab <schwab@linux-m68k.org>
1560
1561 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 1562 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 1563
e7deaab0
AS
1564 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
1565 * lisp.h: Adjust prototypes.
1566
0a0e7d49
CY
15672009-04-16 Chong Yidong <cyd@stupidchicken.com>
1568
1569 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
1570 change (Bug#3003).
1571
3c908a57
KH
15722009-04-16 Kenichi Handa <handa@m17n.org>
1573
1ac9108a 1574 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
1575
1576 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
1577 adstyle.
1578
1579 * ftfont.c (Qja, Qko): Don't make them static.
1580 (enum ftfont_cache_for): New enum.
1581 (fc_charset_table): Undo the previous change.
1582 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
1583 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
1584 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
1585 non-scarable font, try to get AVERAGE_WIDTH.
1586 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
1587 Change ft_face_cache from a list of a hash-table. Don't check
1588 `ja' and `ko' adstyle here.
1589 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
1590 FTFONT_CACHE_FOR_CHARET.
1591 (ftfont_get_charset): Undo the previous change.
1ac9108a 1592 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
1593 (ftfont_close): Likewise.
1594 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
1595
1596 * font.c (font_sort_entites): Change the meaning of the arg
1597 BEST-ONLY. Don't optimize for VEC of lenght 1.
1598 (font_select_entity): Just return the value of font_sort_entites.
1599
1600 * xfaces.c (merge_face_vectors): Reflect font properties in
1601 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
1602 font_clear_prop if a face attribute doesn't change.
1603
3c908a57
KH
1604 * charset.h (charset_ksc5601): Extern it.
1605
1606 * charset.c (charset_ksc5601): New variable.
1607 (Fdefine_charset_internal): Set charset_ksc5601.
1608 (init_charset_once): Initialize charset_ksc5601 to -1.
1609
d65859c3
DN
16102009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
1611
1612 * fileio.c (history_delete_duplicates): Remove unused declaration.
1613
1614 * callint.c (history_delete_duplicates): New declaration.
1615 (Fcall_interactively): Remove command history duplicates when
1616 history_delete_duplicates is true.
1617
3ba010e5
EZ
16182009-04-14 Eli Zaretskii <eliz@gnu.org>
1619
1620 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
1621
06f19b91
KH
16222009-04-14 Kenichi Handa <handa@m17n.org>
1623
1624 * font.c (Ffont_info): Fix docstring. Fix the second element of
1625 the returned value (bug#2949).
1626
2cce8bfc
CY
16272009-04-14 Chong Yidong <cyd@stupidchicken.com>
1628
1629 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
1630
d156542d
KH
16312009-04-14 Kenichi Handa <handa@m17n.org>
1632
1633 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
1634 encoding charset is ascii_compatible.
1635
1636 * charset.c (Fdefine_charset_internal): Make charset
1637 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
1638 code_offset is 0, and covers all ASCII characters.
1639
86fa089e
SM
16402009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
1641
1642 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
1643 (ns_string_to_pasteboard_internal):
1644 * nsmenu.m (process_dialog):
1645 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
1646 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
1647 * lisp.h (Fx_load_color_file): Declare.
1648
a8a3728b
KH
16492009-04-13 Kenichi Handa <handa@m17n.org>
1650
1ac9108a 1651 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
1652 (font_select_entity): Suppress the code to optimize for the same
1653 kind of fonts.
1654 (font_load_for_lface): Get a font that supports at least ASCII
1655 characters.
1656
1657 * ftfont.c (Qja, Qko): New variables.
1658 (fc_charset_table): Delete uniquifier data for iso8859-1.
1659 (ftfont_get_latin1_charset): New function.
1660 (get_adstyle_property): New function.
1661 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
1662 bitmap fonts.
1663 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
1664 Delete iso-8859-1 range from the charset of fonts whose adstyle is
1665 `ko' or `ja'.
1666 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 1667 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
1668 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
1669 property.
1670 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
1671 (syms_of_ftfont): DEFSYM Qja and Qko.
1672
483670b5
KH
16732009-04-09 Kenichi Handa <handa@m17n.org>
1674
12b55765
KH
1675 * charset.c (map_charset_chars): For a charset of `superset'
1676 method, fix calculation of code range.
1677
483670b5
KH
1678 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
1679 from the list of extra properties.
1680 (font_clear_prop): Be sure to delete `:name' font property.
1681
57d3b93b
KH
16822009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1683
b4b2c2ca
YM
1684 * dispnew.c (redraw_overlapping_rows): Fix detection of
1685 overlapping for topmost and bottommost rows.
1686
1ac9108a 1687 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 1688
472c3609
JR
16892009-04-06 Jason Rumney <jasonr@gnu.org>
1690
1691 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
1692
ab193662
KH
16932009-04-06 Kenichi Handa <handa@m17n.org>
1694
1695 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
1696
1697 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
1698
0c26f026
KH
16992009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1700
1701 * ftfont.c (ftfont_open): Fix checking of the return value of
1702 FT_Load_Char. Fix setting font->underline_thickness.
1703
e173bbce
CY
17042009-04-04 Chong Yidong <cyd@stupidchicken.com>
1705
1706 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
1707 (Fterminal_parameters, Fterminal_parameter)
1708 (Fset_terminal_parameter): In doc string, refer to terminal
1709 objects rather than terminal ids.
1710
693a2698
EZ
17112009-04-04 Eli Zaretskii <eliz@gnu.org>
1712
1713 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
1714 ret_lim_data. (Bug#2867)
1715
d5221487
CY
17162009-04-03 Chong Yidong <cyd@stupidchicken.com>
1717
1718 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
1719 so they don't get wider than the window, matching 2006-01-23
1720 change to the partner function in xdisp.c (Bug#2800).
1721
223509a3
KH
17222009-04-03 Kenichi Handa <handa@m17n.org>
1723
1724 * print.c (print_object): Make each lowest sub_char_table start a
1725 new line (Bug#2866).
1726
74fcd0b1
KH
17272009-04-02 Kenichi Handa <handa@m17n.org>
1728
1729 * fontset.c (fontset_font): Record no-font when a fontset
1730 explicitly tells not to try another font-specs.
1731
c542407d
SM
17322009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
1733
1734 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
1735
e3869731
KH
17362009-03-30 Kenichi Handa <handa@m17n.org>
1737
d8d2f142
KH
1738 * fontset.c (fontset_from_font): Specify only registry in a
1739 font-spec for all characters supported by that registry.
1740
e3869731
KH
1741 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
1742 even if HAVE_M17N_FLT is not defined.
1743
5da5f805
CY
17442009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
1745
1746 * ftfont.c: Conditionalize prototyping and use of
1747 ftfont_variation_glyphs.
1748
ab226c50
SM
17492009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
1750
9628fed7
SM
1751 * frame.c (delete_frame): Work around compiler bug.
1752
1753 * editfns.c (general_insert_function): Adjust to insdel.c changes.
1754 * insdel.c (prepare_to_modify_buffer, signal_before_change):
1755 Some more EMACS_INT.
1756 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
1757
1758 * xdisp.c (dump_glyph): Fix typo.
1759
ae19ba7c
SM
1760 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
1761 (adjust_markers_gap_motion, adjust_markers_for_delete)
1762 (adjust_markers_for_insert, adjust_point)
1763 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
1764 (make_gap, copy_text, count_size_as_multibyte, insert)
1765 (insert_and_inherit, insert_before_markers)
1766 (insert_before_markers_and_inherit, insert_1)
1767 (count_combining_before, count_combining_after, insert_1_both)
1768 (insert_from_string, insert_from_string_before_markers)
1769 (insert_from_string_1, insert_from_gap, insert_from_buffer)
1770 (insert_from_buffer_1, adjust_after_replace)
1771 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
1772 (replace_range_2, del_range, del_range_1, del_range_byte)
1773 (del_range_both, del_range_2, modify_region)
1774 (prepare_to_modify_buffer, signal_before_change)
1775 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
1776 for buffer positions and sizes.
1777 * lisp.h: Adjust prototypes accordingly.
1778
1779 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
1780 (non_regular_inserted, non_regular_nbytes, read_non_regular)
1781 (Finsert_file_contents): Use EMACS_INT for buffer positions.
1782
ab226c50
SM
1783 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
1784
46dfb8fb
JD
17852009-03-27 Jan Djärv <jan.h.d@swipnet.se>
1786
1787 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
1788 lines and columns so we keep the same pixel height and width.
1789
1790 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
1791 the property _NET_WM_STATE has changed.
46dfb8fb
JD
1792 (x_handle_net_wm_state): New function to update frame parameter
1793 fullscreen.
1794 (x_term_init): Initialize atoms for _NET_WM_STATE.
1795
1796 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
1797
d347e494
SM
17982009-03-27 Kevin Ryde <user42@zip.com.au>
1799
1800 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
1801 Gpm_GetEvent as an error that justifies closing the filedescriptor.
1802 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
1803 (Fgpm_mouse_stop): Pass that new parameter.
1804 * termhooks.h (close_gpm): Adjust prototype.
1805
84db11d6
SM
18062009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
1807
c95a5008
SM
1808 * lisp.h (Fx_focus_frame): Declare.
1809
84db11d6
SM
1810 * callint.c (Fcall_interactively): For '^' just delegate the work to
1811 handle-shift-selection.
1812 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
1813
0a1958d6
CY
18142009-03-24 Chong Yidong <cyd@stupidchicken.com>
1815
0bfdff23
CY
1816 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
1817
0a1958d6
CY
1818 * data.c (Qinteractive_form): New variable.
1819 (Finteractive_form): Use it.
1820
1821 * eval.c (Fcommandp): Use Qinteractive_form.
1822
58aec0d6
JR
18232009-03-24 Jason Rumney <jasonr@gnu.org>
1824
1825 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
1826 Calculate total size precisely. Decode environment variables
1827 before substituting. (Bug#38)
1828
553dd618
KH
18292009-03-24 Kenichi Handa <handa@m17n.org>
1830
1831 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 1832 encoding (Bug#2722).
553dd618 1833
c39ea606
JD
18342009-03-23 Jan Djärv <jan.h.d@swipnet.se>
1835
1836 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
1837 that gdpy is set.
1838
bc9b2b5e
AM
18392009-03-22 Alan Mackenzie <acm@muc.de>
1840
1841 * callint.c (Finteractive): Clarify the doc string - even
1842 promptless elements need \n separators.
1843
9f995a76
JR
18442009-03-22 Jason Rumney <jasonr@gnu.org>
1845
1846 * w32term.c (syms_of_w32term): Doc fix for
1847 x-use-underline-position-properties.
1848
22749e9a
EZ
18492009-03-21 Eli Zaretskii <eliz@gnu.org>
1850
1851 * w32.c (getpwuid): Change argument type to unsigned.
1852 (struct w32_id): Change type of `rid' member to unsigned.
1853 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
1854 argument ID to unsigned. All callers changed.
1855 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
1856
e00553bf
EZ
18572009-03-20 Eli Zaretskii <eliz@gnu.org>
1858
1859 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
1860 negative, produce a float value.
1861
1862 * dired.c (make_uid, make_gid): New functions.
1863 (Ffile_attributes): Use them to avoid negative UID and GID.
1864
f761d6b6
JB
18652009-03-20 Juanma Barranquero <lekktu@gmail.com>
1866
1867 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
1868 (syms_of_keyboard) <command-hook-internal, input-method-function>:
1869 Fix typos in docstrings.
1870
d507f8d7
KH
18712009-03-19 Kenichi Handa <handa@m17n.org>
1872
1873 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
1874 changed, use font_load_for_lface to get a new font object.
1875 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
1876
1877 * frame.c (x_set_font): Handle the case that ARG is a cons.
1878
c68845e0
GM
18792009-03-19 Glenn Morris <rgm@gnu.org>
1880
1881 * fileio.c (Fsubstitute_in_file_name): Doc fix.
1882
bfa49dd1
CY
18832009-03-19 Chong Yidong <cyd@stupidchicken.com>
1884
1885 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
1886
8458d4c1
KH
18872009-03-19 Kenichi Handa <handa@m17n.org>
1888
1889 * charset.c (load_charset_map_from_file): When a mapfile can't be
1890 loaded, signal an error.
1891
78e7d1fe
EZ
18922009-03-18 Eli Zaretskii <eliz@gnu.org>
1893
1894 * dired.c (Ffile_attributes): Make sure UID and GID are always
1895 positive, even if the value is too large for a positive EMACS_INT.
1896 Doc fix.
1897
1898 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
1899
5da9fdfa
YM
19002009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1901
1902 * xmenu.c (xdialog_show): Move Fredisplay call ...
1903 (Fx_popup_dialog): ... here.
1904
7519c40d
SM
19052009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
1906
1907 * dired.c (file_name_completion): Disable the first optimization just
1908 installed, since it is not implemented correctly.
1909
2cd298e2
SM
19102009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
1911
1912 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 1913 only if the entry can affect bestmatch.
2cd298e2
SM
1914 Stop the search early, as Ftry_completion already does.
1915
48d37adf
CY
19162009-03-17 Chong Yidong <cyd@stupidchicken.com>
1917
e10c9c93 1918 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 1919
9286b16a
CY
19202009-03-15 Chong Yidong <cyd@stupidchicken.com>
1921
1922 * keyboard.c (parse_menu_item): Don't display remappings as menu
1923 equivalent bindings (Bug#788).
1924
f7b146dc
JR
19252009-03-15 Jason Rumney <jasonr@gnu.org>
1926
1927 * w32term.h (WM_EMACS_PAINT): New message.
1928 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
1929 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
1930 before passing to lisp thread. (Bug#950)
1931
f761d6b6 19322009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 1933
d93f9575
CY
1934 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
1935 variable as it was never reset.
1936 (ns_term_init): Remove initialization of Lisp-settable defaults
1937 and ns_expand_space.
1938 (-setPanelFromDefaultValues): Remove ns_expand_space.
1939 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
1940 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
1941 i.e. no additional spacing, similar to Carbon port.
1942
d93f9575
CY
1943 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
1944 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 1945
305018ec
JD
19462009-03-14 Jan Djärv <jan.h.d@swipnet.se>
1947
1948 * sound.c (alsa_configure): Remove call to deprecated
1949 snd_pcm_sw_params_set_xfer_align.
1950
f761d6b6 19512009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
1952
1953 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
1954 after clicking in a detached tool bar.
1955 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
1956
46e722a9
SM
19572009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
1958
348db3dd
SM
1959 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
1960 int/Lisp_Object mixup).
46e722a9 1961
a3d16f39
KH
19622009-03-13 Kenichi Handa <handa@m17n.org>
1963
1964 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 1965 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
1966 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
1967 (set_fontset_font): Change ARG to a vector. Handle range_list in
1968 ARG correctly.
1969 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 1970 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
1971 the above change.
1972 (fontset_from_font): Fix previous change.
fe24f56a 1973 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
1974 entry. If FONTSET is the default fontset, don't set the extra
1975 slot of the returning char-table.
1976
b066e6b6
JB
19772009-03-12 Juanma Barranquero <lekktu@gmail.com>
1978
1979 * nsfns.m (Fx_close_connection): Doc fix.
1980 (Fns_do_applescript): Reflow docstring.
1981 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
1982 (Fx_display_pixel_width, Fx_display_pixel_height)
1983 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
1984 Fix typos in docstrings.
1985 (Fns_set_alpha): Fix typos in error messages.
1986
d472514e 19872009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 1988
d472514e 1989 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
1990 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
1991 were used for such events.
1992
d472514e
JB
1993 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
1994 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 1995
d472514e 1996 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
1997 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
1998
fb930676
KH
19992009-03-11 Kenichi Handa <handa@m17n.org>
2000
ff85581a
KH
2001 * font.h (font_open_by_spec): Extern it.
2002
c50b7e98
KH
2003 * font.c (font_open_by_spec): New function.
2004 (font_open_by_name): Use font_open_by_spec.
2005
fb930676
KH
2006 * frame.c (x_set_font): When ARG is a font-object, don't alter the
2007 fontset of the frame.
2008
2009 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
2010 modify the default font of frames that use this fontset.
2011 (num_auto_fontsets): New variable.
2012 (fontset_from_font): Use num_auto_fontsets to decide a fontset
2013 name. Be sure to set FONTSET_ASCII to the correct font name.
2014 (update_auto_fontset_alist): New function.
2015
df4e8455
JB
20162009-03-11 Juanma Barranquero <lekktu@gmail.com>
2017
2018 * makefile.w32-in: Update dependencies.
2019
0a375797
AR
20202009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
2021
2022 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
2023
61313fa3
SM
20242009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
2025
2026 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
2027
b55103fb
CY
20282009-03-10 Chong Yidong <cyd@stupidchicken.com>
2029
2030 * lread.c (Feval_buffer): Doc fix.
2031
dde2559c
KH
20322009-03-09 Kenichi Handa <handa@m17n.org>
2033
2034 * charset.c (Qfile_name_handler_alist): Extern it.
2035 (load_charset_map_from_file): Temporarily bind
2036 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
2037
df4e8455 20382009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 2039
47f588bb
GM
2040 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
2041 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 2042
4ddf94bd
AR
20432009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
2044
4c9bdfc2
AR
2045 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
2046 (x_set_window_size): Change back to calculated method of setting
2047 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
2048 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
2049 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
2050
fe41ae9e
AR
2051 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
2052
4c9bdfc2
AR
2053 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
2054 accelerator in parens under GNUstep.
2055
825d0875
KH
20562009-03-06 Kenichi Handa <handa@m17n.org>
2057
2058 These changes are to detect incorrect composition sequence without
f3b3be74 2059 looking ahead the source. (Bug#2370)
825d0875
KH
2060
2061 * coding.h: Include "composite.h".
2062 (enum compisition_state): New enum.
2063 (struct compisition_status): New struct.
2064 (struct iso_2022_spec): New member cmp_status.
2065 (struct emacs_mule_spec): New struct.
2066 (struct coding_system): New members ctext_extended_segment_len and
2067 embedded_utf_8. Change the union member
2068 spec.emacs_mule_full_support to spec.emacs_mule.
2069
2070 * coding.c (CODING_ISO_CMP_STATUS): New macro.
2071 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 2072 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
2073 (ADD_COMPOSITION_DATA): New arg nbytes.
2074 (emacs_mule_char): New arg cmp_status.
2075 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
2076 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
2077 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
2078 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
2079 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
2080 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
2081 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
2082 (EMACS_MULE_COMPOSITION_END): New macro.
2083 (emacs_mule_finish_composition): New function.
2084 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
2085 (decode_coding_emacs_mule): Avoid long looking ahead while
2086 handling composition.
2087 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
2088 (ENCODE_COMPOSITION_RULE): New macro.
2089 (finish_composition): New function.
2090 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
2091 (DECODE_COMPOSITION_START): New implementation.
2092 (DECODE_COMPOSITION_END): Likewise.
2093 (STORE_COMPOSITION_RULE): New macro.
2094 (decode_coding_iso_2022): Avoid long looking ahead while handling
2095 composition, CTEXT extended segment, and embedded UTF-8.
2096 (setup_coding_system): For a coding of type iso-2022, reset
2097 CODING_ISO_EXTSEGMENT_LEN (coding) and
2098 CODING_ISO_EMBEDDED_UTF_8 (coding).
2099 (get_translation): Delete arguments last_block, from_nchars,
2100 to_nchars. Callers changed.
2101 (produce_chars): Don't modify charbuf. Adjusted for the change of
2102 get_translation.
98a326f7 2103 (produce_composition): Adjust for the new annotation sequence.
825d0875 2104 (handle_composition_annotation): Likewise.
98a326f7 2105 (consume_chars): Adjust for the change of get_translation.
825d0875 2106
ccbc4452
AR
21072009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
2108
4ddf94bd 2109 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 2110
988a7ddb
KH
21112009-03-05 Kenichi Handa <handa@m17n.org>
2112
2113 * font.c (font_select_entity): New function.
2114 (font_find_for_lface): Use font_select_entity to select a font.
2115
2116 * fontset.c (fontset_find_font): If a font found without
a8a3728b 2117 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
2118 font with C restriction.
2119
98a326f7 21202009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 2121
be1bce46 2122 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 2123
10ea2b82
JR
21242009-03-04 Jason Rumney <jasonr@gnu.org>
2125
2c93b248 2126 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 2127 characters that have already been read. (Bug#2569)
2c93b248 2128
10ea2b82
JR
2129 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
2130 Log an error message if check_image_size failed.
2131 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 2132 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 2133
71a0c011
EZ
21342009-03-02 Eli Zaretskii <eliz@gnu.org>
2135
2136 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
2137 when decoding process output.
2138
2f63bba8
RS
21392009-03-01 Richard M Stallman <rms@gnu.org>
2140
2141 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
2142
2143 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
2144
0a9564cb
EZ
21452009-02-28 Eli Zaretskii <eliz@gnu.org>
2146
2147 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
2148 (decode_coding_emacs_mule, decode_coding_iso_2022)
2149 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
2150 (decode_coding_raw_text, decode_coding_charset)
2151 (setup_coding_system, decode_eol, decode_coding, consume_chars):
2152 Honor inhibit-eol-conversion. (Bug #2186)
2153
449148b3
JR
21542009-02-28 Jason Rumney <jasonr@gnu.org>
2155
2156 * coding.c (detect_coding_charset): If not checking latin extra,
2157 fail on characters between 0x80 and 0xA0. (Bug#2354)
2158
a4aee864
EZ
21592009-02-28 Eli Zaretskii <eliz@gnu.org>
2160
2161 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 2162 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 2163
d88bee5a
GM
21642009-02-27 Glenn Morris <rgm@gnu.org>
2165
2166 * callint.c (Finteractive): Doc fix.
2167
a808f22d
KH
21682009-02-27 Kenichi Handa <handa@m17n.org>
2169
2170 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
2171
caf8d60c
CY
21722009-02-27 Chong Yidong <cyd@stupidchicken.com>
2173
2174 * font.c (font_style_to_value): Set value for unknown symbols to
2175 100 instead of 255.
b61137ea
CY
2176 (weight_table, slant_table, width_table): Treat "unspecified" as
2177 the default value.
caf8d60c 2178
1a0de25c
JB
21792009-02-26 Juanma Barranquero <lekktu@gmail.com>
2180
2181 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
2182
8fc45744
JB
21832009-02-25 Juanma Barranquero <lekktu@gmail.com>
2184
107bd7d1
JB
2185 * lread.c (Fload): Stop checking Vloads_in_progress and signal
2186 error as soon as a recursive load is detected.
8fc45744 2187
f097e223
AR
21882009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2189
2190 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
2191 before caching.
2192
8810a12f
KH
21932009-02-24 Kenichi Handa <handa@m17n.org>
2194
2195 * fontset.c (fontset_find_font): Fix the condition for checking
2196 unavailable font.
2197
2c7d1565
GM
21982009-02-24 Glenn Morris <rgm@gnu.org>
2199
2200 * xfaces.c (Finternal_set_font_selection_order): Remove leading
2201 whitespace that confuses documentation.
2202
a20878b6
MB
22032009-02-23 Miles Bader <miles@gnu.org>
2204
2205 * process.c (Flist_system_processes, Fprocess_attributes)
2206 (syms_of_process): Rename `system-process-attributes' to
2207 `process-attributes'.
2208
b3b58c01
AS
22092009-02-22 Andreas Schwab <schwab@linux-m68k.org>
2210
1b3b981b
AS
2211 * coding.h (struct coding_system): Make safe_charsets a pointer to
2212 unsigned char.
2213 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
2214 being 255.
2215 (SAFE_CHARSET_P): Likewise.
2216 (setup_iso_safe_charsets): Properly setup safe_charsets.
2217 (Fdefine_coding_system_internal): Likewise.
2218 (setup_coding_system): Likewise. Remove unneeded casts.
2219 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
2220 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
2221 unneeded casts.
2222
b3b58c01
AS
2223 * insdel.c (del_range_2): Don't modify gap contents when called
2224 from decode_coding_object. (Bug#1809)
2225
0b6f228c
CY
22262009-02-21 Chong Yidong <cyd@stupidchicken.com>
2227
2228 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
2229 Qfont_object.
2230 (Ftype_of): Recognize font objects.
2231
2232 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
2233
2234 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
2235 moved to data.c.
2236
52f8870b
AR
22372009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
2238
2239 * nsterm.m (x_make_frame_invisible): Unset async_visible,
2240 async_iconified. Based on a patch by Christian Lynbech
2241 <christian.lynbech@tieto.com>.
2242 (EmacsView-windowDidMiniaturize:): Unset async_visible.
2243
7087d5e9
GM
22442009-02-20 Glenn Morris <rgm@gnu.org>
2245
2246 * syntax.c (Fskip_chars_forward): Fix doc typo.
2247
41d2ceef
CY
22482009-02-20 Chong Yidong <cyd@stupidchicken.com>
2249
2250 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
2251
1a3b7ca6
CY
22522009-02-19 Chong Yidong <cyd@stupidchicken.com>
2253
2254 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
2255
73cce38d
KH
22562009-02-19 Kenichi Handa <handa@m17n.org>
2257
2258 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 2259 Don't overflow coding->carryover. (Bug#2370)
73cce38d 2260
a51092ee
DN
22612009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
2262
2263 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
2264
c423ecca
KH
22652009-02-18 Kenichi Handa <handa@m17n.org>
2266
2267 * font.c (font_check_otf_features): Fix handling of `nil' element.
2268 (Ffont_spec): Describe :lang and :otf in the docstring.
2269
4c1958f4
AS
22702009-02-16 Andreas Schwab <schwab@suse.de>
2271
2272 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
2273 string.
2274
5704f39a
KH
22752009-02-16 Kenichi Handa <handa@m17n.org>
2276
2277 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 2278 (Bug#1723)
5704f39a 2279
8f0085aa
CY
22802009-02-14 Chong Yidong <cyd@stupidchicken.com>
2281
a057d86a 2282 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
2283
2284 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
2285 (handle_line_prefix): Suppress wrapping of wrap prefixes.
2286
aff01dd9
EZ
22872009-02-14 Eli Zaretskii <eliz@gnu.org>
2288
2289 * msdos.c (MAX_SCREEN_BUF): New macro.
2290 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
2291 Encode the entire run of glyphs sharing the same face, instead of
2292 doing that one glyph at a time (fixes a bug with displaying
2293 double-size characters).
2294
ba301db3
AR
22952009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
2296
2297 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
2298
2299 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
2300 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 2301 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
2302
2303 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 2304 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 2305
51d861de
SM
23062009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
2307
2308 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
2309 invisible areas.
2310
7fed8996
JR
23112009-02-12 Jason Rumney <jasonr@gnu.org>
2312
631ea4fb
JR
2313 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
2314 (add_font_entity_to_list): Call check_face_name even when family
2315 is unspecified.
2316
cb4a3e42
JR
2317 * w32term.c (x_display_pixel_height, x_display_pixel_width):
2318 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 2319 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 2320
7fed8996 2321 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 2322 raster fonts. (Bug#2219)
7fed8996 2323
895416e3
KH
23242009-02-12 Kenichi Handa <handa@m17n.org>
2325
2326 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
2327 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
2328 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 2329 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
2330 (find_automatic_composition): While looking forward and backward,
2331 check static composition. Fix where to stop looking forward.
2332 (composition_adjust_point): Fix checking of static composition.
2333 (Fcomposition_get_gstring): Pay attention to
1dacf998 2334 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
2335
2336 * lisp.h (fast_looking_at): Extern it.
2337
2338 * search.c (fast_looking_at): New function.
2339
51d861de 2340 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
2341 <struct glyph>.u.cmp.to.
2342 (append_composite_glyph): Likewise.
2343
51d861de 2344 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
2345 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
2346 composition.
51d861de 2347 (append_composite_glyph): Adjust for the change of
895416e3
KH
2348 <strcut glyph>.u.cmp.to.
2349
8510724d
JB
23502009-02-11 Juanma Barranquero <lekktu@gmail.com>
2351
2352 * casetab.c (init_casetab_once):
2353 * coding.c (ALLOC_CONVERSION_WORK_AREA):
2354 * font.c (font_update_lface):
2355 * fontset.c (Fnew_fontset):
2356 * ftfont.c (ftfont_drive_otf):
2357 * xfont.c (xfont_open):
2358 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
2359
294fa707
SM
23602009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
2361
2362 * fileio.c (Fwrite_region): !NILP -> CONSP.
2363
b5bfebec
AS
23642009-02-10 Andreas Schwab <schwab@suse.de>
2365
2366 * process.c (send_process): Properly relocate pointer into data
adab88bd 2367 when using encoded data. (Bug#2272)
b5bfebec 2368
cb84a2be
KH
23692009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
2370
2371 * coding.c (detect_coding_charset): Fix previous change.
2372
89e09428
JR
23732009-02-08 Jason Rumney <jasonr@gnu.org>
2374
2375 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 2376 disappeared while hourglass was displayed. (Bug #2193)
89e09428 2377
4470a277
AS
23782009-02-07 Andreas Schwab <schwab@suse.de>
2379
2380 * unexelf.c (unexec): Fix error message.
2381
3175b12a
AR
23822009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
2383
2384 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 2385 when modal window is active. (Bug #2152)
3175b12a
AR
2386 (applicationShouldTerminate:): Remove now-unneeded while loop
2387 around NSRunAlertPanel.
2388
2389 * nsmenu.m (popupSession): New file-global variable.
2390 (pop_down_menu): End the popupSession before closing dialog.
2391 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
2392 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
2393 don't query NSApp for events (just sleep instead).
2394
8434d0b8
EZ
23952009-02-07 Eli Zaretskii <eliz@gnu.org>
2396
51d861de
SM
2397 * coding.c (syms_of_coding) <translation-table-for-input>:
2398 Modify doc string to discourage use for character code unification.
8434d0b8 2399
aa82edfd
CY
24002009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2401
2402 * atimer.c (run_timers): Update pending_atimers.
2403
2d283c7c
CY
24042009-02-06 Chong Yidong <cyd@stupidchicken.com>
2405
eb306cab
CY
2406 * image.c (svg_load_image): Fix last change.
2407
2d283c7c
CY
2408 * xfns.c (Fx_create_frame): Signal an error if no font is
2409 found (Bug#2147).
2410
4d8e170e
JB
24112009-02-05 Juanma Barranquero <lekktu@gmail.com>
2412
2413 * character.c (syms_of_character) <script-representative-chars>:
2414 Fix typo in docstring.
2415
c96169a0
AR
24162009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
2417
2418 * nsmenu.m (pop_down_menu): New function.
2419 (ns_popup_dialog): Call it on unwind.
2420 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
2421 call timer_check() (Bug#2154).
2422 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
2423 handling_signal is set.
2424 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
2425
31fd7c5c 2426 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
2427
2428 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
2429
2430 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
2431
51d861de
SM
2432 * keyboard.c (poll_for_input_1, handle_async_input):
2433 Set handling_signal under HAVE_NS.
c96169a0 2434
aacd8ba1
GM
24352009-02-04 Glenn Morris <rgm@gnu.org>
2436
2437 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
2438
4cb75c4b
KH
24392009-02-04 Kenichi Handa <handa@m17n.org>
2440
2441 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
2442
2443 * charset.c (Fchar_charset): New optional arg restriction.
2444
2445 * coding.h (coding_system_charset_list): Extern it.
2446
2447 * coding.c (coding_system_charset_list): New function.
2448
2449 * composite.c: Include coding.h and termhooks.h.
2450 (composition_gstring_p): Fix for the terminal case.
2451 (composition_gstring_width): Likewise.
2452 (fill_gstring_body): Likewise.
2453 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
2454 the frame.
2455 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
2456 is within a composition.
867d4bb3 2457 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
2458
2459 * term.c (encode_terminal_code): Fix handling of composition.
2460 (produce_composite_glyph): For static composition, get pixel_width
2461 from struct composition.
2462
826ba17e
AS
24632009-02-02 Andreas Schwab <schwab@suse.de>
2464
2465 * unexelf.c (unexec): Handle unaligned bss offset.
2466
8ad093db
AR
24672009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
2468
2469 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
2470 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 2471
8ad093db
AR
2472 * keyboard.c (handle_interrupt): Don't call
2473 quit_throw_to_read_char() under NS.
d0a76a6e 2474
8ad093db
AR
2475 * blockinput.h: Remove NS-specific code.
2476
4d18a7a2
DN
24772009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
2478
db878925
DN
2479 * dispnew.c (window_change_signal): Don't try to get the size of a
2480 suspended tty frame.
2481 * term.c (Fresume_tty): Resize if the size has changed while the
2482 tty was suspended.
2483
4d18a7a2
DN
2484 * alloc.c (mark_stack): Properly conditionalize previous change.
2485
8984df7c
JB
24862009-01-30 Juanma Barranquero <lekktu@gmail.com>
2487
2488 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
2489 * w32term.c (w32_read_socket) [SYNC_INPUT]:
2490 Remove; this code is not used on Windows.
2491
75f4f1ac
EZ
24922009-01-30 Eli Zaretskii <eliz@gnu.org>
2493
2494 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
2495 EOLs that also has stray ^M characters.
2496
07a1e794
JB
24972009-01-30 Juanma Barranquero <lekktu@gmail.com>
2498
2499 * atimer.c (run_timers, alarm_signal_handler):
2500 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
2501 * w32inevt.c (w32_console_read_socket):
2502 * w32term.c (w32_read_socket):
2503 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
2504
a8b11cc9
CY
25052009-01-30 Chong Yidong <cyd@stupidchicken.com>
2506
2507 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
2508 Initialize it as a relative filename pattern.
2509 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
2510 (Fcall_process_region): Simplify temp file creation using
2511 temporary-file-directory.
2512
c279587b
EZ
25132009-01-29 Eli Zaretskii <eliz@gnu.org>
2514
2515 * msdos.c: Rename pending_signals to msdos_pending_signals.
2516 (sig_suspender, sigprocmask): Adjust.
2517
a8fe3242
CY
25182009-01-29 Chong Yidong <cyd@stupidchicken.com>
2519
2520 * keyboard.c (pending_signals): New var.
2521 (poll_for_input, input_available_signal, init_keyboard): Set it.
2522 (process_pending_signals): New function.
2523
2524 * lisp.h (QUIT): Check pending_signals instead of
2525 interrupt_input_pending. Use process_pending_signals.
2526
51d861de 2527 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 2528
51d861de 2529 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
2530
2531 * sysdep.c (emacs_write): Use process_pending_signals.
2532
2533 * xterm.c (XTread_socket): Update pending_signals.
2534
2535 * w32term.c (w32_read_socket): Update pending_signals.
2536
2537 * w32inevt.c (w32_console_read_socket): Update pending_signals.
2538
6570a1c4
KH
25392009-01-29 Kenichi Handa <handa@m17n.org>
2540
2541 * xftfont.c (xftfont_has_char): New function.
2542 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
2543
d72a4afa
AR
25442009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
2545
2546 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
2547 under GNUstep.
2548 (ns_query_color): New declaration.
2549
2550 * nsterm.m (ns_confirm_quit): New variable.
2551 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
2552 (EmacsApp-applicationShouldTerminate:): Use it.
2553 (EmacsPrefsController): Let user set it.
2554 (ns_query_color): New function.
2555 (ns_defined_color): Use it.
2556 (ns_initialize): Drop.
2557 (ns_term_init): Add two lines from ns_initialize(), and set
2558 input_interrupt_mode to nil.
2559
2560 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 2561 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 2562
9fe78804
KH
25632009-01-28 Kenichi Handa <handa@m17n.org>
2564
2565 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
2566 (fontset_get_font_group): Remember that no font-group is specified
2567 for C.
9fe78804 2568
fa57de36
CY
25692009-01-27 Chong Yidong <cyd@stupidchicken.com>
2570
930600e9
CY
2571 * fns.c (concat): Check for string overflow (bug#1787).
2572
fa57de36
CY
2573 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
2574 Quadruple undo limits (bug#1501).
2575
7179ce7b
KH
25762009-01-27 Kenichi Handa <handa@m17n.org>
2577
2578 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
2579 directly use GT_Get_Char_index.
2580
2581 * xftfont.c (struct xftfont_info): New member `index'.
2582
2583 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 2584 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 2585
5be8fcc0
CY
25862009-01-26 Kenichi Handa <handa@m17n.org>
2587
2588 * fontset.c (fontset_find_font): Fix handling of non-cons return
2589 value of fontset_get_font_group.
2590 (fontset_font): Revert last change.
2591
19ae3e61
JR
25922009-01-26 Jason Rumney <jasonr@gnu.org>
2593
2594 * w32font.c (w32font_list_internal): Return quickly if registry is
2595 unknown. Simplify final return.
2596 (add_font_entity_to_list): Break complex logic down into more
2597 manageable chunks. Move unknown registry check to
2598 w32font_list_internal.
2599
8612b71a
AR
26002009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
2601
2602 Changes to remove Feval calls from GUI under NS.
2603
d8038940
JB
2604 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
2605 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
2606 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
2607
2608 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
2609 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
2610 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
2611 instead of NON_ASCII_KEYSTROKE_EVENT.
2612 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
2613 (EmacsApp-applicationShouldTerminate:): Query user.
2614 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
2615 instead of Feval.
2616
2617 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
2618
2619 * keyboard.c (kbd_buffer_get_event): Check for it.
2620 (keys_of_keyboard): Define lispy keys for
2621 ns-put/unput-working-text.
2622
2623 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
2624 versions.
2625 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
2626
6288ae55
CY
26272009-01-25 Chong Yidong <cyd@stupidchicken.com>
2628
2629 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 2630 setting current_buffer directly. (Bug#2044)
6288ae55 2631
289e7f8f
CY
26322009-01-24 Chong Yidong <cyd@stupidchicken.com>
2633
5ce87308 2634 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 2635 any work. (Bug#1952, bug#1990).
5ce87308 2636
64cc3cf6 2637 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 2638
b3243e6f
AR
26392009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2640
2641 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
2642 (ns_no_defaults): New declaration.
2643 (main): Use it.
e0d2e69a 2644
d900b2af 2645 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 2646
d900b2af 2647 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 2648
d900b2af
AR
2649 * nsterm.m (ns_no_defaults): New variable.
2650 (ns_initialize): Don't read defaults when ns_no_defaults.
2651 (EmacsView-readSelectionFromPasteboard:)
2652 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 2653 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
2654 (ns_dumpglyphs_stretch): New function.
2655 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 2656 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 2657
e0d2e69a
AR
2658 * nsimage.m (setPixmapData:): Set to ignore image DPI.
2659
3ac71f5d
CY
26602009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
2661
2662 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
2663 call for Sparc64.
2664
3fe53a83
AR
26652009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
2666
2667 * nsfns.m:
2668 * nsgui.h:
2669 * nsmenu.m:
2670 * nsselect.m:
2671 * nsterm.h:
2672 * nsterm.m: Remove '23' comments that indicated code added during
2673 update from emacs-20 -> emacs-23.
2674
10f87c6f 26752009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
2676
2677 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 2678 ns_alternate_modifier. (Bug#1217)
a3b53a85 2679
c7cef62d
AR
2680 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
2681 Display all shortcuts, including those w/o super modifier.
2682
575fb8bd
AR
2683 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
2684
918b848b
CY
26852009-01-22 Chong Yidong <cyd@stupidchicken.com>
2686
2687 * fileio.c (Vwrite_region_post_annotation_function)
2688 (Vwrite_region_annotation_buffers): New vars.
2689 (build_annotations_unwind): Just reset
2690 Vwrite_region_annotation_buffers.
2691 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
2692 Call write-region-post-annotation-function.
2693 (build_annotations): Add to Vwrite_region_annotation_buffers if
2694 buffer changes.
2695
a39e2539
AR
26962009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
2697
2698 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
2699 Tiger.
51d861de
SM
2700 * nsfns.m (ns_do_applescript):
2701 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 2702
35ed44db
AR
27032009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
2704
2705 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
2706
cbe0b5bf
AR
27072009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
2708
2709 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 2710
6049d3a0
AR
2711 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
2712
2713 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
2714 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
2715 handle Ctrl-tab. (Bug#1841)
2716 (ns_get_color): Use unsigned long long for scanned hex string value.
2717 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 2718 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 2719 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 2720 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 2721 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 2722 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 2723 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 2724
d3810c21 2725 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 2726 DPI. (Bug#1316)
d3810c21
AR
2727 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
2728 values in onTiger section.
4c7077c3 2729
e301e634
CY
27302009-01-19 Chong Yidong <cyd@stupidchicken.com>
2731
7f82490b
CY
2732 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
2733 Check return value of font_spec_from_name.
64cc3cf6 2734 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
2735
2736 * font.c (font_spec_from_name): Return Qnil if font name could not
2737 be parsed.
2738 (font_parse_name): Treat a `?' character as part of an XLFD.
2739
e301e634
CY
2740 * fns.c (Fsubstring): Doc fix.
2741
1c0db158
KH
27422009-01-19 Kenichi Handa <handa@m17n.org>
2743
51d861de 2744 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
2745 (ftfont_list): Likewise.
2746
acf20901
JB
27472009-01-18 Juanma Barranquero <lekktu@gmail.com>
2748
fff4e459
JB
2749 * dbusbind.c (Fdbus_register_signal):
2750 * process.c (conv_sockaddr_to_lisp):
2751 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
2752
acf20901
JB
2753 * callproc.c (Fgetenv_internal): Doc fix.
2754
e7abcdfb
CY
27552009-01-16 Chong Yidong <cyd@stupidchicken.com>
2756
2757 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
2758 it is not even used.
2759
b60861e6
GM
27602009-01-16 Glenn Morris <rgm@gnu.org>
2761
2762 * font.c (Ffont_variation_glyphs): Silence compiler.
2763
8db52afe
JB
27642009-01-15 Juanma Barranquero <lekktu@gmail.com>
2765
2766 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
2767 Reported by David Robinow <drobinow@gmail.com>.
2768
4cddb209
KH
27692009-01-15 Kenichi Handa <handa@m17n.org>
2770
51d861de 2771 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 2772
f247f67b
JR
27732009-01-14 Jason Rumney <jasonr@gnu.org>
2774
2775 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 2776 never a fontset. (Bug#1562)
f247f67b 2777
f56a4450
KH
27782009-01-14 Kenichi Handa <handa@m17n.org>
2779
2780 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 2781 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 2782
4e99855e
CY
27832009-01-13 Chong Yidong <cyd@stupidchicken.com>
2784
2785 * font.c (font_clear_prop): If clearing the family, clear the font
2786 width index too.
2787
fff4e459 2788 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 2789
24f01470
JB
27902009-01-12 Juanma Barranquero <lekktu@gmail.com>
2791
2792 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
2793 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
2794 functions, use sizeof.
2795
a41240a3
MR
27962009-01-12 Martin Rudalics <rudalics@gmx.at>
2797
2798 * keyboard.c (read_char): Fix case where last_nonmenu_event
2799 returned a bad value with submenus. (Bug#447)
2800
944636b8
CY
28012009-01-12 Chong Yidong <cyd@stupidchicken.com>
2802
2803 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
2804 family, clear the font width index too.
2805
0dad7c6f
JR
28062009-01-11 Jason Rumney <jasonr@gnu.org>
2807
2808 * keyboard.c (cmd_error_internal): Exit when errors occur before
2809 frame creation and not in daemon mode. (Bug#1836)
2810
7c2363af
CY
28112009-01-10 Chong Yidong <cyd@stupidchicken.com>
2812
2813 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
2814 of a display vector, backtrack.
2815 (try_window_reusing_current_matrix): Check glyph type before
2816 referencing charpos member.
2817
97b1b294
EZ
28182009-01-10 Eli Zaretskii <eliz@gnu.org>
2819
2820 Fix Bug #876:
2821
2822 * coding.c (inhibit_null_byte_detection): New variable.
2823 (detect_coding, detect_coding_system): Don't pay attention to null
2824 bytes if inhibit_null_byte_detection is non-zero.
51d861de 2825 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
2826 <inhibit-iso-escape-detection>: Doc fix.
2827
4624b6e3
JR
28282009-01-09 Jason Rumney <jasonr@gnu.org>
2829
2830 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 2831 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
2832 Only report Unicode Plane 2 fonts as unicode-sip.
2833
323b840c
CY
28342009-01-09 Chong Yidong <cyd@stupidchicken.com>
2835
51d861de
SM
2836 * xfaces.c (Fx_font_family_list): Delete function.
2837 Move compatibility version to faces.el.
323b840c 2838
51d861de 2839 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 2840
eba7400d
MR
28412009-01-09 Martin Rudalics <rudalics@gmx.at>
2842
2843 * frame.c (x_set_frame_parameters): Remember requested value for
2844 fullscreen before it's reset by the parameter handler.
2845
4b09796d
GM
28462009-01-09 Glenn Morris <rgm@gnu.org>
2847
2848 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 2849 (last_command_event): ... and update all users.
4b09796d
GM
2850 (last_input_char): For clarity, rename to...
2851 (last_input_event): ... and update all users.
2852 (last-command-char, last-input-char): Move to subr.el as aliases.
2853 * cmds.c, commands.h: Update for last_command_char rename.
2854
14ccea62
CY
28552009-01-08 Chong Yidong <cyd@stupidchicken.com>
2856
51d861de 2857 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 2858
5f004711
JR
28592009-01-08 Jason Rumney <jasonr@gnu.org>
2860
2861 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
2862 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
2863 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
2864 Don't declare.
fff4e459 2865 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
2866 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
2867
b71f6f73
KH
28682009-01-07 Kenichi Handa <handa@m17n.org>
2869
50b06221 2870 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 2871 remember the coding system used for decoding in
50b06221
KH
2872 coding_system (Bug#1039).
2873
b71f6f73 2874 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 2875 breaking the loop. (Bug#870)
b71f6f73
KH
2876 (decode_coding_utf_16, decode_coding_emacs_mule)
2877 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
2878 (decode_coding_charset): Likewise.
2879
56f668f7
MR
28802009-01-05 Martin Rudalics <rudalics@gmx.at>
2881
2882 * frame.c (x_set_frame_parameters): Make sure height (width) get
2883 applied when fullwidth (fullheight) is set. (Bug#1522)
2884
5da9424d
JB
28852009-01-04 Juanma Barranquero <lekktu@gmail.com>
2886
2887 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
2888 (utc_base): Declare as ULONGLONG, not long double.
2889 (convert_time_raw): Delete.
2890 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
2891 (initialize_utc_base): New function.
2892 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
2893 (convert_from_time_t): Use initialize_utc_base; compute result with
2894 64-bit arithmetic.
2895 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
2896
c4605e09
EZ
28972009-01-03 Eli Zaretskii <eliz@gnu.org>
2898
9acef61c 2899 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
2900 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
2901 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
2902 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
2903 [!subprocesses]: Define.
2904 (syms_of_process) [!subprocesses]: Intern and staticpro them.
2905 (Flist_system_processes, Fsystem_process_attributes)
2906 [!subprocesses]: Call list_system_processes and
2907 system_process_attributes instead of returning Qnil.
2908
9acef61c
JB
2909 * dosfns.c (system_process_attributes, list_system_processes):
2910 New functions.
c4605e09
EZ
2911
2912 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
2913
2914 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
2915 Don't use the default (no-op) implementation.
2916
8b7d0a16
JR
29172009-01-03 Jason Rumney <jasonr@gnu.org>
2918
a6d46bc1
JR
2919 * keyboard.c (parse_modifiers_uncached): Wheel events are
2920 clicks (bug#687).
2921
8b7d0a16
JR
2922 * w32term.c (x_query_colors, x_query_color): New functions.
2923
2924 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
2925 (svg_load_image): Cast returned pointers from dynamically loaded
2926 functions. Eliminate W32 specific code.
2927
bfe11752
DN
29282009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
2929
89e2438a
DN
2930 * nsfns.m (x_set_foreground_color, x_set_background_color)
2931 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
2932 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
2933 x_ prefix instead of ns_. Update references.
2934 (syms_of_nsfns): Add a FIXME comment.
2935
2936 * nsterm.m (x_set_cursor_type): New prototype.
2937 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
2938
bfe11752
DN
2939 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
2940 for Solaris instead of incorrectly providing Qutime and Qcutime.
2941
031da700
EZ
29422009-01-02 Eli Zaretskii <eliz@gnu.org>
2943
2944 * w32.c (process_times): Compute sum of utime and stime.
2945 (system_process_attributes): Add Qtime to the alist.
2946
2947 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
2948 and add them to the alist.
2949
2950 * process.c (top level) <Qtime, Qctime>: New variables.
2951 (syms_of_process): staticpro them.
2952 (Fsystem_process_attributes): Add their documentation to the doc
2953 string.
2954
2955 * process.h: Declare Qtime and Qctime.
2956
df23bf08
JR
29572009-01-02 Jason Rumney <jasonr@gnu.org>
2958
9acef61c 2959 * image.c (Qgobject): New symbol.
df23bf08
JR
2960 (syms_of_image): Initialize it.
2961 (init_svg_functions): Load some functions from gobject library.
2962
5bbdf7aa
DN
29632009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
2964
2965 * frame.c (make_terminal_frame): Remove redundant code and useless
2966 block.
2967
63136da6
AS
29682009-01-01 Andreas Schwab <schwab@suse.de>
2969
2970 * process.c (conv_sockaddr_to_lisp): Add workaround for
2971 getsockname bug on BSD.
2972
9ef69046
CY
29732009-01-01 Chong Yidong <cyd@stupidchicken.com>
2974
d6fafbe0
CY
2975 * xfns.c (x_create_tip_frame): Set border width of the X window.
2976
51d861de 2977 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 2978
f9c34147
JR
29792009-01-01 Jason Rumney <jasonr@gnu.org>
2980
9acef61c 2981 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
2982 Don't block input, as per earlier xterm.c changes.
2983
f5497e45
AR
29842008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
2985
2986 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
2987 (ns_appkit_version_int): New function.
2988 (x-server-version): Use ns_appkit_version_int and follow 21+
2989 convention of returning 3 integers.
2990
c19cab20
KH
29912008-12-30 Kenichi Handa <handa@m17n.org>
2992
2993 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
2994 (CHAR_SURROGATE_PAIR_P): New macro.
2995
2996 * font.h (struct font_driver): New member get_variation_glyphs.
2997
9acef61c 2998 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
2999 (Ffont_variation_glyphs): New function.
3000 (syms_of_font): Defsubr it.
3001
3002 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
3003 ftfont_variation_glyphs.
3004 (setup_otf_gstring): New function.
3005 (ftfont_drive_otf): Use it.
3006 (ftfont_shape_by_flt): Handle variation selector.
3007 (ftfont_variation_glyphs): New function.
3008
28cd591f
MR
30092008-12-30 Martin Rudalics <rudalics@gmx.at>
3010
3011 * frame.c (Vemacs_iconified): Remove.
3012
7f714baf
JR
30132008-12-30 Jason Rumney <jasonr@gnu.org>
3014
3015 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 3016 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 3017
9d2d22ab
CY
30182008-12-30 Chong Yidong <cyd@stupidchicken.com>
3019
3020 * indent.c (Fvertical_motion): Don't advance iterator if we have
3021 reseated to the desired position.
3022
3023 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
3024 checking for pos match.
3025
545312c2
KH
30262008-12-30 Kenichi Handa <handa@m17n.org>
3027
1ede3eb6
KH
3028 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
3029 just get the low 8-bit of the code.
3030
545312c2
KH
3031 * font.c (font_intern_prop): Validate str as multibyte.
3032
bd7bbf29
DN
30332008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
3034
31e0750e
DN
3035 * dispextern.h (struct face): Move lface and hash from the middle
3036 of bitfields.
3037
bd7bbf29
DN
3038 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
3039
b5672e7c
DN
30402008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
3041
3042 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
3043 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
3044 instead of intervals.h.
3045
d704470f
AS
30462008-12-26 Andreas Schwab <schwab@suse.de>
3047
3048 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
3049 cons.
3050
54b33868
MR
30512008-12-26 Martin Rudalics <rudalics@gmx.at>
3052
3053 * textprop.c (Qminibuffer_prompt): New variable.
3054 (syms_of_textprop): Initialize it.
3055 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
3056 in minibuffer-prompt face. (Bug#1662)
3057
40b615d6
JR
30582008-12-25 Jason Rumney <jasonr@gnu.org>
3059
3060 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
3061
baae5c2d
JR
30622008-12-24 Jason Rumney <jasonr@gnu.org>
3063
3064 * ralloc.c (r_alloc_reset_variable): New function.
3065
3066 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 3067 record of what points where. (Bug#716)
baae5c2d 3068
a9051c88
DN
30692008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
3070
3071 * minibuf.c (read_minibuf): Follow the non-interactive case when
3072 running as a daemon, before detaching.
3073
8b146312
AS
30742008-12-22 Andreas Schwab <schwab@suse.de>
3075
3076 * buffer.c (init_buffer): Use realloc instead of xrealloc.
3077 * gtkutil.c (free_widget_value): Use xfree instead of free.
3078
56f2de10
MR
30792008-12-22 Martin Rudalics <rudalics@gmx.at>
3080
3081 * frame.c (delete_frame): New function derived from
3082 Fdelete_frame to handle Qnoelisp value for FORCE argument.
3083 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
3084 (Fdelete_frame): Call delete_frame. Remove line from doc-string
3085 saying that FORCE non-nil doesn't run `delete-frame-functions'.
3086 * frame.h: Extern delete_frame.
3087 * window.c (window_loop):
3088 * terminal.c (delete_terminal):
3089 * xterm.c (x_connection_closed):
3090 * xfns.c (Fx_hide_tip):
9acef61c 3091 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 3092
1fc200d6
JR
30932008-12-21 Jason Rumney <jasonr@gnu.org>
3094
3095 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
3096 when character maps to .notdef character.
3097
5e252df2
SM
30982008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
3099
3100 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
3101
99b72cc4
JR
31022008-12-20 Jason Rumney <jasonr@gnu.org>
3103
3104 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 3105 a graphical frame on Windows. (Bug#1325)
99b72cc4 3106
acc49a52
JD
31072008-12-20 Jan Djärv <jan.h.d@swipnet.se>
3108
3109 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
3110
6ea15123
CY
31112008-12-20 Chong Yidong <cyd@stupidchicken.com>
3112
3113 * minibuf.c (Fread_buffer): Doc fix.
3114
b2dab6c8
JR
31152008-12-20 Jason Rumney <jasonr@gnu.org>
3116
54ea0c87 3117 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 3118 server name in UNC paths. (Bug#719)
54ea0c87 3119
b2dab6c8 3120 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 3121 charbuf. (Bug#1035)
b2dab6c8 3122
6d1921be
DN
31232008-12-19 Daniel Engeler <engeler@gmail.com>
3124
3125 * sysdep.c (serial_configure): Fix typo.
3126
53934c98
DN
31272008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
3128
3129 * sysdep.c: Include alloca.h.
f4f634e8
DN
3130 (system_process_attributes): Add implementation for Solaris.
3131
3132 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 3133
06e111a6
DN
31342008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
3135
3136 Reorganize implementation of Flist_system_processes and
3137 Fsystem_process_attributes. No functional changes.
3138 * process.c: Don't #include pwd.h, grp.h and limits.h.
3139 (Flist_system_processes): Just call list_system_processes.
3140 (Fsystem_process_attributes): Just call system_process_attributes.
3141 (procfs_list_system_processes, time_from_jiffies)
3142 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
3143 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
3144
3145 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
3146 (list_system_processes): Rename from
3147 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
3148 Provide a do nothing implementation.
3149 (system_process_attributes): Rename from
3150 procfs_list_system_processes.
3151 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 3152 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
3153
3154 * w32.c (list_system_processes): Rename from
3155 w32_list_system_processes.
3156 (system_process_attributes): Rename from
3157 w32_system_process_attributes.
3158
3159 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
3160
3161 * process.h (w32_list_system_processes)
3162 (w32_system_process_attributes): Remove.
3163 (list_system_processes, system_process_attributes): New
3164 prototypes.
3165
6a705b23
KH
31662008-12-19 Kenichi Handa <handa@m17n.org>
3167
3168 * xfont.c (xfont_decode_coding_xlfd): New function.
3169 (xfont_encode_coding_xlfd): New function.
3170 (xfont_list_pattern): Decode XLFD by iso-8859-1.
3171 (xfont_list): Decode and encode XLFD by iso-8859-1.
3172 (xfont_match): Likewise.
3173 (xfont_list_family): Likewise.
3174 (xfont_open): Likewise.
3175
d66c0241 3176 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
3177 names are utf-8.
3178
d66c0241 3179 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
3180 names are utf-8.
3181
5a130941
JD
31822008-12-18 Jan Djärv <jan.h.d@swipnet.se>
3183
3184 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
3185 changed.
bfd20325
JD
3186 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
3187 clicked on a detached tool bar button.
5a130941 3188
fd95644b
DN
31892008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
3190
3191 * emacs.c (main): Print and error and exit when no data is read
3192 from the pipe.
3193
e6eee6ae
JR
31942008-12-17 Jason Rumney <jasonr@gnu.org>
3195
3196 * w32font.c (w32font_has_char): Always return -1.
3197
a35dd56b
KH
31982008-12-16 Kenichi Handa <handa@m17n.org>
3199
3200 * font.c (font_open_entity): Fix previous change.
3201
0e3635c2
DN
32022008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
3203
3204 * process.c: Include <limits.h>.
3205
d4835507 32062008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
3207
3208 * font.c (font_update_drivers): Fix mistake in reconstructing the
3209 driver list.
3210
32112008-12-16 Chong Yidong <cyd@stupidchicken.com>
3212
3213 * font.c (font_clear_cache): Fix format of font cache data.
3214
e2cbc401
CY
32152008-12-15 Chong Yidong <cyd@stupidchicken.com>
3216
3217 * xftfont.c (xftfont_open): Free Xft font pattern if
3218 XftFontOpenPattern fails.
3219
3220 * xterm.c (x_free_frame_resources): Remove extraneous call to
3221 free_frame_faces.
3222
b131d535
CY
32232008-12-13 Chong Yidong <cyd@stupidchicken.com>
3224
3225 * xterm.c (x_delete_display): Move xim_close_dpy call to
3226 x_delete_terminal.
3227 (x_delete_terminal): Call xim_close_dpy.
3228
e6df5336
JR
32292008-12-13 Jason Rumney <jasonr@gnu.org>
3230
3231 * w32font.c (intern_font_name): New function.
3232 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
3233 (w32font_open_internal, Fx_select_font): Decode font name.
3234 (fill_in_logfont, list_all_matching_fonts): Encode font name.
3235
3236 * w32font.h (intern_font_name): Declare new function.
3237
3238 * w32uniscribe.c (add_opentype_font_name_to_list):
3239 Use intern_font_name.
3240
20d68145
CY
32412008-12-13 Chong Yidong <cyd@stupidchicken.com>
3242
9f2554de
CY
3243 * frame.c (Fdelete_frame): Call free_font_driver_list.
3244
3d9bec9a
CY
3245 * font.c (free_font_driver_list): Implement missing function.
3246
20d68145
CY
3247 * w32term.c (w32_term_init): Don't initialize the image cache
3248 here; it will be done in init_frame_faces.
3249
3250 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
3251 (struct x_display_info): Remove unused member null_pixel. New
3252 member xim_callback_data.
3253
3254 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
3255 (xim_initialize): Save pointer to callback function data.
3256 (xim_close_dpy): Free callback function data. Call XCloseIM,
3257 reverting 2008-11-04 change by David Smith.
3258 (x_term_init): Don't initialize the image cache here; it will be
3259 done in init_frame_faces. Remove ancient "null_pixel" cruft.
3260 (x_delete_display): Free x_dnd_atoms member.
3261
96f9306b
KH
32622008-12-13 Kenichi Handa <handa@m17n.org>
3263
6dec9044
JB
3264 * font.c (font_rescale_ratio): Moved from xfaces.c.
3265 Argument type changed. Handle a font-spec too.
96f9306b 3266 (font_score): Check Vface_font_rescale_alist.
6dec9044 3267 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
3268
3269 * xfaces.c (font_rescale_ratio): Moved to font.c.
3270
8d5b4964
CY
32712008-12-13 Chong Yidong <cyd@stupidchicken.com>
3272
3273 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
3274
e6df5336
JR
32752008-12-12 Jason Rumney <jasonr@gnu.org>
3276
3277 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
3278 Vwindow_system_version to the real w32 major version.
3279
97c6058a
DN
32802008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
3281
3282 * term.c (init_tty): Move setting the terminal name before the
3283 potential user: maybe_fatal.
3284
ec4e88d7
CY
32852008-12-11 Chong Yidong <cyd@stupidchicken.com>
3286
d4835507
JB
3287 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
3288 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 3289
b4233ec9
JR
32902008-12-11 Jason Rumney <jasonr@gnu.org>
3291
8ec71e23 3292 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 3293 SYMBOL_CHARSET. (Bug#547)
8ec71e23 3294
b4233ec9 3295 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 3296 size for surrogates. (Bug#1096, bug#872)
b4233ec9 3297
011a0143
JB
32982008-12-11 Juanma Barranquero <lekktu@gmail.com>
3299
3300 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
3301
3c309f34
JB
33022008-12-11 Juanma Barranquero <lekktu@gmail.com>
3303
3304 * process.c (Fsystem_process_attributes, syms_of_process):
3305 Fix typo in name of Ssystem_process_attributes.
3306 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
3307
fedc6ab5
JB
33082008-12-11 Juanma Barranquero <lekktu@gmail.com>
3309
3310 * syntax.c (Fmodify_syntax_entry): Doc fix.
3311
ba3de0e8
JB
33122008-12-10 Juanma Barranquero <lekktu@gmail.com>
3313
3314 * font.c (Ffont_spec): Move usage to end of docstring.
3315
174f1c74
JR
33162008-12-10 Jason Rumney <jasonr@gnu.org>
3317
3318 * w32font.c (Qcham): New symbol.
3319 (font_supported_scripts): Add cham, and comments for other new
3320 scripts in bitfield from OpenType spec.
9d32f818
JR
3321 (add_font_entity_to_list): Limit unicode-sip fonts to those that
3322 contain characters beyond the bmp.
174f1c74 3323
7b649478
KH
33242008-12-10 Kenichi Handa <handa@m17n.org>
3325
3326 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 3327 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
3328 Qunicode_sip.
3329
2133e2d1
JB
33302008-12-10 Juanma Barranquero <lekktu@gmail.com>
3331
3332 * coding.c (QCdefault_char): Rename from QCdefalut_char.
3333 (Fcoding_system_put): Use QCdefault_char.
3334 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
3335
9af886ee
CY
33362008-12-09 Chong Yidong <cyd@stupidchicken.com>
3337
74d819eb
CY
3338 * xftfont.c (syms_of_xftfont): Fix typo.
3339
4ccfa1c0 3340 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 3341
7c19d3ae
DN
33422008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
3343
3344 * emacs.c (main): Close daemon_pipe on exec.
3345
567826bb
CY
33462008-12-08 Chong Yidong <cyd@stupidchicken.com>
3347
3348 * termchar.h (struct tty): New members termcap_term_buffer and
3349 termcap_strings_buffer.
3350
3351 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 3352 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
3353 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
3354 All callers changed.
3355 (init_tty): Store termcap data and string buffers in new struct
3356 tty members termcap_term_buffer and termcap_strings_buffer.
3357 (delete_tty): Free them.
4ccfa1c0 3358 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 3359
aa96c42b
SZ
33602008-12-07 Seiji Zenitani <zenitani@mac.com>
3361
3362 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 3363 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 3364
b7e1d896
CY
33652008-12-06 Chong Yidong <cyd@stupidchicken.com>
3366
3367 * coding.c (make_conversion_work_buffer): Disable buffer
3368 modification hooks in the work buffer.
3369
b5ec91a5
EZ
33702008-12-05 Eli Zaretskii <eliz@gnu.org>
3371
3372 * process.c (procfs_system_process_attributes): If `nread' has a
3373 negative value, assign zero to it.
3374
a5d2a52b
CY
33752008-12-05 Chong Yidong <cyd@stupidchicken.com>
3376
68c5540b 3377 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 3378
7bf1bb21
KH
33792008-12-05 Kenichi Handa <handa@m17n.org>
3380
3381 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
3382 second character is a combining character.
3383
2fdc7d00
EZ
33842008-12-05 Eli Zaretskii <eliz@gnu.org>
3385
3386 * process.c (procfs_system_process_attributes): Don't use cmd,
3387 cmdsize, and q without initializing them first.
3388
bf6bfba8
JR
33892008-12-04 Jason Rumney <jasonr@gnu.org>
3390
3391 * w32font.c (w32font_draw): Initialize orig_clip before getting
3392 it, and delete it when finished.
3393
a3b1a468
DN
33942008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
3395
3396 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
3397 case when running as a daemon before detaching.
3398
8b8be8eb
JB
33992008-12-03 Juanma Barranquero <lekktu@gmail.com>
3400
805f2638 3401 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 3402
b1bde622
KH
34032008-12-03 Kenichi Handa <handa@m17n.org>
3404
e500c47d
KH
3405 * font.c (font_at): Set `multibyte' at first.
3406
ca516334
KH
3407 * coding.c (decode_coding_charset): Check type of an element of
3408 vector VALIDS.
7bf1bb21 3409 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 3410
4ccfa1c0 3411 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
3412 (font_for_char): Likewise.
3413
1e5ecd37
CY
34142008-12-03 Chong Yidong <cyd@stupidchicken.com>
3415
d5b01609 3416 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
3417 (font_update_lface): Handle fonts with corrupted size specs,
3418 i.e. non-int and non-float.
d5b01609 3419
11e3a6e4 3420 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 3421 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 3422 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 3423
ab06788b
CY
3424 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
3425
1e5ecd37 3426 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 3427 underline_minimum_offset for underline position.
1e5ecd37 3428
63c125ab
DN
34292008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
3430
3431 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
3432
3433 * character.c (c_string_width): Specify the type for LEN.
3434
3a8406e1
KH
34352008-12-03 Kenichi Handa <handa@m17n.org>
3436
4ccfa1c0 3437 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 3438 (decode_coding_utf_8): Likewise.
4ccfa1c0 3439 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 3440 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 3441
651df7d9
CY
34422008-12-02 Chong Yidong <cyd@stupidchicken.com>
3443
3444 * keyboard.c (make_lispy_position): Only use PT if the selected
3445 window is current.
3446
1f625c6c
AS
34472008-12-02 Andreas Schwab <schwab@suse.de>
3448
f7741ce9
AS
3449 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
3450
1f625c6c
AS
3451 * doprnt.c (doprnt1): Fix size of charbuf.
3452
92bc2678
CY
34532008-12-02 Chong Yidong <cyd@stupidchicken.com>
3454
3455 * keyboard.c (timer_check): Revert last change.
3456
93b9e8cc
JB
34572008-12-02 Juanma Barranquero <lekktu@gmail.com>
3458
3459 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
3460
fd7a37d5
JB
34612008-12-01 Juanma Barranquero <lekktu@gmail.com>
3462
3463 * makefile.w32-in: Update dependencies.
3464 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
3465
c115043b
AS
34662008-12-01 Andreas Schwab <schwab@suse.de>
3467
3468 * font.c (register_font_driver): Use xmalloc.
3469 (font_put_frame_data): Likewise.
3470
f5668d2a
CY
34712008-12-01 Chong Yidong <cyd@stupidchicken.com>
3472
860d96be
CY
3473 * xfaces.c (realize_x_face): Make abort condition clearer.
3474
f5668d2a
CY
3475 * gtkutil.c (update_frame_tool_bar): Initialize variable.
3476
379c17e7
CY
34772008-11-30 Chong Yidong <cyd@stupidchicken.com>
3478
3479 * keyboard.c (timer_check): After a timer runs, ensure that the
3480 selected window's buffer is current.
3481
35f36d65
JB
34822008-11-30 Juanma Barranquero <lekktu@gmail.com>
3483
f952c61c
JB
3484 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
3485 It was accidentally restored by the Unicode merge.
3486
35f36d65
JB
3487 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
3488
b23077df
JB
34892008-11-29 Juanma Barranquero <lekktu@gmail.com>
3490
3491 * w32proc.c: Include "coding.h".
3492 (Fw32_short_file_name): Encode filename passed to Windows API.
3493 (Fw32_long_file_name): Encode filename passed to Windows API and
3494 decode back the result. (Bug#1433)
3495
b8ebe9dd
KH
34962008-11-29 Kenichi Handa <handa@m17n.org>
3497
8cc53f96
KH
3498 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
3499 not before accessing it.
3500
b8ebe9dd
KH
3501 * charset.c (Fdefine_charset_internal): After calculating
3502 min_char, max_char, and fastmap, copy the charset structure again.
3503 (encode_char): Fix the previous change.
3504
59bc82c0
SZ
35052008-11-28 Seiji Zenitani <zenitani@mac.com>
3506
3507 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
3508
3509 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
3510
3511 * nsterm.m (x_set_frame_alpha): New function.
3512
32247e3d
EZ
35132008-11-27 Eli Zaretskii <eliz@gnu.org>
3514
3515 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
3516
b003e5ff
JB
35172008-11-27 Juanma Barranquero <lekktu@gmail.com>
3518
3519 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
3520 pointer to check_face_name.
3521
708550f5
KH
35222008-11-27 Kenichi Handa <handa@m17n.org>
3523
3524 * category.h (SET_CATEGORY_SET): Call set_category_set.
3525 (set_category_set): Extern it.
3526
3527 * category.c (hash_get_category_set): New function.
3528 (Fmodify_category_entry): Adjusted for the change of
3529 char_table_ref_and_range. Call hash_get_category_set to get a
3530 category set to store in the table.
3531
3532 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
3533 Funify_charset.
3534
2ae37cf0 3535 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
3536 (DECODE_CHAR): Check if the decoder vector is ready.
3537 (ENCODE_CHAR): Check if the encoder char-table is ready.
3538 (maybe_unify_char): Extern it.
3539
3540 * charset.c (Vchar_unified_charset_table): Delete it.
3541 (inhibit_load_charset_map): New variable.
3542 (temp_charset_work): New variable.
3543 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
3544 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
3545 New macros.
3546 (load_charset_map): Meaning of control_flag changed. If
3547 inhibit_load_charset_map is nonzero, setup a table in
3548 temp_charset_work.
3549 (load_charset): New argument control_flag.
3550 (map_charset_for_dump): New function.
3551 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
3552 map_charset_for_dump.
3553 (Fdefine_charset_internal): If the charset method is MAP, load
3554 mapping tables by calling load_charset.
3555 (Funify_charset): Don't load a mapping table but directly set
3556 Vchar_unify_table.
3557 (maybe_unify_char): New function.
3558 (decode_char): Don't handle the deleted method MAP_DEFERRED.
3559 Handle the case of inhibit_load_charset_map being nonzero.
3560 (encode_char): Don't handle the deleted method MAP_DEFERRED.
3561 Handle the case of inhibit_load_charset_map being nonzero.
3562 (Fclear_charset_maps): Just free temp_charset_work.
3563 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
3564 variable.
3565
3566 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
3567 change of char_table_ref_and_range.
3568 (char_table_ref_and_range): Change the meaning of argument FROM
3569 and TO. Now the caller must provide initial values for *FROM
3570 and *TO.
3571
3572 * fontset.c (fontset_add): Adjusted for the change of
3573 char_table_ref_and_range.
3574 (fontset_get_font_group): Likewise.
3575 (Ffontset_info): Likewise.
3576
3577 * keymap.c (describe_vector): Adjusted for the change of
3578 char_table_ref_and_range. For char-table, put boundary between
3579 non-ASCII and 8-bit characters.
3580
3581 * print.c (print_object): For bool-vector, delete unnecessary
3582 check of ASCII_BYTE_P.
3583
9196133b
JR
35842008-11-26 Jason Rumney <jasonr@gnu.org>
3585
3586 * w32font.c (w32font_open_internal): Don't include external
9acef61c 3587 leading in font height. (Bug#879)
9196133b 3588
9f688acf
GM
35892008-11-26 Glenn Morris <rgm@gnu.org>
3590
3591 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
3592 redefinition with ifdef. (Bug#1383)
3593
90d19aff
AR
35942008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3595
3596 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
3597
4ccfa1c0 35982008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
3599
3600 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
3601 New EmacsView methods.
3602 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
3603 Fixes bug #1048,1357,1414.
3604
36052008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3606
3607 Fix bug #1362.
3608 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
3609 is not an indexed color.
3610 * nsterm.m (free_indexed_color): Add argument checking.
3611 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
3612
e7d5ecb3
CY
36132008-11-24 Chong Yidong <cyd@stupidchicken.com>
3614
3615 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
3616 Document confirm-after-completion value for
3617 minibuffer-completion-confirm.
3618
c285743c
JR
36192008-11-24 Jason Rumney <jasonr@gnu.org>
3620
3621 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
3622 warning.
3623
b0857706
JR
36242008-11-23 Jason Rumney <jasonr@gnu.org>
3625
3626 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
3627 restored before returning.
3628
3629 * w32font.c (check_face_name): New function.
3630 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 3631 fonts. (Bug#642)
b0857706 3632
ee50ff07
MR
36332008-11-22 Martin Rudalics <rudalics@gmx.at>
3634
3635 * buffer.c (Fswitch_to_buffer): Reword and mention new option
3636 confirm-nonexistent-file-or-buffer in doc-string.
3637
b8ff72fa
SM
36382008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
3639
3640 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
3641 Fix copy/paste typo. Add checks.
3642
cee53ed4
KH
36432008-11-21 Kenichi Handa <handa@m17n.org>
3644
3645 * coding.c (detect_coding_iso_2022): Reject invalid composition
3646 sequence.
3647 (DECODE_COMPOSITION_START): If the current source is the last
3648 block, and the current composition doesn't end, regard this
3649 sequence as invalid.
3650 (decode_coding_iso_2022): Handle invalid composition sequence.
3651
f6ef1e65
MR
36522008-11-20 Martin Rudalics <rudalics@gmx.at>
3653
3654 * window.c (coordinates_in_window): Don't return
3655 ON_VERTICAL_BORDER for the rightmost position of a mode/header
3656 line when the window is not the rightmost one. (Bug#1372)
3657
e08b1705
MR
36582008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
3659
3660 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
3661
ad98e89f
EZ
36622008-11-15 Eli Zaretskii <eliz@gnu.org>
3663
3664 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
3665 and bright_bg if noninteractive is non-zero.
3666
fb098a4b
CY
36672008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3668
3669 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
3670 x_draw_glyph_string_background.
3671
3672 * w32term.c (x_draw_glyph_string): Likewise.
3673
ce952b6e
CY
36742008-11-15 Chong Yidong <cyd@stupidchicken.com>
3675
3676 * xterm.c (x_draw_glyph_string): Stop drawing the background of
3677 the next glyph string once past the overhang width.
3678
3679 * nsterm.m (ns_draw_glyph_string): Likewise.
3680
3681 * w32term.c (x_draw_glyph_string): Likewise.
3682
26ea7079
CY
36832008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
3684
3685 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
3686 double file close.
3687
1c33c906
MR
36882008-11-14 Martin Rudalics <rudalics@gmx.at>
3689
3690 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
3691 dedicated status of window before attempting to display another
3692 buffer in it.
3693
8fc29035
JB
36942008-11-14 Juanma Barranquero <lekktu@gmail.com>
3695
3696 * msdos.c (Fmsdos_long_file_names):
3697 (syms_of_msdos) <dos-unsupported-char-glyph>:
3698 * dosfns.c (Fint86): Fix typos in docstrings.
3699
55fb4286
EZ
37002008-11-14 Eli Zaretskii <eliz@gnu.org>
3701
3702 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
3703
3fda0315
KY
37042008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
3705
3706 * puresize.h (BASE_PURESIZE): Increase to 1260000.
3707
7e849c17
CY
37082008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
3709
3710 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
3711
3712 * frame.h: Negative alpha means "don't touch".
3713
3714 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
3715
3716 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
3717
b9fd67bd
DN
37182008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
3719
3720 * hftctl.c:
3721 * chpdef.h:
3722 * acldef.h: Remove files used only for systems no longer supported.
3723
3724 * Makefile.in: Fix .o alphabetical ordering.
3725 (hftctl.o): Remove dependency, file removed.
3726 (keymap.o, print.o): Depend on charset.h.
3727
d5998e03
KH
37282008-11-10 Kenichi Handa <handa@m17n.org>
3729
2ae37cf0 3730 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 3731
be70e183
CY
37322008-11-08 Chong Yidong <cyd@stupidchicken.com>
3733
3734 * dired.c (file_name_completion): If completion_ignore_case is
3735 enabled, ignore case when checking completion-regexp-list.
3736
7cf94eac
EZ
37372008-11-08 Eli Zaretskii <eliz@gnu.org>
3738
3739 * vm-limit.c (get_lim_data): Fix last change.
3740
ee107a89
KH
37412008-11-08 Kenichi Handa <handa@m17n.org>
3742
3743 * character.c (Fget_byte): New function.
3744 (syms_of_character): Defsubr Fget_byte.
3745
5fd15622
CY
37462008-11-07 Chong Yidong <cyd@stupidchicken.com>
3747
3748 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
3749 cursor position is valid after scrolling.
3750
13d62fad
JB
37512008-11-06 Juanma Barranquero <lekktu@gmail.com>
3752
3753 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
3754
a1dd2936
GM
37552008-11-06 Glenn Morris <rgm@gnu.org>
3756
3757 * xterm.c (handle_one_xevent): Don't let popup menus cause
3758 mouse-autoselect-window related window switching. (Bug#1261)
3759
860cd236
CY
37602008-11-04 David Smith <davidsmith@acm.org> (tiny change)
3761
3762 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
3763
653a3150
AS
37642008-11-04 Andreas Schwab <schwab@suse.de>
3765
3766 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
3767
870f5cac
CY
37682008-11-03 Chong Yidong <cyd@stupidchicken.com>
3769
3770 * xfns.c (Fx_wm_set_size_hint): New function.
3771
1e02f3cb
MR
37722008-11-03 Martin Rudalics <rudalics@gmx.at>
3773
3774 * textprop.c (Fprevious_single_char_property_change): Return 0
3775 when there's no change in a string. (Bug#1301)
3776
e630dfc6
MR
37772008-11-02 Martin Rudalics <rudalics@gmx.at>
3778
3779 * frame.c (do_switch_frame): New argument NORECORD passed to
3780 Fselect_window.
3781 (Fselect_frame): New argument NORECORD passed to
3782 do_switch_frame.
3783 (Fset_frame_selected_window): New argument NORECORD passed to
3784 Fselect_frame.
3785 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
3786 in call of do_switch_frame.
3787 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
3788 Handle NORECORD argument in call of Fselect_frame.
3789 * lisp.h (do_switch_frame, Fselect_frame)
3790 (Fset_frame_selected_window): Adjust declarations.
3791 * window.c (select_frame_norecord): New function.
3792 (run_window_configuration_change_hook): Use it and call
3793 Fselect_frame with NORECORD set.
3794 (Fselect_window): Pass NORECORD to Fselect_frame.
3795 (Fset_window_configuration): Handle NORECORD argument in call of
3796 do_switch_frame.
3797 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
3798 Fset_frame_selected_window.
3799 * keyboard.c (command_loop_1): Handle NORECORD in call of
3800 Fselect_frame (currently ifdefd).
3801
9020b223
GM
38022008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
3803
3804 * emacs.c (USAGE2): Untabify.
3805
793ffee8
SM
38062008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
3807
3808 * composite.c (fill_gstring_header): Fix copy/paste typo.
3809
ab6d1131
MR
38102008-10-31 Martin Rudalics <rudalics@gmx.at>
3811
3812 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
3813 (Fother_window): Rename argument and rewrite doc-string.
3814 (select_window_norecord): Fix return value. (Bug#1276)
3815
601a9cf1
JB
38162008-10-30 Juanma Barranquero <lekktu@gmail.com>
3817
3818 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
3819 new frames overriding foreground for tooltips. Based on similar patch
3820 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
3821
813b0652
CY
38222008-10-29 Chong Yidong <cyd@stupidchicken.com>
3823
3824 * emacs.c (Fdaemon_initialized): Initialize nfd.
3825
4414f58f
MR
38262008-10-29 Martin Rudalics <rudalics@gmx.at>
3827
3828 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
3829 (Fwindow_text_height): Clarify doc-strings.
3830 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
3831 doc-string of window-scroll-functions.
3832
ecdcaa09
RS
38332008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
3834
3835 * category.c (syms_of_category): Fix typo in docstring.
3836
23fe745a
JB
38372008-10-28 Juanma Barranquero <lekktu@gmail.com>
3838
3839 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
3840 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
3841 Fix typos in docstrings.
3842
ff808935
DN
38432008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
3844
3845 * emacs.c (daemon_pipe): Make non-static.
3846 (IS_DAEMON): Move definition ...
3847 * lisp.h (IS_DAEMON): ... here.
3848 (daemon_pipe): Declare.
3849 (is_daemon): Remove.
3850 * dispnew.c (init_display): Use IS_DAEMON.
3851
fc012771
SM
38522008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
3853
3854 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
3855 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
3856
3857 * emacs.c (is_daemon): Remove.
3858 (main): Don't set is_daemon.
3859 (IS_DAEMON): New macro.
3860 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 3861 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
3862 parent exits.
3863 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
3864
d8bdbe6f
CY
38652008-10-27 Chong Yidong <cyd@stupidchicken.com>
3866
d1a072bf
CY
3867 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
3868 over-sized glyph, draw it with the default glyph width.
3869
e2e325aa
CY
3870 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
3871 glyph, draw it with the default glyph width.
3872
3873 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
3874 glyph, draw it with the default glyph width.
3875
d8bdbe6f
CY
3876 * xdisp.c (try_scrolling): When computing the distance from the
3877 scroll margin to PT, try moving some distance past the window
3878 bottom before giving up.
3879
7bfac547
MR
38802008-10-27 Martin Rudalics <rudalics@gmx.at>
3881
3882 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
3883 (Fset_window_buffer): Explain in doc-string that a window can be
3884 "strongly" dedicated to its buffer.
3885
4ff029f6
DN
38862008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
3887
3888 * emacs.c (daemon_name): New variable.
3889 (main): Deal with --daemon=SERVER_NAME.
3890 (Fdaemonp): Return a name if one was passed to --daemon.
3891
5790ef40
DN
38922008-10-26 Romain Francoise <romain@orebokech.com>
3893
f9bd0df9 3894 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
3895 (main): Create a pipe before forking, make the parent exit only after
3896 the child has closed its end of the pipe. Move closing the
3897 descriptors ...
3898 (Fdaemon_initialized): ... here. New function.
3899
f5385255
SM
39002008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
3901
4d632321
SM
3902 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
3903 the previous unoptimized table.
3904
f5385255
SM
3905 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
3906 the distinction between non-nil and non-t value of `dedicated'.
3907
6c56a0f3
CY
39082008-10-25 Chong Yidong <cyd@stupidchicken.com>
3909
3910 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 3911 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 3912
fec89261
MR
39132008-10-25 Martin Rudalics <rudalics@gmx.at>
3914
3915 * window.c (Fget_buffer_window, Fdelete_windows_on)
3916 (Freplace_buffer_in_windows): Make buffer argument optional and
3917 rename to buffer_or_name.
3918
34fcddd0
CY
39192008-10-24 Chong Yidong <cyd@stupidchicken.com>
3920
f5385255
SM
3921 * xdisp.c (handle_single_display_spec, handle_display_prop):
3922 Undo 2005-05-16 change.
34fcddd0
CY
3923 (handle_stop): Pop iterator if it's loaded with an empty string.
3924 (get_overlay_strings_1): Don't save iterator if it's loaded with
3925 an empty string (bug#1201).
3926
064766f2
KH
39272008-10-24 Kenichi Handa <handa@m17n.org>
3928
3929 * ftfont.c (ftfont_otf_features): Fix previous change.
3930 (ftfont_otf_capability): Check FeatureList.FeatureCount before
3931 calling ftfont_otf_features.
3932
f9bd0df9 39332008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
3934
3935 * font.c (font_match_p): Fix for the case that a vector of
3936 characters is in script-representative-chars.
3937
1dae9197
MA
39382008-10-24 Michael Albinus <michael.albinus@gmx.de>
3939
3940 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 3941 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
3942 (xd_read_queued_messages): Catch Qdbus_error from the macros.
3943 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
3944 macro. (Bug#1186).
3945
f9bd0df9 39462008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
3947
3948 * s/sol2-10.h: New file.
3949
878a4584
JB
39502008-10-23 Juanma Barranquero <lekktu@gmail.com>
3951
3952 * xdisp.c (fill_glyph_string): Fix typo in source (though the
3953 poor beast has survived 9+ years and the jump from xterm.c!).
3954
cd265ca6
MR
39552008-10-23 Martin Rudalics <rudalics@gmx.at>
3956
3957 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
3958 Reword doc-string.
f5385255 3959 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 3960
472a4dc9
JB
39612008-10-23 Juanma Barranquero <lekktu@gmail.com>
3962
3963 * character.c (syms_of_character) <script-representative-chars>:
3964 <unicode-category-table>: Doc fixes.
3965
159bd5a2
NF
39662008-10-23 Noah Friedman <friedman@splode.com>
3967
3968 * coding.c (make_conversion_work_buffer): Check that
3969 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
3970 Fget_buffer_create.
3971
49f9c344
KH
39722008-10-23 Kenichi Handa <handa@m17n.org>
3973
3974 * font.c (font_add_log): Check the values of extra properties.
3975
12bb3111
MR
39762008-10-22 Martin Rudalics <rudalics@gmx.at>
3977
3978 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
3979 Reword doc-string.
3980 (Fset_window_parameter): Use NILP.
3981 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 3982 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 3983
bbeb4e99
JB
39842008-10-22 Juanma Barranquero <lekktu@gmail.com>
3985
3986 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
3987
39882008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
3989
3990 * nsfns.m (ns_appkit_version): New function.
3991 (x-server-version): Use it.
3992 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
3993 (x-server-vendor): Don't check_ns().
3994
3995 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
3996
a9b555d3
JB
39972008-10-22 Juanma Barranquero <lekktu@gmail.com>
3998
3999 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
4000 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
4001
4626499f
KH
40022008-10-22 Kenichi Handa <handa@m17n.org>
4003
e3681952
KH
4004 * syntax.c (scan_words): Call word_boundary_p instead of comparing
4005 scripts.
4006
4626499f
KH
4007 * category.c (word_boundary_p): Check scripts instead of charset.
4008 Handle nil value in word-separating-categories and
4009 word-combining-categories.
4010 (syms_of_category): Fix docstrings of word-separating-categories
4011 and word-combining-categories.
4012
1560f91a
EZ
40132008-10-21 Eli Zaretskii <eliz@gnu.org>
4014
4015 * coding.c (Fencode_coding_region, Fdecode_coding_region)
4016 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
4017
f4668441
MR
40182008-10-21 Martin Rudalics <rudalics@gmx.at>
4019
4020 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
4021 Rename arg "buffer" to "buffer_or_name".
4022 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
4023 it optional.
4024 (no_switch_window): Remove since the return value is not used.
a9b555d3 4025 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
4026 Consider window as dedicated when Fwindow_dedicated_p returns a
4027 non-nil value.
4028 * lisp.h: Remove prototype for no_switch_window.
4029
fd75ddb2
JD
40302008-10-21 Jan Djärv <jan.h.d@swipnet.se>
4031
4032 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 4033 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 4034
07295713
KH
40352008-10-21 Kenichi Handa <handa@m17n.org>
4036
4037 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
4038 check Vlatin_extra_code_table.
4039
712adc82
EZ
40402008-10-20 Eli Zaretskii <eliz@gnu.org>
4041
4042 * fileio.c (Fset_file_modes): Doc fix.
4043
f549eb0b
MA
40442008-10-19 Michael Albinus <michael.albinus@gmx.de>
4045
4046 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
4047 in arrays.
4048
aac0c6e3
MR
40492008-10-19 Martin Rudalics <rudalics@gmx.at>
4050
4051 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
4052 Mention kill-buffer in doc-string.
4053 (Fset_window_buffer): Reinsert tem check removed in last commit.
4054 (Fenlarge_window, Fshrink_window): Have argument names and
4055 doc-string follow Elisp manual more closely.
4056
40572008-10-18 Eli Zaretskii <eliz@gnu.org>
4058
4059 * fileio.c (Fset_file_modes): Doc fix.
4060
40612008-10-18 Martin Rudalics <rudalics@gmx.at>
4062
4063 * window.c (Fwindow_width, Fset_window_start)
4064 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
4065 (Fdelete_windows_on, Freplace_buffer_in_windows):
4066 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
4067 (Fwindow_dedicated_p): Make window argument optional.
4068 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
4069 (Fset_window_buffer): Respect any non-nil dedicated value for
4070 window. Rename "buffer" argument to "buffer_or_name".
4071
40722008-10-18 Ulrich Mueller <ulm@gentoo.org>
4073
4074 * m/sh3.h: New file, machine description for SuperH.
4075
40762008-10-17 Martin Rudalics <rudalics@gmx.at>
4077
4078 * window.c (Fsplit_window): Rename arg horflag to horizontal.
4079
40802008-10-17 Kenichi Handa <handa@m17n.org>
4081
4082 * ftfont.c (ftfont_otf_features): Fix indexing
4083 gsub_gpos->FeatureList.Feature. Check the validity of indices.
4084
40852008-10-16 Magnus Henoch <mange@freemail.hu>
4086
4087 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
4088 (Fdbus_call_method_asynchronously): Ditto.
4089 This change makes C-h f display the argument list.
4090
40912008-10-16 Chong Yidong <cyd@stupidchicken.com>
4092
4093 * fileio.c (Fexpand_file_name): Doc fix.
4094
4095 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
4096 of :foreground and :background equivalent to unspecified (20.x
4097 compatibility).
4098
40992008-10-15 Eli Zaretskii <eliz@gnu.org>
4100
4101 * buffer.c (syms_of_buffer): Doc fix.
4102
41032008-10-14 Kenichi Handa <handa@m17n.org>
4104
4105 * font.c (font_clear_prop): When clearing font width, clear the
4106 average width field too.
4107
41082008-10-12 Andreas Schwab <schwab@suse.de>
4109
4110 * ftfont.c (ftfont_shape_by_flt): Make static.
4111 * ftfont.h (ftfont_shape_by_flt): Don't declare.
4112
4113 * font.c: Don't include <m17n-flt.h>.
4114
41152008-10-10 Eli Zaretskii <eliz@gnu.org>
4116
4117 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
4118
41192008-10-09 Eli Zaretskii <eliz@gnu.org>
4120
4121 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
4122 away code.
4123
41242008-10-09 Chong Yidong <cyd@stupidchicken.com>
4125
4126 * dispnew.c (update_text_area): Avoid looping due to large glyph
4127 overhangs (bug#1070).
4128
41292008-10-09 Kenichi Handa <handa@m17n.org>
4130
4131 * fontset.c (face_for_char): If face->fontset is negative, just
4132 return ascii_face.
4133
f5385255
SM
4134 * font.c (font_delete_unmatched): Fix previous change.
4135 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
4136
41372008-10-09 Martin Rudalics <rudalics@gmx.at>
4138
4139 * frame.c (Fraise_frame): On text-only terminals select frame in
4140 order to make it visible. (Bug#1061)
4141
41422008-10-08 Chong Yidong <cyd@stupidchicken.com>
4143
4144 * fontset.c (fontset_find_font): Check frame validity.
4145
41462008-10-07 Chong Yidong <cyd@stupidchicken.com>
4147
a9b555d3 4148 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
4149 (xg_display_close): Allow Emacs to close all displays (bug#985).
4150
41512008-10-06 Andreas Schwab <schwab@suse.de>
4152
f5385255 4153 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
4154
41552008-10-06 Chong Yidong <cyd@stupidchicken.com>
4156
f5385255 4157 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 4158
a9b555d3 4159 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
4160
4161 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
4162 during initialization.
4163
41642008-10-04 Eli Zaretskii <eliz@gnu.org>
4165
4166 * xdisp.c (redisplay_internal): If frame switched, redisplay the
4167 whole thing on MSDOS frames as well as on a TTY.
4168
4169 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
4170 well as for TTY.
4171 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
4172 well as on a TTY.
4173
4174 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
4175 as well as for TTY.
4176
4177 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
4178
4179 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
4180 MSDOS frames as well.
4181
41822008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
4183
4184 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
4185 correct arguments.
b71ac3dd 4186 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
4187
41882008-10-03 Glenn Morris <rgm@gnu.org>
4189
4190 * emacs.c (USAGE1): Add --daemon.
4191
41922008-10-02 Eli Zaretskii <eliz@gnu.org>
4193
4194 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
4195 100, so it's in percents as advertised.
4196
41972008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
4198
4199 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
4200 (ns_output.current_cursor, ns_output.desired_cursor)
4201 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
4202 (FRAME_NEW_CURSOR_COLOR): Remove.
4203
4204 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 4205 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
4206 enumeration (HOLLOW_BOX_CURSOR, etc.).
4207
4208 * nsterm.m (ns_frame_rehighlight): Remove commented code.
4209 (draw_window_cursor): Simplify code.
f5385255
SM
4210 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
4211 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 4212 updates manually.
a9b555d3
JB
4213 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
4214 Use core Emacs cursor types.
aac0c6e3 4215
b8ff72fa 4216 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
4217
42182008-10-02 Martin Rudalics <rudalics@gmx.at>
4219
4220 * process.c (Faccept_process_output): Fix doc-string.
4221
42222008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
4223
4224 * gmalloc.c (__sbrk): Also define for uClibc.
4225
4226 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
4227 for uClibc.
4228
42292008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4230
4231 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
4232 styles.
4233 (nsfont_open): Reenable the cache.
4234
42352008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4236
4237 * font.c (font_matching_entity): Reflect ATTRS in font selection.
4238 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
4239
42402008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
4241
4242 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
4243 a suspended terminal.
4244
42452008-09-30 Michael Albinus <michael.albinus@gmx.de>
4246
4247 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
4248
42492008-09-30 Eli Zaretskii <eliz@gnu.org>
4250
4251 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
4252
42532008-09-30 Chong Yidong <cyd@stupidchicken.com>
4254
4255 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
4256 in a continued line coincides with a line beginning.
4257
42582008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4259
4260 * nsfont.m (nsfont_trait_distance): Fix bug.
4261 (nsfont_list): Return a list rather than a vector (syncs with Handa
4262 changes of 2008-05-14).
4263 (nsfont_open): Improve logging.
4264
42652008-09-29 Andreas Schwab <schwab@suse.de>
4266
4267 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
4268
42692008-09-28 Martin Rudalics <rudalics@gmx.at>
4270
4271 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
4272 name as char-resolve-modifiers.
4273 Reported by: Markus Triska <markus.triska@gmx.at>
4274
42752008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
4276
4277 * dispnew.c (init_display): Return earlier when running as a daemon.
4278
42792008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
4280
4281 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
4282
42832008-09-27 Eli Zaretskii <eliz@gnu.org>
4284
4285 * composite.c (Fcomposition_get_gstring)
4286 (Fcompose_region_internal, Fcompose_string_internal)
4287 (Ffind_composition_internal): Doc fix.
4288 (syms_of_composite) <compose-chars-after-function>: Doc fix.
4289 (syms_of_composite) <auto-composition-function>: Doc fix.
4290 (syms_of_composite) <composition-function-table>: Doc fix.
4291
42922008-09-25 Chong Yidong <cyd@stupidchicken.com>
4293
4294 * search.c (wordify): New argument for lax word-ends.
4295 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
4296
42972008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
4298
4299 * lisp.h (is_daemon): Declare.
4300 * dispnew.c (init_display): Do not try to initialize the terminal
4301 when running as a daemon.
4302
43032008-09-22 Chong Yidong <cyd@stupidchicken.com>
4304
4305 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
4306 x_display_pixel_height.
4307
43082008-09-22 Martin Rudalics <rudalics@gmx.at>
4309
4310 * undo.c (record_point): Don't call Fundo_boundary for first
4311 change. (Bug#731)
4312
43132008-09-22 Juanma Barranquero <lekktu@gmail.com>
4314
4315 * emacs.c (Fdaemonp): Doc fix.
4316
43172008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
4318
4319 * emacs.c (main): Place #ifdef in the proper place.
4320
43212008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
4322
4323 * emacs.c (standard_args): Add --daemon.
4324 (main): Disconnect from the terminal when --daemon is passed.
4325 (is_daemon): New variable.
4326 (Fdaemonp): New function.
4327 (syms_of_emacs): Defsubr it.
4328
43292008-09-20 Chong Yidong <cyd@stupidchicken.com>
4330
4331 * xdisp.c (get_next_display_element): Handle string display
4332 correctly when checking for the end of a box run.
4333
43342008-09-20 Glenn Morris <rgm@gnu.org>
4335
4336 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
4337 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
4338 (Frename_file): Avoid copying to trash if a rename involves
4339 a delete. (Bug#964).
4340
43412008-09-20 Eli Zaretskii <eliz@gnu.org>
4342
4343 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
4344 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
4345 frames as well as termcap frames.
4346 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
4347 get_named_tty.
4348
43492008-09-19 Eli Zaretskii <eliz@gnu.org>
4350
4351 * process.c (procfs_system_process_attributes): Fix cmdline in
4352 case /proc/PID/cmdline is empty.
4353
4354 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
4355 x_display_pixel_height.
4356
43572008-09-19 Juanma Barranquero <lekktu@gmail.com>
4358
4359 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
4360
4361 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
4362 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
4363
43642008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
4365
4366 * dispextern.h (struct it): Move line_wrap away from the middle of
4367 bitfields. Move voffset in struct iterator_stack_entry after the
4368 bitfields. Move tab_width near after another short.
4369
43702008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
4371
4372 * frame.h (struct frame): Move alpha from the middle of bitfields.
4373
4374 * window.h (struct window): Move frozen_window_start_p after the
4375 rest of the bitfields to reduce padding.
4376
43772008-09-18 Chong Yidong <cyd@stupidchicken.com>
4378
4379 * xterm.h (x_display_info): Remove `height' and `width' members.
4380
4381 * nsterm.h (ns_display_info): Remove `height' and `width' members.
4382
4383 * w32term.h (w32_display_info): Remove `height', `width',
4384 `height_in', and `width_in' members.
4385
b8ff72fa
SM
4386 * xterm.c (x_display_pixel_height, x_display_pixel_width):
4387 New functions.
aac0c6e3
MR
4388 (x_calc_absolute_position): Use them.
4389 (x_term_init): Omit removed `height' and `width' members.
4390
b8ff72fa
SM
4391 * w32term.c (x_display_pixel_height, x_display_pixel_width):
4392 New functions.
aac0c6e3
MR
4393 (w32_read_socket, x_calc_absolute_position): Use them.
4394 (w32_initialize_display_info, w32_term_init): Omit removed members
4395 of w32_display_info.
4396
b8ff72fa
SM
4397 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
4398 New functions.
4399 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 4400
b8ff72fa
SM
4401 * xterm.c (x_display_pixel_height, x_display_pixel_width):
4402 New functions.
aac0c6e3
MR
4403 (x_calc_absolute_position): Use them.
4404 (x_term_init): Omit removed `height' and `width' members.
4405
4406 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
4407 (compute_tip_xy):
4408 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
4409 * xmenu.c (menu_position_func): Use x_display_pixel_height and
4410 x_display_pixel_width.
4411
44122008-09-18 Kenichi Handa <handa@m17n.org>
4413
4414 * composite.c (fill_gstring_header): Don't check FROM and TO here.
4415 (composition_compute_stop_pos): Fix handling of static composition.
4416 (Fcomposition_get_gstring): Check FROM and TO at first.
4417
44182008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
4419
46e722a9 4420 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
4421 mixup (YAILOM).
4422
44232008-09-17 Chong Yidong <cyd@stupidchicken.com>
4424
4425 * indent.c (Fvertical_motion): Use position reported by iterator
4426 instead of PT for determining screen motion (bug#943).
4427
44282008-09-17 Romain Francoise <romain@orebokech.com>
4429
4430 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
4431
44322008-09-17 Kenichi Handa <handa@m17n.org>
4433
4434 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
4435
4436 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
4437 if necessary.
4438
44392008-09-16 Kenichi Handa <handa@m17n.org>
4440
4441 * coding.c (make_conversion_work_buffer): Avoid calling
4442 Fget_buffer_create if it is not necessary.
4443
44442008-09-15 Martin Rudalics <rudalics@gmx.at>
4445
4446 * window.c (Fselect_window): Don't update window_select_count and
4447 use_time when norecord is not nil.
4448
44492008-09-14 Kenichi Handa <handa@m17n.org>
4450
4451 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
4452 specpdl_ptr.
4453
44542008-09-12 Kenichi Handa <handa@m17n.org>
4455
4456 * indent.c (scan_for_column): Don't handle automatic composition
4457 if the current buffer is not associated with a window.
4458
4459 * composite.c (composition_reseat_it): If the current buffer is
4460 not associated with a window, ignore the automatic composition.
4461 (find_automatic_composition): Likewise.
4462
44632008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4464
4465 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
4466 (Fgpm_mouse_stop): Use it.
4467 * termhooks.h (close_gpm): Declare.
4468 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
4469 connection if Gpm_GetEvent fails.
4470
4471 * window.c (set_window_buffer): Always preserve current-buffer.
4472
44732008-09-12 Glenn Morris <rgm@gnu.org>
4474
4475 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
4476
44772008-09-11 Glenn Morris <rgm@gnu.org>
4478
4479 * charset.c (charset-map-path): Doc fix.
4480
44812008-09-10 Kenichi Handa <handa@m17n.org>
4482
4483 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
4484
4485 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
4486 compose a grapheme cluster with the preceding base glyph.
4487
4488 * composite.c (composition_compute_stop_pos): Fix previous change.
4489 Reset cmp_it->id to -1 at first.
4490
44912008-09-10 Glenn Morris <rgm@gnu.org>
4492
4493 * Makefile.in (character.o, chartab.o): Fix config.h typo.
4494
44952008-09-09 Chong Yidong <cyd@stupidchicken.com>
4496
4497 * keyboard.c (read_key_sequence): Reapply translation maps when
4498 switching keyboards.
4499
45002008-09-09 Kenichi Handa <handa@m17n.org>
4501
4502 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
4503 characters.
4504
4505 * composite.c (FORWARD_CHAR): Fix calculation
4506 of (POSITION).pos_byte.
4507 (composition_compute_stop_pos): Limit the search of composition to
4508 at most 500 characters ahead. If we reach the limit or find a
4509 newline, set cmp_it->ch to -2 and return 0.
4510 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
4511
45122008-09-08 Kenichi Handa <handa@m17n.org>
4513
4514 * indent.c (Fvertical_motion): Be sure to set
4515 it_overshoot_expected if it.cmp_it.id is non-negative.
4516
45172008-09-07 Andreas Schwab <schwab@suse.de>
4518
4519 * callproc.c (Fcall_process): Don't hold references to string data
4520 across garbage collection. Move initialisation of new_argv down
4521 to avoid compiler bug.
4522
45232008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
4524
4525 * process.c (Fsystem_process_attributes): Doc fix.
4526
45272008-09-07 Chong Yidong <cyd@stupidchicken.com>
4528
4529 * callproc.c (Fcall_process): Canonicalize current directory name.
4530
4531 * xdisp.c (move_it_to): When moving by vpos, ensure that the
4532 iterator advances to the next line if the current line ends in a
4533 continued tab.
4534
45352008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
4536
4537 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
4538 member to point to cmp_from.
4539
4540 * xdisp.c: Doc fix for references to gidx data member.
4541
45422008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
4543
4544 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
4545
45462008-09-07 Kenichi Handa <handa@m17n.org>
4547
4548 * composite.c (FORWARD_CHAR): Check STOP after
4549 incrementing (POSITION).pos.
4550
45512008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
4552
4553 * process.c (Fsystem_process_attributes): Doc fix.
4554
45552008-09-06 Chong Yidong <cyd@stupidchicken.com>
4556
4557 * keyboard.c (Ftop_level): Doc fix.
4558
45592008-09-06 Eli Zaretskii <eliz@gnu.org>
4560
4561 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
4562 minibuffer, don't let lower part of menu invade the echo area.
4563
4564 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
4565 "char *q" to access menu text and advance through it. Revert the
4566 change that displayed ">" instead of ASCII character 0x10.
4567
45682008-09-05 Eli Zaretskii <eliz@gnu.org>
4569
4570 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
4571 toggle boxes and radio buttons on MS-DOS as well.
4572
45732008-09-05 Kenichi Handa <handa@m17n.org>
4574
4575 * composite.c (autocmp_chars): Check lookback count.
4576 (composition_compute_stop_pos): Set cmp_it->lookback.
4577 (composition_reseat_it): Check lookback count.
4578 (struct position_record): New struct.
4579 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
4580 (find_automatic_composition): New function.
4581 (composition_adjust_point): Use find_automatic_composition.
4582
4583 * dispextern.h (struct composition_it): New member lookback.
4584
45852008-09-02 Chong Yidong <cyd@stupidchicken.com>
4586
4587 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
4588 if moving by a single line.
4589
45902008-09-02 Andreas Schwab <schwab@suse.de>
4591
4592 * xterm.c (x_delete_display): Fix merge error.
4593
4594 * fileio.c (Fexpand_file_name): Remove unused variables.
4595
45962008-09-02 Eli Zaretskii <eliz@gnu.org>
4597
4598 * fileio.c (Fexpand_file_name): Copy argument `name' into local
4599 storage on all platforms, not just on DOS_NT.
4600
46012008-09-02 Jason Rumney <jasonr@gnu.org>
4602
b8ff72fa
SM
4603 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
4604 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
4605
46062008-09-01 Chong Yidong <cyd@stupidchicken.com>
4607
4608 * xfaces.c (Finternal_set_alternative_font_family_alist)
4609 (Finternal_set_alternative_font_registry_alist): Properly copy
4610 entire alist structure.
4611
46122008-09-01 Kenichi Handa <handa@m17n.org>
4613
d66c0241 4614 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 4615 representative chars of the script is a vector.
d66c0241
JB
4616 (ftfont_list): Handle the case where the representative chars of
4617 the script is a vector.
aac0c6e3
MR
4618
4619 * character.c (syms_of_character): Docstring of
4620 script-representative-chars fixed.
4621
46222008-08-31 Eli Zaretskii <eliz@gnu.org>
4623
4624 * msdos.c (BUILD_CHAR_GLYPH): New macro.
4625 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
4626 the menu. Allocate larger buffer for `text', to account for
4627 possible ^C characters.
4628
46292008-08-31 Martin Rudalics <rudalics@gmx.at>
4630
4631 * xdisp.c (prepare_menu_bars): Don't call
4632 Vwindow_size_change_functions with arg Qt.
4633
46342008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
4635
4636 * font.h (font_range):
4637 * fileio.c (report_file_error):
46e722a9
SM
4638 * composite.c (composition_update_it): Yet another int/Lisp_Object
4639 mixup (YAILOM).
aac0c6e3
MR
4640
46412008-08-30 Glenn Morris <rgm@gnu.org>
4642
4643 * data.c (Fmake_variable_frame_local): Doc fix.
4644
4645 * frame.c (Fmodify_frame_parameters): Doc fix.
4646
46472008-08-30 Eli Zaretskii <eliz@gnu.org>
4648
4649 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
4650 needed by GetTokenInformation.
4651 (w32_system_process_attributes): Check return values of all system
4652 APIs.
4653
4654 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
4655 only when the state changes.
4656 (IT_update_begin, IT_update_end): Add termscript trace.
4657
4658 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
4659 clipboard is unavailable. Set dst to NULL if it doesn't point to
4660 malloc'ed data.
4661 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
4662 passing random values to xfree.
4663
4664 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 4665 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
4666
46672008-08-29 Jason Rumney <jasonr@gnu.org>
4668
4669 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
4670
46712008-08-29 Eli Zaretskii <eliz@gnu.org>
4672
4673 * composite.c (fill_gstring_body): Avoid compiler warnings.
4674
4675 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
4676 LGLYPH_SET_CODE to avoid compiler warnings.
4677
2ae37cf0 4678 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
4679
4680 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
4681
4682 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
4683 LGLYPH_SET_CODE.
4684
46852008-08-29 Kenichi Handa <handa@m17n.org>
4686
4687 * fileio.c (report_file_error): Don't downcase the first character
4688 of errstring if it is still unibyte.
4689
46902008-08-29 Kenichi Handa <handa@m17n.org>
4691
4692 These changes are to re-implement the automatic composition so
4693 that it doesn't use text properties.
4694
4695 * Makefile.in (ftfont.o): Depend on composite.h.
4696 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
4697
4698 * character.h (Vunicode_category_table): Extern it.
4699
4700 * character.c (Vunicode_category_table): New variable.
4701 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
4702
4703 * chartab.c (optimize_sub_char_table): Perform more greedy
4704 optimization.
4705
b8ff72fa
SM
4706 * composite.h (enum composition_method):
4707 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
4708 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
4709 (Vcomposition_function_table): Extern it.
4710 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
4711 (composition_gstring_put_cache, composition_gstring_from_id)
4712 (composition_gstring_p, composition_gstring_width)
4713 (composition_compute_stop_pos, composition_reseat_it)
4714 (composition_update_it, composition_adjust_point): Extern them.
4715 (Fcomposition_get_gstring): EXFUN it.
4716
d66c0241 4717 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
4718 (Vcomposition_function_table)
4719 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
4720 (gstring_hash_table, gstring_work, gstring_work_headers):
4721 New variables.
aac0c6e3
MR
4722 (gstring_lookup_cache, composition_gstring_put_cache)
4723 (composition_gstring_from_id, composition_gstring_p)
4724 (composition_gstring_width, fill_gstring_header)
4725 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
4726 (composition_reseat_it, composition_update_it)
b8ff72fa 4727 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
4728 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
4729 and gstring_work_headers. DEFVAR_LISP composition-function-table.
4730 Defsubr compostion_get_gstring.
4731
4732 * dispextern.h (struct glyph): New union u.cmp. Delete the member
4733 cmp_id.
4734 (struct glyph_string): Delete the member gidx. New members
4735 cmp_id, cmp_from, and cmp_to.
4736 (enum it_method): Delete GET_FROM_COMPOSITION.
4737 (struct composition_it): New struct.
4738 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
4739 Delete c, len, cmp_id, cmp_len in u.comp.
4740
4741 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 4742 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 4743 (enum lglyph_indices): Likewise.
b8ff72fa 4744 (font_range): Adjust extern.
aac0c6e3
MR
4745 (font_fill_lglyph_metrics): Extern it.
4746
4747 * font.c (QCf): New variable.
4748 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
4749 (font_prepare_composition): Delete this function.
4750 (font_range): Type and arguments changed.
4751 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
4752 (font_fill_lglyph_metrics): New function.
b8ff72fa 4753 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 4754 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
4755 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
4756 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
4757
4758 * fontset.h (font_for_char): Extern it.
4759
4760 * fontset.c (font_for_char): New function.
4761
4762 * ftfont.c: Include composite.h.
4763 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 4764 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
4765
4766 * indent.c: Include composite.h and dispextern.h.
4767 (check_composition): Delete this function.
4768 (scan_for_column): Handle composition by
4769 composition_compute_stop_pos, composition_reseat_it, and
4770 composition_update_it.
4771 (compute_motion): Likewise.
4772 (Fvertical_motion): Fix checking of composition.
4773
4774 * keyboard.c (adjust_point_for_property): Check composition by
4775 composition_adjust_point.
4776
b8ff72fa 4777 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
4778 struct glyph_string.
4779
b8ff72fa
SM
4780 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
4781 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
4782 struct glyph.
4783 (produce_composite_glyph): Likewise.
4784
b8ff72fa
SM
4785 * w32term.c (x_draw_composite_glyph_string_foreground):
4786 Adjust for the change of struct glyph_string.
aac0c6e3
MR
4787 (x_draw_glyph_string): Likewise.
4788
4789 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
4790 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
4791
4792 * xdisp.c: Include font.h.
4793 (it_props): Delete the entry for Qauto_composed.
4794 (init_iterator): Initialize it->cmp_it.id to -1.
4795 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 4796 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
4797 (handle_auto_composed_prop): Delete it.
4798 (handle_composition_prop): Handle only static composition.
4799 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
4800 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 4801 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
4802 (pop_it): Likewise.
4803 (get_next_element): Delete next_element_from_composition.
4804 (CHAR_COMPOSED_P): New macro.
4805 (get_next_display_element): For automatic composition, get a face
4806 from the font in the glyph-string.
4807 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 4808 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
4809 (next_element_from_string): Check if the character at the current
4810 position is composed by CHAR_COMPOSED_P.
4811 (next_element_from_buffer): Likewise.
d66c0241
JB
4812 (next_element_from_composition): Adjust for the change of struct it.
4813 Update it->cmp_it.
b8ff72fa
SM
4814 (dump_glyph): Adjust for the change of struct glyph.
4815 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
4816 it and struct glyph. Don't handle automatic composition here.
4817 (fill_gstring_glyph_string): New function.
4818 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 4819 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
4820 (BUILD_GSTRING_GLYPH_STRING): New macro.
4821 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
4822 automatic composition.
b8ff72fa 4823 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 4824 struct glyph.
b8ff72fa 4825 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 4826
b8ff72fa 4827 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
4828 the change of struct glyph_string.
4829 (x_draw_glyph_string): Likewise.
4830
48312008-08-29 Glenn Morris <rgm@gnu.org>
4832
4833 * buffer.c (word-wrap): Doc fix.
4834 * xdisp.c (truncate-partial-width-windows): Doc fix.
4835 Increase default to 50.
4836
48372008-08-29 Chong Yidong <cyd@stupidchicken.com>
4838
4839 * xdisp.c (update_tool_bar_unwind): New function.
4840 (update_tool_bar): Temporarily set selected frame before building
4841 tool-bar items.
4842
48432008-08-28 Michael Albinus <michael.albinus@gmx.de>
4844
4845 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
4846 snprintf, respectively.
4847 (xd_append_arg): Convert strings with Fstring_make_unibyte.
4848
48492008-08-28 Chong Yidong <cyd@stupidchicken.com>
4850
4851 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
4852 LDFLAGS to GNUstep CC invocation.
4853
48542008-08-27 Chong Yidong <cyd@stupidchicken.com>
4855
4856 * indent.c (Fvertical_motion): Revert last change. Handle the
4857 general case where we are moving forward, and PT spans multiple
4858 screen lines.
4859
4860 * eval.c (find_handler_clause): Temporarily increase
4861 max-lisp-eval-depth while printing the backtrace buffer, to
4862 guarantee that help-mode code can run.
4863
48642008-08-27 Eli Zaretskii <eliz@gnu.org>
4865
4866 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
4867 colors under -rv.
4868 (IT_set_frame_parameters): Don't swap foreground and background
4869 colors if `(reverse . t)' is present in the frame properties.
4870 (internal_terminal_init): Call init_frame_faces only for the
4871 initial frame.
4872
48732008-08-27 Andreas Schwab <schwab@suse.de>
4874
4875 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
4876
48772008-08-27 Andreas Schwab <schwab@suse.de>
4878
4879 * search.c (search_buffer): Set char_base to zero only at the end.
4880
48812008-08-27 Kenichi Handa <handa@m17n.org>
4882
b8ff72fa 4883 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
4884
48852008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
4886
4887 * xterm.c (x_term_init): Temporarily hide the partially
4888 initialized terminal while calling vendor-specific-keysyms.
4889
48902008-08-26 Eli Zaretskii <eliz@gnu.org>
4891
4892 * msdos.c (internal_terminal_init): Most initializations done only
4893 once, especially initial_screen_colors[] and termscript open.
4894
48952008-08-26 Chong Yidong <cyd@stupidchicken.com>
4896
4897 * eval.c (Fcondition_case): Doc fix.
4898
4899 * widgetprv.h (EmacsFramePart): Change font member to the new font
4900 struct.
4901
4902 * widget.c: Include character.h and font.h for XSETFONT.
4903 (setup_frame_gcs): Compute X font id from font struct, just once.
4904
49052008-08-26 Eli Zaretskii <eliz@gnu.org>
4906
4907 * term.c (get_named_tty): Fix last change.
4908
49092008-08-26 Chong Yidong <cyd@stupidchicken.com>
4910
4911 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 4912 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
4913
49142008-08-25 Eli Zaretskii <eliz@gnu.org>
4915
4916 * frame.c (do_switch_frame): Mark previously displayed frame as
4917 obscured for FRAME_MSDOS_P frames as well.
4918
49192008-08-24 Eli Zaretskii <eliz@gnu.org>
4920
4921 * frame.c (make_terminal_frame): Initialize f->terminal,
4922 f->terminal->reference_count, and scroll bars on MS-DOS as well.
4923 Set the top frame to newly created frame.
4924 (Fmake_terminal_frame): Reuse the_only_display_info.
4925
4926 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
4927 estimating available memory.
4928
b97439ce 49292008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
4930
4931 * nsterm.m (ns_draw_window_cursor): Don't call
4932 NSDisableScreenUpdates and NSEnableScreenUpdates on
4933 non-NS_IMPL_COCOA systems.
4934
49352008-08-23 Andreas Schwab <schwab@suse.de>
4936
4937 * process.c (procfs_system_process_attributes): Fix use of
4938 uninitialized variables.
4939
49402008-08-23 Eli Zaretskii <eliz@gnu.org>
4941
4942 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
4943
4944 * dispnew.c (init_display): Remove MS-DOS specific conditions for
4945 calling tty-set-up-initial-frame-faces.
4946
b8ff72fa
SM
4947 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
4948 Allow MSDOS frames along with X frames.
aac0c6e3
MR
4949
4950 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
4951 addition to output_termcap.
4952
4953 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
4954
4955 * termchar.h (FRAME_TTY): Support output_msdos_raw.
4956 (struct tty_display_info) [MSDOS]: Add fields related to mouse
4957 highlight.
4958
4959 * process.c [!subprocesses]: Define QCname.
4960 (syms_of_process): Intern and staticpro it.
4961
4962 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
4963 Adjust for changes in encoding/decoding routines.
4964 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
4965 encode_coding and decode_coding.
4966
b8ff72fa 4967 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
4968
4969 * dosfns.c: Include frame.h before termhooks.h.
4970 (dos_cleanup): Use CURTTY ()->termscript instead of a global
4971 variable termscript.
4972
4973 * s/msdos.h (USER_FULL_NAME): Define.
4974 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
4975
4976 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
4977 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
4978 pw->pw_gecos.
4979
4980 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
4981 SELECTED_FRAME as additional (1st) argument.
4982 (tty_read_avail_input): Handle output_msdos_raw in
4983 addition to output_termcap.
4984
4985 * msdos.c: Include frame.h before termhooks.h.
4986 (mouse_on, mouse_off, mouse_moveto, mouse_init)
4987 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
4988 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
4989 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
4990 (IT_set_terminal_modes, IT_reset_terminal_modes)
4991 (IT_set_frame_parameters): Use tty->termscript instead of a global
4992 variable termscript.
4993 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
4994 global variable terminal_coding. Don't refer to
4995 Vnonascii_translation_table.
4996 (internal_terminal_init): Set Vwindow_system in current_kboard.
4997 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
4998 Announce date and time of session start, if termscript is open.
4999 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
5000 term.c:init_tty). Open termscript only of not already open.
5001 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
5002 here instead of dos_ttraw. Don't initialize display if this is an
5003 initial tty. Don't set FRAME_FONT.
5004 (Vwindow_system_version): Bump to 23.
5005 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
5006 is available, set up mouse_position_hook.
5007 (dos_ttraw, IT_set_terminal_modes): If called with initial
5008 terminal, do nothing.
5009 (IT_set_frame_parameters): Handle the Qtty_type frame
5010 parameter by calling internal_terminal_init.
5011 (dos_set_window_size, show_mouse_face)
5012 (clear_mouse_face, IT_note_mode_line_highlight)
5013 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
5014 (dos_rawgetc): Use tty_display_info instead of x_display_info.
5015 (initialize_msdos_display): New function.
5016 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
5017 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
5018 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
5019 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 5020 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
5021 (request_sigio, unrequest_sigio): Don't define, now defined on
5022 sysdep.c.
5023 (IT_write_glyphs): Rewrite to use encode_terminal_code.
5024
5025 * term.c [MSDOS]: Include msdos.h.
5026 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
5027 conditional to DOS_NT. Allow only one call to this function in a
5028 session. Don't allocate a new struct tty_display_info; instead,
5029 reuse the_only_display_info. Call get_tty_size to get screen
5030 dimensions. Call init_baud_rate to set bad_rate.
5031 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
5032 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 5033 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
5034 (get_tty_terminal, get_named_tty, Ftty_type)
5035 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
5036 output_termcap.
b8ff72fa
SM
5037 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
5038 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 5039 only when subprocesses are supported.
aac0c6e3
MR
5040
5041 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
5042 f->output_data.x.
5043 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
5044 terminal devices.
5045
5582fbc7 5046 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
5047 x_output.
5048 (FRAME_FONT): Use output_data.tty.
5049 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
5050 (struct x_display_info): Rename from display_info. Update all users in
5051 msdos.c.
aac0c6e3 5052 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 5053 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
5054 (dos_ttraw): Update prototype.
5055
5056 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
5057 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
5058
50592008-08-23 Jason Rumney <jasonr@gnu.org>
5060
5061 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
5062 (fn_TIFFSetDirectory): New library function used.
5063 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
5064 (tiff_load): Use :index to select among multiple images. Set count
5065 property when multiple images exist.
5066 (gif_format): Use :index, not :image.
5067
50682008-08-23 Chong Yidong <cyd@stupidchicken.com>
5069
5070 * xdisp.c (try_scrolling): Check INT_MAX instead of
5071 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
5072 to obtain INT_MAX.
5073
50742008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
5075
5076 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
5077
50782008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
5079
5080 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
5081 GNUstep library location.
5082
50832008-08-21 Chong Yidong <cyd@stupidchicken.com>
5084
5085 * xfaces.c (x_update_menu_appearance): Check validity of menu font
5086 before using it.
5087
5088 * puresize.h (BASE_PURESIZE): Increase to 1250000.
5089
50902008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5091
5092 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
5093 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
5094 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
5095 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
5096 (EmacsApp-cursor_blink_handler): Remove declaration.
5097 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
5098 match 01 Feb 2008 changes in xterm.c.
5099 (ns_read_socket): Add cast to avoid warning.
5100 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
5101 GNUstep.
5102
51032008-08-20 Chong Yidong <cyd@stupidchicken.com>
5104
5105 * xselect.c (x_get_foreign_selection): Return nil if desired
5106 selection could not be obtained, instead of signalling an error.
5107
51082008-08-20 David Reitter <david.reitter@gmail.com>
5109
5110 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
5111 * nsterm.m: Remove ns-specific code for cursor blinking.
5112 (ns_draw_window_cursor): Clear cursor properly rather than
5113 redrawing the area. Respect width of bar cursors.
5114 These changes enable the use of generic blink-cursor-mode and
5115 generic cursor types in NS and support smooth cursor movements (do
5116 not blink off after command).
5117 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
5118 Nextstep, too.
5119
51202008-08-19 Kenichi Handa <handa@m17n.org>
5121
5122 * font.c (Vfont_log_deferred): New variable.
5123 (font_add_log): Check Vfont_log_deferred.
5124 (font_deferred_log): New function.
5125
5126 * font.h (font_deferred_log): Extern it.
5127
5128 * fontset.c (reorder_font_vector): Use encoding charset of fonts
5129 for sorting.
5130 (face_for_char): Use deferred log.
5131
51322008-08-18 Kenichi Handa <handa@m17n.org>
5133
5134 * fontset.c (face_for_char): Add font log.
5135
5136 * font.c (font_add_log): Add the font properties :script, :lang,
5137 and :otf in the log.
5138
51392008-08-17 Chong Yidong <cyd@stupidchicken.com>
5140
5141 * xdisp.c: Remove dead code.
5142 (handle_invisible_prop, next_overlay_string): Defer call to
5143 setup_for_ellipsis.
5144 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
5145
51462008-08-15 Chong Yidong <cyd@stupidchicken.com>
5147
5148 * xfaces.c (lookup_derived_face): Properly handle possible zero
5149 return value of get_lface_attributes.
5150 (merge_faces): Don't tell lookup_derived_face to signal an error
5151 if face is not found.
5152
5153 * dired.c (Fdirectory_files): Doc fix.
5154
5155 * process.c (make_process): Initialize kill_without_query struct
5156 member.
5157
51582008-08-15 Eli Zaretskii <eliz@gnu.org>
5159
5160 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
5161 Alternative calculation of totphys for Visual Studio 6.
5162
5163 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
5164
5165 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
5166 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
5167 All users changed.
5168 (stat): Only root directory passed to GetDriveType. Allow RAM
5169 disk as well as local fixed disk when w32-get-true-file-attributes
5170 is set to `local'.
5171 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
5172 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
5173 (w32_cached_id, w32_add_to_cache): New functions.
5174 (get_name_and_id): Look account names in the cache before calling
5175 lookup_account_sid.
5176 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
5177 New initialization flags.
5178 (globals_of_w32): Initialize them to zero.
5179 (w32_system_process_attributes): Use w32_cached_id and
5180 w32_add_to_cache.
5181
51822008-08-14 Lawrence Mitchell <wence@gmx.li>
5183
5184 * lread.c (Fread_char, Fread_char_exclusive): If no character
5185 event is read before timeout is reached, return nil, rather than
5186 converting to a number.
5187
51882008-08-14 Chong Yidong <cyd@stupidchicken.com>
5189
5190 * fns.c (use_dialog_box): Doc fix.
5191
5192 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
5193 on OS X.
5194
51952008-08-13 Chong Yidong <cyd@stupidchicken.com>
5196
5197 * frame.c (Qns_parse_geometry): New var.
5198 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
5199
52002008-08-11 Chong Yidong <cyd@stupidchicken.com>
5201
5202 * xdisp.c (x_produce_glyphs): Handle the case when font has no
5203 space character in calculating tabs.
5204
52052008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
5206
5207 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
5208
52092008-08-10 Glenn Morris <rgm@gnu.org>
5210
5211 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
5212 silence gcc "limited range of data type" warnings in some
5213 make_fixnum_or_float calls.
5214
52152008-08-09 Eli Zaretskii <eliz@gnu.org>
5216
5217 * w32.c (w32_system_process_attributes): If the process does not
5218 exist, return nil.
5219
5220 * w32.c: Include thelp32.h, psapi.h and coding.h.
5221 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
5222 declarations.
5223 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
5224 (Process32Next_Proc): New typedefs.
5225 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
5226 (g_b_init_process32_next, g_b_init_open_thread_token)
5227 (g_b_init_impersonate_self, g_b_init_revert_to_self)
5228 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
5229 (g_b_init_get_process_working_set_size)
5230 (g_b_init_global_memory_status_ex): New static variables.
5231 (globals_of_w32): Initialize them.
5232 (create_toolhelp32_snapshot, process32_first, process32_next)
5233 (open_thread_token, impersonate_self, revert_to_self)
5234 (get_process_memory_info, get_process_working_set_size)
5235 (global_memory_status, global_memory_status_ex): New wrapper
5236 functions.
5237 (w32_list_system_processes, w32_system_process_attributes)
5238 (enable_privilege, restore_privilege, ltime, process_times):
5239 New functions.
5240 (convert_time_raw): New function.
5241 (convert_time): Remove conversion of FILETIME into time in 100
5242 nsec units, call convert_time_raw instead.
5243
5244 * process.h (w32_list_system_processes, w32_system_process_attributes):
5245 Add prototypes.
5246 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
5247 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
5248 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
5249 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
5250
5251 * process.c (Fsystem_process_attributes): Doc fix.
5252
52532008-08-08 Chong Yidong <cyd@stupidchicken.com>
5254
5255 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
5256 a continued multi-char glyph; if so, advance to the actual glyph.
5257
52582008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
5259
5260 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
5261
5262 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
5263 (.m.o): Use it.
5264 * config.in: Regenerate.
5265
52662008-08-07 Chong Yidong <cyd@stupidchicken.com>
5267
5268 * xdisp.c (redisplay_window): Revert last change.
5269 (try_window): Check bottom scroll margin too.
5270
52712008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
5272
5273 * config.in: Regenerate.
5274
5275 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
5276 -list-load-path-shadows'.
5277 (nsgui.h): Reduce number of things depending on it.
5278
52792008-08-06 Chong Yidong <cyd@stupidchicken.com>
5280
5281 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
5282 instead of window-end which does the wrong thing at eob.
5283 (try_cursor_movement): Minor optimization.
5284 (redisplay_window): If scroll margin is defined, don't assume
5285 window doesn't need scrolling.
5286
52872008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
5288
5289 * config.in: Regenerate.
5290
5291 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
5292 (mostlyclean): Don't delete *.d under NS.
5293
5294 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
5295
52962008-08-06 Kenichi Handa <handa@m17n.org>
5297
5298 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
5299
53002008-08-06 Andreas Schwab <schwab@suse.de>
5301
5302 * config.in: Regenerate.
5303
53042008-08-05 Chong Yidong <cyd@stupidchicken.com>
5305
5306 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
5307 forcing a window start.
5308
5309 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
5310 (auto_save_1): Update modtime when auto-save-list-file-name is on.
5311
53122008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
5313
5314 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
5315 argument.
5316
53172008-08-05 Juanma Barranquero <lekktu@gmail.com>
5318
5319 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
5320 <scroll-down-aggressively, before-change-functions>:
5321 <after-change-functions>: Reflow docstrings.
5322
53232008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
5324 Ken Raeburn <raeburn@gnu.org>
5325
5326 Dock menu customization, based on a patch by Ken Raeburn, plus some
5327 other fixes.
5328 * nsmenu.m (dockMenu): New variable.
5329 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
5330
5331 * nsterm.h (dockMenu): Declare.
5332
5333 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
5334 (ns_term_init): Initialize dockMenu.
5335 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
5336 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
5337 left.
5338
5339 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
5340
53412008-08-04 Chong Yidong <cyd@stupidchicken.com>
5342
5343 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
5344
5345 * config.in: Regenerate.
5346
53472008-08-04 Seiji Zenitani <zenitani@mac.com>
5348
5349 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
5350
53512008-08-04 Chong Yidong <cyd@stupidchicken.com>
5352
5353 * nsterm.h (find_and_call_menu_selection): Fix prototype.
5354
53552008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
5356
5357 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
5358
5359 * keyboard.h: Comment an #endif.
5360
5361 * lisp.h (have_menus_p): Adjust comment.
5362
5363 * menu.c (find_and_return_menu_selection): Fix comparison with
5364 client_data.
5365
5366 * nsmenu.m (popup_activated_flag): New variable.
5367 (popup_activated): New function.
5368 (menu-or-popup-active-p): New exported lisp definition.
5369 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
5370 when popup done.
5371 (ns_popup_dialog): Set popup_activated_flag.
5372
5373 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
5374 version for GNUstep (handled by conditional typedef in nsterm.m).
5375 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
5376 in rgb.txt).
5377
5378 * process.c (init_process): Use DARWIN_OS, not DARWIN.
5379
5380 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
5381
5382 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
5383
5384 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
5385 shortcircuit if popup_activated like GTK and X toolkit.
5386
5387 * m/inter386.h: Change DARWIN to DARWIN_OS.
5388
5389 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
5390 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
5391 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
5392 comment on NO_SOCK_SIGIO.
5393
53942008-08-03 Chong Yidong <cyd@stupidchicken.com>
5395
5396 * nsterm.m (windowDidResize): Remove stopModal call.
5397
53982008-08-03 Andreas Schwab <schwab@suse.de>
5399
5400 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
5401 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
5402
54032008-08-02 Chong Yidong <cyd@stupidchicken.com>
5404
5405 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
5406 Don't use uninitialized pointer variable when using getrlimit.
5407
54082008-08-02 Jason Rumney <jasonr@gnu.org>
5409
5410 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
5411
54122008-08-02 Eli Zaretskii <eliz@gnu.org>
5413
5414 * alloc.c (NSTATICS): Bump to 0x640.
5415
5416 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
5417
5418 * lisp.h: Add prototype for directory_files_internal.
5419
5420 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
5421 New functions.
5422 (syms_of_process): Defsubr them. Add initializations for various
5423 Q* symbols used in procfs_system_process_attributes.
5424 (procfs_list_system_processes, procfs_system_process_attributes)
5425 [HAVE_PROCFS]: New functions.
5426 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
5427 (procfs_get_total_memory): New functions.
5428
54292008-08-01 Juanma Barranquero <lekktu@gmail.com>
5430
5431 * xfaces.c (Fx_load_color_file): Fix previous change;
5432 it is #ifdef WINDOWSNT, not WINDOWS_NT.
5433
54342008-08-01 Michael Albinus <michael.albinus@gmx.de>
5435
5436 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
5437
54382008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5439
5440 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
5441
54422008-08-01 Chong Yidong <cyd@stupidchicken.com>
5443
5444 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
5445
5446 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
5447 define NSApplicationDelegateReplySuccess.
5448 (EmacsView -converstationIdentifier): Use long instead of
5449 NSInteger for GNUstep, since it doesn't have NSInteger.
5450
5451 * xmenu.c: Revert last change.
5452
5453 * keyboard.h: Fix last change.
5454
54552008-08-01 Juanma Barranquero <lekktu@gmail.com>
5456
5457 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
5458 on Windows.
5459
54602008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5461
5462 Warning clearing and clean-up in NS port.
5463 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
5464 Add prototypes.
5465 * nsgui.h (FACE_DEFAULT): Remove, unused.
5466 (XGCValues): Change colors to unsigned long.
5467 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
5468 nsterm.m.
5469 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
5470 (ns_list_fonts): Remove, unused.
5471 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
5472 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
5473 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
5474 (nsfont_draw): Compare face colors to 0, not nil.
5475 * nsmenu.m (struct widget_value): Drop unneeded declaration.
5476 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
5477 (-addSubmenuWithTitle:): Use NSMenuItem class.
5478 (ns_popup_menu): Use NO, not NULL, for enabled setting.
5479 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
5480 (ns_clip_to_row): Make gc arg a BOOL.
5481 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
5482 ns_clip_to_row() call.
5483 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
5484 used). Cast FRAME_FONT assignments.
5485 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
5486 (ns_string_to_lispmod): Change arg to const char.
5487 (ns_term_init): Use NSMenuItem class.
5488 (EmacsApp -openFile:): Move to different section of file.
5489 (EmacsApp -application:openFiles:): Don't return a value, call
5490 -replyToOpenOrPrint:.
5491 (EmacsView -keyDown:): Fix up cast.
5492 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
5493 (EmacsView -menuDown:): Cast tag in call to
5494 find_and_call_menu_selection().
5495 (ns_list_fonts): Remove, unused.
5496 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
5497 (ns_fontname_to_xlfd): Make static.
5498 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
5499 Remove prototypes (now in keyboard.h).
5500 (next_menubar_widget_id): Remove, unused.
5501 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
5502 Remove prototypes (now in keyboard.h).
5503 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
5504
55052008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
5506
5507 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
5508 (floatfns.o): Depend on syssignal.h.
5509 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
5510
5511 * systty.h: Fix previous change that removed BSD_TERMIOS.
5512 Add comments to #ifdefs.
5513
55142008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5515
5516 * w32fns.c (w32-load-color-file): Remove.
5517 (x-open-connection): Use renamed Fx_load_color_file.
5518 * xfaces.c (x-load-color-file): Add.
5519 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
5520 Emacs.clr.
5521 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
5522
55232008-07-31 Michael Albinus <michael.albinus@gmx.de>
5524
5525 * dbusbind.c (Fdbus_call_method_asynchronously)
5526 (Fdbus_method_error_internal): New defuns.
5527 (xd_read_message): Handle also reply messages.
5528 (Vdbus_registered_functions_table): Extend docstring.
5529
55302008-07-31 Juanma Barranquero <lekktu@gmail.com>
5531
5532 * keyboard.c (gobble_input): Fix previous change.
5533
55342008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
5535
5536 * bitmaps/README:
5537 * xfns.c:
5538 * termcap.c:
5539 * term.c:
5540 * syswait.h:
5541 * systty.h:
5542 * systime.h:
5543 * syssignal.h:
5544 * sysdep.c:
5545 * process.h:
5546 * process.c:
5547 * print.c:
5548 * ndir.h:
5549 * lread.c:
5550 * keyboard.c:
5551 * getpagesize.h:
5552 * floatfns.c:
5553 * fileio.c:
5554 * emacs.c:
5555 * doc.c:
5556 * dispnew.c:
5557 * dired.c:
5558 * data.c:
5559 * callproc.c:
5560 * buffer.c:
5561 * README:
5562 * Makefile.in:
5563 * s/template.h:
5564 * s/msdos.h:
5565 * m/vax.h: Remove VMS support.
5566 * s/vms.h:
5567 * vlimit.h:
5568 * uaf.h:
5569 * temacs.opt:
5570 * param.h:
5571 * ioctl.h: Remove file.
5572
55732008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
5574
5575 * s/ms-w32.h (MULTI_KBOARD): Remove.
5576 * xterm.c:
5577 * xselect.c:
5578 * xfns.c:
5579 * window.c:
5580 * w32term.c:
5581 * w32fns.c:
5582 * terminal.c:
5583 * termhooks.h:
5584 * term.c:
5585 * sysdep.c:
5586 * keyboard.h:
5587 * keyboard.c:
5588 * frame.h:
5589 * frame.c:
5590 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
5591 * config.in: Regenerate.
5592
55932008-07-30 Jason Rumney <jasonr@gnu.org>
5594
5595 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
5596
5597 * w32font.c (w32font_encode_char): Leave as unicode if in range.
5598 (w32font_open_internal): Get unicode version of textmetrics.
5599 Don't enable or disable glyph indices here.
5600 (w32font_open): Disable use of glyph indices.
5601
5602 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
5603
56042008-07-30 Chong Yidong <cyd@stupidchicken.com>
5605
5606 * minibuf.c (Vread_buffer_function): Doc fix.
5607
56082008-07-30 John Paul Wallington <jpw@pobox.com>
5609
5610 * minibuf.c (read_buffer_completion_ignore_case): New var.
5611 (Fread_buffer): Use it.
5612
56132008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
5614
5615 * systty.h (sensemode): Remove empty #if. Remove reference to
5616 BSD_TERMIOS, unused.
5617
5618 * sysdep.c: Remove reference to DGUX.
5619 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
5620
5621 * config.in: Regenerate.
5622
56232008-07-30 Jason Rumney <jasonr@gnu.org>
5624
5625 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
5626
56272008-07-29 Jason Rumney <jasonr@gnu.org>
5628
5629 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
5630 is populated.
5631 (uniscribe_encode_char): Always use uniscribe.
5632 Avoid using context if cache is populated.
5633
56342008-07-29 Jan Djärv <jan.h.d@swipnet.se>
5635
5636 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
5637 open menu.
5638
5639 * gtkutil.c (menu_nav_ended): Remove.
5640 (create_menus): Remove signal connect for menu_nav_ended.
5641
56422008-07-28 Chong Yidong <cyd@stupidchicken.com>
5643
5644 * xdisp.c (redisplay_window): Check return value of
5645 compute_window_start_on_continuation_line before forcing a window
5646 start.
5647
56482008-07-28 Jason Rumney <jasonr@gnu.org>
5649
5650 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
5651
5652 * w32term.c (w32_enable_unicode_output, cleartype_active):
5653 Remove obsolete display options.
5654 (x_draw_glyph_string_background): Don't use old cleartype_active
5655 workaround.
5656 (w32_initialize): Remove cleartype_active initialization.
5657 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
5658
56592008-07-28 Andreas Schwab <schwab@suse.de>
5660
5661 * lisp.h (init_weak_hash_tables, syms_of_font)
5662 (xd_read_queued_messages, syms_of_dbusbind): Declare.
5663 (remove_hash_entry): Don't declare.
5664 * eval.c (maybe_call_debugger): Make static and move before use.
5665 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
5666 * xdisp.c: Include "gtkutil.h" if USE_GTK.
5667 * xterm.h (x_set_frame_alpha): Declare.
5668
56692008-07-28 Jan Djärv <jan.h.d@swipnet.se>
5670
5671 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
5672 (create_menus): Connect selection-done to menu_nav_ended.
5673
56742008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5675
5676 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
5677 Set Vx_resource_name to a fallback. Replace read of 'buffered'
5678 parameter with read of 'alpha' one.
5679 (Qns_frame_parameter): Remove.
5582fbc7 5680 * nsselect.m (selection-coding-system)
aac0c6e3
MR
5681 (next-selection-coding-system, Vselection_coding_system)
5682 (Vnext_selection_coding_system): Drop.
5683
56842008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
5685
5686 * nsfns.m (do-applescript, do_applescript): Rename to
5687 ns-do-applescript, ns_do_applescript, and move within file.
5688
56892008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
5690
5691 Remove support for Mac Carbon.
5692 * mactoolbox.c:
5693 * macterm.h:
5694 * macterm.c:
5695 * macselect.c:
5696 * macmenu.c:
5697 * macgui.h:
5698 * macfns.c:
5699 * mac.c: Remove file.
5700 * s/darwin.h:
5701 * m/intel386.h:
5702 * xfaces.c:
5703 * xdisp.c:
5704 * window.c:
5705 * tparam.c:
5706 * termhooks.h:
5707 * termcap.c:
5708 * term.c:
5709 * syssignal.h:
5710 * sysselect.h:
5711 * sysdep.c:
5712 * process.c:
5713 * lread.c:
5714 * lisp.h:
5715 * keyboard.c:
5716 * image.c:
5717 * fringe.c:
5718 * frame.h:
5719 * frame.c:
5720 * fontset.c:
5721 * font.h:
5722 * font.c:
5723 * fns.c:
5724 * fileio.c:
5725 * emacs.c:
5726 * dispnew.c:
5727 * dispextern.h:
5728 * config.in:
5729 * atimer.c:
2ae37cf0 5730 * Makefile.in: Remove code for Carbon.
aac0c6e3 5731
f0131492 57322008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
5733
5734 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
5735
57362008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5737
5738 * macterm.h (kCGBitmapByteOrder32Host): New define for
5739 non-universal SDKs.
5740
5741 * image.c (mac_create_cg_image_from_image, image_load_image_io)
5742 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
5743
5744 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
5745 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
5746
57472008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
5748
5749 * w32inevt.c: Include dispextern.h.
5750
57512008-07-26 Andreas Schwab <schwab@suse.de>
5752
5753 * print.c (print_object): Fix off-by-one in last change.
5754
57552008-07-25 Juanma Barranquero <lekktu@gmail.com>
5756
5757 * term.c (syms_of_term): Don't initialize default_orig_pair,
5758 default_set_foreground and default_set_background on Windows.
5759
57602008-07-25 Jason Rumney <jasonr@gnu.org>
5761
5762 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
5763 ScriptItemize. Clean up return value checking. Remove unused
5764 variables.
5765 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
5766 shaping engine.
5767
5768 * w32font.c (w32font_has_char): Handle the case where we can't
5769 determine the script for a character.
5770
57712008-07-25 Chong Yidong <cyd@stupidchicken.com>
5772
5773 * term.c (syms_of_term): Initialize default_orig_pair,
5774 default_set_foreground, and default_set_background.
5775
5776 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
5777 clash (bug#86).
5778 (getloadavg): Callers changed.
5779
5780 * image.c (svg_load_image): Fix last change.
5781 (svg_load_image): Use rsvg_handle_get_dimensions to check that
5782 image size is valid. Use g_object_unref instead of deprecated
5783 rsvg_handle_free to free rsvg handle.
5784 (x_from_xcolors): Don't initialize pixmap (silence compiler).
5785
57862008-07-25 Jason Rumney <jasonr@gnu.org>
5787
5788 * w32font.c (w32font_encode_char): Encode characters outside BMP as
5789 surrogates before looking up glyph index.
5790 (w32font_text_extents): Encode as surrogates if falling back to
5791 functions that need UTF-16 wide chars.
5792
5793 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
5794 BMP as surrogates before looking up glyph index.
5795
57962008-07-25 Chong Yidong <cyd@stupidchicken.com>
5797
5798 * image.c (svg_load_image): Check for failure in return value of
5799 rsvg_handle_get_pixbuf. Free rsvg handle when done.
5800
58012008-07-25 Jason Rumney <jasonr@gnu.org>
5802
5803 * w32font.c (Fx_select_font): Reverse sense of second arg.
5804
58052008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
5806
5807 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
5808 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
5809
5810 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
5811 (PURESIZE): Use it.
5812
58132008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
5814
5815 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
5816 * m/alpha.h (TEXT_END):
5817 * m/ibmrs6000.h (TEXT_END):
5818 * m/macppc.h (TEXT_END):
5819 * s/darwin.h (TEXT_END):
5820 * s/msdos.h (TEXT_END): Remove, unused.
5821 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
5822 * s/cygwin.h: Remove comment.
5823
5824 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
5825 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
5826 * m/intel386.h (DOT_GLOBAL_START):
5827 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
5828 (USG): Remove, file not used on USG platforms.
5829
5830 * Makefile.in (HAVE_X11): Remove empty #else.
5831
58322008-07-24 Andreas Schwab <schwab@suse.de>
5833
5834 * fileio.c (Finsert_file_contents): Properly adjust undo list
5835 after format conversion.
5836
58372008-07-24 Jan Djärv <jan.h.d@swipnet.se>
5838
5839 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
5840 (menu_nav_ended): Remove.
5841 (create_menus): Remove signal connect for menu_nav_ended.
5842 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
5843 create_menus.
5844 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
5845
58462008-07-23 Jason Rumney <jasonr@gnu.org>
5847
5848 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
5849 with opened font.
5850 (w32font_open): Set font type to gdi.
5851
5852 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
5853
58542008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
5855
5856 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
5857 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
5858 defines it.
5859 * unexec.c (ADDR_CORRECT): Define unconditionally.
5860
5861 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
5862
5863 * unexec.c: Remove code depending on !COFF and USG, the file is
5864 not used for such systems.
5865
5866 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
5867 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
5868 (LD_SWITCH_SYSTEM_1): Remove, update users.
5869
5870 * s/darwin.h (DATA_END):
5871 * m/intel386.h (DATA_END):
5872 * m/ibmrs6000.h (DATA_END):
5873 * m/alpha.h (DATA_END): Remove, unused.
5874
5875 * config.in: Regenerate.
5876 * s/ms-w32.h (subprocesses): Define unconditionally.
5877 * s/template.h (subprocesses): Update comment.
5878 * s/vms.h (subprocesses):
5879 * s/usg5-4.h (subprocesses):
5880 * s/hpux10-20.h (subprocesses):
5881 * s/gnu-linux.h (subprocesses):
5882 * s/cygwin.h (subprocesses):
5883 * s/bsd-common.h (subprocesses):
5884 * s/aix4-2.h (subprocesses):
5885 * s/darwin.h (subprocesses): Do not define, defined by default now.
5886
5887 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
5888 Remove all references.
5889 (temacs): Add GNUstep specific ld flags.
5890
5891 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
5892 similarly to what X does.
5893
58942008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5895
5896 * nsfns.m (x-list-fonts): Remove.
5897 (syms_of_nsfns): Drop the x-list-fonts declaration.
5898 * nsterm.m: Get rid of remaining "//" comments.
5899
59002008-07-22 Chong Yidong <cyd@stupidchicken.com>
5901
5902 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
5903
5904 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
5905 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
5906 (Fns_own_selection_internal, Fx_disown_selection_internal)
5907 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
5908
5909 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
5910 ... */' style of docstrings. Doc fixes.
5911
59122008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
5913
5914 * terminfo.c (UP, BC, PC): Undo previous change.
5915
5916 * nsfns.m: Rename ns prefixed functions/variables to the
5917 corresponding x versions. Update references.
5918
59192008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
5920
5921 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
5922
59232008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
5924
5925 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
5926 Remove forwarding functions.
5927 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
5928 non-static.
5929 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
5930 non-static.
5931 (ns_frame_parm_handlers): Use the new names.
5932 (syms_of_nsfns): Move to the end of file.
5933
5934 * nsterm.m (syms_of_nsterm): Move to the end of file.
5935
5936 * dispnew.c (init_display): Remove code for X10.
5937
59382008-07-22 Jason Rumney <jasonr@gnu.org>
5939
5940 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
5941 bare drive.
5942
59432008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5944
5945 * nsterm.m (syms_of_nsterm): Remove debugging println.
5946
59472008-07-22 David Reitter <david.reitter@gmail.com>
5948
5949 * nsfns.m (do_applescript, F_do_applescript): NS version of the
5950 Carbon implementation of the same functionality: execute arbitrary
5951 AppleScript code.
5952
59532008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5954
5955 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
5956 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
5957 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
5958 (Fx_display_mm_height, Fx_display_mm_width)
5959 (Fx_display_backing_store, Fx_display_visual_class)
5960 (Fx_display_save_under, Fx_open_connection)
5961 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
5962 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
5963 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
5964 (Fx_display_pixel_width, Fx_display_pixel_height)
5965 (Fx_display_usable_bounds, Fx_display_planes)
5966 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
5967 ... */' style of docstrings.
5968
59692008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
5970
5971 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
5972 on this platform.
5973 (mips):
5974 * m/iris4d.h (mips): Do not define.
5975 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
5976
5977 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
5978
5979 * image.c:
5980 * nsfns.m:
5981 * nsselect.m:
5982 * nsterm.h:
5983 * nsterm.m: Rename ns prefixed functions/variables to the
5984 corresponding x versions. Update references.
5985
5986 * m/ibms390x.h (NO_REMAP): Do not undefine.
5987
5988 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
5989
59902008-07-21 Chong Yidong <cyd@stupidchicken.com>
5991
5992 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
5993 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
5994 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
5995 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
5996 (Fns_display_mm_height, Fns_display_mm_width)
5997 (Fns_display_backing_store, Fns_display_visual_class)
5998 (Fns_display_save_under, Fns_open_connection)
5999 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
6000 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
6001 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
6002 (Fns_display_pixel_width, Fns_display_pixel_height)
6003 (Fns_display_usable_bounds, Fx_display_planes)
6004 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
6005
60062008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
6007
6008 * print.c (print_object): Check print_depth before searching for
6009 circularities.
6010
60112008-07-21 Michael Albinus <michael.albinus@gmx.de>
6012
6013 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
6014 only sprintf.
6015
60162008-07-21 Kenichi Handa <handa@m17n.org>
6017
6018 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
6019
60202008-07-20 Andreas Schwab <schwab@suse.de>
6021
6022 * syntax.c (find_start_pos, find_start_value)
6023 (find_start_value_byte, find_start_begv, find_defun_start)
6024 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
6025
60262008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
6027
6028 * s/sol2-3.h: Insert contents of s/sol2.h.
6029 (LD_SWITCH_SYSTEM): Remove redundant definition.
6030 * s/sol2.h: Remove, unused.
6031
60322008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6033
6034 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
6035
60362008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6037
6038 * Makefile.in (ns_appdir): Fix typo in find command.
6039
60402008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
6041
6042 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
6043
6044 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
6045 added not supported anymore.
6046
6047 * s/usg5-4-2.h (LIBS_SYSTEM):
6048 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
6049
6050 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
6051 * s/lynxos.h (GETPGRP_NO_ARG):
6052 * s/hpux10-20.h (NO_SIOCTL_H):
6053 * s/gnu.h (GETPGRP_NO_ARG):
6054 * s/gnu-linux.h (NO_SIOCTL_H):
6055 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
6056 * s/cygwin.h (GETPGRP_NO_ARG):
6057 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
6058 (C_DEBUG_SWITCH): Remove duplicate definition.
6059
6060 * m/ibms390.h: Remove boilerplate comments.
6061
6062 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
6063
6064 * process.c (HAVE_SERIAL): Consolidate ifdefs.
6065 (wait_reading_process_output): Remove code for SunOS, platform not
6066 supported anymore. Use SOLARIS2 instead of sun.
6067
60682008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
6069
6070 * font.c (font_open_by_name): Under NS, default lface height to zero.
6071 (font_open_for_lface): Under NS, set size based on frame fontsize.
6072 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
6073 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
6074
60752008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
6076
6077 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
6078 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
6079 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
6080 YES/NO.
6081 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
6082 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
6083 * Makefile.in (clean): Clear out build destination dir.
6084
60852008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
6086
6087 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
6088 xterm, xselect.
6089 * lisp.h: Remove declaration of hash_remove.
6090 * nsgui.h: Remove redefinitions of hash_remove.
6091 * fns.c (hash_remove): Rename to hash_remove_from_table.
6092
60932008-07-19 Seiji Zenitani <zenitani@mac.com>
6094
6095 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
6096 strdup() the family UTF8String before modifying it.
6097
60982008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
6099
6100 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
6101 NS_FACE_BACKGROUND with 0 instead of nil.
6102 * nsfont.m (nsfont_draw): Same.
6103
61042008-07-19 Chong Yidong <cyd@stupidchicken.com>
6105
6106 * nsfns.m (ns_set_background_color): Fix crash.
6107
61082008-07-18 Chong Yidong <cyd@stupidchicken.com>
6109
6110 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
6111
61122008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
6113
6114 * puresize.h (BASE_PURESIZE): Increase to 1240000.
6115
61162008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6117
6118 * gtkutil.c: Include <config.h> instead of "config.h".
6119
6120 * lisp.h (Foverlay_buffer): Add EXFUN.
6121
6122 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
6123 child process to complete child_setup. Undo 2005-09-21 change.
6124
6125 * s/darwin.h: Mention setsid after vfork.
6126
61272008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6128
6129 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
6130 Depend on macgui.h.
6131
6132 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
6133 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
6134
6135 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
6136 and f19.
6137 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
6138
6139 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
6140 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
6141 Remove enumerators.
6142
6143 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
6144 Check if FACE_FROM_ID returns NULL.
6145
61462008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
6147
6148 * w32inevt.c (change_frame_size): Remove extern declaration.
6149 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
6150 change_frame_size.
6151
61522008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
6153
6154 * getloadavg.c: Revert last change (2008-07-15).
6155
61562008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
6157
6158 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
6159 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc) set
6160 from configure.
6161
61622008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
6163
6164 * s/sol2.h:
6165 * s/sol2-4.h: Reorganize conditionals.
6166
6167 * ecrt0.c: Remove code depending on m68000, not used anymore.
6168
6169 * fns.c (hash_remove): Make static.
6170 * lisp.h (hash_remove): Don't prototype.
6171
6172 * m/ibmrs6000.h:
6173 * m/ibms390x.h:
6174 * m/macppc.h: Remove boilerplate comments.
6175
6176 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
6177 Solaris, which does not need them.
6178
6179 * m/vax.h: Remove comments about unsupported systems.
6180
6181 * s/darwin.h: Reorganize ifdefs.
6182
61832008-07-17 Andreas Schwab <schwab@suse.de>
6184
6185 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
6186
61872008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
6188
6189 Use SDATA. Follow coding convention of placing operators at
6190 beginning of next line rather than end of previous line, and placing
6191 spaces around infix operators.
6192
6193 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
6194 in case it was defined already.
6195 USE @GNUSTEP_MAKEFILES@ rather than envvars.
6196 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
6197 ns_default.
6198 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
6199 Lisp_Objects.
6200 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
6201 (ns_defined_color, ns_color_to_lisp): Declare.
6202 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
6203 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
6204 it's accepted even with USE_LISP_UNION_TYPE.
6205 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
6206 (update_frame_tool_bar): Remove apparently obsolete tests for
6207 non-integerness of f->tool_bar_lines.
6208 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
6209 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
6210 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
6211 (nsfont_open): Don't confuse NULL for Qnil.
6212 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
6213 * menu.h (find_and_call_menu_selection):
6214 * menu.c (find_and_call_menu_selection): Use just int for vector size.
6215 (find_and_return_menu_selection): Always return something.
6216 * frame.h: Include dispextern.h for Display_Info.
6217 (display_x_get_resource): Declare.
6218
62192008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
6220
6221 * syntax.c: Remove stdio.h include accidentally introduced in
6222 Emacs.app commit.
6223 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
6224 NS_IMPL_COCOA.
6225 * keyboard.c (handle_async_input, input_available_signal): Remove
6226 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
6227
62282008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
6229
6230 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
6231 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
6232 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
6233 Use SDATA.
6234
6235 * keymap.c: Remove all NS-specific code.
6236 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
6237 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
6238 where_is_preferred_modifier, return a different value depending on how
6239 preferred is the binding.
6240 (where_is_internal): Adjust accordingly.
6241 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
6242 Adjust to new preferred_sequence_p.
6243 (syms_of_keymap): Declare `where-is-preferred-modifier'.
6244 * keyboard.c (parse_solitary_modifier): Not static any more.
6245 * keyboard.h (parse_solitary_modifier): Declare.
6246
62472008-07-16 Andreas Schwab <schwab@suse.de>
6248
6249 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
6250 of easymenu.
6251
62522008-07-16 Chong Yidong <cyd@stupidchicken.com>
6253
6254 * xdisp.c (move_it_in_display_line): Account for word wrap, so
6255 that we don't move off the line.
6256
62572008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
6258
6259 * keyboard.c (Qsuper): Remove.
6260 (parse_menu_item): Don't call where_is_internal specially for NS.
6261
62622008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
6263
6264 * s/gnu-linux.h: Remove boilerplate comments.
6265
6266 * m/alpha.h (__ELF__): Consolidate conditions.
6267
6268 * m/m68k.h (linux): Use GNU_LINUX instead.
6269 Remove boilerplate comments.
6270
6271 * m/intel386.h: Undo refactoring from previous change.
6272 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
6273 too, remove dead code.
6274 (linux): Use GNU_LINUX instead.
6275
62762008-07-16 Jason Rumney <jasonr@gnu.org>
6277
6278 * w32gui.h: Repeat 26 June changes lost by last change.
6279
62802008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
6281
6282 * systty.h: Remove code for Aix on 386, unsupported platform.
6283
6284 * s/ms-w32.h: Remove boilerplate comments.
6285 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
6286
6287 * s/gnu-linux.h (TERM): Remove support.
6288 (HAVE_SYSVIPC): Remove, unused.
6289 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
6290 for this system.
6291
6292 * process.c: Remove support for IRIS, unused.
6293 Remove support for TERM, not relevant anymore.
6294
6295 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
6296 used with the definition.
6297
6298 * s/aix4-2.h (static): Do not undef.
6299
6300 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
6301 only used on Aix.
6302 (HAVE_SYSVIPC): Remove, unused.
6303
6304 * m/hp800.h (CANNOT_DUMP): Do not undef.
6305
6306 * m/alpha.h: Fix comment.
6307
6308 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
6309 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
6310 used by this configuration.
6311 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
6312 * unexec.c: Remove code depending on HPUX and
6313 USG_SHARED_LIBRARIES, not used with this file. Remove code
6314 depending on IRIS, unused. Remove if 0-ed code.
6315
6316 * s/template.h: Remove comments about static.
6317
6318 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
6319 Remove if 0-ed code.
6320 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
6321 were the same as the default.
6322 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
6323 Remove boilerplate comments.
6324 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
6325 (HAVE_SYSVIPC): Remove, unused.
6326 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
6327
6328 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
6329 Remove boilerplate comments.
6330 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
6331 Remove boilerplate comments.
6332 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
6333 Remove boilerplate comments.
6334 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
6335
6336 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
6337 USG systems which do not use DATA_SEG_BITS.
6338 Refactor code. Remove boilerplate comments.
6339
6340 * m/ibms390.h:
6341 * m/m68k.h:
6342 * s/bsd-common.h:
6343 * s/cygwin.h:
6344 * s/darwin.h:
6345 * s/freebsd.h:
6346 * s/gnu.h:
6347 * s/msdos.h: Remove boilerplate comments.
6348
6349 * m/iris4d.h: Remove boilerplate comments and code for systems that
6350 do not use this file.
6351 (IRIS_4D): Remove, unused.
6352
6353 * m/mips.h: Remove boilerplate comments and code for systems that
6354 do not use this file.
6355 (SIGN_EXTEND_CHAR):
6356 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
6357 * unexmips.c: Remove file, unused.
6358
6359 * editfns.c (Fuser_full_name): Replace the only use of
6360 USER_FULL_NAME with its value.
6361 * config.in: Regenerate.
6362
63632008-07-16 David Reitter <david.reitter@gmail.com>
6364
6365 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
6366 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
6367
63682008-07-16 Glenn Morris <rgm@gnu.org>
6369
6370 * emacs.c (system-type): Doc fix.
6371
63722008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
6373
6374 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
6375 If the cache doesn't work, let's fix it, rather than work around it.
6376
63772008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
6378
6379 * Makefile.in: Correct additions for nsfont.o in last commit.
6380 * nsfont.m: New file (forgot last commit).
6381
63822008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
6383
6384 * callproc.c (set_initial_environment): Initialize
6385 Vprocess_environment under CANNOT_DUMP (fixes crash when
6386 batch-compiling for bootstrap).
6387
63882008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
6389 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6390
6391 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
6392 fix crash due to different init order.
6393
63942008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
6395
6396 Changes and additions for NeXTstep windowing system (Cocoa and
6397 GNUstep) support.
6398
6399 * Makefile.in:
6400 * config.in: Support defines and build commands for NS port.
6401 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
6402 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
6403 * dispextern.h: Include nsgui.h and add needed typedefs under NS
6404 windowing.
6405 (struct face): Add synth_ital field.
6406 * dispnew.c: Include nsterm.h when compiling under NS windowing.
6407 (init_display): Initialize Vinitial_window_system to "ns" when so
6408 compiled.
6409 * emacs.c: Include GSConfig.h when compiling under GNUstep.
6410 (display_arg): Use under NS.
6411 (main): Under NS, allocate autorelease pool and handle command line
6412 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
6413 (standard_args): Add NS-specific args.
6414 (shut_down_emacs): Shut down NS terminal if compiled under NS.
6415 * font.c (DEFAULT_ENCODING): New variable.
6416 (font_find_for_lface): Use it.
6417 (syms_of_font): Load syms_of_nsfont under NS.
6418 * font.h: Declare nsfont_driver when compiled under NS.
6419 * fontset.c: When compiling under NS, include nsterm.h.
6420 (fontset_from_font): Autoconstruct fontset under NS.
6421 * frame.c (various): Under NS, include nsterm.h, add Qns window system
6422 symbol, document and use it.
6423 (do_switch_frame): When for_deletion under Cocoa, add
6424 Fraise_frame(Qnil).
6425 (x_set_frame_parameters): Ensure font attribute changes are picked up.
6426 (x_get_arg): Allow "yes" and "no" as boolean values.
6427 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
6428 Qright under Cocoa.
6429 (focus-follows-mouse): Default to 0 under NS.
6430 * frame.h (enum output_method): Add output_ns.
6431 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
6432 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
6433 (FRAME_WINDOW_P): NS-specific definition.
6434 * fringe.c (max_used_fringe_bitmap): Make public.
6435 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
6436 (getloadavg): Use NeXT code under descendant OS's.
6437 * image.c (includes and header section, x_create_bitmap_from_data)
6438 (x_create_bitmap_from_file, free_bitmap_record, image_background)
6439 (image_background_transparent, x_clear_image_1)
6440 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
6441 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
6442 (x_to_xcolors, x_from_xcolors, x_disable_image)
6443 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
6444 other GUIs, including XPM support using code originally written for
6445 Carbon GUI.
6446 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
6447 using NS API.
6448 (image_ascent): Use font metrics macros instead of direct struct field
6449 access.
6450 * keyboard.c (includes): Add nsterm.h when compiling under NS.
6451 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
6452 Also, handle NS as GTK for menu bar purposes.
6453 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
6454 toolkit where they differ.
6455 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
6456 use cachelist, still needed under NS.
6457 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
6458 (struct widget_value): Define it here for menu.c.
6459 * keymap.c (includes): Include modifier internals.
6460 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
6461 NS.
6462 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
6463 support for preferring sequences using certain modifiers, specified by
6464 the FIRSTONLY argument.
6465 * lisp.h (hash_remove): Rename to avoid name clash when compiling
6466 under NS GNUstep implementation.
6467 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
6468 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
6469 * menu.c: Include nsterm.h under NS.
6470 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
6471 (free_menubar_widget_tree_value, update_submenu_strings)
6472 (find_and_call_menu_selection): Treat NS as X and NT.
6473 (find_and_return_menu_selection): New function, used for popup menus.
6474 * nsgui.h:
6475 * nsterm.h:
6476 * nsfns.m:
6477 * nsimage.m:
6478 * nsmenu.m:
6479 * nsselect.m:
6480 * nsterm.m: New files.
6481 * process.c (wait_reading_process_output): Under NS, call ns_select()
6482 instead of plain select().
6483 * syntax.c (char_quoted): Under NS, avoid a crash when called near
6484 beginning of buffer.
6485 * sysselect.h (init_process): Rename when compiling under Cocoa to
6486 avoid name conflict.
6487 * termhooks.h (display_info): Add ns_display_info to union.
6488 * terminal.c (Fterminal_live_p): Add ns to terminal types.
6489 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
6490 COCOA environment.
6491 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
6492 unexec() signature. (Note, this will dump, but the resulting file
6493 crashes; unexosx is used instead; keeping around for reference and
6494 possible aid in getting dump working under GNUstep.)
6495 * w32gui.h (button_type, widget_value): Remove definitions (now in
6496 keyboard.h).
6497 * window.c: Include nsterm.h when compiling under NS.
6498 * xdisp.c (includes): Include nsterm.h when compiling under NS.
6499 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
6500 other GUI windowing systems.
6501 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
6502 GTK.
6503 (x_consider_frame_title): Under NS, set icon type and frame
6504 modified-state indicator; use ns_set_name_as_filename() when using
6505 formatted title.
6506 (update_window_cursor): Make public when compiling under NS.
6507 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
6508 (hourglass_atimer, Vhourglass_delay
6509 * xfaces.c (header section, init_frame_faces, clear_font_table)
6510 (defined_color, unload_color, x_face_list_fonts)
6511 (prepare_face_for_display): Add NS support parallel to other GUIs.
6512 Emulate GCs like other non-X GUIs.
6513 (split_font_name): Don't lowercase font name under NS.
6514 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
6515 under NS.
6516 * s/darwin.h: Add support for compilation under NS.
6517
65182008-07-15 Jason Rumney <jasonr@gnu.org>
6519
6520 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
6521 (w32_show_hourglass): Rename from show_hourglass.
6522 (w32_hide_hourglass): Rename from hide_hourglass.
6523 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
6524 (Vhourglass_delay): Declare extern.
6525 (hourglass_started): Remove.
6526
6527 * xdisp.c (Vhourglass_delay): Remove static.
6528 (hourglass_started, start_hourglass, cancel_hourglass):
6529 Don't include these versions on WINDOWSNT.
6530
65312008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
6532
6533 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
6534 variables (formerly in xfns.c).
6535 (show_hourglass, hide_hourglass): New prototypes (same).
6536 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
6537 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
6538 in xfns.c).
6539 (syms_of_xdisp): Declare/initialize display-hourglass,
6540 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
6541 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
6542 formerly in xfns.c.
6543 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
6544 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
6545 (start_hourglass, cancel_hourglass): Remove.
6546 (show_hourglass, hide_hourglass): Remove prototypes and static
6547 modifiers.
6548 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
6549 hourglass_atimer, hourglass_shown_p declaration/initialization.
6550 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
6551 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
6552 (start_hourglass, cancel_hourglass): Remove.
6553 (show_hourglass, hide_hourglass): Remove prototypes and static
6554 modifiers.
6555 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
6556 hourglass_atimer, hourglass_shown_p declaration/initialization.
6557 * w32fns.c (display_hourglass_p, Vhourglass_delay)
6558 (DEFAULT_HOURGLASS_DELAY): Remove.
6559 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
6560 hourglass_shown_p declaration/initialization.
6561
65622008-07-14 Jason Rumney <jasonr@gnu.org>
6563
6564 * w32fns.c (w32_get_arg): Remove wrapper function.
6565 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
6566 directly.
6567 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
6568
65692008-07-14 Kenichi Handa <handa@m17n.org>
6570
6571 * xfont.c (xfont_open): Add workaround for X's bug.
6572
65732008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
6574
6575 * fontset.c: Include <stdio.h> unconditionally.
6576
65772008-07-13 Michael Albinus <michael.albinus@gmx.de>
6578
6579 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
6580 for filtering.
6581
65822008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
6583
6584 * s/vms.h: Use __GNUC__ instead of _GNUC_.
6585
6586 * m/macppc.h:
6587 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
6588
6589 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
6590 (SPECIAL_EMACS_INT):
6591 * m/ia64.h (SPECIAL_EMACS_INT):
6592 * m/amdx86-64.h (SPECIAL_EMACS_INT):
6593 * s/gnu.h (NLIST_STRUCT):
6594 * s/aix4-2.h (X11R5_INHIBIT_I18N):
6595 * s/gnu-linux.h (LINUX):
6596 * s/msdos.h (HAVE_FACES):
6597 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
6598
6599 * systty.h:
6600 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
6601 anymore.
6602
66032008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
6604
6605 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
6606 always defined as int.
6607
6608 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
6609 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
6610 * s/gnu-linux.h (HAVE_WAIT_HEADER):
6611 * s/freebsd.h (HAVE_WAIT_HEADER):
6612 * s/bsd-common.h (HAVE_UNION_WAIT):
6613 * s/aix4-2.h (HAVE_WAIT_HEADER):
6614 * m/mips.h (HAVE_UNION_WAIT):
6615 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
6616 (COFF, static): Do not define, they are undefined later in the file.
6617
6618 * process.c (update_status): Don't use a union.
6619 (status_convert):
6620 (sigchld_handler): Use int instead of WAITTYPE.
6621
66222008-07-12 Chong Yidong <cyd@stupidchicken.com>
6623
6624 * indent.c (Fvertical_motion): Restore hscroll before moving to
6625 goal column.
6626
66272008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
6628
6629 * lisp.h: Remove left over code.
6630
66312008-07-11 Andreas Schwab <schwab@suse.de>
6632
6633 * lisp.h: Fix logic in last change.
6634
6635 * menu.h: New file.
6636 * menu.c: Include it.
6637 * xmenu.c: Likewise.
6638 * Makefile.in: Update dependencies.
6639
66402008-07-11 Kenichi Handa <handa@m17n.org>
6641
6642 * fontset.c (fontset_from_font): Cancel the previous change.
6643
66442008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
6645
6646 * lisp.h:
6647 * w32heap.c:
6648 * emacs.c:
6649 * alloc.c: Replace all references of NO_UNION_TYPE with
6650 USE_LISP_UNION_TYPE.
6651
6652 * m/xtensa.h (NO_UNION_TYPE):
6653 * m/vax.h (NO_UNION_TYPE):
6654 * m/template.h (NO_UNION_TYPE):
6655 * m/sparc.h (NO_UNION_TYPE):
6656 * m/mips.h (NO_UNION_TYPE):
6657 * m/macppc.h (NO_UNION_TYPE):
6658 * m/m68k.h (NO_UNION_TYPE):
6659 * m/iris4d.h (NO_UNION_TYPE):
6660 * m/intel386.h (NO_UNION_TYPE):
6661 * m/ibms390x.h (NO_UNION_TYPE):
6662 * m/ibms390.h (NO_UNION_TYPE):
6663 * m/ibmrs6000.h (NO_UNION_TYPE):
6664 * m/ia64.h (NO_UNION_TYPE):
6665 * m/hp800.h (NO_UNION_TYPE):
6666 * m/arm.h (NO_UNION_TYPE):
6667 * m/amdx86-64.h (NO_UNION_TYPE):
6668 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
6669 defining it the same.
6670
66712008-07-10 Chong Yidong <cyd@stupidchicken.com>
6672
6673 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
6674
66752008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
6676
6677 * fileio.c:
6678 * sysdep.c
6679 * systty.h:
6680 * m/ibmrs6000.h:
6681 * m/iris4d.h:
6682 * s/aix4-2.h:
6683 * s/freebsd.h:
6684 * s/gnu-linux.h:
6685 * s/hpux10-20.h:
6686 * s/hpux11.h:
6687 * s/netbsd.h:
6688 * s/sol2-3.h:
6689 * s/sol2-4.h:
6690 * s/sol2.h:
6691 * s/usg5-4.h:
6692 * s/vms.h: Remove references to unused variables.
6693
66942008-07-10 Andreas Schwab <schwab@suse.de>
6695
6696 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
6697 pattern before matching the generic family.
6698
66992008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
6700
6701 * unexec.c:
6702 * s/vms.h:
6703 * s/usg5-4-2.h:
6704 * s/sol2-5.h:
6705 * s/freebsd.h:
6706 * s/darwin.h: Remove dead code.
6707
6708 * m/template.h:
6709 * m/sparc.h:
6710 * m/mips.h:
6711 * m/m68k.h:
6712 * m/iris4d.h:
6713 * m/intel386.h:
6714 * m/ibms390x.h:
6715 * m/ibms390.h:
6716 * m/ia64.h:
6717 * m/hp800.h:
6718 * m/arm.h:
6719 * m/amdx86-64.h: Remove dead code and references to unused
6720 and compiler defined symbols.
6721
6722 * unexmips.c:
6723 * unexelf.c: Remove references to desupported systems.
6724
6725 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
6726
6727 * m/powermac.h: Remove boilerplate comments.
6728 (NO_REMAP): Remove unused definition.
6729
6730 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
6731 define them.
6732
67332008-07-10 Kenichi Handa <handa@m17n.org>
6734
6735 * xfont.c (xfont_open): Log the reason of failure.
6736
67372008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
6738
6739 * fontset.c (fontset_get_font_group):
6740 * font.c (font_check_otf): Specify argument types.
6741
67422008-07-09 Kenichi Handa <handa@m17n.org>
6743
6744 * coding.c (detect_coding_utf_8): Set detect_info->found only when
6745 non-ASCII char is found.
6746
6747 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
6748 (reorder_font_vector): Change the arg preferred_family to font.
6749 Prefer the spec matching with font.
6750 (fontset_get_font_group): New function.
6751 (fontset_find_font): Change the format of an element of a realized
6752 fontset. Use fontset_get_font_group.
6753 (fontset_font): Try the current fontset, the default fontset, the
6754 fallbacks of the current fontset, and the fallbacks of the default
6755 fontset in this order.
6756 (face_for_char): Delete the shortcut to use the current font.
6757 (fontset_from_font): Don't set fonts for Latin in the fontset.
6758
6759 * font.h (font_make_object, font_match_p): Adjust prototypes.
6760
6761 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
6762
6763 * font.c (font_make_object): New arg entity and pixelsize.
6764 (font_check_otf_features, font_check_otf): New functions.
6765 (font_match_p): Check :lang, :script, and :otf properties.
6766
6767 * xfont.c (xfont_open): Adjust it for the change of
6768 font_make_object.
6769 (xfont_text_extents): Fix initial setting of metrics.
6770
6771 * ftfont.c (struct ftfont_info): New member index, delete member
6772 fc_charset_idx. Make the member order compatible with struct
6773 xftfont_info.
6774 (fc_charset_table): Change charset names to registry names.
6775 (ftfont_pattern_entity): Delete the args registry and
6776 fc_charset_idx. Change the value of :font-entity property
6777 to (FONTNAME . INDEX). Always set :registry property to
6778 `iso10646-1'.
6779 (struct ftfont_cache_data): New struct.
6780 (ftfont_lookup_cache): New arg for_face.
6781 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
6782 (ftfont_driver): Set the member otf_capability.
6783 (ftfont_get_charset): Adjust it for the change of
6784 fc_charset_table.
6785 (OTF_TAG_SYM): New macro.
6786 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
6787 for the change of fc_charset_table.
6788 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
6789 ftfont_pattern_entity. Add FC_INDEX to objset.
6790 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
6791 and ftfont_pattern_entity.
6792 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
6793 font_make_object, struct ftfont_info.
6794 (ftfont_has_char): Use ftfont_get_fc_charset.
6795 (ftfont_otf_features, ftfont_otf_capability): New functions.
6796 (ftfont_shape): Use ftfont_get_otf.
6797 (ftfont_text_extents): Fix initial setting of metrics.
6798
6799 * xftfont.c (struct xftfont_info): New member ft_size. Make the
6800 member order compatible with struct ftfont_info.
6801 (xftfont_open): Add FC_CHARSET to the pattern. Set
6802 xftfont_info->ft_size. Don't unlock the face. Check BDF
6803 properties if appropriate.
6804 (xftfont_close): Unlock the face.
6805 (xftfont_anchor_point, xftfont_shape): Deleted.
6806 (syms_of_xftfont): Don't set members anchor_point and shape of
6807 xftfont_driver.
6808
6809 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
6810 font_make_object.
6811
6812 * w32font.c (w32font_open): Adjust it for the change of
6813 font_make_object.
6814 (w32font_open_internal): Don't set properties of font_object here.
6815
68162008-07-08 Chong Yidong <cyd@stupidchicken.com>
6817
6818 * macfns.c (x_create_tip_frame):
6819 * w32fns.c (x_create_tip_frame):
6820 * xfns.c (x_create_tip_frame): Pass parameter argument to
6821 face-set-after-frame-default.
6822
6823 * xfaces.c (Finternal_merge_in_global_face): Save merged
6824 attributes for the default face back into the face vector.
6825
68262008-07-08 Andreas Schwab <schwab@suse.de>
6827
6828 * fontset.h: Declare fontset_from_font. Don't declare
6829 new_fontset_from_font and fontset_from_font_name.
6830 * xterm.c: Include "fontset.h".
6831 * Makefile.in (xterm.o): Update dependencies.
6832
68332008-07-08 Glenn Morris <rgm@gnu.org>
6834
6835 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
6836 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
6837
68382008-07-07 Chong Yidong <cyd@stupidchicken.com>
6839
6840 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
6841 (x_set_frame_parameters): Don't bind it.
6842
68432008-07-07 Juanma Barranquero <lekktu@gmail.com>
6844
6845 * w32fns.c (map_w32_filename): Declare extern.
6846
68472008-07-07 Jason Rumney <jasonr@gnu.org>
6848
6849 * w32term.c (WS_EX_LAYERED): Define if not already.
6850
68512008-07-06 Chong Yidong <cyd@stupidchicken.com>
6852
6853 * xfaces.c (set_font_frame_param): Don't try to set the font
6854 parameter if it is still unspecified in the lface.
6855
68562008-07-05 Chong Yidong <cyd@stupidchicken.com>
6857
6858 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
6859 face if it didn't already exist.
6860
6861 * xdisp.c (try_window_id): Give up if word-wrapping is on.
6862
68632008-07-05 Andreas Schwab <schwab@suse.de>
6864
6865 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
6866
68672008-07-05 Chong Yidong <cyd@stupidchicken.com>
6868
6869 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
6870 word-wrapping.
6871 (IT_DISPLAYING_WHITESPACE): New macro.
6872 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
6873 when word-wrapping. Simplify word-wrapping logic. Use correct
6874 pixel positions when saving copies of the iterator.
6875 (display_line): Use proper wrap point if the last character on a
6876 line was preceded by whitespace.
6877
68782008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
6879
6880 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
6881
68822008-07-04 Kenichi Handa <handa@m17n.org>
6883
6884 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
6885
6886 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
6887
68882008-07-02 Jason Rumney <jasonr@gnu.org>
6889
6890 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 6891 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
6892
6893 * xdisp.c (next_element_from_display_vector): Move assignment out
6894 of if statement.
6895
68962008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
6897
6898 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
6899
6900 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
6901 (syms_of_fileio): Initialize and export them.
6902 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
6903
6904 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
6905 (Fsystem_move_file_to_trash): New function.
6906 (syms_of_w32fns): Export it to lisp.
6907
69082008-07-01 Jason Rumney <jasonr@gnu.org>
6909
6910 * w32font.c (w32font_text_extents): Don't count overhang as part
6911 of width.
6912
69132008-06-30 Miles Bader <miles@gnu.org>
6914
6915 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
6916 Add `avoid_cursor_p' field.
6917
6918 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
6919 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
6920 (append_glyph, append_composite_glyph, produce_image_glyph)
6921 (append_stretch_glyph): Initialize avoid_cursor_p.
6922 (get_it_property): Rename from `get_line_height_property'.
6923 (x_produce_glyphs): Use get_it_property.
6924 (handle_line_prefix, push_display_prop): New functions.
6925 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
6926 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
6927 New variables.
6928 (syms_of_xdisp): Initialize them.
6929
69302008-06-30 Kenichi Handa <handa@m17n.org>
6931
6932 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
6933 XftDefaultSubstitute (they are called in XftFontMatch).
6934 (xftfont_open): Fix args to ftfont_font_format.
6935
6936 * ftfont.c (fc_charset_table): New member lang.
6937 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 6938 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
6939 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
6940 (ftfont_open): Fix args to ftfont_font_format.
6941 (ftfont_font_format): New arg filename.
6942
69432008-06-30 Chong Yidong <cyd@stupidchicken.com>
6944
6945 * xfaces.c (Finternal_merge_in_global_face): If default face was
6946 modified, realize it again. Update the font face attribute.
6947
69482008-06-29 Jason Rumney <jasonr@gnu.org>
6949
6950 * w32term.c (x_set_frame_alpha): Fix logic.
6951
69522008-06-29 Kenichi Handa <handa@m17n.org>
6953
6954 * fontset.c (Finternal_char_font): Return font-object instead of
6955 font-name.
6956
6957 * composite.c (get_composition_id): Fix the width calculation for TAB.
6958
69592008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
6960
6961 * indent.c (Fvertical_motion): Properly handle float column arg.
6962
69632008-06-28 Jason Rumney <jasonr@gnu.org>
6964
6965 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
6966 (pfnSetLayeredWindowAttributes): New function pointer.
6967 (w32_initialize): Initialize it when supported.
6968 (x_set_frame_alpha): New function.
6969
6970 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
6971 (w32_frame_parm_handlers): Set alpha handler.
6972
6973 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
6974
69752008-06-27 Jason Rumney <jasonr@gnu.org>
6976
6977 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
6978 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
6979 (w32_to_x_charset, x_to_w32_charset)
6980 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
6981 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
6982 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
6983 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
6984 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
6985 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
6986 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
6987 (Qw32_charset_unicode): Remove.
6988 (syms_of_w32fns): Update for above changes.
6989
6990 * w32font.c (w32_to_x_charset, x_to_w32_charset)
6991 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
6992 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
6993 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
6994 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
6995 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
6996 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
6997 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
6998 (syms_of_w32font): Update for above changes.
6999
70002008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
7001
7002 * s/usg5-4.h: Fix previous change: keep the correct branch of a
7003 removed #if.
7004 (USG_SHARED_LIBRARIES): Remove duplicate definition.
7005
70062008-06-26 Juanma Barranquero <lekktu@gmail.com>
7007 Eli Zaretskii <eliz@gnu.org>
7008
7009 * makefile.w32-in (LOCAL_FLAGS):
7010 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
7011
7012 * sysdep.c (_spawnlp, _getpid):
7013 Declare with explicit _cdecl instead of _CRTAPI1.
7014
7015 * editfns.c (Fget_internal_run_time):
7016 Check for WINDOWSNT with #ifdef, not #if.
7017
70182008-06-26 Jason Rumney <jasonr@gnu.org>
7019
7020 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
7021
7022 * w32term.c (x_draw_glyph_string_foreground)
7023 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
7024 Use FONT_HANDLE macro.
7025 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
7026
7027 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
7028 (uniscribe_encode_char): Use FONT_HANDLE macro.
7029
7030 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
7031 (w32font_text_extents): Use precast w32_font.
7032 (w32font_close): Free cached metrics.
7033 (w32font_open_internal): Allocate space for name on stack.
7034
70352008-06-26 Chong Yidong <cyd@stupidchicken.com>
7036
7037 * xdisp.c (extend_face_to_end_of_line): Fix last change.
7038
70392008-06-26 Jason Rumney <jasonr@gnu.org>
7040
7041 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
7042 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
7043
70442008-06-26 Juanma Barranquero <lekktu@gmail.com>
7045
7046 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
7047
70482008-06-26 Jason Rumney <jasonr@gnu.org>
7049
7050 * w32bdf.c, w32bdf.h: Remove obsolete files.
7051
7052 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
7053
7054 * w32gui.h: Don't include w32bdf.h.
7055 (XCharStruct, enum w32_char_font_type, W32FontStruct):
7056 Remove obsolete font support.
7057
7058 * w32font.h (struct w32font_info): Remove compat_w32_font.
7059 Add hfont member.
7060 (FONT_COMPAT): Remove obsolete macro.
7061
7062 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
7063 (w32font_encode_char, w32font_text_extents): Use new hfont member.
7064 (w32font_open_internal): Remove compat code. Set new hfont member.
7065 (Fx_select_font): Use new hfont member.
7066
7067 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
7068 (uniscribe_encode_char): Use new hfont member.
7069
7070 * w32term.c (x_draw_glyph_string_foreground)
7071 (x_draw_composite_glyph_string_foreground): Use new hfont member.
7072 (x_draw_glyph_string): Use metrics in w32font_info.
7073
70742008-06-26 Kenichi Handa <handa@m17n.org>
7075
7076 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
7077
70782008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
7079
7080 * unexnext.c:
7081 * m/ews4800.h:
7082 * m/hp9000s300.h:
7083 * m/ibm370aix.h:
7084 * m/mips-siemens.h:
7085 * m/ncr386.h:
7086 * m/next.h:
7087 * m/pmax.h:
7088 * m/powerpcle.h:
7089 * m/tandem-s2.h:
7090 * s/386bsd.h:
7091 * s/bsd386.h:
7092 * s/bsd4-1.h:
7093 * s/bsd4-2.h:
7094 * s/bsdos2-1.h:
7095 * s/bsdos2.h:
7096 * s/bsdos3.h:
7097 * s/bsdos4.h:
7098 * s/nextstep.h:
7099 * s/ultrix4-3.h:
7100 * s/usg5-0.h:
7101 * s/usg5-2-2.h:
7102 * s/usg5-2.h:
7103 * s/usg5-4-3.h:
7104 * s/ux4800.h:
7105 * s/uxpds.h:
7106 * s/uxpv.h: Remove support for obsolete systems.
7107 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 7108 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
7109 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
7110 Remove, insert contents in s/aix4-2.h.
7111 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
7112 * s/bsd4-3.h: Rename to ...
7113 * s/bsd-common.h: ... this.
7114 * data.c:
7115 * doc.c:
7116 * ecrt0.c:
7117 * emacs.c:
7118 * fileio.c:
7119 * floatfns.c:
7120 * keyboard.c:
7121 * mem-limits.h:
7122 * print.c:
7123 * process.c:
7124 * sysdep.c:
7125 * syssignal.h:
7126 * systty.h:
7127 * syswait.h:
7128 * term.c:
7129 * unexec.c:
7130 * unexelf.c:
7131 * unexhp9k800.c:
7132 * m/hp800.h:
7133 * m/ibmrs6000.h:
7134 * m/mips.h:
7135 * m/vax.h:
7136 * s/darwin.h:
7137 * s/freebsd.h:
7138 * s/gnu.h:
7139 * s/ms-w32.h:
7140 * s/msdos.h:
7141 * s/netbsd.h:
7142 * s/template.h: Remove references to obsolete variables.
7143
7144 * Makefile.in: Add dependencies for all unexec files.
7145 (admindir): Remove unused variable.
7146 (UNEXEC_SRC): Remove references.
7147
71482008-06-25 Chong Yidong <cyd@stupidchicken.com>
7149
7150 * xfns.c (x_default_font_parameter): If Xft is available, first
7151 try Monospace-12 for the default font.
7152
71532008-06-25 Jason Rumney <jasonr@gnu.org>
7154
7155 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
7156
71572008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
7158
7159 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
7160
7161 * buffer.c (syms_of_buffer): Remove default-word-wrap.
7162
71632008-06-25 Juanma Barranquero <lekktu@gmail.com>
7164
7165 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
7166 <scroll-conservatively>: Fix typo in docstring.
7167
7168 * xselect.c (Fx_send_client_event): Doc fix.
7169
71702008-06-25 Kenichi Handa <handa@m17n.org>
7171
7172 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
7173
7174 * font.c (font_parse_fcname): Remove unused variables.
7175 (font_sort_entites): Delete the arg SPEC. Caller changed.
7176 Fix for the case of ! best_only.
7177 (font_delete_unmatched): Check DPI and AVGWIDTH too.
7178
7179 * lisp.h (Fstring_to_unibyte): EXFUN it.
7180
7181 * character.h (str_to_unibyte): Extern it.
7182
7183 * character.c (str_to_unibyte): New function.
7184
7185 * fns.c (Fstring_to_unibyte): New function.
7186 (syms_of_fns): Defsubr it.
7187
71882008-06-24 Kenichi Handa <handa@m17n.org>
7189
7190 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
7191 DPI too.
7192 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
7193
71942008-06-24 Andreas Schwab <schwab@suse.de>
7195
7196 * Makefile.in (${lispsource}loaddefs.el): Rename from
7197 ../lisp/loaddefs.el.
7198 (bootstrap-clean): Do what distclean does but don't remove
7199 Makefile.
7200 (distclean): Depend on bootstrap-clean and remove Makefile.
7201
72022008-06-24 Chong Yidong <cyd@stupidchicken.com>
7203
7204 * buffer.h (struct buffer): New member word_wrap.
7205
7206 * buffer.c (syms_of_buffer): New variables default-word-wrap and
7207 word-wrap.
7208 (init_buffer_once): Initialize them.
7209
7210 * dispextern.h (struct it): Replace bool truncate_lines_p with a
7211 line_wrap enum possessing three possible values.
7212
7213 * termopts.h: Replace truncate_partial_width_windows with
7214 Vtruncate_partial_width_windows.
7215
7216 * dispnew.c (direct_output_for_insert): Avoid direct output when
7217 inserting a space with word wrap on.
7218
7219 * indent.c (compute_motion): Obey integer values of
7220 truncate-partial-width-windows.
7221
7222 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
7223 replacing truncate_partial_width_windows.
7224 (init_iterator): If Vtruncate_partial_width_windows is an integer,
7225 truncate only if the window width is below that integer.
7226 (start_display, resize_mini_window, produce_stretch_glyph)
7227 (display_string, move_it_in_display_line_to): Use line_wrap.
7228 (back_to_previous_visible_line_start, reseat_1): Reset
7229 string_from_display_prop_p.
7230 (display_line): Extend default face to end of line when wrapping.
7231
72322008-06-24 Kim F. Storm <storm@cua.dk>
7233
7234 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
7235 to wrap continued lines at word boundaries.
7236
72372008-06-24 Jason Rumney <jasonr@gnu.org>
7238
7239 * font.c (Ffont_face_attributes): Multiply pixel size before point
7240 conversion to avoid multiplying rounding error.
7241
72422008-06-23 Jason Rumney <jasonr@gnu.org>
7243
7244 * w32term.c (x_draw_glyph_string_background)
7245 (x_draw_glyph_string): Remove old bdf font code.
7246
7247 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
7248
72492008-06-22 Kenichi Handa <handa@m17n.org>
7250
7251 * font.c (font_find_for_lface): Try the adstyle specified in
7252 the property of LFACE_FONT of LFACE (if any).
7253
72542008-06-21 Seiji Zenitani <zenitani@mac.com>
7255 Ryo Yoshitake <ryo@shiftmode.net>
7256
7257 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
7258
72592008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
7260
7261 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
7262 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
7263 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
7264 (witness-emacs): Remove.
7265 (lisp, shortlisp): Move loaddefs.el earlier.
7266 (mostlyclean): Forget about witness-emacs.
7267
72682008-06-22 Glenn Morris <rgm@gnu.org>
7269
7270 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
7271 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
7272
72732008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
7274
7275 * Makefile.in (PRECOMP): Remove.
7276 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
7277 (witness-emacs): Run `compile-first'.
7278 (.el.elc): Use the new compile-onefile target.
7279
72802008-06-21 Kenichi Handa <handa@m17n.org>
7281
7282 * xftfont.c (xftfont_open): Handle QCembolden only when
7283 FC_EMBOLDEN is defined.
7284
72852008-06-21 Andreas Schwab <schwab@suse.de>
7286
7287 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
7288 (.el.elc): Likewise.
7289
72902008-06-21 Miles Bader <miles@gnu.org>
7291
7292 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
7293 build dir, not the lisp source dir.
7294
72952008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
7296
7297 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
7298 (bootstrapclean): Remove.
7299 (.el.elc): New rule.
7300 (PRECOMP): New var.
7301 (../lisp/subdirs.el): Remove.
7302 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
7303 (witness-emacs): New target.
7304 (mostlyclean): Remove witness-emacs as well.
7305 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
7306 Add witness-emacs dependency.
7307
73082008-06-20 Chong Yidong <cyd@stupidchicken.com>
7309
7310 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
7311 defined by the font.
7312
73132008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
7314
7315 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
7316 (bootstrap-clean): New target that keeps TAGS around.
7317 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
7318 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
7319
73202008-06-20 Jason Rumney <jasonr@gnu.org>
7321
7322 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
7323 Remove obsolete font code.
7324
7325 * w32font.c (font_matches_spec): Use csb bitfield from font signature
7326 to determine language support.
7327
73282008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
7329
7330 * sysdep.c (cfsetspeed): New fun extracted from the code.
7331 (cfmakeraw): Move before first use.
7332
73332008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
7334
7335 * sysdep.c (cfmakeraw): Provide fallback implementation.
7336 (serial_configure): Provide fallback implementation of cfsetspeed.
7337
73382008-06-20 Kenichi Handa <handa@m17n.org>
7339
7340 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
7341 the pattern.
7342
7343 * fontset.c (fontset_from_font): Copy font_spec before changing
7344 the elements.
7345
7346 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
7347
73482008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
7349
7350 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
7351 for explicit `font' parameters.
7352
7353 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
7354
73552008-06-19 Kenichi Handa <handa@m17n.org>
7356
7357 * frame.c: Include <ctype.h>.
7358 (x_set_font_backend): Allow spacing characters in the X resource
7359 for FontBackend.
7360
73612008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
7362
7363 * w32fns.c, xfns.c (Qfont_param): New var.
7364 (syms_of_w32fns): Initialize it.
7365 (x_default_font_parameter): Record explicit `font' into
7366 `font-parameter'.
7367
73682008-06-18 Kenichi Handa <handa@m17n.org>
7369
7370 * font.c (font_parse_xlfd): Fix previous change.
7371 (font_parse_fcname): Don't use :fc-unknown-spec.
7372 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
7373 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
7374 (font_add_log): Prepend the driver name to the resulting fonts.
7375
7376 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
7377 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
7378 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
7379
7380 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
7381 (QCembolden): New variables.
7382 (syms_of_xftfont): DEFSYM them.
7383 (xftfont_open): Call XftFontMatch. Don't trust the result of
7384 XftTextExtents8 if the pixel_size is less than 5.
7385
73862008-06-18 Andreas Schwab <schwab@suse.de>
7387
7388 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
7389 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
7390
73912008-06-18 Jason Rumney <jasonr@gnu.org>
7392
7393 * w32font.c (w32font_list, w32font_match): Add logging.
7394
7395 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
7396
73972008-06-17 Chong Yidong <cyd@stupidchicken.com>
7398
7399 * font.c (font_parse_fcname): Store divider characters for
7400 unknown-spec list. For known key symbols, intern using correct
7401 symbol name.
7402
74032008-06-17 Kenichi Handa <handa@m17n.org>
7404
7405 * xfaces.c (realize_default_face): If the frame is not on window
7406 system, set the fontset of face to nil.
7407
74082008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
7409
7410 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
7411
74122008-06-16 Juanma Barranquero <lekktu@gmail.com>
7413
7414 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
7415 (build_font_name_from_vector): Delete externs.
7416
7417 * xfaces.c (struct font_name): Don't declare.
7418
74192008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
7420
7421 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
7422
74232008-06-16 Chong Yidong <cyd@stupidchicken.com>
7424
7425 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
7426
74272008-06-16 Juanma Barranquero <lekktu@gmail.com>
7428
7429 * font.c (Ffont_spec): Fix usage in docstring.
7430 (Ffont_face_attributes): Doc fix.
7431
74322008-06-16 Andreas Schwab <schwab@suse.de>
7433
7434 * font.c (Ffont_face_attributes): Fix definition.
7435
74362008-06-16 Jason Rumney <jasonr@gnu.org>
7437
7438 * font.h (font_style_symbolic_from_value): Remove.
7439
7440 * font.c (font_style_symbolic_from_value): Remove.
7441 (font_style_symbolic): Revert to pre 2008-06-13 version.
7442
7443 * w32font.c (w32_to_fc_weight): New function.
7444 (w32font_full_name, logfont_to_fcname): Use it.
7445
74462008-06-16 Kenichi Handa <handa@m17n.org>
7447
7448 * font.c (font_check_object): Delete it.
7449 (font_clear_cache): Check if a font-object is alive.
7450 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
7451 font-object to nil.
7452 (font_close_object): Don't check FONT_CLOSE_OBJECT.
7453 (font_at): Don't call font_check_object.
7454 (Ffont_get): Return a symbol for :weight, :slant, and :width.
7455
74562008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
7457
7458 * puresize.h (BASE_PURESIZE): Increase to 1230000.
7459
74602008-06-16 Chong Yidong <cyd@stupidchicken.com>
7461
7462 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
7463
74642008-06-15 Chong Yidong <cyd@stupidchicken.com>
7465
7466 * font.c (font_parse_fcname): Only one decimal point.
7467 (font_unparse_fcname): Handle data in family and foundry indices
7468 as symbols, not strings.
7469 (font_unparse_gtkname, Ffont_face_attributes): New functions.
7470
7471 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
7472
7473 * font.h (font_unparse_gtkname): Add prototype.
7474
74752008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
7476
7477 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
7478
74792008-06-15 Andreas Schwab <schwab@suse.de>
7480
7481 * font.c (font_update_drivers): Fix crash when no drivers match.
7482
74832008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
7484
7485 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
7486 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
7487
74882008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
7489
7490 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
7491
74922008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
7493
7494 * process.c (Fserial_process_configure, Fprocess_send_eof):
7495 Use EQ to compare Lisp_Objects.
7496
74972008-06-13 Jason Rumney <jasonr@gnu.org>
7498
7499 * w32fns.c (Fw32_select_font): Remove old font API function.
7500
7501 * w32font.c (logfont_to_fcname): New function.
7502 (Fx_select_font): New font dialog function compatible with
7503 GTK/fontconfig version.
7504
7505 * font.c (font_style_symbolic_from_value): New function.
7506 (font_style_symbolic): Use it.
7507
7508 * font.h (font_style_symbolic_from_value): Declare new function.
7509
75102008-06-13 Juanma Barranquero <lekktu@gmail.com>
7511
7512 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
7513 <font-width-table>: Fix typos in docstrings.
7514
75152008-06-13 Daniel Engeler <engeler@gmail.com>
7516
7517 These changes add serial port access.
7518 * process.c: Add HAVE_SERIAL.
7519 (Fdelete_process, Fprocess_status, Fset_process_buffer)
7520 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
7521 (list_processes_1, select_wrapper, Fstop_process)
7522 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
7523 (status_notify): Modify to handle serial processes.
7524 [HAVE_SERIAL] (Fserial_process_configure)
7525 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
7526 New functions.
7527 * process.h (struct Lisp_Process): Add `type'.
7528 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
7529 New functions.
7530 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
7531 serial ports.
b71ac3dd 7532 (serial_open, serial_configure): New functions.
aac0c6e3
MR
7533 * w32.h: Add FILE_SERIAL.
7534 (struct _child_process): Add ovl_read, ovl_write.
7535
75362008-06-13 Kenichi Handa <handa@m17n.org>
7537
7538 * dispextern.h (enum lface_attribute_index): New member
7539 LFACE_FOUNDRY_INDEX.
7540
7541 * font.c (font_score): Delete arg alternate_families. Check only
7542 weight, slant, width, and size. Ignore the difference of alias
7543 style symbols.
7544 (font_sort_entites): Adjust for the above change. Reflect the
7545 order of font-driver to scores.
7546 (font_list_entities): Don't check alternate_familes here.
7547 (font_clear_prop): Handle foundry.
7548 (font_update_lface): Don't parse "foundry-family" form here.
7549 Handle FONT_FOUNDRY_INDEX.
7550 (font_find_for_lface): Likewise. Handle alternate families here.
7551 If registry is nil, try iso8859-1 and ascii-0.
7552 (font_open_for_lface): Pay attention to size in ENTITY.
7553 (font_open_by_name): Simplify by calling font_load_for_lface.
7554 (free_font_driver_list): Delete it.
7555 (font_update_drivers): Preserve the order of backends.
7556 (syms_of_font): Setting of sort_shift_bits adjusted for the change
7557 of font_score and font_sort_entites.
7558 (font_update_sort_order): Likewise.
7559
7560 * xfaces.c (LFACE_FOUNDRY): New macro.
7561 (check_lface_attrs): Check foundry.
7562 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
7563 (merge_face_vectors): Check foundry.
7564 (merge_face_ref): Likewise.
7565 (Finternal_set_lisp_face_attribute): Likewise.
7566 (x_update_menu_appearance): Likewise.
7567 (Finternal_get_lisp_face_attribute): Likewise.
7568 (lface_hash): Likewise.
7569 (lface_same_font_attributes_p): Likewise.
7570 (x_supports_face_attributes_p): Likewise.
7571 (tty_supports_face_attributes_p): Likewise.
7572 (Finternal_set_alternative_font_family_alist): Intern strings.
7573 (Finternal_set_alternative_font_registry_alist): Downcase strings.
7574 (realize_default_face): Set LFACE_FOUNDRY (lface).
7575
7576 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
7577 font-driver at first.
7578
7579 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
7580
75812008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7582
7583 * lread.c (Fload): Use xfree, not free on saved_doc_string.
7584
75852008-06-12 Jim Meyering <meyering@redhat.com>
7586
7587 Make unexec_free handle NULL the same way free does.
7588 * unexmacosx.c (unexec_free): Ignore a NULL argument.
7589
75902008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
7591
7592 * character.h (CHAR_TO_BYTE_SAFE): New macro.
7593 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
7594 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
7595 (WEAK_ALIAS): Simplify.
7596 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
7597 when searching a unibyte buffer.
7598
75992008-06-12 Chong Yidong <cyd@stupidchicken.com>
7600
7601 * xfns.c (Fx_select_font): Rename from x-font-dialog.
7602
76032008-06-12 Juanma Barranquero <lekktu@gmail.com>
7604
7605 * w32font.c: Include ctype.h.
7606
76072008-06-11 Jason Rumney <jasonr@gnu.org>
7608
7609 * w32font.c (w32font_encode_char): Detect missing glyphs that are
7610 misreported as space.
7611 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
7612 as aliases for registry iso10646-1.
7613
76142008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
7615
7616 * buffer.c (clone_per_buffer_values): Skip `name'.
7617
76182008-06-11 Chong Yidong <cyd@stupidchicken.com>
7619
7620 * font.c (font_parse_fcname): Fix last change; accept decimal
7621 points in font size.
7622
76232008-06-10 Jason Rumney <jasonr@gnu.org>
7624
7625 * w32uniscribe.c (add_opentype_font_name_to_list):
7626 Skip non unicode fonts.
7627
76282008-06-10 Chong Yidong <cyd@stupidchicken.com>
7629
7630 * xfns.c (Fx_font_dialog): New function.
7631
7632 * gtkutil.c (xg_dialog_response_cb): Rename from
7633 xg_file_response_callback.
7634 (pop_down_dialog): Rename from pop_down_file_dialog.
7635 (xg_get_file_name): Callers changed.
7636 (xg_get_font_name): New function.
7637
7638 * gtkutil.h (xg_get_font_name): Insert prototype.
7639
76402008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
7641
7642 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
7643 x_underline_minimum_display_offset.
7644 (syms_of_xdisp): Declare it here rather than in xterm.c.
7645 * dispextern.h (underline_minimum_offset): Declare it.
7646 * w32term.c (x_draw_glyph_string): Use it.
7647 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
7648 (syms_of_xterm): Don't declare it any more.
7649 (x_draw_glyph_string): Adjust to the new name.
7650
76512008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
7652
7653 * xterm.c (x_underline_minimum_display_offset): New var.
7654 (x_draw_glyph_string): Use it.
7655 (syms_of_xterm): Declare it.
7656
76572008-06-10 Chong Yidong <cyd@stupidchicken.com>
7658
7659 * font.c (font_parse_fcname): Accept GTK-style font names too.
7660
76612008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
7662
7663 * dired.c (file_name_completion): Don't return t if the match is exact
7664 but with different capitalization.
7665 * minibuf.c (Ftry_completion): Simplify.
7666
7667 * window.c (Vwindow_point_insertion_type): New var.
7668 (set_window_buffer): Use it.
7669 (syms_of_window): Init and export it to Lisp.
7670
76712008-06-10 Kenichi Handa <handa@m17n.org>
7672
7673 * font.h (font_intern_prop): Prototype adjusted.
7674
7675 * font.c (font_intern_prop): New arg force_symbol.
7676 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
7677 Adjust for the change of font_intern_prop.
7678
7679 * ftfont.c (ftfont_pattern_entity):
7680 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
7681 (w32_registry):
7682 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
7683 the change of font_intern_prop.
7684
76852008-06-09 Juanma Barranquero <lekktu@gmail.com>
7686
7687 * w32menu.c (digest_single_submenu): Declare extern.
7688
76892008-06-09 Jason Rumney <jasonr@gnu.org>
7690
7691 * w32term.c (x_make_frame_visible): Use alternate restore flags.
7692
7693 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
7694 (parse_single_submenu): Remove.
7695 (digest_single_submenu): Remove.
7696 (syms_of_w32menu): Don't initialise variables that have moved
7697 to menu.c.
7698 (set_frame_menubar): Sync with version in xmenu.c.
7699 (w32_menu_show): Sync with xmenu_show in xmenu.c.
7700
7701 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
7702 Make static again.
7703
77042008-06-09 Jason Rumney <jasonr@gnu.org>
7705
7706 Changes to w32 files related to the move of common menu code
7707 to menu.c on 2008-06-08 by Chong Yidong.
7708
7709 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
7710 defs to w32gui.h.
7711 (single_keymap_panes, push_menu_item, push_menu_pane):
7712 Make globally visible.
7713
7714 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
7715 (local_free, malloc_widget_value, free_widget_value)
7716 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
7717 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
7718 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
7719 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
7720 (menu_items, menu_items_allocated, menu_items_used)
7721 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
7722 (init_menu_items, finish_menu_items, discard_menu_items)
7723 (grow_menu_items, push_submenu_start, push_submenu_end)
7724 (push_left_right_boundary, push_menu_pane, push_menu_item)
7725 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
7726 (free_menubar_widget_tree_value, parse_single_submenu)
7727 (update_submenu_strings): Remove functions.
7728 (xmalloc_widget_value): Remove and declare extern.
7729
7730 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
7731 (OBJ1): Build it.
7732
7733 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
7734 (local_heap, local_alloc, local_free, malloc_widget_value)
7735 (free_widget_value): Define here.
7736
77372008-06-09 Kenichi Handa <handa@m17n.org>
7738
7739 * font.h (Qascii_0): Extern it.
7740
7741 * font.c (Qascii_0): New variable.
7742 (syms_of_font): DEFSYM it.
7743 (font_open_by_name): If the registry "iso8859-1" fails, try also
7744 "ascii-0".
7745
7746 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
7747
77482008-06-08 Kenichi Handa <handa@m17n.org>
7749
7750 * .gdbinit (xfont): New command.
7751
77522008-06-08 Andreas Schwab <schwab@suse.de>
7753
7754 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
7755 * Makefile.in (menu.o): Update dependencies.
7756
7757 * Makefile.in (obj): Always add menu.o.
7758 * emacs.c (main): Always call syms_of_menu.
7759 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
7760
77612008-06-08 Chong Yidong <cyd@stupidchicken.com>
7762
7763 * Makefile.in: Compile menu.c.
7764
7765 * lisp.h: Declare syms_of_menu.
7766
7767 * emacs.c (main): Call syms_of_menu.
7768
7769 * keyboard.h: Relocate platform-independent menu definitions from
7770 xmenu.c.
7771
7772 * menu.c: New file. Relocate platform-independent menu
7773 definitions from xmenu.c. Suggested by Adrian Robert.
7774
7775 * xmenu.c: Remove platform-independent menu definitions.
7776 (menu_items menu_items_inuse, menu_items_allocated)
7777 (menu_items_used, menu_items_n_panes)
7778 (menu_items_submenu_depth): Move to keyboard.h.
7779 (init_menu_items, finish_menu_items, unuse_menu_items)
7780 (discard_menu_items, restore_menu_items, save_menu_items)
7781 (grow_menu_items, push_submenu_start, push_submenu_end)
7782 (push_left_right_boundary, push_menu_pane, push_menu_item)
7783 (keymap_panes, single_keymap_panes, single_menu_item)
7784 (list_of_panes, list_of_items, find_and_call_menu_selection)
7785 (xmalloc_widget_value, free_menubar_widget_value_tree)
7786 (parse_single_submenu, digest_single_submenu)
7787 (update_submenu_strings): Move to menu.c.
7788
77892008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
7790
7791 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
7792
77932008-06-06 Miles Bader <miles@gnu.org>
7794
7795 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
7796 face, not frame default.
7797
77982008-06-05 Martin Rudalics <rudalics@gmx.at>
7799
7800 * window.c (pop_up_windows, pop_up_frames)
7801 (display_buffer_reuse_frames, Vpop_up_frame_function)
7802 (Vdisplay_buffer_function, Veven_window_heights)
7803 (Vspecial_display_buffer_names, Vspecial_display_regexps)
7804 (Vspecial_display_function, Vsame_window_buffer_names)
7805 (Vsame_window_regexps, split_height_threshold)
7806 (Vsplit_window_preferred_function): Move those vars to window.el.
7807 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
7808 (Fdisplay_buffer): Move those functions to window.el.
7809 (syms_of_window): Remove corresponding declarations.
7810 (display_buffer): New function.
7811 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
7812 * dispnew.c (Flast_nonminibuf_frame): New function.
7813 * buffer.c (Fpop_to_buffer): Move to window.el.
7814
78152008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
7816
7817 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
7818
78192008-06-05 Kenichi Handa <handa@m17n.org>
7820
7821 * coding.c (detect_coding): Fix previous change.
7822 (detect_coding_system): Likewise.
7823
78242008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
7825
7826 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
7827
7828 * keymap.c (Vminibuffer_local_filename_must_match_map):
7829 Rename from Vminibuffer_local_must_match_filename_map.
7830 (syms_of_keymap):
7831 * minibuf.c (Fcompleting_read): Adjust accordingly.
7832 * commands.h: Rename declaration as well.
7833
78342008-06-05 Kenichi Handa <handa@m17n.org>
7835
7836 * font.c (Ffont_spec): Don't use font_parse_family_registry for
7837 family name.
7838 (Ffont_put): Likewise.
7839
7840 * fontset.c (fontset_find_font): Call font_open_for_lface with the
7841 current font-spec.
7842
7843 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
7844 is unspecified.
7845
7846 * xfaces.c (realize_x_face): If the font-related face attributes
7847 are the same as those of default face, realize a new fontset from
7848 default->fontset.
7849 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
7850
78512008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
7852
7853 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
7854 (move_it_in_display_line): New wrapper.
7855
7856 * window.c (window_scroll_pixel_based_preserve_x)
7857 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
7858 (window_scroll_pixel_based, window_scroll_line_based):
7859 Use them to preserve column positions.
7860 (syms_of_window): Initialize them.
7861
7862 * indent.c (Fvertical_motion): Extend first arg to allow passing an
7863 (HPOS . VPOS) pair.
7864
7865 * dispextern.h (move_it_in_display_line): Declare.
7866
78672008-06-05 Juanma Barranquero <lekktu@gmail.com>
7868
7869 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
7870 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
7871 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
7872
78732008-06-04 Juanma Barranquero <lekktu@gmail.com>
7874
7875 * window.c (Fset_window_parameter): Doc fix.
7876 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
7877
78782008-06-04 Joakim Verona <joakim@verona.se>
7879
7880 * window.h (struct window): Add new member window_parameters.
7881
7882 * window.c (Fwindow_parameters, Fwindow_parameter)
7883 (Fset_window_parameter): New defuns.
7884 (syms_of_window): Defsubr the new defuns.
7885 (make_window): Initialize window_parameters to nil.
7886
78872008-06-04 John Paul Wallington <jpw@pobox.com>
7888
7889 * eval.c (Fdefmacro): Doc fix.
7890
78912008-06-04 Kenichi Handa <handa@m17n.org>
7892
7893 * coding.c (detect_coding): Fix handling of coding->head_ascii.
7894 Be sure to call setup_coding_system when we find a proper coding system.
7895 (detect_coding_system): Fix handling of coding->head_ascii.
7896
78972008-06-03 Andreas Schwab <schwab@suse.de>
7898
7899 * font.c (font_prop_validate_spacing): Fix last change.
7900
79012008-06-03 Kenichi Handa <handa@m17n.org>
7902
7903 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
7904 (font_parse_fcname): Fix handling of unknown key.
7905
7906 * xfont.c (xfont_list): Try an alias.
7907
7908 * charset.c (char_charset): Return NULL if the arg charset_list is
7909 specified and C doesn't belong to any of them.
7910
79112008-06-02 Chip Coldwell <coldwell@redhat.com>
7912
7913 * font.c (font_pixel_size): Don't take cdr of an integer.
7914
79152008-06-02 Jim Meyering <meyering@redhat.com>
7916
7917 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
7918 * alloc.c (xfree): Return right away for a NULL arg.
7919 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
7920 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
7921 * mac.c (create_apple_event_from_event_ref): Likewise.
7922 (create_apple_event_from_drag_ref, cfstring_create_normalized):
7923 Likewise.
7924 * doprnt.c (doprnt1): Likewise.
7925 * frame.c (frame): Likewise.
7926 * keyboard.c (wipe_kboard): Likewise.
7927 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
7928 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
7929 * term.c (tty_default_color_capabilities, maybe_fatal)
7930 (delete_tty): Likewise.
7931 * w16select.c (string): Likewise.
7932 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
7933 * w32bdf.c (w32_free_bdf_font): Likewise.
7934 * w32fns.c (w32_unload_font): Likewise.
7935 * w32font.c (w32font_close): Likewise.
7936 * window.c (size_window): Likewise.
7937 * xselect.c (receive_incremental_selection): Likewise.
7938 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
7939 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
7940 * w32.c (stat): Likewise.
7941
7942 Remove useless if-before-free tests.
7943 * editfns.c (Fset_time_zone_rule): Likewise.
7944 * lread.c (nosuffix): Likewise.
7945 * ralloc.c (get_bloc): Likewise.
7946 * regex.c (reg_free): Likewise.
7947 * xftfont.c (xftfont_open, xftfont_close): Likewise.
7948 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
7949 * xsmfns.c (smc_save_yourself_CB): Likewise.
7950
79512008-06-02 Kenichi Handa <handa@m17n.org>
7952
7953 * font.c (font_find_for_lface): Handle float font size.
7954 (font_open_for_lface): Likewise.
7955
7956 * xfaces.c (x_supports_face_attributes_p): Check face->font before
7957 comparing the properties.
7958
79592008-06-01 Jason Rumney <jasonr@gnu.org>
7960
7961 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
7962 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
7963 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
7964 Don't add empty script list.
7965 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
7966
79672008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
7968
7969 * Makefile.in (dot, dotdot): Remove, update users.
7970 ".." has been used elsewhere in the file for a long time.
7971 (LIBXT_STATIC): Remove conditional based on unused variable.
7972
79732008-06-01 Miles Bader <miles@gnu.org>
7974
7975 * xfaces.c (Vface_remapping_alist): New variable.
7976 (syms_of_xfaces): Initialize it.
7977 (enum named_merge_point_kind): New type.
7978 (struct named_merge_point): Add `named_merge_point_kind' field.
7979 (push_named_merge_point): Make cycle detection respect different
7980 named-merge-point kinds.
7981 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
7982 Remove face-name alias resolution.
7983 (lface_from_face_name): New definition using
7984 `lface_from_face_name_no_resolve'.
7985 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
7986 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
7987 (get_lface_attributes): New definition that layers face-remapping on
7988 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
7989 (lookup_basic_face): New function.
7990 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
7991 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
7992 `get_lface_attributes'.
7993 (face_at_buffer_position): Use `lookup_basic_face' to lookup
7994 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
7995 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
7996
7997 * xdisp.c (init_iterator): Pass base_face_id through
7998 `lookup_basic_face' when we actually use it as a face-id.
7999 (handle_single_display_prop): Use `lookup_basic_face' to lookup
8000 DEFAULT_FACE_ID.
8001
8002 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
8003 lookup the initial face-id.
8004
8005 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
8006
80072008-06-01 Juanma Barranquero <lekktu@gmail.com>
8008
8009 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
8010 (Fremove_text_properties): Fix typos in docstrings.
8011
80122008-05-31 Kenichi Handa <handa@m17n.org>
8013
8014 * font.c (font_list_entities): Fix the car part of data to be
8015 stored in the cache.
8016
8017 * ftfont.c (ftfont_font_format): Don't use strcasestr.
8018
80192008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
8020
8021 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
8022 Add a `test' argument so another predicate than `equal' can be used.
8023 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
8024 (map_char_table): Remove unused vars `c' and `i'.
8025 * lisp.h (Foptimize_char_table): Adjust declaration.
8026 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
8027
80282008-05-30 Kenichi Handa <handa@m17n.org>
8029
8030 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
8031 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
8032 defined.
8033
80342008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
8035
8036 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
8037 (Fmake_variable_frame_local): Disallow mixing buffer-local and
8038 frame-local settings for the same variable.
8039
80402008-05-30 Kenichi Handa <handa@m17n.org>
8041
8042 * fontset.c (Ffont_info): Move to font.c.
8043 (syms_of_fontset): Delete defsubr of Sfont_info.
8044
8045 * font.c (font_style_to_value, font_score): Delete casting of the
8046 args to xstcasecmp.
8047 (register_font_driver): Increment num_font_drivers only when
8048 registering the driver globally.
8049 (Ffont_info): Move from fontset.c. Handle a font object too.
8050 (syms_of_font): Defsubr Sfont_info.
8051
80522008-05-29 Kenichi Handa <handa@m17n.org>
8053
8054 * coding.h (enum define_coding_utf8_arg_index): New enum.
8055 (enum coding_attr_index): Change coding_attr_utf_16_bom to
8056 coding_attr_utf_bom.
8057 (enum utf_bom_type): Rename from utf_16_bom_type.
8058 (struct utf_16_spec): Adjust for the above change.
8059 (struct coding_system): Add utf_8_bom in `spec' union.
8060
8061 * coding.c (CODING_UTF_8_BOM): New macro.
8062 (enum coding_category): Delete coding_category_utf_8, add
8063 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
8064 coding_category_utf_8_sig.
8065 (CATEGORY_MASK_UTF_8): Delete it.
8066 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
8067 (CATEGORY_MASK_UTF_8_SIG): New macros.
8068 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
8069 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
8070 CATEGORY_MASK_UTF_8_SIG.
8071 (CATEGORY_MASK_UTF_8): New macro.
8072 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
8073 (detect_coding_utf_8): Check BOM.
8074 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
8075 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
8076 (encode_coding_utf_16): Likewise.
8077 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
8078 (detect_coding, detect_coding_system): Handle utf-8-auto.
8079 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
8080 (syms_of_coding): Fix setting up of Vcoding_category_table.
8081
80822008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
8083
8084 * process.c (Faccept_process_output): If `millisec' is non-nil,
8085 `seconds' default to 0.
8086 (wait_reading_process_output): Also return non-nil if we read output
8087 from a non-running process.
8088
80892008-05-29 Jason Rumney <jasonr@gnu.org>
8090
8091 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
8092 `raster' specified.
8093 (add_font_entity_to_list): Allow non-opentype truetype fonts back
8094 in the uniscribe backend, but disallow any font that has no
8095 unicode subrange support.
8096
80972008-05-29 Juanma Barranquero <lekktu@gmail.com>
8098
8099 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
8100 Fix typos in docstrings.
8101
81022008-05-29 Kenichi Handa <handa@m17n.org>
8103
8104 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
8105 (Fx_family_fonts): Set frame correctly.
8106
81072008-05-28 Jason Rumney <jasonr@gnu.org>
8108
8109 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
8110
81112008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
8112
8113 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
8114 calling build_annotations.
8115
81162008-05-28 Juanma Barranquero <lekktu@gmail.com>
8117
8118 * coding.c (Fdecode_coding_region, Fencode_coding_region)
8119 (Fencode_coding_string):
8120 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
8121 <latin-extra-code-table>: Fix typos in docstrings.
8122 (syms_of_coding) <coding-system-alist>: Doc fix.
8123 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
8124
81252008-05-28 Kenichi Handa <handa@m17n.org>
8126
8127 * fontset.c (Ffont_info): Don't call font_close_object.
8128
8129 * font.c (font_parse_family_registry): Use Ffont_put to validate
8130 foundry and family.
8131 (font_delete_unmatched): Don't check spacing.
8132 (font_list_entities): Add spacing to the spec to list fonts.
8133
8134 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
8135 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
8136
8137 * coding.c (encode_coding_raw_text): Fix previous change.
8138 (encode_coding_object): When the dst_object is a buffer and is
8139 different from src_object, move gap to PT.
8140
81412008-05-27 Chong Yidong <cyd@stupidchicken.com>
8142
8143 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
8144
81452008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
8146
8147 * coding.c (encode_coding_raw_text): Set coding->produced_char for
8148 all branches. Compute it differently.
8149
8150 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
8151
81522008-05-27 Juanma Barranquero <lekktu@gmail.com>
8153
8154 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
8155 into "else if () ... else ...".
8156
81572008-05-27 Jason Rumney <jasonr@gnu.org>
8158
8159 * w32font.c (w32font_open_internal): Determine if glyph indices
8160 are likely to work here.
8161
81622008-05-27 Chong Yidong <cyd@stupidchicken.com>
8163
8164 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
8165 draw overlap glyphs with appropriate highlighting.
8166
81672008-05-27 Kenichi Handa <handa@m17n.org>
8168
8169 * xfont.c (xfont_open): Fix calculation of font->average_width.
8170
81712008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
8172
8173 * casefiddle.c (casify_object): Try to guess better whether the
8174 argument is a byte or a char.
8175
81762008-05-26 Andreas Schwab <schwab@suse.de>
8177
8178 * xselect.c (x_reply_selection_request): Properly handle format == 32.
8179 Always send multiples of format size.
8180
8181 * xterm.c (x_set_frame_alpha): Fix type mismatch.
8182
81832008-05-26 Jason Rumney <jasonr@gnu.org>
8184
8185 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
8186 (compute_metrics): Don't set failure if we just cleared the cache.
8187 (w32_weight_table): Remove unused variable.
8188 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
8189 backwards compatibility.
8190
81912008-05-25 Kenichi Handa <handa@m17n.org>
8192
8193 * w32term.c (x_draw_glyph_string):
8194 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
8195
8196 * xfaces.c: Delete unused function prototypes.
8197 (xstrlwr, font_frame): Delete them.
8198 (clear_face_cache): Delete unused variable.
8199
8200 * xftfont.c (xftfont_open): Delete unused variable.
8201 If underline_thickness is not 1, adjust underline_position.
8202
8203 * ftxfont.c (ftxfont_open): Delete unused variable.
8204
8205 * fontset.c (face_for_char): Optimize for the case of no charset
8206 property.
8207
8208 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
8209 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
8210 (otf_open, font_otf_capability, generate_otf_features)
8211 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
8212 Comment out by surrounding "#if 0" and "#endif" for the moment.
8213 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
8214 (syms_of_font): Codes for accessing above commented out.
8215
82162008-05-24 Eli Zaretskii <eliz@gnu.org>
8217
8218 * w32proc.c: Include dispextern.h.
8219
8220 * w32.c: Include dispextern.h.
8221
82222008-05-23 Juanma Barranquero <lekktu@gmail.com>
8223
8224 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
8225 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
8226 Fix typos in docstrings.
8227
82282008-05-23 Jason Rumney <jasonr@gnu.org>
8229
8230 * xsmfns.c: Remove includes that are already included by config.h.
8231
82322008-05-23 Kenichi Handa <handa@m17n.org>
8233
8234 * charset.c (Qemacs, charset_emacs): New variables.
8235 (char_charset): Fix for non-Unicode characters.
8236 (syms_of_charset): Define charset_emacs.
8237
8238 * w32term.c (x_draw_glyph_string): Be sure to update
8239 s->underline_thickness and s->underline_position. Be sure to draw
8240 underline within the current line area.
8241
8242 * xterm.c (x_draw_glyph_string): Be sure to update
8243 s->underline_thickness and s->underline_position. Be sure to draw
8244 underline within the current line area.
8245
8246 * fontset.c: Delete unused variables and add casting for char *
8247 throughout the file.
8248 (fontset_font): Try the fallback fonts of the current fontset
8249 before consulting the default fontset.
8250
8251 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
8252
8253 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
8254
82552008-05-22 Jason Rumney <jasonr@gnu.org>
8256
8257 * font.c: Don't include strings.h.
8258
8259 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
8260
8261 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
8262 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
8263 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
8264 to call xstrcasecmp.
8265
8266 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
8267
8268 * fontset.c (fs_query_fontset): Use xstrcasecmp.
8269
8270 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
8271
8272 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
8273
82742008-05-22 Kenichi Handa <handa@m17n.org>
8275
8276 * puresize.h (BASE_PURESIZE): Increase to 1220000.
8277
8278 * font.c (font_prop_validate_style): Adjust for the format
8279 change of font_style_table.
8280
8281 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
8282 two args.
8283
8284 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
8285 two args.
8286
82872008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
8288
8289 * minibuf.c (keys_of_minibuf): Delete.
8290 * lisp.h (keys_of_minibuf): Delete.
8291 * emacs.c (main): Don't call keys_of_minibuf.
8292
82932008-05-22 Kenichi Handa <handa@m17n.org>
8294
8295 * ftfont.c (ftfont_resolve_generic_family): Rename from
8296 ftfont_list_generic_family. Return a single family for each
8297 generic family.
8298 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
8299 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
8300 Call font_add_log.
8301 (ftfont_match): Call font_add_log.
8302
8303 * font.h (Ffont_xlfd_name): EXFUN adjusted.
8304 (FONT_DEBUG): Define it.
8305 (font_add_log): Extern it.
8306 (font_assert): Rename from xassert.
8307
8308 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
8309 (xfont_list_family): Call font_add_log.
8310 (xfont_match): Likewise.
8311 (memq_no_quit): Delete.
8312
8313 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
8314 call of Ffont_xlfd_name.
8315
8316 * xfaces.c (struct table_entry, slant_table, weight_table)
8317 (swidth_table): Move to font.c.
8318
8319 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
8320 xassert are changed to font_assert. Delete many unused variables.
8321 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
8322 New variables.
8323 (struct table_entry): Move from xfaces.c and modified.
8324 (weight_table, slant_table, width_table): Move from xfaces.c and
8325 contents adjusted for the change of struct table_entry.
8326 (font_style_to_value, font_style_symbolic): Adjust for the
8327 format change of font_style_table.
8328 (font_parse_family_registry): Don't overwrite existing foundry and
8329 family of font_spec.
8330 (font_score): Fix calculation of diff for sizes.
8331 (font_sort_entites): Call font_add_log.
8332 (font_delete_unmatched): Return a newly created list.
8333 (font_list_entities): Fix previous change. Call font_add_log.
8334 (font_matching_entity, font_open_entity, font_close_entity):
8335 Call font_add_log.
8336 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
8337 (Finternal_set_font_style_table): Delete.
8338 (BUILD_STYLE_TABLE): New macro.
8339 (build_style_table): New function.
8340 (Vfont_log, font_log_env_checked): New variables.
8341 (font_add_log): New function.
8342 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
8343 Declare Lisp variables "font-weight-table", "font-slant-table",
8344 "font-width-table", and "font-log". Initialize font_style_table.
8345
83462008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
8347
8348 * xterm.c (x_set_frame_alpha): Move declarations before statements.
8349
83502008-05-21 Seiji Zenitani <zenitani@mac.com>
8351 Ryo Yoshitake <ryo@shiftmode.net>
8352
8353 * frame.c (Qalpha): Add a new frame parameter `alpha'.
8354 (Vframe_alpha_lower_limit): New variable.
8355 (x_set_alpha): New function.
8356
8357 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
8358
8359 * xfns.c (x-create-frame, Qalpha):
8360 Initialize the frame parameter `alpha'.
8361 * xterm.c (OPAQUE, OPACITY): New.
8362 (x_set_frame_alpha): New function.
8363 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
8364
8365 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
8366 * w32fns.c (w32_frame_parm_handlers): Likewise.
8367
83682008-05-20 Jason Rumney <jasonr@gnu.org>
8369
8370 * w32font.c (add_font_entity_to_list): Don't add non-opentype
8371 truetype fonts to opentype list.
8372
83732008-05-20 Juanma Barranquero <lekktu@gmail.com>
8374
8375 * fontset.c (Ffontset_info): Doc fix.
8376 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
8377 <ignore-relative-composition>: Fix typos in docstrings.
8378
8379 * font.c (syms-of-font) <font-encoding-alist>:
8380 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
8381 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
8382 (Ffont_otf_alternates): Doc fixes.
8383
83842008-05-20 Kenichi Handa <handa@m17n.org>
8385
8386 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
8387 font.h through out the file.
8388 (FONT_DRIVERS): Rename from FONTOBJ.
8389 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
8390 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
8391
8392 * emacs.c (main): Call syms_of_font unconditionally.
8393
8394 * font.h (find_font_encoding): Extern it.
8395
8396 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
8397 fontset.c.
8398 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
8399 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
8400 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
8401 only when HAVE_WINDOW_SYSTEM is defined.
8402 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
8403 when HAVE_WINDOW_SYSTEM is defined.
8404
8405 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
8406 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
8407
8408 * xfaces.c: Include font.h unconditionally.
8409 (merge_face_ref, merge_face_vectors)
8410 (Finternal_set_lisp_face_attribute): Cancel the previous change.
8411
84122008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
8413
8414 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
8415 indirect_variable.
8416 * eval.c (lisp_indirect_variable): New fun.
8417 (Fuser_variable_p): Use it.
8418
84192008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
8420
8421 * lisp.h (indirect_variable):
8422 * data.c (indirect_variable, let_shadows_buffer_binding_p):
8423 Use Lisp_Symbol pointers rather than Lisp_Object.
8424 Adjust callers.
8425 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
8426 To this end, change calling-convention.
8427
8428 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
8429 if some non-hidden buffers are selected by string&pred.
8430
84312008-05-19 Chong Yidong <cyd@stupidchicken.com>
8432
8433 * process.c (wait_reading_process_output): Always check status
8434 when in batch mode.
8435
84362008-05-19 Kenichi Handa <handa@m17n.org>
8437
8438 * font.c (font_list_entities): Fix handling of cache.
8439 (font_matching_entity): Likewise.
8440
8441 * ftfont.c (cs_iso8859_1): Delete.
8442 (ft_face_cache): New variable.
8443 (struct ftfont_info): New member fc_charset_idx.
8444 (ftfont_build_basic_charsets): Delete.
8445 (fc_charset_table): New variable.
8446 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
8447 . FC_CHARSET_IDX) as :font-entity property in the font entity.
8448 Callers changed.
8449 (ftfont_lookup_cache, ftfont_get_charset): New functions.
8450 (ftfont_spec_pattern): New argument fc_charset_idx.
8451 Check registry more rigidly. Change callers.
8452 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
8453 change of :font-entity property of the font.
8454
8455 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
8456 property of the font.
8457
84582008-05-18 Juanma Barranquero <lekktu@gmail.com>
8459
8460 * coding.c (Fcoding_system_p): Rename argument to match docstring.
8461 (Funencodable_char_position, Fcheck_coding_systems_region)
8462 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
8463 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
8464 (Ffind_operation_coding_system, Fset_coding_system_priority)
8465 (Fcoding_system_eol_type): Doc fixes.
8466
84672008-05-17 Glenn Morris <rgm@gnu.org>
8468
8469 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
8470
84712008-05-16 Eli Zaretskii <eliz@gnu.org>
8472
8473 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
8474 and st_gid.
8475
8476 * frame.c (Fdelete_frame): Don't call font_update_drivers if
8477 HAVE_WINDOW_SYSTEM is not defined.
8478
8479 * xfaces.c (merge_face_ref, merge_face_vectors)
8480 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
8481 HAVE_WINDOW_SYSTEM is defined.
8482 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
8483
84842008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
8485
8486 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
8487
84882008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8489
8490 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
8491
84922008-05-15 Kenichi Handa <handa@m17n.org>
8493
8494 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
8495 preference.
8496
84972008-05-15 Glenn Morris <rgm@gnu.org>
8498
8499 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
8500
85012008-05-15 Chong Yidong <cyd@stupidchicken.com>
8502
8503 * fns.c (init_fns): Don't initialize weak_hash_tables here.
8504 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
8505
8506 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
8507
85082008-05-15 Kenichi Handa <handa@m17n.org>
8509
8510 * ftfont.c (ftfont_list): Downcase family name to check generic
8511 families.
8512
8513 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
8514 font-spec for QCfont value.
8515
8516 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
8517 buffer. Check the return value of it.
8518
85192008-05-14 Jason Rumney <jasonr@gnu.org>
8520
8521 * w32term.c (w32_get_glyph_overhangs): Remove.
8522 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
8523
85242008-05-14 Kenichi Handa <handa@m17n.org>
8525
8526 * font.c (font_prop_validate): Make nil a valid value.
8527 (font_clear_cache): Check if the cached vector of entities is nil
8528 or not.
8529
85302008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8531
8532 * emacs.c (main_thread): Conditionalize on
8533 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
8534 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
8535
8536 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
8537 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
8538 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
8539
85402008-05-14 Kenichi Handa <handa@m17n.org>
8541
8542 * coding.c (detect_coding_iso_2022): Ignore a coding category that
8543 has no corresponding coding system.
8544
85452008-05-14 Jason Rumney <jasonr@gnu.org>
8546
8547 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
8548
8549 * w32font.h (w32font_open_internal): Update declaration.
8550
8551 * w32font.c (w32font_open_internal): Change last argument from
8552 w32font_info struct to font object. Fill in font object from
8553 font_entity. Get Outline metrics if possible. Use them to
8554 calculate underline position and thickness. Use xlfd name as name
8555 property. Don't set codepage.
8556 (w32font_open): Pass font_object to w32font_open_internal. Don't
8557 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
8558 (w32font_draw): Use s->font.
8559 (clear_cached_metrics): Don't clear non-existent blocks.
8560
8561 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
8562 font was not found.
8563 (x_draw_glyph_string): Use underline position and thickness from font.
8564
8565 * w32uniscribe.c (uniscribe_open): Pass font_object to
8566 w32font_open_internal.
8567
85682008-05-14 Kenichi Handa <handa@m17n.org>
8569
8570 These changes are to delete all legacy font-handling codes, and
8571 make Emacs use only font-backends.
8572
8573 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
8574 (frame.o, image.o, print.o): Depend on $(FONTSRC).
8575
8576 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
8577
8578 * charset.h (Vcharset_non_preferred_head)
8579 (Vcurrent_iso639_language): Extern them.
8580
8581 * charset.c (Vcharset_non_preferred_head): New variable.
8582 (Vcurrent_iso639_language): New variable.
8583 (syms_of_charset): Declare it as a Lisp variable.
8584 (char_charset): Don't check non preferred charsets. As a last
8585 resort, return charset_unicode.
8586 (Fset_charset_priority): Update Vcharset_non_preferred_head.
8587
8588 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
8589 conditionals. Don't check enable_font_backend. Delete all codes
8590 used only when USE_FONT_BACKEND is not defined.
8591
8592 * dispextern.h (struct glyph_string): Change type of `font' to
8593 `struct font *'.
8594 (struct glyph_string): New member underline_position and
8595 underline_thickness.
8596 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
8597 (struct face): Change type of `font' to `struct font *'. Remove
8598 members `font_name', `font_info_id'.
8599 (per_char_metric, encode_char): Delete externs.
8600 (calc_pixel_width_or_height): Adjust the prototype.
8601
8602 * emacs.c (enable_font_backend): Delete extern.
8603 (main): Don't set enable_font_backend. Don't check the command
8604 line argument "-disable-font-backend".
8605
8606 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
8607 (enum font_property_index): New members FONT_DPI_INDEX,
8608 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
8609 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
8610 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
8611 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
8612 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
8613 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
8614 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
8615 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
8616 (struct font_spec, struct font_entity): New structs.
8617 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
8618 (struct font): Many members from old "struct font_info" moved to
8619 here. Members font and entity deleted.
8620 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
8621 the new font-related objects.
8622 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
8623 (CHECK_FONT_GET_OBJECT): Likewise.
8624 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
8625 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
8626 (struct font_driver): New members case_sensitive anc check. Type
8627 of the member list and open changed.
8628 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
8629 (font_symbolic_width, font_find_object, font_get_spec)
8630 (font_set_lface_from_name): Delete extern.
8631 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
8632
8633 * font.c: Include <strings.h>.
8634 (enable_font_backend): Delete it.
8635 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
8636 (CHECK_VALIDATE_FONT_SPEC): Delete it.
8637 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
8638 (null_string): Delete it.
8639 (null_vector): Make it static.
8640 (font_family_alist): Delete it.
8641 (Qnormal): Extern it.
8642 (QCextra, QClanguage): Delete it.
8643 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
8644 (font_make_spec, font_make_entity, font_make_object)
8645 (font_intern_prop): Renamed from intern_downcase. Don't downcase
8646 the string. Callers changed.
8647 (font_pixel_size): Adjusted for the format change of font-related
8648 objects.
8649 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
8650 (font_style_to_value, font_style_symbolic): New function.
8651 (build_font_family_alist): Delete it.
8652 (font_registry_charsets): Use Fassoc_string instead of
8653 assq_no_quit.
8654 (font_prop_validate_symbol): Don't return null_string.
8655 (font_prop_validate_style): Adjusted for the change of
8656 style-related values in a font vector.
8657 (font_property_table): Delete entries for QClanguage and
8658 QCantialias, add entries for QCavgwidth.
8659 (get_font_prop_index): Delete the 2nd argument FROM.
8660 (font_prop_validate): Arguments changed.
8661 (font_put_extra): Adjusted for the change of font-related objects.
8662 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
8663 (font_parse_fcname, font_unparse_fcname)
8664 (font_prepare_composition): Likewise.
8665 (font_parse_family_registry): Renamed from font_merge_old_spec.
8666 (otf_open): Delete the 1st arg entity.
8667 (font_otf_capability): Adjusted for the above change.
8668 (font_score): New arg alternate_families. Adjusted for the change
8669 of font-related objects.
8670 (font_sort_entites): New arg best_only.
8671 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
8672 Delete them.
8673 (font_match_p): Check alternate families.
8674 (font_find_object): Delete it.
8675 (font_check_object): New function.
8676 (font_clear_cache): Adjusted for the change of font-related objects.
8677 (font_delete_unmatched): New arg.
8678 (font_list_entities): Call font_driver->list with a spec that
8679 doesn't specify style-related properties.
8680 (font_matching_entity): Arguments changed. Caller changed.
8681 (font_open_entity): Adjusted for the change of font-related objects.
8682 (font_close_object, font_has_char, font_encode_char)
8683 (font_get_name, font_get_spec): Likewise.
8684 (font_spec_from_name, font_clear_prop, font_update_lface):
8685 New functions.
8686 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
8687 (font_prepare_for_face, font_done_for_face, font_open_by_name)
8688 (font_at): Adjusted for the change of font-related objects.
8689 (font_range): New function.
8690 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
8691 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
8692 (Fcopy_font_spec, Fmerge_font_spec): New function.
8693 (Ffont_family_list): Renamed from list-families.
8694 (Finternal_set_font_style_table): Arguments changed.
8695 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
8696 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
8697 change of font-related objects.
8698 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
8699
8700 * fontset.h (struct font_info): Delete it. Most members go to
8701 struct font.
8702 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
8703 (enum FONT_SPEC_INDEX): Delete it.
8704 (font_info, list_fonts_func, load_font_func, query_font_func)
8705 (set_frame_fontset_func, find_ccl_program_func)
8706 (get_font_repertory_func, new_fontset_from_font_name): Delete
8707 externs.
8708 (fontset_from_font_name): Extern it.
8709 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
8710 (FONT_INFO_FROM_FACE): Deleted.
8711 (face_for_font): Adjust prototype.
8712
8713 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
8714 conditionals. Don't check enable_font_backend. Delete all codes
8715 used only when USE_FONT_BACKEND is not defined.
8716 (get_font_info_func, list_font_func, load_font_func)
8717 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
8718 (get_font_repertory_func): Delete them.
8719 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
8720 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
8721 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
8722 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
8723 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
8724 (fontset_compare_rfontdef): New function.
8725 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
8726 rfont-defs by qsort. Adjusted for the change of font-group vector.
8727 (load_font_get_repertory): Deleted.
8728 (fontset_find_font): Use new macros to ref/set elements of
8729 font-def and rfont-def.
8730 (fontset_font): Fix the timing of remembering that no font for C.
8731 (free_face_fontset): Do nothing if the face has no fontset.
8732 (face_suitable_for_char_p): Use new macros to ref/set elements of
8733 rfont-def.
8734 (face_for_char): Likewise. Call face_for_char with font_object.
8735 (fs_load_font): Delete. Delete #pragma surrounding it.
8736 (fs_query_fontset): Use strcasecmp instead of strcmp.
8737 (generate_ascii_font_name): Adjusted for the format change of
8738 font-spec.
8739 (Fset_fontset_font): Likewise. Use new macros to set elements of
8740 font-def.
8741 (Fnew_fontset): Use font_unparse_xlfd to generate
8742 FONTSET_ASCII (fontset).
8743 (new_fontset_from_font_name): Deleted.
8744 (fontset_from_font): Renamed from new_fontset_from_font. Check if
8745 a fontset is already created for the font. FIx updating of
8746 Vfontset_alias_alist.
8747 (fontset_ascii_font): Deleted.
8748 (Ffont_info): Adjusted for the format change of font-spec.
8749 (Finternal_char_font): Likewise.
8750 (Ffontset_info): Likewise.
8751 (syms_of_fontset): Don't check load_font_func.
8752
8753 * fns.c (internal_equal): Handle PREV_FONT.
8754
8755 * frame.h: Delete USE_FONT_BACKEND conditional.
8756
8757 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
8758 conditionals. Don't check enable_font_backend. Delete all codes
8759 used only when USE_FONT_BACKEND is not defined.
8760 (x_set_font): Call x_new_font, not x_new_fontset2.
8761 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
8762 already set for the frame.
8763
8764 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
8765 a font-entity by font_make_entity. Use font_intern_prop instead
8766 of intern_downcase. Use FONT_SET_STYLE to set a style-related
8767 font property. If a font is scalable, set avgwidth property to 0.
8768 Set font-entity property by font_put_extra.
8769 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
8770 (ffont_driver): Adjusted for the change of struct font_driver.
8771 (ftfont_spec_pattern): New function.
8772 (ftfont_list): Return a list, not vector.
8773 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
8774 (ftfont_list_family): Don't downcase names.
8775 (ftfont_free_entity): Deleted.
8776 (ftfont_open): Return a font-object. Adjusted for the change of
8777 struct font. Get underline_thickness and underline_position from
8778 font property. Don't update dpyinfo->smallest_font_height and
8779 dpyinfo->smallest_char_width.
8780 (ftfont_close): Don't free `struct font'.
8781 (ftfont_has_char): Adjusted for the format change of font-entity.
8782 (ftfont_encode_char, ftfont_text_extents): Likewise.
8783
8784 * ftxfont.c (ftxfont_list): Return a list, not vector.
8785 (ftxfont_open): Return a font-object. Adjusted for the change of
8786 struct font. Get underline_thickness and underline_position from
8787 font property. Don't update dpyinfo->smallest_font_height and
8788 dpyinfo->smallest_char_width.
8789 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
8790 (ftxfont_draw): Adjusted for the change of struct font.
8791
8792 * image.c (image_ascent): Don't include "charset.h". Include
8793 "character.h" and "font.h".
8794
8795 * lisp.h (enum pvec_type): New member PREV_FONT.
8796 (Fassoc_string): EXFUN it.
8797
8798 * print.c: Include font.h.
8799 (print_object): Handle font-related objects.
8800
8801 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
8802 conditionals. Don't check enable_font_backend. Delete all codes
8803 used only when USE_FONT_BACKEND is not defined.
8804 (handle_auto_composed_prop): Do nothing if it->f is not on a
8805 window system. Check how many following characters can be
8806 displayed by the same font.
8807 (calc_pixel_width_or_height): Type of the 4th arg is changed to
8808 'struct font *'.
8809 (get_char_face_and_encoding): Assign the whole encoding task to
8810 the `encode-char' method of a font driver.
8811 (fill_composite_glyph_string): Adjusted for the change of `struct
8812 face' and `struct glyph_string'.
8813 (fill_glyph_string): Likewise.
8814 (get_per_char_metric): Arguments changed.
8815 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
8816 and `struct glyph_string'.
8817 (produce_stretch_glyph, calc_line_height_property)
8818 (x_produce_glyphs): Likewise.
8819
8820 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
8821 conditionals. Don't check enable_font_backend. Delete all codes
8822 used only when USE_FONT_BACKEND is not defined. Use
8823 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
8824 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
8825 (Qp): Extern them.
8826 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
8827 Deleted.
8828 (struct font_name): Deleted.
8829 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
8830 (compare_fonts_by_sort_order): New function.
8831 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
8832 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
8833 Deleted.
8834 (Fx_family_fonts): Use font_list_entities, and sort fonts by
8835 compare_fonts_by_sort_order.
8836 (Fx_font_family_list): Call Ffont_family_list.
8837 (face_numeric_value, face_numeric_weight, face_numeric_slant)
8838 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
8839 (face_symbolic_slant, face_symbolic_swidth)
8840 (split_font_name_into_vector, build_font_name_from_vector)
8841 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
8842 (font_rescale_ratio, split_font_name, build_font_name)
8843 (free_font_names, sort_fonts, x_face_list_fonts)
8844 (face_font_available_p, sorted_font_list, cmp_font_names)
8845 (font_list_1, concat_font_list, font_list, remove_duplicates):
8846 Deleted.
8847 (Fx_list_fonts): Use Ffont_list.
8848 (LFACE_AVGWIDTH): Deleted.
8849 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
8850 by FONTP.
8851 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
8852 (set_lface_from_font_name): Delete it.
8853 (set_lface_from_font): Renamed from
8854 set_lface_from_font_and_fontset. Caller changed. Don't set
8855 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
8856 for face.
8857 (merge_face_vectors): Copy font-spec if necessary.
8858 Clear properties of the font-spec if necessary.
8859 (merge_face_ref): Clear properties of the font-spec if necessary.
8860 (Finternal_set_lisp_face_attribute): Likewise.
8861 (set_font_frame_param): Use font_load_for_lface to load a
8862 font-object, and call Fmodify_frame_parameters with it.
8863 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
8864 font name by Ffont_xlfd_name.
8865 (Finternal_lisp_face_attribute_values): Don't check QCweight,
8866 QCslant, and QCwidth.
8867 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
8868 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
8869 Compare fonts by EQ.
8870 (lookup_non_ascii_face): Deleted.
8871 (face_for_font): The 2nd argument changed.
8872 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
8873 Check atomic font properties by case insensitive.
8874 (realize_non_ascii_face): Set face->overstrike correctly.
8875 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
8876 (dump_realized_face): Get font name from
8877 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
8878
8879 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
8880 conditionals. Don't check enable_font_backend. Delete all codes
8881 used only when USE_FONT_BACKEND is not defined.
8882 (xic_create_xfontset): Original code deleted and renamed from
8883 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
8884 (x_make_gc): Don't set GCFont in GCs.
8885 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
8886 opened by "fixed".
8887 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
8888 find_ccl_program_func, query_font_func, set_frame_fontset_func,
8889 get_font_repertory_func.
8890
8891 * xfont.c: Include <stdlib.h> and "ccl.h".
8892 (struct xfont_info): New structure.
8893 (xfont_query_font): Deleted.
8894 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
8895 moved from xterm.c.
8896 (xfont_driver): Adjusted for the change of struct font_driver.
8897 (compare_font_names): New function.
8898 (xfont_list_pattern): Sort font names case insensitively. Make
8899 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
8900 (xfont_list): Return a list, not vector.
8901 (xfont_match): If the font doesn't have QCname property, generate
8902 a name from the other font properties.
8903 (xfont_open): Return a font-object. Adjusted for the change of
8904 struct font. Get underline_thickness and underline_position from
8905 font property. Don't update dpyinfo->smallest_font_height and
8906 dpyinfo->smallest_char_width.
8907 (xfont_close): Don't free struct font.
8908 (xfont_prepare_face): Adjusted for the change of struct font.
8909 (xfont_done_face): Deleted.
8910 (xfont_has_char): Adjusted for the change of struct font.
8911 (xfont_encode_char, xfont_draw): Likewise.
8912 (xfont_check): New function.
8913
8914 * xftfont.c (xftfont_list): Adjusted for the change of `list'
8915 callback function.
8916 (xftfont_match): Adjusted for the format change of font-entity.
8917 (xftfont_open): Adjusted for the format change of font-entity and
8918 font-object. Adjusted for the change of struct font. Return a
8919 font-object. Don't update dpyinfo->smallest_font_height and
8920 dpyinfo->smallest_char_width.
8921 (xftfont_close): Block input while calling XftFontClose.
8922 (xftfont_prepare_face): Don't block input while calling
8923 xftfont_get_colors. Adjusted for the change of struct font.
8924 (xftfont_shape): Return value of error case fixed.
8925
8926 * xrdb.c (x_load_resources): Don't setup a fontset resource.
8927
8928 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
8929 conditionals.
8930 (FONT_WIDTH): Return (f)->max_width.
8931 (struct x_display_info): Delete member `font'.
8932 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
8933 (x_find_ccl_program, x_get_font_repertory): Delete externs.
8934 (struct x_output): Change type of `font' to `struct font *'.
8935
8936 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
8937 conditionals. Don't check enable_font_backend. Delete all codes
8938 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
8939 (x_per_char_metric, x_encode_char): Deleted.
8940 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
8941 (x_compute_glyph_string_overhangs): Adjusted for the change of
8942 `struct face'.
8943 (x_draw_glyph_string_foreground)
8944 (x_draw_composite_glyph_string_foreground): Likewise.
8945 (x_draw_glyph_string): Likewise. Use font->underline_position and
8946 font->underline_thickness.
8947 (x_new_font): Renamed from x_new_fontset2.
8948 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
8949 (x_check_font): Call `check' method of a font driver.
8950 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
8951 (x_query_font, x_get_font_repertory): Deleted.
8952 (x_find_ccl_program): Renamed and moved to xfont.c.
8953 (x_redisplay_interface): Adjusted for the change of `struct
8954 redisplay_interface'.
8955
8956 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
8957 conditionals. Don't check enable_font_backend. Delete all codes
8958 used only when USE_FONT_BACKEND is not defined. Surround non-used
8959 code by "#ifdef OLD_FONT" and "endif".
8960 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
8961
8962 * w32font.h (struct w32font_info): New member.
8963 (FONT_COMPAT): New macro.
8964 (w32font_open_internal): Prototype adjusted.
8965
8966 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
8967 OLD_FONT" and "endif".
8968
8969 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
8970 conditionals. Don't check enable_font_backend. Delete all codes
8971 used only when USE_FONT_BACKEND is not defined.
8972 (w32font_open): Return a font-object. Make a font-object by
8973 font_make_object. Adjusted for the change of struct w32font_info.
8974 (w32font_close): Don't free struct font. Adjusted for the change
8975 of struct w32font_info.
8976 (w32font_encode_char, w32font_text_extents, w32font_draw):
8977 Adjusted for the change of struct w32font_info.
8978 (w32font_draw): Likewise.
8979 (w32font_list_internal): Return a list, not vector.
8980 (w32font_open_internal): Change the 4th arg to font-object.
8981 Adjusted for the change of struct w32font_info and font-object format.
8982 (add_font_name_to_list): Don't downcase names.
8983 (w32_enumfont_pattern_entity): Make a font-entity by
8984 font_make_entity. Adjusted for the format change of font-entity.
8985 Use FONT_SET_STYLE to set a style-related font property. If a
8986 font is scalable, set avgwidth property to 0. Set font-entity
8987 property by font_put_extra.
8988 (font_matches_spec): Adjusted for the format change of font-entity.
8989 (w32_weight_table, w32_decode_weight): New variables.
8990 (w32_encode_weight): New function.
8991 (fill_in_logfont): Adjusted for the format change of font-spec.
8992 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
8993 weight value.
8994 (w32font_driver): Adjusted for the change of struct font_driver.
8995
8996 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
8997 conditionals. Don't check enable_font_backend. Surround non-used
8998 code by "#ifdef OLD_FONT" and "endif".
8999 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
9000 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
9001
9002 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
9003 conditionals. Don't check enable_font_backend. Delete all codes
9004 used only when USE_FONT_BACKEND is not defined. Surround non-used
9005 code by "#ifdef OLD_FONT" and "endif".
9006
9007 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
9008 (uniscribe_open): Return value changed to font-object.
9009 Adjusted for the format change of font-object.
9010 (uniscribe_otf_capability): Adjusted for the change of struct font.
9011 (add_opentype_font_name_to_list): Don't downcase names.
9012 (uniscribe_font_driver): Adjusted for the change of struct
9013 font_driver.
9014
90152008-05-13 Chong Yidong <cyd@stupidchicken.com>
9016
9017 * dispnew.c (update_frame_1): Check if tty output is still valid
9018 before flushing it.
9019
90202008-05-13 Jan Djärv <jan.h.d@swipnet.se>
9021
9022 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
9023 to Gtk+ menus.
9024
90252008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
9026
9027 * dired.c (file_name_completion): Tweak the code so as to always do it
9028 in a single pass. Tighten the scope of some variables.
9029
9030 * dired.c (Qdefault_directory): New var.
9031 (file_name_completion): Use it instead of Fexpand_file_name.
9032 (syms_of_dired): Initialize it.
9033
90342008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
9035
9036 * fileio.c (double_dollars): Remove dead code.
9037
90382008-05-10 Eli Zaretskii <eliz@gnu.org>
9039
9040 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
9041 Mention w32-get-true-file-attributes in doc string.
9042
9043 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
9044
90452008-05-09 Glenn Morris <rgm@gnu.org>
9046
9047 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
9048 2008-04-23.
9049
90502008-05-09 Eli Zaretskii <eliz@gnu.org>
9051
9052 Support for reporting owner and group of each file on MS-Windows:
9053 * dired.c (stat_uname, stat_gname): New functions, with special
9054 implementation for w32.
9055 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
9056
9057 * w32.c: Rename the_passwd_* to dflt_passwd_*.
9058 (dflt_group_name): New static variable.
9059 (dflt_group): Rename from the_group.
9060 (init_user_info): Init dflt_group fields. Get user's group name
9061 from LookupAccountSid.
9062 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
9063 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
9064 New initialization states.
9065 (globals_of_w32): Initialize them to zero. Initialize the default
9066 group name to "None".
9067 (GetFileSecurity_Name): New global var, the name of the function
9068 to call for GetFileSecurity.
9069 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
9070 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
9071 (get_file_security, get_security_descriptor_owner)
9072 (get_security_descriptor_group, is_valid_sid)
9073 (get_file_security_desc, get_rid, get_name_and_id)
9074 (get_file_owner_and_group): New functions.
9075 (stat): Use get_file_security_desc and get_file_owner_and_group to
9076 report the owner and primary group of each file. Don't ignore the
9077 high 32 bits of file's size, now that st_size is 64-bit wide.
9078 Fix test when to get true file attributes.
9079 (init_user_info): Use get_rid instead of equivalent inline code.
9080 (fstat): Don't ignore the high 32 bits of file's size.
9081
90822008-05-09 Chong Yidong <cyd@stupidchicken.com>
9083
9084 * image.c (png_load): Use correct bit-depth for setting background
9085 color.
9086
90872008-05-08 Eli Zaretskii <eliz@gnu.org>
9088
9089 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
9090 epa-hook.elc.
9091
90922008-05-08 Juanma Barranquero <lekktu@gmail.com>
9093
9094 * font.c (Ffont_match_p): Don't use `iff' in docstring.
9095
90962008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
9097
9098 * macfns.c (Fx_create_frame): Make a copy of frame parameters
9099 because the original parameters are in pure storage now.
9100 (mac_window): Remove unused params. Update callers.
9101
91022008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
9103
9104 * lread.c (substitute_object_recurse): Use lower-level primitives.
9105 Don't signal errors when traversing sub-char-tables.
9106 Don't loop over all the possible characters when traversing char-tables.
9107
9108 * print.c (print_preprocess): Add sub-char-tables to the print-table,
9109 just like we do in print.c.
9110
91112008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
9112
9113 * minibuf.c (Ftry_completion): Remove code left over from when we used
9114 scmp instead of Fcompare_strings.
9115
91162008-05-04 Juanma Barranquero <lekktu@gmail.com>
9117
9118 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
9119
91202008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9121
9122 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
9123 Create bitmap context in native byte order.
9124
9125 * macterm.c (XDrawLine)
9126 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
9127 context in native byte order.
9128
91292008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9130
9131 * config.in: Regenerate.
9132
9133 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
9134 New definitions for Image I/O support.
9135 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
9136 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
9137 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
9138 (mac_data_provider_release_data, image_load_image_io)
9139 [USE_MAC_IMAGE_IO]: New functions.
9140 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
9141 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
9142 (init_image_func_pointer) [MAC_OSX]: Remove function.
9143 (image_load_quartz2d) [MAC_OSX]: Check availability of
9144 CGImageCreateWithPNGDataProvider at compile time.
9145 Use lowercase `false' for boolean constant.
9146 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
9147 Use image_load_image_io.
9148 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
9149 Don't check MyCGImageCreateWithPNGDataProvider.
9150 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
9151 Don't call init_image_func_pointer.
9152
9153 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
9154
9155 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
9156 Make variable non-static.
9157 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
9158 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
9159
9160 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
9161 (RED_FROM_ULONG): Mask off higher bits.
9162 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
9163
9164 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
9165 Include AvailabilityMacros.h.
9166 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
9167 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
9168
91692008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
9170
9171 * chartab.c (Fset_char_table_range): If range is t, really set all
9172 chars to that value.
9173
91742008-05-03 Eli Zaretskii <eliz@gnu.org>
9175
9176 * dired.c (Ffile_attributes): Don't allow the device number become
9177 negative.
9178
91792008-05-02 Daiki Ueno <ueno@unixuser.org>
9180
9181 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
9182
91832008-05-02 Juri Linkov <juri@jurta.org>
9184
9185 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
9186 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
9187 DEFAULT argument as a list of default values in docstrings.
9188
91892008-05-01 Chong Yidong <cyd@stupidchicken.com>
9190
9191 * puresize.h (BASE_PURESIZE): Increase to 1210000.
9192
91932008-05-01 Martin Rudalics <rudalics@gmx.at>
9194
9195 * dispnew.c (change_frame_size_1): Preserve small windows when
9196 shrinking frames by calling set_window_height|width with third
9197 arg 2.
9198
9199 * window.h (struct window): Replace field too_small_ok by field
9200 resize_proportionally.
9201
9202 * window.c (make_window): Initialize resize_proportionally.
9203 (enlarge_window): Temporarily set resize_proportionally to make
9204 sure that shrink_windows does scale the window proportionally.
9205 (shrink_windows): When window has resize_proportionally set try
9206 to shrink it proportionally by stealing from other windows.
9207 (struct saved_window, Fset_window_configuration)
9208 (compare_window_configurations): Handle resize_proportionally.
9209 (WINDOW_TOTAL_SIZE): New macro.
9210 (window_min_size, shrink_windows, size_window): Use it.
9211 (check_min_window_sizes): Remove. Invalid values of
9212 window-min-height|width are handled by window_min_size_2 now.
9213 (size_window, Fsplit_window, enlarge_window)
9214 (adjust_window_trailing_edge, grow_mini_window): Don't call
9215 check_min_window_sizes.
9216 (window_min_size_2, window_min_size_1, window_min_size):
9217 New argument safe_p for retrieving "safe" minimum sizes.
9218 (Fdisplay_buffer, Fsplit_window, enlarge_window)
9219 (adjust_window_trailing_edge, grow_mini_window):
9220 Adjust arguments of window_min_size... functions.
9221 (shrink_windows): Argument min_size removed. New argument
9222 safe_p allows shrinking windows to their safe minimum sizes.
9223 Calculate minimum size and decide whether a window shall be
9224 deleted for each window individually.
9225 (size_window): When nodelete_p equals 2, tell shrink_windows to
9226 delete windows only if their new minimum size is no more safe.
9227 (shrink_window_lowest_first): Call window_min_size_1 to make
9228 sure to preserve modeline of bottom-most window when resizing
9229 the minibuffer.
9230 (Fset_window_configuration, Fcurrent_window_configuration)
9231 (compare_window_configurations): Do not handle
9232 window-min-height|width any more.
9233 (syms_of_window): Clarify window-min-height|width doc-strings.
9234
92352008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
9236
9237 * dired.c (file_name_completion): Fix up the encoding/decoding issue
9238 some more. Copy some of the code from Ftry_completions.
9239 Remove special case code that dates back to initial revision when the
9240 slash was only added when necessary and that can't trigger nowadays.
9241
92422008-04-27 Kenichi Handa <handa@m17n.org>
9243
9244 * font.c (font_prop_validate): Signal `error' instead of `font'.
9245
92462008-04-29 Jason Rumney <jasonr@gnu.org>
9247
9248 * w32fns.c (Fw32_battery_status): New defun.
9249 (syms_of_w32fns): Defsubr it.
9250
92512008-04-28 Andreas Schwab <schwab@suse.de>
9252
9253 * dired.c (file_name_completion): Fix another mixing of encoded
9254 and decoded names.
9255
92562008-04-28 Juanma Barranquero <lekktu@gmail.com>
9257
9258 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
9259
92602008-04-27 Juanma Barranquero <lekktu@gmail.com>
9261
9262 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
9263
92642008-04-27 Andreas Schwab <schwab@suse.de>
9265
9266 * dired.c (file_name_completion): Fix inappropriate mixing of
9267 encoded and decoded names.
9268
9269 * xterm.c (XTread_socket): Fix use of uninitialized variable.
9270
9271 * puresize.h (BASE_PURESIZE): Increase to 1200000.
9272
92732008-04-26 Eli Zaretskii <eliz@gnu.org>
9274
9275 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
9276 2008-03-31, it's not needed anymore with `struct stat' definition
9277 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
9278 for the same reasons.
9279
92802008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
9281
9282 * m/sparc.h: Additional redefinitions for GNU/Linux.
9283
92842008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9285
9286 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
9287 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
9288 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
9289 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
9290 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
9291 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
9292 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
9293 Likewise.
9294
9295 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
9296 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
9297 (mac_ax_number_of_characters): Add externs.
9298 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
9299 [USE_MAC_TSM]: Likewise.
9300 (mac_handle_text_input_event) [MAC_OSX]:
9301 Handle kEventTextInputOffsetToPos for no active input area case.
9302 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
9303 (mac_handle_document_access_event)
9304 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
9305 (install_application_handler) [MAC_OSX]: Register handlers for
9306 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
9307 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
9308 Register mac_handle_document_access_event.
9309
9310 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
9311 Make functions non-static.
9312
93132008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
9314
9315 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
9316 (read_file_name_completion_ignore_case, insert_default_directory)
9317 (Qdefault_directory): Move to minibuffer.el.
9318 (Fread_file_name): Call the new `read-file-name' instead.
9319
93202008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9321
9322 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
9323 Make function non-static.
9324 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
9325 Remove function.
9326 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
9327 Move to mactoolbox.c.
9328 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
9329
9330 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
9331 (mac_rect_make): New macro.
9332
9333 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
9334 instead of float.
9335 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
9336 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
9337 (XSetBackground) [USE_CG_DRAWING]: Likewise.
9338 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
9339 CGRectMake.
9340 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
9341 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
9342 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
9343 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
9344 instead of WindowRef in argument type.
9345 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
9346 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
9347 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
9348 instead of DISPLAY. All uses changed.
9349 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
9350 (x_calc_absolute_position): Simplify so as not to use
9351 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
9352
9353 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
9354 instead of WindowRef in argument type.
9355 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
9356 [TARGET_API_MAC_CARBON]: Remove externs.
9357 (create_apple_event, mac_event_parameters_to_lisp)
9358 [TARGET_API_MAC_CARBON]: Add externs.
9359
9360 * mactoolbox.c (Vmac_ts_script_language_on_focus)
9361 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
9362 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
9363 is clicked.
9364 (x_activate_menubar): Remove extern for saved_menu_event_location.
9365 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
9366 Move from mac.c.
9367
93682008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9369
9370 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
9371 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
9372
93732008-04-23 Jason Rumney <jasonr@gnu.org>
9374
9375 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
9376 attributes only for local files.
9377
9378 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
9379 default to Qlocal.
9380
93812008-04-22 Juri Linkov <juri@jurta.org>
9382
9383 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
9384 read-buffer-to-switch instead of using the letter "B".
9385
93862008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
9387
9388 * fileio.c (Qdefault_directory): New variable.
9389 (Fread_file_name): Use it to pass `dir' to the completion functions.
9390
93912008-04-20 Chong Yidong <cyd@stupidchicken.com>
9392
9393 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
9394
93952008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
9396
9397 * keyboard.c (Vpre_help_message): Remove.
9398 (show_help_echo): Remove default C code.
9399
9400 * dired.c (directory_files_internal, file_name_completion):
9401 Only call ENCODE_FILE if the string is indeed decoded.
9402
94032008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
9404
9405 * Makefile.in (TOOLKIT_DEFINES): Remove.
9406 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
9407
94082008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9409
9410 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
9411 (mactoolbox.o): New target.
9412
9413 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
9414 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
9415
9416 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
9417 Use mac_set_frame_window_background instead of XSetWindowBackground.
9418 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
9419 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
9420 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
9421 instead of SetWindowTitleWithCFString.
9422 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
9423 Move function to mactoolbox.c.
9424 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
9425 Use mac_set_window_modified instead of SetWindowModified.
9426 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
9427 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
9428 (Fx_focus_frame): Use mac_front_non_floating_window instead of
9429 FrontNonFloatingWindow. Use mac_activate_window instead of
9430 ActivateWindow. Use mac_active_non_floating_window instead of
9431 ActiveNonFloatingWindow.
9432 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
9433 Use mac_show_hourglass and mac_hide_hourglass.
9434 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
9435 instead of GetGlobalMouse.
9436 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
9437 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
9438 Use mac_bring_window_to_front instead of BringToFront.
9439 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
9440 mactoolbox.c.
9441 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
9442 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
9443 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
9444 mactoolbox.c.
9445
9446 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
9447 (XtPointer): Move typedef from macmenu.c.
9448 (enum button_type): Move enum from macmenu.c.
9449 (widget_value): Move typedef from macmenu.c.
9450 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
9451 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
9452 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
9453 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
9454 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
9455 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
9456 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
9457 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
9458 (Selection): Move typedef from macselect.c.
9459 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
9460 macterm.c.
9461 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
9462 (mac_is_window_collapsed, mac_bring_window_to_front)
9463 (mac_send_window_behind, mac_hide_window, mac_show_window)
9464 (mac_collapse_window, mac_front_non_floating_window)
9465 (mac_active_non_floating_window, mac_activate_window)
9466 (mac_move_window_structure, mac_move_window, mac_size_window)
9467 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
9468
9469 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
9470 (enum mac_menu_kind): Move enum to mactoolbox.c.
9471 (min_menu_id): Move variable to mactoolbox.c.
9472 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
9473 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
9474 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
9475 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
9476 [TARGET_API_MAC_CARBON]: Likewise.
9477 (XtPointer): Move typedef to macgui.h.
9478 (enum button_type): Move enum to macgui.h.
9479 (widget_value): Move typedef to macgui.h.
9480 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
9481 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
9482 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
9483 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
9484 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
9485 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
9486 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
9487 (popup_activated_flag): Make variable non-static.
9488 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
9489 (add_menu_item, fill_menu, dispose_menus):
9490 Move functions to mactoolbox.c.
9491 (restore_show_help_function, menu_target_item_handler)
9492 (install_menu_target_item_handler, mac_handle_dialog_event)
9493 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
9494 [TARGET_API_MAC_CARBON]: Likewise.
9495 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
9496 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
9497 (find_and_call_menu_selection, name_is_separator): Make function
9498 non-static.
9499 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
9500 to mactoolbox.c.
9501 (set_frame_menubar): Don't call install_menu_quit_handler.
9502 (menu_item_selection): New variable.
9503 (mac_menu_show): Use create_and_show_popup_menu.
9504 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
9505 selection but set variable menu_item_selection. All uses changed.
9506 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
9507 Call install_menu_quit_handler. Move to mactoolbox.c.
9508
9509 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
9510 (Selection): Move typedef to macgui.h.
9511 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
9512 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
9513 Make variables non-static.
9514 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
9515 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
9516 Make functions non-static.
9517 (Vmac_service_selection) [MAC_OSX]: Likewise.
9518 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
9519 (mac_valid_selection_target_p, mac_clear_selection)
9520 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
9521 (mac_put_selection_value, mac_selection_has_target_p)
9522 (mac_get_selection_value, mac_get_selection_target_list)
9523 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
9524 Move functions to mactoolbox.c.
9525 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
9526 Likewise.
9527 (copy_scrap_flavor_data, mac_handle_service_event)
9528 (install_service_handler) [MAC_OSX]: Likewise.
9529 (syms_of_macselect) <Vmac_dnd_known_types>:
9530 Use mac_dnd_default_known_types.
9531
9532 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
9533 Move to mactoolbox.c.
9534 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
9535 (Fx_selection_owner_p): Add EXFUN.
9536 (install_window_handler, remove_window_handler, XSetWindowBackground):
9537 Remove externs.
9538 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
9539 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
9540 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
9541 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
9542 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
9543 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
9544 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
9545 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
9546 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
9547 (create_and_show_popup_menu, mac_get_selection_from_symbol)
9548 (mac_valid_selection_target_p, mac_clear_selection)
9549 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
9550 (mac_put_selection_value, mac_selection_has_target_p)
9551 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
9552 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
9553 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
9554 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
9555 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
9556 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
9557 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
9558 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
9559 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
9560
9561 * mactoolbox.c: New file.
9562
95632008-04-18 Jason Rumney <jasonr@gnu.org>
9564
9565 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
9566
95672008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
9568
9569 * character.c (Fmultibyte_char_to_unibyte):
9570 Return latin1 chars unchanged.
9571
9572 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
9573 relocated if it points to `name'.
9574
95752008-04-17 Kenichi Handa <handa@m17n.org>
9576
9577 * data.c (Faset): Allow setting a multibyte character in an
9578 ASCII-only unibyte string.
9579
9580 * lisp.h (STRING_SET_MULTIBYTE): New macro.
9581
95822008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
9583
9584 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
9585 done in config.h.
9586
95872008-04-16 Juanma Barranquero <lekktu@gmail.com>
9588
9589 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
9590 (Fchar_direction): Add usage in the docstring.
9591
95922008-04-15 Chong Yidong <cyd@stupidchicken.com>
9593
9594 * keyboard.c (read_key_sequence): Remove always-true checks.
9595
95962008-04-14 Jason Rumney <jasonr@gnu.org>
9597
9598 * w32font.c (w32font_open_internal): Set max_bounds.descent in
9599 compatibility struct, for better underline positioning.
9600
96012008-04-13 David Hansen <david.hansen@gmx.net>
9602
9603 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
9604 string.
9605
96062008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
9607
9608 * m/hp800.h (XUINT, XSET): Remove.
9609
96102008-04-12 Juanma Barranquero <lekktu@gmail.com>
9611
9612 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
9613 previous change.
9614
96152008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
9616
9617 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
9618 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
9619
96202008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
9621
9622 * keymap.h (map_keymap_canonical): Declare.
9623 * xmenu.c (single_keymap_panes): Use it.
9624
96252008-04-11 Glenn Morris <rgm@gnu.org>
9626
9627 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
9628 set the target's value to that of the alias.
9629
96302008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
9631
9632 * term.c (set_tty_color_mode): Left over typo.
9633
96342008-04-10 Michael Albinus <michael.albinus@gmx.de>
9635
9636 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
9637 only after check for file name handler functions. Signal, when
9638 native functionality is not supported.
9639 (syms_of_fileio): Declare it unconditionally.
9640
96412008-04-10 Jason Rumney <jasonr@gnu.org>
9642
9643 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
9644 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
9645
9646 * w32.c (logon_network_drive): Also logon to remote drives that
9647 are mapped to drive letters.
9648
96492008-04-10 Glenn Morris <rgm@gnu.org>
9650
9651 * xdisp.c (truncate-partial-width-windows): Doc fix.
9652
96532008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
9654
9655 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
9656 Move functions to minibuffer.el.
9657 (syms_of_fileio): Don't declare them.
9658
96592008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
9660
9661 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
9662 (syms_of_minibuf): Remove its initialization.
9663
9664 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
9665
96662008-04-09 Juanma Barranquero <lekktu@gmail.com>
9667
9668 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
9669
96702008-04-09 Jason Rumney <jasonr@gnu.org>
9671
9672 * makefile.w32-in (distclean): Delete makefile too.
9673 (maintainer-clean): New target.
9674
9675 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
9676
9677 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
9678 for new font backend and composite cases.
9679
96802008-04-09 Jan Djärv <jan.h.d@swipnet.se>
9681
9682 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
9683 Most of the code moved to run_timers.
9684 (do_pending_atimers): Call run_timers.
9685 (run_timers): New function.
9686
9687 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
9688 run atimers.
9689
9690 * process.c (wait_reading_process_output): The same as above.
9691
96922008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
9693
9694 * minibuf.c (last_exact_completion): Remove variable.
9695 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
9696 (complete_and_exit_1, complete_and_exit_2)
9697 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
9698 (Fdisplay_completion_list, display_completion_list_1)
9699 (Fminibuffer_completion_help, Fself_insert_and_exit)
9700 (Fexit_minibuffer, Fminibuffer_message): Move functions to
9701 minibuffer.el.
9702 (syms_of_minibuf): Remove corresponding initializations.
9703
9704 * keyboard.c (Qdeactivate_mark): New var.
9705 (command_loop_1): Use it to call `deactivate-mark'.
9706 (syms_of_keyboard): Initialize it.
9707
9708 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
9709 to another frame.
9710 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
9711 Don't call set_tty_color_mode.
9712 (store_frame_param): Reset previous_frame rather than call
9713 set_tty_color_mode.
9714 * term.c (set_tty_color_mode): Rewrite.
9715 * dispextern.h (set_tty_color_mode): New type.
9716 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
9717
97182008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
9719
9720 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
9721 for generic chars, which do not exist any more in emacs-unicode.
9722
97232008-04-08 Michael Albinus <michael.albinus@gmx.de>
9724
9725 * coding.c (detect_coding_emacs_mule)
9726 (Ffind_operation_coding_system): Fix typo.
9727
97282008-04-08 Jason Rumney <jasonr@gnu.org>
9729
9730 * w32uniscribe.c (SNAME): Extract only symbol name.
9731
9732 * w32font.h (struct w32_metric_cache): New struct.
9733 (w32font_info): Use it.
9734 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
9735 (CACHE_BLOCKSIZE): New constants.
9736
9737 * w32font.c (Qja, Qko, Qzh): New symbols.
9738 (syms_of_w32font): Initialise them.
9739 (font_matches_spec): Use them to filter by language.
9740 (recompute_cached_metrics): Remove function.
9741 (compute_metrics, clear_cached_metrics): New functions.
9742 (w32font_encode_char): Use them to manage metric cache.
9743 (w32font_text_extents): Cache metrics for all glyphs on demand.
9744 Delay converting glyph indices to WORD until needed.
9745 (w32font_open_internal): Initialize metric cache to empty.
9746 (registry_to_w32_charset): Charset should always be a symbol.
9747 (fill_in_logfont, list_all_matching_fonts): Family should
9748 always be a symbol.
9749
97502008-04-06 Jason Rumney <jasonr@gnu.org>
9751
9752 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
9753 Give up if glyph indices not supported. Use uniscribe obtained
9754 ABC widths for individual metrics. Map glyph clusters back to
9755 characters using fClusterStart flag. Return number of glyphs
9756 produced, not chars processed.
9757 (uniscribe_shape): Map char at FROM to current glyph.
9758
97592008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9760
9761 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
9762 Use SetMenuItemHierarchicalMenu.
9763
97642008-04-05 Jason Rumney <jasonr@gnu.org>
9765
9766 * image.c (pbm_load): Allow color values up to 65535.
9767 Throw an error if max_color_idx is outside the supported range.
9768 Report an error when image size is invalid.
9769 Read two bytes at a time when raw images have max_color_idx above 255.
9770
97712008-04-05 Eli Zaretskii <eliz@gnu.org>
9772
9773 * w32.c (readdir): If FindFirstFile/FindNextFile return in
9774 cFileName a file name that includes `?' characters, use the 8+3
9775 alias in cAlternateFileName instead.
9776
97772008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
9778
9779 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
9780 append "CCL: Quitted" when the CCL program is quitted.
9781 (setup_ccl_program): Initialize ccl->quit_silently to zero.
9782
9783 * ccl.h (struct ccl_program): New member quit_silently.
9784
97852008-04-05 Chong Yidong <cyd@stupidchicken.com>
9786
9787 * search.c (compile_pattern_1): Treat non-nil and non-string of
9788 search-spaces-regexp as nil.
9789
9790 * minibuf.c (Fassoc_string): Tweak docstring.
9791
97922008-04-05 Eli Zaretskii <eliz@gnu.org>
9793
9794 * dired.c (Ffile_attributes): Support inode numbers wider than 32
9795 bits. Remove ugly WINDOWSNT-specific kludge introduced on
9796 2008-03-14 to force inode be positive.
9797
9798 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
9799 _S_* ones, since we now use our own sys/stat.h.
9800 (stat, fstat): Don't mangle the inode number.
9801 (init_user_info): Don't restrict UID and GID to 0-60000 range.
9802
98032008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
9804
9805 * frame.h (struct frame): Give one more bit to `visible' since we use
9806 values larger than 1 to indicate obscured frames on ttys.
9807
9808 * keymap.c (Qkeymap_canonicalize): New var.
9809 (Fmap_keymap_internal): New fun.
9810 (describe_map): Use keymap-canonicalize.
9811
9812 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
9813 (Fundo_boundary): Set them.
9814 (syms_of_undo): Initialize them.
9815 (record_point): Use them instead of last_point_position*.
9816 (last_undo_buffer): Change type.
9817
98182008-04-04 Jason Rumney <jasonr@gnu.org>
9819
9820 * w32font.c (w32font_text_extents): Use font's ascent and descent.
9821 (recompute_cached_metrics): Don't set ascent and descent per char.
9822
9823 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
9824 (uniscribe_check_otf): Add GC protection before consing.
9825 Rearrange loop for counting features.
9826
98272008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
9828
9829 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
9830 buffer with byte-size of source buffer.
9831
98322008-04-03 Chong Yidong <cyd@stupidchicken.com>
9833
9834 * callint.c (Fcall_interactively): Handle temporary region even
9835 when shift-select-mode is off.
9836
98372008-04-03 Jason Rumney <jasonr@gnu.org>
9838
9839 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
9840
98412008-04-03 Kenichi Handa <handa@m17n.org>
9842
9843 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
9844 (CATEGORY_MASK_UTF_16): Likewise.
9845 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
9846 binary file.
9847 (detect_coding): Add null-byte detection for a binary file.
9848 (detect_coding_system): Likewise.
9849
98502008-04-03 Jason Rumney <jasonr@gnu.org>
9851
9852 * w32uniscribe.c: New file.
9853
9854 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
9855
9856 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
9857
9858 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
9859 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
9860 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
9861 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
9862 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
9863 (Qphonetic): New symbols.
9864 (syms_of_w32font): Initialize them.
9865 (font_supported_scripts): Use them.
9866 (w32font_list_family): List all charsets.
9867 (w32font_text_extents, recompute_cached_metrics): Fix metric
9868 calculations.
9869 (w32_enumfont_pattern_entity): Make full_type a DWORD.
9870 Give opentype fonts their own format.
9871 (font_matches_spec): New arguments backend and logfont.
9872 Handle :otf spec for uniscribe backend.
9873 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
9874 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
9875
9876 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
9877 font backend.
9878 (globals_of_w32fns): Initialize uniscribe font backend.
9879
9880 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
9881 dependencies.
9882 (w32uniscribe.$(O)): New file to build.
9883 (FONT_OBJ): Include w32uniscribe.$(O).
9884 (LIBS): Add uniscribe libraries.
9885
9886 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
9887
98882008-04-02 Chong Yidong <cyd@stupidchicken.com>
9889
9890 * callint.c (Vshift_select_mode): New var.
9891 (Finteractive): Document new ^ spec.
9892 (Fcall_interactively): Call handle-shift-selection if the ^ spec
9893 is present.
9894
9895 * keyboard.c (Vthis_command_keys_shift_translated): New var.
9896 (command_loop_1): Avoid running the direct display versions of
9897 forward-char and backward-char if shift-selection may occur.
9898 (read_key_sequence): Set Vthis_command_keys_shift_translated if
9899 shift-translation takes place.
9900
9901 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
9902 avoid clobbering by define-minor-mode.
9903
9904 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
9905 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
9906
9907 * syntax.c (Fforward_word): Add ^ interactive spec.
9908
9909 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
9910 (Fscroll_right): Add ^ interactive spec.
9911
99122008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
9913
9914 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
9915
9916 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
9917
9918 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
9919
99202008-03-31 Juri Linkov <juri@jurta.org>
9921
9922 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
9923
99242008-03-30 Jan Djärv <jan.h.d@swipnet.se>
9925
9926 * gtkutil.c (xg_set_geometry): Fix indentation.
9927 (xg_resize_outer_widget): Remove.
9928 (x_wm_size_hint_off): Fix indentation.
9929 (xg_frame_set_char_size): Call flush_and_sync after
9930 gtk_window_resize.
9931 (x_wm_set_size_hint): Pass NULL as geometry window to
9932 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
9933 Add menu bar and tool bar height to base height.
9934 (xg_update_frame_menubar, free_frame_menubar)
9935 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
9936 (update_frame_tool_bar, free_frame_tool_bar):
9937 Change xg_resize_outer_widget to xg_frame_set_char_size.
9938
99392008-03-30 Michael Albinus <michael.albinus@gmx.de>
9940
9941 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
9942 (Fdbus_call_method): New parameter TIMEOUT.
9943 (dbus-send-signal): Optimize UNGCPRO call.
9944
99452008-03-29 Juri Linkov <juri@jurta.org>
9946
9947 * window.c (Fdisplay_buffer): Move call to
9948 Vsplit_window_preferred_function out of conditions that check
9949 if window is eligible for vertical splitting.
9950 When Vsplit_window_preferred_function is non-nil, call it and use
9951 its non-nil return value as window. Otherwise, continue doing
9952 vertical splitting using Fsplit_window with arg horflag=nil.
9953 (syms_of_window) <Vsplit_window_preferred_function>: Change the
9954 default value from `split-window' to nil.
9955
99562008-03-29 Juri Linkov <juri@jurta.org>
9957
9958 * callint.c (Fcall_interactively): Revert 2008-03-16 change
9959 for interactive code letters 'b' and 'B'.
9960
99612008-03-29 Eli Zaretskii <eliz@gnu.org>
9962
9963 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
9964 multibyte string.
9965
99662008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
9967
9968 * keyboard.c (pending_funcalls): New var.
9969 (timer_check): Run it.
9970 (syms_of_keyboard): Initialize it.
9971 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
9972 (Vdelete_terminal_functions): New vars.
9973 (syms_of_terminal): Initialize them.
9974 (Fdelete_terminal): Run delete-terminal-functions.
9975 * xdisp.c (safe_eval): Rewrite.
9976 (safe_call2): New fun.
9977 * frame.c (Qdelete_frame_functions): New var.
9978 (syms_of_frame): Initialize it.
9979 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
9980 * lisp.h (safe_call2, pending_funcalls): Declare.
9981
99822008-03-28 Andreas Schwab <schwab@suse.de>
9983
9984 * indent.c (Fmove_to_column): Move declaration before statements.
9985
99862008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
9987
9988 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
9989 (struct frame): Use bit fields for boolean vars.
9990
9991 * process.c (server_accept_connection): Simplify naming.
9992 (emacs_get_tty_pgrp): Use SDATA.
9993
9994 * coding.c (decode_coding_object): Fix last change.
9995
99962008-03-27 Jason Rumney <jasonr@gnu.org>
9997
9998 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
9999
100002008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
10001
10002 * charset.c (Fdefine_charset_internal): Change the way of
10003 registering charsets in Vcharset_order_list.
10004 (syms_of_charset): Make the charset `eight-bit' supplementary.
10005
100062008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
10007
10008 * regex.c (EXTEND_BUFFER): Change order of pointer addition
10009 operations, to avoid having the difference between pointers
10010 overflow.
10011
100122008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
10013
10014 * indent.c (check_display_width): New fun.
10015 (scan_for_column): Use it.
10016
10017 * data.c (syms_of_data): Mark most-positive-fixnum and
10018 most-negative-fixnum as constants.
10019
10020 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
10021
10022 * indent.c (scan_for_column): Extract from current_column_1.
10023 Merge with the same code from Fmove_to_column.
10024 (current_column_1, Fmove_to_column): Use it.
10025
100262008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
10027
10028 * keymap.c (map_keymap_internal): New fun.
10029 (map_keymap): Use it.
10030 (Fmap_keymap_internal): New fun.
10031 (Fmap_keymap): Remove left-out test from before make_save_value.
10032
10033 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
10034
10035 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
10036 Use XCAR/XCDR.
10037
10038 * process.h (struct Lisp_Process): Remove filter_multibyte.
10039 * process.c (QCfilter_multibyte): Remove.
10040 (setup_process_coding_systems): Don't use filter_multibyte.
10041 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
10042 (read_process_output): Don't adjust multibyteness to filter_multibyte.
10043 (Fset_process_filter_multibyte): Change the coding-system to
10044 approximate the previous behavior.
10045 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
10046 coding-system.
10047
10048 * coding.c (decode_coding_object): When not decoding into a buffer,
10049 obey the coding system's preference of (uni|multi)byte.
10050
100512008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
10052
10053 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
10054 every char is changed and has a different byte-length.
10055 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
10056 Fix int -> EMACS_INT.
10057
100582008-03-23 David Hansen <david.hansen@gmx.net>
10059
10060 * dbusbind.c (xd_read_message): Remove extra copying of message
10061 strings. Check for NULL `interface' or `member'.
10062
100632008-03-22 Eli Zaretskii <eliz@gnu.org>
10064
10065 * w32.c (readdir): If FindFirstFile/FindNextFile return in
10066 cFileName a file name that includes `?' characters, use the 8+3
10067 alias in cAlternateFileName instead.
10068
100692008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
10070
10071 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
10072
100732008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
10074
10075 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
10076 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
10077 work on current_buffer only instead (that was already the case
10078 for some of the code anyway).
10079 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
10080 (temp_set_point, temp_set_point_both): Use EMACS_INT.
10081 (SET_PT, SET_PT_BOTH): Adjust.
10082 * intervals.h (set_point, temp_set_point, set_point_both)
10083 (temp_set_point_both): Remove redundant declarations.
10084
100852008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
10086
10087 * fileio.c (Finsert_file_contents):
10088 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
10089 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
10090 when buffer != current_buffer anyway.
10091
100922008-03-20 Andreas Schwab <schwab@suse.de>
10093
10094 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
10095 as default.
10096
100972008-03-19 Jason Rumney <jasonr@gnu.org>
10098
10099 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
10100 (syms_of_w32fns): Initialize them.
10101 (HOURGLASS_ID): New constant.
10102 (x_window_to_frame): Don't check hourglass_window.
10103 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
10104 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
10105 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
10106 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
10107 Only change the cursor if hourglass is not active.
10108 (Fx_create_frame): Initialize frame's current_cursor.
10109 (hourglass_atimer): Remove.
10110 (hourglass_started): New function.
10111 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
10112 (show_hourglass): Adapt to w32, changing argument to frame.
10113
10114 * w32term.h (struct w32_output): Remove hourglass_window.
10115 Add current_cursor.
10116
10117 * eval.c (call_debugger, Fsignal):
10118 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
10119 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
10120 (Fexecute_extended_command, cancel_hourglass_unwind):
10121 * minibuf.c (read_minibuf):
10122 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
10123
101242008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
10125
10126 * window.c (run_funs): New fun.
10127 (run_window_configuration_change_hook): Use it to run the buffer-local
10128 and the global part of the hook.
10129
10130 * xdisp.c (format_mode_line_unwind_data): Add window argument.
10131 (unwind_format_mode_line): Restore selected window.
10132 (x_consider_frame_title, Fformat_mode_line): Set selected window.
10133
101342008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
10135
10136 * editfns.c (Fchar_equal): Check they are valid characters.
10137
10138 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
10139
101402008-03-17 Andreas Schwab <schwab@suse.de>
10141
10142 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
10143 against a charset.
10144
10145 * lisp.h (Fbuffer_list): Declare.
10146
101472008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 10148
aac0c6e3
MR
10149 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
10150 handlebox_widget is != 0.
10151
101522008-03-16 Juri Linkov <juri@jurta.org>
10153
10154 * callint.c (Fcall_interactively): For interactive code letters
10155 'b' and 'B' put the buffer list into the list of default "future"
10156 values of the minibuffer.
10157
101582008-03-16 Andreas Schwab <schwab@suse.de>
10159
10160 * keyboard.c (read_key_sequence): Fix downcasing of letters with
10161 modifiers.
10162
10163 * regex.c (re_match_2_internal): Correct matching of a charset
10164 against latin-1 characters.
10165
101662008-03-16 Kenichi Handa <handa@m17n.org>
10167
10168 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
10169 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
10170 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
10171 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
10172 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
10173 CHAR_STRING_ADVANCE.
10174 (produce_chars): Fix for the case that the source and the
10175 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
10176 instead of CHAR_STRING_ADVANCE.
10177 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
10178 STRING_CHAR_ADVANCE.
10179
101802008-03-15 Andreas Schwab <schwab@suse.de>
10181
10182 * regex.c (re_match_2_internal): Correct matching of eight bit
10183 characters in unibyte strings.
10184
101852008-03-15 Martin Rudalics <rudalics@gmx.at>
10186
10187 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
10188 at end of range when it coincides with the end of the buffer.
10189
101902008-03-14 Eli Zaretskii <eliz@gnu.org>
10191
10192 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
10193
10194 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
10195
101962008-03-14 Jason Rumney <jasonr@gnu.org>
10197
10198 * editfns.c (initial_tz): New variable.
10199 (syms_of_editfns): Initialize it.
10200 (Fset_time_zone_rule): Set it when first called.
10201 Use it when TZSTRING is nil.
10202
10203 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
10204 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
10205 (monitor_from_point_fn, get_monitor_info_fn): New globals.
10206 (globals_of_w32fns): Initialize them.
10207 (compute_tip_xy): Use them to position tooltips.
10208
102092008-03-14 Glenn Morris <rgm@gnu.org>
10210
10211 * emacs.c (main): Revert previous change.
10212 (standard_args): Revert -internal-script back to -scriptload,
10213 and remove the long-option form.
10214
102152008-03-13 Glenn Morris <rgm@gnu.org>
10216
10217 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
10218 Remove option -enable-font-backend.
10219
102202008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
10221
10222 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
10223
102242008-03-11 Jan Djärv <jan.h.d@swipnet.se>
10225
10226 * xterm.c (x_connection_closed): For GTK: If this is the last
10227 terminal just exit without closing the display.
10228
102292008-03-11 Jason Rumney <jasonr@gnu.org>
10230
10231 * w32font.c (w32font_full_name): Use floor to round.
10232
f0131492 102332008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
10234
10235 * sound.c (alsa_configure): Declare vol at beginning of block.
10236
10237 * fontset.c (Ffontset_info): Remove extra semicolon.
10238
102392008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
10240
10241 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
10242 size of resulting string.
10243
102442008-03-10 Jason Rumney <jasonr@gnu.org>
10245
10246 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
10247
102482008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10249
10250 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
10251 Don't pretend as if characters with display property haven't been
10252 consumed for string-replacing-string case.
10253
102542008-03-08 Kim F. Storm <storm@cua.dk>
10255
10256 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
10257 (get_next_display_element, next_element_from_string)
10258 (next_element_from_ellipsis, next_element_from_buffer): Use it.
10259
102602008-03-08 Andreas Schwab <schwab@suse.de>
10261
10262 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
10263
102642008-03-06 Jason Rumney <jasonr@gnu.org>
10265
10266 * w32font.c (w32_registry): Take font_type argument. Use ANSI
10267 when charset not specified. Only translate ANSI to unicode when
10268 font_type is truetype.
10269 (w32font_coverage_ok): New function.
10270 (add_font_entity_to_list): Use it to filter unsuitable fonts.
10271
102722008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
10273
10274 * lread.c (Fread_char): Resolve modifiers.
10275 (Fread_char_exclusive): Likewise.
10276
10277 * character.c (char_resolve_modifier_mask): New function.
10278 (char_string): Use char_resolve_modifier_mask.
10279 (Fchar_resolve_modifiers): New function.
10280 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
10281 function.
10282
102832008-03-04 Jason Rumney <jasonr@gnu.org>
10284
10285 * makefile.w32-in: Always include w32font.c in the build.
10286 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
10287
102882008-03-04 Andreas Schwab <schwab@suse.de>
10289
10290 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
10291 (versionclean): Likewise.
10292
102932008-03-04 Juanma Barranquero <lekktu@gmail.com>
10294
10295 * .cvsignore: Add oo.
10296
102972008-03-03 Andreas Schwab <schwab@suse.de>
10298
10299 * coding.c (decode_coding_object): Inhibit gap shrinking while
10300 decoding in place.
10301
103022008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
10303
10304 * w32term.c: Remove unused include "gnu.h".
10305 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
10306
10307 * gnu.h: Rename to ...
10308 * emacs-icon.h: ... this.
10309 * xterm.c: Use emacs-icon.h instead of gnu.h.
10310 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
10311
103122008-03-03 Juanma Barranquero <lekktu@gmail.com>
10313
10314 * w32font.c: Include math.h.
10315
103162008-03-03 Jason Rumney <jasonr@gnu.org>
10317
10318 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
10319 Compute options separately.
10320 (w32font_open_internal): Set glyph_idx before caching metrics.
10321
10322 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
10323 Define if system headers don't.
10324 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
10325 (w32font_encode_char): Don't declare here.
10326
10327 * w32font.c (Quniscribe, QCformat): New symbols.
10328 (syms_of_w32font): Define them.
10329 (w32font_has_char): Indicate uncertainty.
10330 (w32font_encode_char): Encode as glyph point. Make static.
10331 (recompute_cached_metrics): New function.
10332 (w32font_open_internal): Use it. Set font to use glyph points
10333 initially. Set format based on type of font.
10334 (w32font_text_extents, w32font_draw): Optionally use glyph points.
10335 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
10336 on it. Set format based on information available here.
10337 (add_font_entity_to_list): Identify backend based on opentype_only.
10338
103392008-03-02 Andreas Schwab <schwab@suse.de>
10340
10341 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
10342
10343 * coding.c (decode_coding_big5, produce_chars):
10344 Fix typos in last change.
10345
103462008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
10347
10348 * gnu.h: New icon.
10349
103502008-03-02 Kenichi Handa <handa@m17n.org>
10351
10352 * coding.c (decode_coding_utf_8): When eol-type of CODING is
10353 `dos', don't decode '\r' if that is the last in the source.
10354 (decode_coding_utf_16, decode_coding_emacs_mule)
10355 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
10356 (decode_coding_raw_text, decode_coding_charset): Likewise.
10357 (produce_chars): Don't decode EOL here. Use EMACS_INT.
10358
103592008-03-01 Jason Rumney <jasonr@gnu.org>
10360
10361 * w32font.c (w32font_full_name): Report point size for scalable fonts.
10362
103632008-03-01 Kim F. Storm <storm@cua.dk>
10364
10365 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
10366
103672008-03-01 Jason Rumney <jasonr@gnu.org>
10368
10369 * w32font.c (w32font_full_name): New function.
10370 (w32font_open_internal): Use it.
10371
103722008-03-01 Kim F. Storm <storm@cua.dk>
10373
10374 * dispnew.c (line_draw_cost): Fix invalid glyph check.
10375
103762008-03-01 Jason Rumney <jasonr@gnu.org>
10377
10378 * font.c (font_unparse_fcname): Increase len when style is a symbol.
10379
103802008-03-01 Jan Djärv <jan.h.d@swipnet.se>
10381
10382 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
10383 xg_frame_resized when the event is for the edit widget.
10384
10385 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
10386
10387 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
10388 set_char_size.
10389 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
10390 operations on widgets here. Just set frame size if needed.
10391 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
10392 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
10393 (x_wm_set_size_hint): Set size hints on the edit widget only, not
10394 the whole frame.
10395 (xg_create_tool_bar): Move attachment of the tool bar to
10396 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
10397 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
10398
103992008-03-01 Jason Rumney <jasonr@gnu.org>
10400
10401 * w32fns.c (w32_msg_pump): Disable debug code.
10402
104032008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10404
10405 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
10406
104072008-02-29 Chong Yidong <cyd@stupidchicken.com>
10408
10409 * xdisp.c (next_overlay_string): Don't set
10410 overlay_strings_at_end_processed_p if we're currently reading from
10411 a display string.
10412
104132008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
10414
10415 * xdisp.c (get_overlay_strings_1): Fix typo.
10416
104172008-02-29 Chong Yidong <cyd@stupidchicken.com>
10418
10419 * xdisp.c (get_overlay_strings_1): Add missing argument type.
10420
104212008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
10422
10423 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
10424
10425 * xdisp.c (display_mode_element): Cancel the previous change.
10426 (decode_mode_spec): Likewise.
10427 (handle_auto_composed_prop): Don't make composition if it->string
10428 is a string.
10429
104302008-02-27 Kim F. Storm <storm@cua.dk>
10431
10432 * lisp.h (GLYPH): Change type from int to struct with separate char
10433 and face_id members.
10434 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
10435 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
10436 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
10437 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
10438 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
10439 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
10440 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
10441 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
10442 handle new Lisp glyph code encoding, either an integer or a cons.
10443
10444 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
10445 (GLYPH_ALIAS): Delete.
10446 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
10447 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
10448 (GLYPH_FROM_CHAR): Replace macro by ...
10449 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
10450
10451 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
10452 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
10453 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
10454 (GLYPH_INVALID_P): New macro.
10455 (spec_glyph_lookup_face): Update prototype.
10456
10457 * dispnew.c (line_draw_cost): Adapt to new glyph type.
10458 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
10459 new glyph code encoding.
10460 (spec_glyph_lookup_face): No return value; update passed glyph instead.
10461 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
10462
10463 * xdisp.c (get_next_display_element, next_element_from_display_vector):
10464 Adapt to new glyph type and new glyph code encoding.
10465
10466 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
10467
10468 * indent.c (current_column, current_column_1, Fmove_to_column)
10469 (compute_motion): Adapt to new glyph code encoding.
10470
10471 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
10472
104732008-02-27 Chong Yidong <cyd@stupidchicken.com>
10474
10475 * process.c (wait_reading_process_output): Check for window
10476 changes caused by timers.
10477 Suggested by Johan Bockgård.
10478
104792008-02-27 Glenn Morris <rgm@gnu.org>
10480
10481 * emacs.c (USAGE1): Add `--disable-font-backend'.
10482
104832008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
10484
10485 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
10486 is made to the buffer.
10487
104882008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
10489
10490 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
10491 (face_at_string_position):
10492 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
10493 (face_at_string_position):
10494 * xdisp.c (display_string, next_overlay_change):
10495 * buffer.h (overlays_at):
10496 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
10497 Update callers.
10498
104992008-02-26 Chong Yidong <cyd@stupidchicken.com>
10500
10501 * editfns.c (Fformat): Doc fix.
10502
105032008-02-26 Juanma Barranquero <lekktu@gmail.com>
10504
10505 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
10506 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
10507 (Ffont_otf_alternates, Fquery_font): Doc fixes.
10508
105092008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
10510
10511 * buffer.c (Fbuffer_swap_text): New function.
10512 (syms_of_buffer): Defsubr it.
10513
105142008-02-25 Chong Yidong <cyd@stupidchicken.com>
10515
10516 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
10517
105182008-02-25 Jason Rumney <jasonr@gnu.org>
10519
10520 * w32font.c (w32font_draw): Draw one character at a time when padding.
10521
105222008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
10523
10524 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
10525 Handle a nil arg. Use run_window_configuration_change_hook.
10526 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
10527 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
10528 Use run_window_configuration_change_hook.
10529
105302008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
10531
10532 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
10533 1-pixel width.
10534
105352008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
10536
10537 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
10538 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
10539 if the glyph in the font is zero pixel with.
10540
10541 * dispextern.h (struct glyph_string): New member padding_p.
10542
10543 * w32font.c (w32font_draw): Pay attention to s->padding_p.
10544
10545 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
10546
10547 * xfont.c (xfont_draw): Pay attention to s->padding_p.
10548
10549 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
10550
10551 * font.c: If the font driver doesn't have `shape' function, return Qnil.
10552
105532008-02-25 Jason Rumney <jasonr@gnu.org>
10554
10555 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
10556
105572008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
10558
10559 Allow fine-grained image-cache flushing.
10560 * dispextern.h (struct image): Add `dependencies' field.
10561 (clear_image_caches): Change arg to Lisp_Object.
10562 * image.c (make_image): Initialize `dependencies' field.
10563 (clear_image_cache): Change arg to allow fine-grained flushing.
10564 Perform the flush even if image-cache-eviction-delay is nil.
10565 (clear_image_caches): Change arg to Lisp_Object.
10566 (Fclear_image_cache): Expand meaning of the argument.
10567 (mark_image): Mark `dependencies' field.
10568 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
10569 (lface_hash): Use XHASH rather than XFASTINT.
10570 (face_at_buffer_position): Fix int -> EMACS_INT position.
10571 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
10572 (select_frame_for_redisplay): Remove code duplication.
10573 (redisplay_internal): Adapt arg to call to clear_image_caches.
10574
105752008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
10576
10577 * s/vms4-0.h:
10578 * s/vms4-2.h:
10579 * s/vms4-4.h:
10580 * s/vms5-5.h: Remove, unused.
10581
10582 * s/irix5-2.h:
10583 * s/irix6-0.h:
10584 * s/riscos5.h:
10585 * s/mach-bsd4-3.h:
10586 * m/mips4.h: Remove files for obsolete systems.
10587
10588 * Makefile.in:
10589 * filelock.c:
10590 * unexmips.c:
10591 * m/hp9000s300.h:
10592 * m/iris4d.h:
10593 * s/aix3-1.h:
10594 * s/hpux.h:
10595 * s/msdos.h:
10596 * s/usg5-0.h:
10597 * s/usg5-2-2.h:
10598 * s/usg5-2.h:
10599 * s/usg5-3.h: Remove references to obsolete variables.
10600
10601 * s/irix5-0.h: Remove, move all the contents ...
10602 * s/irix6-5.h: ... here. Simplify.
10603 * config.in: Regenerate.
10604
106052008-02-24 Jason Rumney <jasonr@gnu.org>
10606
10607 * w32term.c (x_draw_glyph_string_background): Clear the background
10608 manually when cleartype is in use.
10609 (x_draw_glyph_string_foreground): Draw text transparently when
10610 cleartype is in use.
10611
10612 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
10613 a font into it unless we have to.
10614
106152008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
10616
10617 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
10618 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 10619
aac0c6e3
MR
106202008-02-18 Jason Rumney <jasonr@gnu.org>
10621
10622 * w32fns.c (Fw32_shell_execute): Encode parameters.
10623
106242008-02-09 Eli Zaretskii <eliz@gnu.org>
10625
10626 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
10627
106282008-02-05 Juanma Barranquero <lekktu@gmail.com>
10629
10630 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
10631
106322008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
10633
10634 * xterm.c (x_set_offset): Don't change the gravity if
10635 CHANGE_GRAVITY is -1.
10636
106372008-02-23 Chong Yidong <cyd@stupidchicken.com>
10638
10639 * fileio.c (auto_save_error_occurred): New var.
10640 (auto_save_error): Set it.
10641 (Fdo_auto_save): Don't overwrite the error message if an auto-save
10642 error occurred.
10643
106442008-02-23 Eli Zaretskii <eliz@gnu.org>
10645
10646 * w32.c (globals_of_w32): Add initializations for
10647 g_b_init_get_sid_sub_authority and
10648 g_b_init_get_sid_sub_authority_count.
10649
106502008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
10651
10652 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
10653 (font_parse_xlfd): Use them for sanity check.
10654 (Finternal_set_font_style_table): Make sure the table is bijective.
10655
10656 Consolidate the image_cache to the terminal struct.
10657 * termhooks.h (P_): Remove redundant def.
10658 (struct terminal): New field `image_cache'.
10659 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
10660 of FRAME_X_IMAGE_CACHE.
10661 * xterm.h (struct x_display_info): Remove image_cache field.
10662 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
10663 * w32term.h (struct w32_display_info): Remove image_cache field.
10664 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
10665 * macterm.h (struct mac_display_info): Remove image_cache field.
10666 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
10667 * xterm.c (x_term_init):
10668 * w32term.c (w32_term_init):
10669 * macterm.c (mac_term_init): Set the image_cache in the terminal.
10670 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
10671 Remove declarations.
10672 (clear_image_caches, mark_image_cache): New declarations.
10673 * xfaces.c (clear_face_cache):
10674 * xdisp.c (redisplay_internal): Use clear_image_caches.
10675 * image.c (clear_image_cache): Don't check that a frame is on
10676 a window-system before checking if it shares the same cache.
10677 (clear_image_caches): New function.
10678 (Fclear_image_cache): Use it.
10679 (mark_image): Move from allo.c.
10680 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
10681 * alloc.c (mark_image, mark_image_cache): Move to image.c.
10682 (mark_object): Don't call mark_image_cache for frames.
10683 (mark_terminals): Call mark_image_cache.
10684
10685 * lisp.h (Fdelete_terminal): Declare.
10686
10687 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
10688 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
10689 wrong_type_argument.
10690
106912008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
10692
10693 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
10694 malayalam.el, and tamil.el. Add sinhala.el.
10695
106962008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
10697
10698 * xterm.c (x_connection_closed): Consolidate identical tests.
10699 (x_delete_terminal): Don't crash if called via x_connection_closed.
10700
107012008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
10702
10703 * xdisp.c (decode_mode_spec): New arg string.
10704 (display_mode_element): Adjust for the above change.
10705
107062008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
10707
10708 * callint.c (Fcall_interactively): Use AREF.
10709
107102008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
10711
10712 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
10713
107142008-02-18 Jan Djärv <jan.h.d@swipnet.se>
10715
10716 * xfns.c (Fx_show_tip): Set string to " " if empty.
10717
107182008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
10719
10720 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
10721 with Qt.
10722
107232008-02-17 Kenichi Handa <handa@m17n.org>
10724
10725 * ftfont.c (ftfont_shape): Return Lispy number.
10726
10727 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
10728 for GCs.
10729 (Finternal_set_font_selection_order): Call font_update_sort_order
10730 only when enable_font_backend is set.
10731 (realize_x_face): Set face->font_info to that of default face only
10732 when enable_font_backend is set.
10733
10734 * xdisp.c (handle_composition_prop): Set it->c to the fist
10735 character of the composed region.
10736 (fill_composite_glyph_string): Set base_face->font_info to
10737 s->font_info. Get a face for ascii from base_face->ascii_face.
10738 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
10739 with a face already decided.
10740 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
10741 non-negative.
10742 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
10743 call font_prepare_composition unconditionally.
10744
10745 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
10746
10747 * xterm.h (struct x_display_info): New member font.
10748
10749 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
10750 (x_set_mouse_face_gc, x_new_font): Likewise.
10751 (x_term_init): Setup display_info->font.
10752 (x_delete_terminal): Free display_info->font.
10753
10754 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
10755
10756 * ftxfont.c (ftxfont_default_fid): Delete it.
10757 (ftxfont_open): Set xfont->fid to 0.
10758 (ftxfont_end_for_frame): Clear data specific to the frame and the
10759 font-driver.
10760
10761 * xftfont.c (xftfont_default_fid): Delete it.
10762 (xftfont_open): Set xfont->fid to 0.
10763
10764 * fontset.c (FONTSET_OBJLIST): New macro.
10765 (fontset_find_font): Update font-object list of the fontset.
10766 (free_realized_fontset): New function.
10767 (free_face_fontset): Call free_realized_fontset.
10768 (Ffont_info): Call font_close_object only when enable_font_backend
10769 is set.
10770
10771 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
10772 [HAVE_NTGUI]: Include w32term.h.
10773 [MAC_OS]: Include macterm.ch.
10774 (font_otf_ValueRecord): Use make_number.
10775 (font_finish_cache): Fix handling of reference count.
10776 (font_clear_cache): Update num_fonts.
10777 (font_open_entity): Update smallest_char_width and
10778 smallest_font_height of the frame.
10779 (font_close_object): Update num_fonts.
10780 (Fclear_font_cache): Fix finding the target cache data.
10781
107822008-02-16 Glenn Morris <rgm@gnu.org>
10783
10784 * fontset.c (Finternal_char_font): Fix compilation warning.
10785
107862008-02-16 Eli Zaretskii <eliz@gnu.org>
10787
10788 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
10789 instead of char arrays. Enlarge the size of array passed to
10790 get_token_information.
10791
10792 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
10793 warnings.
10794
107952008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
10796
10797 * .gdbinit: Don't set `args', it breaks gdb --args.
10798
107992008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
10800
10801 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
10802 within a narrowed buffer.
10803
108042008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
10805
10806 * coding.c (decode_coding_object, encode_coding_object):
10807 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
10808
108092008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
10810
10811 * coding.c (coding_set_destination): Use BEG_BYTE rather than
10812 hardcoding 1.
10813 (detect_coding_system):
10814 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
10815 (string_char_to_byte, string_byte_to_char, insert_from_gap):
10816 * insdel.c (insert_from_gap):
10817 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
10818 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
10819 (string_to_multibyte):
10820 * character.c (chars_in_text, multibyte_chars_in_text):
10821 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
10822
10823 * character.h (FETCH_STRING_CHAR_ADVANCE)
10824 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
10825 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
10826 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
10827
10828 * casefiddle.c (casify_region): Only call after-change and composition
10829 functions on the part of the region that was changed.
10830
10831 * keyboard.c (read_avail_input):
10832 * frame.c (Fdelete_frame): Call Fdelete_terminal.
10833
108342008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
10835
10836 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
10837 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
10838
108392008-02-11 Juanma Barranquero <lekktu@gmail.com>
10840
10841 * w32menu.c (push_submenu_start, push_submenu_end)
10842 (push_left_right_boundary, push_menu_pane, push_menu_item):
10843 * keyboard.c (read_key_sequence): Don't pass args with side effects
10844 to AREF, it fails when compiling with -DENABLE_CHECKING.
10845
108462008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
10847
10848 * Makefile.in (${lispsource}international/charprop.el):
10849 Delete this target.
10850
10851 * search.c (boyer_moore): Fix incorrect synching of the trunk and
10852 emacs-unicode-2.
10853
108542008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
10855
10856 * terminal.c (Fdelete_terminal): Clean up the `force' path.
10857
108582008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
10859
10860 * frame.c (Qnoelisp): New symbol.
10861 (syms_of_frame): Initialize it.
10862 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
10863 harmless Elisp code, from a strong `force' from x_connection_closed.
10864 * frame.h (Qnoelisp): Declare.
10865 * xterm.c (x_connection_closed): Pass `noelisp'.
10866
10867 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
10868 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
10869 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
10870 rather than `int' for the type of `type'.
10871
108722008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
10873
10874 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
10875
10876 * Makefile.in (GNUC): Remove support for gcc-1.x.
10877
108782008-02-10 Richard Stallman <rms@gnu.org>
10879
10880 * lisp.h (ASET): Use AREF, not ASLOT.
10881
108822008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
10883
10884 * lisp.h (ASET): Check bounds.
10885
108862008-02-10 Glenn Morris <rgm@gnu.org>
10887
10888 * buffer.c (mode-name): Doc fix.
10889
108902008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
10891
10892 * Makefile.in:
10893 * emacs.c:
10894 * gmalloc.c:
10895 * keyboard.c:
10896 * lisp.h:
10897 * m/ibm370aix.h:
10898 * process.c:
10899 * regex.c:
10900 * s/hpux.h:
10901 * sysdep.c:
10902 * sysselect.h:
10903 * systty.h:
10904 * unexec.c:
10905 * w32term.c:
10906 * xsmfns.c:
10907 * xterm.c: Remove code that deals with obsolete variables.
10908
10909 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
10910
10911 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
10912 nothing else needs it anymore.
10913
109142008-02-09 Eli Zaretskii <eliz@gnu.org>
10915
10916 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
10917 instead of unibyte_char_to_multibyte.
10918
109192008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
10920
10921 * s/gnu-linux.h: Remove commented out code.
10922
10923 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
10924
10925 * Makefile.in: Update what RMS says about using autoconf.
10926 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
10927 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
10928 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
10929 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
10930
109312008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
10932
10933 * keymap.c (Fkey_description): Move side effect outside of macro call.
10934
10935 * xfaces.c (Finternal_make_lisp_face):
10936 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
10937
10938 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
10939 (syms_of_fontset): Use ASET.
10940
10941 * fns.c (concat): Move side effect outside of macro call.
10942 (hash_clear): Use ASET.
10943
109442008-02-08 Richard Stallman <rms@gnu.org>
10945
10946 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
10947 If FORCE, and frame has a surrogate minibuffer for another frame,
10948 delete the other frame first.
10949
109502008-02-07 Timo Savola <timo.savola@iki.fi>
10951
10952 * xterm.c (x_detect_focus_change): Handle embed client message.
10953 (handle_one_xevent): Ditto.
10954 (handle_one_xevent): If embedded and we get a button press/release,
10955 request focus.
10956 (xembed_set_info, xembed_send_message): New functions.
10957 (x_make_frame_visible): Call xembed_set_info if embedded.
10958 (x_make_frame_invisible): Call xembed_set_info if embedded.
10959 (x_term_init): Initialize Xatom_XEMBED.
10960 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
10961 (x_iconify_frame): Ditto.
10962
10963 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
10964 (enum xembed_info, enum xembed_message, enum xembed_focus)
10965 (enum xembed_modifier, enum xembed_accelerator): New.
10966 (xembed_set_info, xembed_send_message): Declare.
10967 (FRAME_X_EMBEDDED_P): New.
10968
10969 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
10970 gtk_plug_new.
10971
10972 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
10973 window ID of a frame.
10974 (x_window): Reparent frame if embedded.
10975 (Fx_create_frame): Don't set border width if embedded.
10976
10977 * emacs.c (USAGE3): Add --parent-id.
10978 (standard_args): Ditto.
10979
109802008-02-07 Jan Djärv <jan.h.d@swipnet.se>
10981
10982 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
10983
109842008-02-07 Jim Meyering <meyering@redhat.com>
10985
10986 Use "do...while (0)", not "if (1)...else" in macro definitions.
10987 The latter provokes a warning from gcc about the empty else, when
10988 followed by ";". Also, without that trailing semicolon, it would
10989 silently swallow up any following statement.
10990 * syntax.h (SETUP_SYNTAX_TABLE)
10991 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
10992 * buffer.h (DECODE_POSITION): Likewise.
10993 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
10994 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
10995 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
10996 (FETCH_CHAR_ADVANCE): Likewise.
10997 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
10998
109992008-02-07 Jim Meyering <meyering@redhat.com>
11000
11001 * lread.c [lint]: Don't include <sys/inode.h>.
11002
110032008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
11004
11005 * xselect.c (x_handle_dnd_message):
11006 * xmenu.c (digest_single_submenu, xmenu_show):
11007 * xdisp.c (with_echo_area_buffer_unwind_data)
11008 (format_mode_line_unwind_data, unwind_format_mode_line)
11009 (display_menu_bar):
11010 * eval.c (Ffetch_bytecode):
11011 * doc.c (store_function_docstring):
11012 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
11013 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
11014 * buffer.c (add_overlay_mod_hooklist): Use ASET.
11015
110162008-02-07 Kenichi Handa <handa@m17n.org>
11017
11018 * ftxfont.c (ftxfont_open): Don't set
11019 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
11020
11021 * ftfont.c (ftfont_open): Fix previous change.
11022
110232008-02-06 Jason Rumney <jasonr@gnu.org>
11024
11025 * w32font.c (w32font_text_extents): Fill in lbearing metric.
11026 Use cached metrics for ASCII characters.
11027 (w32font_open_internal): Don't set font's owning_frame.
11028 Cache metrics for ASCII characters.
11029
11030 * w32font.h (struct w32font_info): Add ascii_metrics.
11031 Remove owning_frame.
11032
110332008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
11034
11035 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
11036 to negative value.
11037
11038 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
11039
11040 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
11041
11042 * charset.c (syms_of_charset): Set QCtest and Qeq.
11043
110442008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
11045
11046 * process.c (Fstart_process):
11047 * callproc.c (Fcall_process): Handle the case where
11048 Funhandled_file_name_directory returns nil.
11049
11050 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
11051 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
11052 * font.c (check_gstring): Use them and AREF to access the vector before
11053 we know it's really a gstring.
11054 (Ffont_shape_text): Fix typo.
46e722a9 11055 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
11056
11057 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
11058 Declare.
11059
11060 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
11061
110622008-02-05 Jason Rumney <jasonr@gnu.org>
11063
11064 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
11065 Set smallest_font_height and smallest_char_width in display info.
11066
110672008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
11068
11069 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
11070
110712008-02-05 Miles Bader <miles@gnu.org>
11072
11073 * xfaces.c (get_lface_attributes, merge_named_face)
11074 (lookup_named_face, lookup_derived_face, realize_named_face):
11075 Revert 2008-02-01 change by cyd@stupidchicken.com.
11076
110772008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
11078
11079 * fontset.c (Ffontset_info): Handle the case of inhibitting the
11080 fallback fonts.
11081 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
11082
110832008-02-04 Jason Rumney <jasonr@gnu.org>
11084
11085 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
11086 set full_name.
11087 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
11088
110892008-02-03 Jason Rumney <jasonr@gnu.org>
11090
11091 * makefile.w32-in (OBJ1): Include font.o here.
11092 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
11093
110942008-02-02 Jason Rumney <jasonr@gnu.org>
11095
11096 * makefile.w32-in (temacs): Bump EMHEAP to 21.
11097
110982008-02-01 Jason Rumney <jasonr@gnu.org>
11099
11100 * s/cygwin.h: Define VIRT_ADDR_VARIES.
11101
11102 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
11103
111042008-02-01 Andreas Schwab <schwab@suse.de>
11105
11106 * Makefile.in (shortlisp, lisp): Update for rename of
11107 ../lisp/language/myanmar.el.
11108
111092008-02-01 Chong Yidong <cyd@stupidchicken.com>
11110
11111 * xfaces.c (get_lface_attributes): Delete function.
11112 (merge_named_face, lookup_named_face, lookup_derived_face)
11113 (realize_named_face): Call lface_from_face_name directly, and use
11114 the fact that merge_face_vectors does not alter its FROM argument.
11115
111162008-02-01 Jason Rumney <jasonr@gnu.org>
11117
11118 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
11119 input in the default locale. Handle non-Unicode multibyte input.
11120
111212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11122
11123 * fontset.c (reorder_font_vector): Exclude nil elements from the
11124 font group. Don't try multiple fonts.
11125 (fontset_font): Adjust for the above change.
11126 (Finternal_char_font): Return nil if the found font doesn't
11127 contain the character ch.
11128
11129 * Makefile.in (lisp, shortlisp): Add cham.el.
11130
111312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11132
11133 * font.h (FONTP): Make it return 1 also for a font-object.
11134
11135 * .gdbinit (xfontset): New function.
11136
11137 * font.c (font_find_for_lface): Check if the character C is
11138 supported or not only for the first font.
11139
11140 * fontset.c (reorder_font_vector): Fix typo.
11141 (fontset_find_font): Don't add a font-spec specifying a script.
11142 Use 0 (not Qt) for the indication of empty font-group. Change the
11143 format of RFONT-DEF. Return Qt if no font in the font-group
11144 support the character.
11145 (fontset_font): Adjust for the above change. If no font was
11146 found the character, remember that.
11147 (face_for_char): Adjust for the change of RFONT-DEF.
11148 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
11149 no font for the target.
11150 (Finternal_char_font): Adjust for the change of RFONT-DEF.
11151
111522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11153
11154 * font.c (font_load_for_face): Handle the case that the font in
11155 face->lface is a string.
11156
111572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11158
11159 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
11160
111612008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11162
11163 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
11164 Fix previous change. If the frame is not on a window system,
11165 signal an error.
11166
111672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11168
11169 * coding.c (decode_coding_object, encode_coding_object): Adjust
11170 marker positions after conversion.
11171
11172 * lisp.h (struct Lisp_Marker): New member need_adjustment.
11173
111742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11175
11176 * font.c (font_find_for_lface): Fix the handling of the return
11177 value of font_has_char.
11178 (Ffont_shape_text): Fix previous change.
11179
11180 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
11181 (fontset_ref_and_range): Delete it.
11182 (fontset_find_font): Call char_table_ref_and_range instead of
11183 FONTSET_REF_AND_RANGE.
11184 (make_fontset): Don't setup font groups of Latin here.
11185 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
11186 (new_fontset_from_font): Make the specified font the default for
11187 all Latin characters.
11188
111892008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11190
11191 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
11192 is on a window system before accessing the fontset of the frame.
11193
111942008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11195
11196 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
11197
11198 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
11199 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
11200
11201 * font.c (Ffont_shape_text): If the font driver doesn't have a
11202 shaper function, make zero-width glyphs to have at least one-pixel
11203 width. Fix setting of `to' field of glyphs.
11204
112052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11206
11207 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
11208 glyphs.
11209
11210 * font.h (struct font_driver): Improve docstring of member `shape'.
11211
112122008-02-01 Kenichi Handa <handa@m17n.org>
11213
11214 * composite.c (syms_of_composite): Fix docstring of
11215 auto-composition-function.
11216
11217 * font.h (LGLYPH_SIZE): New macro.
11218
11219 * font.c (Ffont_fill_gstring): Stop filling when a character not
11220 supported by the font is found.
11221 (Ffont_shape_text): When a shape callback function returns nil,
11222 try at most two more times with larger gstring.
11223 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
11224
11225 * xdisp.c (handle_auto_composed_prop): Change the argument to
11226 auto-composition-function.
11227
11228 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
11229 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
11230 Lispy glyph and store it in the lgstring.
11231
11232 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
11233
11234 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
11235
112362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11237
11238 * font.c (Ffont_shape_text): Avoid unnecessary composition.
11239
11240 * fontset.c (Vfont_encoding_charset_alist): New variable.
11241 (syms_of_fontset): DEFVAR it.
11242 (reorder_font_vector, fontset_find_font): Optimize for the case of
11243 no need of reordering.
11244 (face_for_char): Map the charset property by
11245 Vfont_encoding_charset_alist.
11246
112472008-02-01 Jason Rumney <jasonr@gnu.org>
11248
11249 * w32font.c (logfonts_match): Don't check adstyle here.
11250 (font_matches_spec): Check here against physical font instead.
11251 (add_font_entity_to_list): Avoid some substitutions.
11252
11253 * font.c (font_parse_fcname): Default weight and slant to normal.
11254 (font_score): Prefer normal fonts if weight or slant unspecified.
11255 (font_score) [WINDOWSNT]: Scale weight difference down to closer
11256 match freetype scores.
11257
112582008-02-01 Jason Rumney <jasonr@gnu.org>
11259
11260 * w32font.c (w32font_text_extents): Don't use the frame stored in the
11261 font, as it may have been deleted.
11262 (w32_enumfont_pattern_entity): Map generic family to adstyle using
11263 most common hyphenless variation.
11264 (logfonts_match): Check generic family.
11265 (font_matches_spec): Don't check generic family here.
11266 (fill_in_logfont): Set generic family based on adstyle.
11267
11268 * w32font.h (w32font_get_cache): Update declaration.
11269
112702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11271
11272 * ftfont.c (ftfont_get_cache): Adjust the argument type.
11273
11274 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
11275 If none of the new drivers are available, call font_update_drivers
11276 with the old drivers.
11277
11278 * w32font.c (w32font_get_cache): Adjust the argument type.
11279
11280 * xfont.c (xfont_get_cache): Adjust the argument type.
11281
11282 * font.h (struct font_driver): Change argument type of get_cache.
11283
11284 * xftfont.c (xftfont_start_for_frame): Delete prototype.
11285
11286 * font.c (Ffont_get): Fix arguments to Fassoc.
11287 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
11288 (font_clear_cache): New function.
11289 (font_list_entities, font_matching_entity): Use font_get_cache.
11290 (font_update_drivers): Call font_clear_cache when finishing a driver.
11291
11292 * fontset.c (fontset_find_font): Fix previous change.
11293
112942008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11295
11296 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
11297 dpyinfo->font_table.
11298 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
11299 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
11300
11301 * font.c (font_at): Handle the case that the arg C is negative.
11302 Handle the unibyte case.
11303 (Ffont_at): Call font_at with the arg C -1.
11304
11305 * xdisp.c (handle_auto_composed_prop): Don't get a character at
11306 the position here, and call font_at with the arg C -1.
11307 Don't check the range of the existing composition at the point.
11308
113092008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11310
11311 * fontset.c (fontset_add): New args charset_id and family.
11312 Change caller.
11313 (load_font_get_repertory, fontset_find_font): Assume that
11314 font_spec is always a font-spec object.
11315 (Fset_fontset_font): Always store a font-spec object in a fontset.
11316
11317 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
11318 instead of get_property_and_range.
11319
113202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11321
11322 * xftfont.c (struct xftfont_info): Delete the member ft_face.
11323 (xftfont_open): Don't keep locking face.
11324 (xftfont_close): Don't unlock face.
11325 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
11326
11327 * fontset.c (fontset_find_font): Don't prefer a font of
11328 supplementary charset.
11329
113302008-02-01 Kenichi Handa <handa@m17n.org>
11331
11332 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
11333 script, langsys_tag to langsys, new member script.
11334 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 11335 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
11336 listing to the script specified in that property. Fix arg to
11337 OTF_check_features.
11338
113392008-02-01 Jason Rumney <jasonr@gnu.org>
11340
11341 * w32font.h: New file.
11342
11343 * w32font.c: Include it.
11344 (struct w32font_info): Add owning_frame field. Move to w32font.h.
11345 (w32font_open): Set owning_frame.
11346 (w32font_text_extents): Use owning_frame.
11347 (struct font_callback_data): Add opentype_only field.
11348 (add_font_entity_to_list): Use it to filter fonts.
11349 Don't check against full name.
11350 (w32font_list_internal): New function.
11351 (w32font_list): Use it.
11352 (w32font_match_internal): New function.
11353 (w32font_match): Use it.
11354 (w32font_open_internal): New function.
11355 (w32font_open): Use it.
11356 (w32font_get_cache, w32font_close, w32font_has_char)
11357 (w32font_encode_char, w32font_text_extents, w32font_draw):
11358 Make non-static.
11359
11360 * makefile.w32-in (w32font.o): Depend on w32font.h.
11361
113622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11363
11364 * charset.c (Fdefine_charset_internal): Record a supplementary
11365 charset at the tail of Vcharset_order_list.
11366
11367 * font.c (Ffont_shape_text): Fix the return value.
11368
11369 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
11370
11371 * xdisp.c (handle_auto_composed_prop): Fix previous change.
11372
113732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11374
11375 * ftfont.c (struct OpenTypeSpec): New struct.
11376 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
11377 (ftfont_get_open_type_spec): New function.
11378 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
11379
11380 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
11381
113822008-02-01 Jason Rumney <jasonr@gnu.org>
11383
11384 * w32font.c (add_font_entity_to_list): Compare only the beginning
11385 of full name.
11386
113872008-02-01 Kenichi Handa <handa@m17n.org>
11388
11389 * xdisp.c (handle_auto_composed_prop): Simplify the code.
11390 Never return HANDLED_RECOMPUTE_PROPS.
11391
113922008-02-01 Kenichi Handa <handa@m17n.org>
11393
11394 * font.c (font_gstring_produce): Delete it.
11395
11396 * composite.h (COMPOSITION_METHOD):
11397 Handle COMPOSITION_WITH_GLYPH_STRING.
11398
113992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11400
11401 * xfont.c (Qx): Delete.
11402 (syms_of_xfont): Don't initialize Qx.
11403
11404 * composite.h (enum composition_method):
11405 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
11406
114072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11408
11409 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
11410 (choose_face_font): Accept new form of font-spec.
11411
11412 * frame.h (font_driver_list): Declare it unconditionally.
11413 (struct frame): Define members font_driver_list and font_data_list
11414 unconditionally.
11415
11416 * fontset.c: Include "font.h" unconditionally.
11417 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
11418 (Fset_fontset_font): Accept a font-spec object.
11419
11420 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
11421 PIXEL_SIZE part a wild card.
11422
11423 * dispextern.h (struct glyph_string): Define members clip and
11424 num_clips unconditionally.
11425 (struct face): Define members font_info and extra unconditionally.
11426
11427 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
11428 ftfont_info only when HAVE_LIBOTF is defined.
11429
114302008-02-01 Andreas Schwab <schwab@suse.de>
11431
11432 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
11433 and end.
11434
114352008-02-01 Jason Rumney <jasonr@gnu.org>
11436
11437 * w32font.c (w32font_driver): Add new fields.
11438
114392008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11440
11441 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
11442 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
11443 (LIBES): Add @M17N_FLT_CFLAGS@.
11444
11445 * composite.c (compose_text): Don't treat the new style
11446 composition specially.
11447
11448 * emacs.c (main): Call syms_of_font unconditionally.
11449
11450 * font.h (FONT_ENTITY_NOT_LOADABLE)
11451 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
11452 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
11453 (struct font_driver): New member shape.
11454 (font_registry_charsets): Extern it.
11455 (font_find_for_lface, font_prepare_composition): Adjust prototype.
11456 (font_otf_capability, font_drive_otf): Delete their externs.
11457
11458 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
11459 (font_charset_alist, font_registry_charsets): Move from xfont.c
11460 and rename.
11461 (font_prop_validate_otf): New function.
11462 (font_property_table): Register it for QCotf.
11463 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
11464 (font_drive_otf): Delete.
11465 (font_prepare_composition): New arg F. Adjust for the change of
11466 lispy gstring.
11467 (font_find_for_lface): New arg C.
11468 (font_load_for_face): Adjust for the change of font_find_for_lface.
11469 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
11470 lispy gstring.
11471 (Ffont_shape_text): New function.
11472 (Fopen_font): If the font size is not given, use 12-pixel.
11473 (Ffont_at): New arg STRING.
11474 (syms_of_font): Initalize font_charset_alist.
11475 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
11476 conditionally.
11477
11478 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
11479 fonts of the same font-spec. Change the format of RFONT-DEF.
11480 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
11481 Adjust for the change of RFONT-DEF.
11482 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
11483
11484 * ftfont.h: New file.
11485
11486 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
11487 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
11488 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
11489 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
11490 font_otf_capability and font_drive_otf, set ftfont_shape.
11491 (ftfont_list): Adjust for the change of :otf property value.
11492 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
11493 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
11494 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
11495 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
11496 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
11497 (otf_gstring, gstring, m17n_flt_initialized): New variables.
11498
11499 * w32term.c (x_draw_composite_glyph_string_foreground):
11500 Adjust for the change of lispy gstring.
11501
11502 * xdisp.c (handle_composition_prop): Adjust for the change of
11503 lispy gstring. Call a function for auto-composition with the
11504 third arg it->window.
11505 (fill_composite_glyph_string): Adjust for the change of lispy string.
11506 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
11507
11508 * xfaces.c (set_font_frame_param): Adjust for the change of
11509 font_find_for_lface.
11510
11511 * xfont.c (x_font_charset_alist): Move to font.c and rename.
11512 (xfont_registry_charsets): Likewise. Change caller.
11513 (syms_of_xfont): Don't handle x_font_charset_alist.
11514
11515 * xftfont.c: Include "ftfont.h".
11516 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
11517 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
11518 (xftfont_close) [HAVE_LIBOTF]: Close otf.
11519 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
11520 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
11521 Set xftfont_driver.shape to xftfont_shape.
11522
11523 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
11524 the change of lispy gstring.
11525
115262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11527
11528 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
11529
115302008-02-01 Jason Rumney <jasonr@gnu.org>
11531
11532 * w32font.c (w32font_draw): Fill background manually.
11533
115342008-02-01 Jason Rumney <jasonr@gnu.org>
11535
11536 * font.c (Qfontp): Remove unused symbol.
11537 (QCantialias): New symbol.
11538 (syms_of_font): Define it.
11539 (font_property_table): Set a validator for QCantialias.
11540
11541 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
11542 Define if not already.
11543 (QCfamily): Share with xfaces.c.
11544 (Qstandard, Qsubpixel, Qnatural): New symbols.
11545 (syms_of_w32font): Define them. Don't define QCfamily here.
11546 (w32_antialias_type, lispy_antialias_type): New functions.
11547 (w32_enumfont_pattern_entity): New arg requested_font.
11548 Set antialias parameter if non-default was requested.
11549 (fill_in_logfont): Fill in lfQuality if :antialias specified.
11550
115512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11552
11553 * lread.c (read1): Undo the previous change.
11554
115552008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
11556
11557 * frame.c (Fdelete_frame): Call font_update_drivers only when
11558 USE_FONT_BACKEND is defined.
11559
115602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11561
11562 * font.h (struct font_bitmap): New member bits_per_pixel.
11563 (struct font_driver): New members start_for_frame and end_for_frame.
11564 (struct font_data_list): New struct.
11565 (font_put_frame_data, font_get_frame_data): Extern them.
11566
11567 * frame.h (struct frame): New member font_data_list.
11568
11569 * font.c (font_update_drivers): Call driver->start_for_frame and
11570 driver->end_for_frame at proper timings.
11571 (font_put_frame_data, font_get_frame_data): New functions.
11572 (Ffont_spec): Add usage in the docstring.
11573
11574 * frame.c (make_frame): Initialize f->font_data_list to NULL.
11575 (Fdelete_frame): Call font_update_drivers.
11576
11577 * xftfont.c (struct xftface_info): Delete the member xft_draw.
11578 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
11579 (xftfont_get_xft_draw): New function.
11580 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
11581 (xftfont_end_for_frame): New function.
11582 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
11583
11584 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
11585 Change argument. Cache GCs in the per-frame data.
11586 (struct ftxfont_frame_data): New struct.
11587 (ftxfont_draw_bitmap): New arg gc_fore and flush.
11588 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
11589 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
11590 (ftxfont_end_for_frame): New function.
11591 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
11592
11593 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
11594
115952008-02-01 Kenichi Handa <handa@m17n.org>
11596
11597 * xselect.c (Vselection_coding_system)
11598 (Vnext_selection_coding_system): Delete them.
11599 (syms_of_xselect): Don't declare selection-coding-system and
11600 next-selection-coding-system. They are declared in select.el.
11601
116022008-02-01 Jason Rumney <jasonr@gnu.org>
11603
11604 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
11605
11606 * w32fns.c: Include imm.h.
11607 (get_composition_string_fn, get_ime_context_fn): New optional
11608 system functions.
11609 (globals_of_w32fns): Load them from imm32.dll.
11610 (ignore_ime_char): New flag.
11611 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
11612 WM_IME_ENDCOMPOSITION messages.
11613
11614 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
11615 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
11616
116172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11618
11619 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
11620 (READCHAR_REPORT_MULTIBYTE): New macro.
11621 (readchar): New 2nd arg MULTIBYTE.
11622 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
11623 Make symbol's name multibyte according to the multibyteness of the
11624 source.
11625
116262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11627
11628 * xfaces.c (face_for_overlay_string): Call lookup_face with
11629 correct arguments (fix of synching with the trunk).
11630
116312008-02-01 Kenichi Handa <handa@m17n.org>
11632
11633 * font.c (font_prop_validate_symbol, font_prop_validate_style)
11634 (font_prop_validate_non_neg, font_prop_validate_spacing):
11635 Delete argument prop_index.
11636 (font_property_table): Change arguments to validater. Change Callers.
11637 (font_lispy_object): Delete.
11638 (font_at): Use font_find_object instead fo font_lispy_object.
11639
116402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11641
11642 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
11643 and file names.
11644
116452008-02-01 Jason Rumney <jasonr@gnu.org>
11646
11647 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
11648 (font_matches_spec): Remove debug output.
11649 (add_font_entity_to_list): Avoid using substituted fonts.
11650
116512008-02-01 Jason Rumney <jasonr@gnu.org>
11652
11653 * doc.c (Fsnarf_documentation):
11654 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
11655
116562008-02-01 Miles Bader <miles@gnu.org>
11657
11658 * dispextern.h (struct glyph_row): Only define "clip" field if
11659 HAVE_WINDOW_SYSTEM is defined.
11660
116612008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
11662
11663 Fix up multi-tty merge.
11664
11665 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
11666 and indentation.
11667
11668 * xfaces.c (free_realized_face, clear_face_gcs):
11669 Include font_done_for_face in the input_blocked section, just in case.
11670
11671 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
11672 (get_char_face_and_encoding): Undo last change and remove the *other*
11673 duplicate definition (i.e. keep the one that's better scoped and that
11674 includes code for the font-backend).
11675
11676 * terminal.c (create_terminal): Default keyboard_coding to
11677 `no-conversion' and terminal_coding to `undecided'.
11678
11679 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
11680
11681 * fontset.c (free_realized_fontsets): Check that the table entry does
11682 contain a fontset before trying to compare it to `base'.
11683
11684 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
11685 syms_of_charset, and syms_of_coding earlier because init_window_once
11686 now needs Vcoding_system_hash_table to be setup.
11687
11688 * coding.h (default_buffer_file_coding): Remove.
11689
11690 * coding.c (default_buffer_file_coding): Remove.
11691 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
11692 than ->symbol, and use the terminal-local coding system.
11693 (syms_of_coding): Don't setup the coding-systems that are not
11694 terminal-local.
11695 (Fdefine_coding_system_internal): Use XCAR/XCDR.
11696
11697 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
11698 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
11699
11700 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
11701 in chartab.c and were re-added here by mistake.
11702 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
11703
11704 * doc.c (Fsnarf_documentation):
11705 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
11706 src to etc.
11707
11708 * ChangeLog.10: Add mistakenly removed entry.
11709
117102008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
11711
11712 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
11713
117142008-02-01 Miles Bader <miles@gnu.org>
11715
11716 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
11717 Add extra args to FACE_FOR_CHAR.
11718
117192008-02-01 Kenichi Handa <handa@m17n.org>
11720
11721 * keymap.c (where_is_internal_1): If key is a cons, store the copy
11722 in sequence.
11723
11724 * chartab.c (map_sub_char_table, map_char_table): If the range
11725 contains just one character, call the function with that character
11726 even if the depth is not 3.
11727
117282008-02-01 Jason Rumney <jasonr@gnu.org>
11729
11730 * w32font.c (w32font_text_extents): Calculate metrics for the
11731 whole string.
11732
117332008-02-01 Jason Rumney <jasonr@gnu.org>
11734
11735 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
11736
117372008-02-01 Jason Rumney <jasonr@gnu.org>
11738
11739 * w32term.c (x_set_glyph_string_clipping): Use
11740 get_glyph_string_clip_rects.
11741 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
11742 Adjust for the change of struct glyph_string.
11743
11744 * w32font.c (w32font_draw): Do clipping here.
11745
117462008-02-01 Kenichi Handa <handa@m17n.org>
11747
11748 * xftfont.c (xftfont_draw): Adjust for the change of struct
11749 glyph_string.
11750
11751 * xterm.c (x_set_glyph_string_clipping): Use
11752 get_glyph_string_clip_rects.
11753 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
11754 Adjust for the change of struct glyph_string.
11755
11756 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
11757 the resulting clip(s}.
11758 (expose_overlaps): Add arg r. Change callers. Set it to
11759 row->clip temporarily.
11760 (expose_window): Redraw rows overlapping the exposed area.
11761
11762 * dispextern.h (struct glyph_row): New member clip.
11763 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
11764 clip_height, new member clip, and num_clips.
11765
117662008-02-01 Kenichi Handa <handa@m17n.org>
11767
11768 * data.c (Fchar_or_string_p): Fix docstring.
11769
117702008-02-01 Kenichi Handa <handa@m17n.org>
11771
11772 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
11773 create a temporary XftDraw object.
11774
117752008-02-01 Kenichi Handa <handa@m17n.org>
11776
11777 * font.c (Ffontp): Fix docstring.
11778
11779 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
11780 strong evidence of ISO-2022.
11781
117822008-02-01 Kenichi Handa <handa@m17n.org>
11783
11784 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
11785 SYNTAX_ENTRY_FOLLOW_PARENT.
11786
117872008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
11788
11789 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
11790 its type.
11791 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
11792 Update to the new type of weak_hash_tables and next_weak.
11793
11794 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
11795 a plain C pointer to Lisp_Hash_Table.
11796
11797 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
11798 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
11799 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
11800 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
11801 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
11802 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
11803 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
11804 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
11805 (GC_EQ): Remove since they've been identical to their non-GC_
11806 alter-egos ever since the markbit was eradicated.
11807
11808 * alloc.c:
11809 * buffer.c:
11810 * buffer.h:
11811 * data.c:
11812 * fileio.c:
11813 * filelock.c:
11814 * fns.c:
11815 * frame.h:
11816 * lisp.h:
11817 * macterm.c:
11818 * print.c:
11819 * process.c:
11820 * w32fns.c:
11821 * w32menu.c:
11822 * w32term.c:
11823 * xfns.c:
11824 * xmenu.c:
11825 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
11826
118272008-02-01 Kenichi Handa <handa@m17n.org>
11828
11829 * chartab.c (map_sub_char_table): Make it work for the top-level
11830 char-table. Fix handling of parent char-table.
11831 (map_char_table): Adjust for the above change.
11832
118332008-02-01 Jason Rumney <jasonr@gnu.org>
11834
11835 * w32font.c (Qgdi): Rename from Qw32.
11836
118372008-02-01 Jason Rumney <jasonr@gnu.org>
11838
11839 * w32bdf.c (get_quoted_string): Make function static.
11840
118412008-02-01 Kenichi Handa <handa@m17n.org>
11842
11843 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
11844 bigger ascent and descent than those of the font, use them as
11845 font's ascent and descent.
11846
118472008-02-01 Kenichi Handa <handa@m17n.org>
11848
11849 * Makefile.in (${lispsource}international/charprop.el): Move this
11850 target within "#ifdef HAVE_UNIDATA" and "#endif".
11851
118522008-02-01 Kenichi Handa <handa@m17n.org>
11853
11854 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
11855 (shortlisp): Add ../lisp/language/tai-viet.el.
11856
118572008-02-01 Ulrich Mueller <ulm@gentoo.org>
11858
11859 * Makefile.in (${lispsource}international/charprop.el): Depend on
11860 temacs${EXEEXT}.
11861
118622008-02-01 Jason Rumney <jasonr@gnu.org>
11863
11864 * w32font.c (w32font_close): Delete the GDI font object.
11865
11866 * w32menu.c: Include character.h.
11867
11868 * w32proc.c: Likewise.
11869
11870 * w32select.c: Likewise.
11871
11872 * makefile.w32-in (w32proc.o): Depend on character.h.
11873
118742008-02-01 Jason Rumney <jasonr@gnu.org>
11875
11876 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
11877
11878 * w32menu.c (syms_of_w32menu): Likewise.
11879
11880 * w32proc.c (syms_of_ntproc): Likewise.
11881
11882 * w32select.c (syms_of_w32select): Likewise.
11883
11884 * w32term.c (syms_of_w32term): Likewise.
11885
118862008-02-01 Jason Rumney <jasonr@gnu.org>
11887
11888 * w32font.c (w32font_draw): Delete brush after using it.
11889
118902008-02-01 Jason Rumney <jasonr@gnu.org>
11891
11892 * w32font.c (w32font_open): Don't set font_idx.
11893 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
11894 to font settings.
11895 (w32font_draw): Fill background explicitly.
11896
118972008-02-01 Jason Rumney <jasonr@gnu.org>
11898
11899 * w32term.c (w32_initialize): Don't call w32font_initialize.
11900
11901 * w32font.c (w32font_info): Remove subranges.
11902 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
11903 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
11904 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
11905 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
11906 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
11907 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
11908 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
11909 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
11910 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
11911 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
11912 New symbols.
11913 (font_callback_data): New struct.
11914 (w32font_list, w32font_match): Use it.
11915 (w32font_open): Don't populate subranges.
11916 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
11917 (w32font_encode_char): Always return unicode code-point as-is.
11918 (w32font_text_extents): Supply a transformation matrix to
11919 GetGlyphOutline. Never look up by glyph index. Avoid looping
11920 twice. Use unicode version of GetTexExtentPoint32 instead of
11921 glyph index version.
11922 (set_fonts_frame): Remove.
11923 (w32_enumfont_pattern_entity): Add frame parameter, use it to
11924 set frame parameter. Use backward compatible fake foundries.
11925 Save generic family in extra slot under QCfamily. Make width slot
11926 constant. Save QCspacing value. Save list of scripts instead of
11927 binary subranges.
11928 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
11929 (add_font_entity_to_list): Use font_callback_data struct. Filter
11930 unwanted fonts.
11931 (add_one_font_entity_to_list): Use font_callback_data struct.
11932 (w32_registry): Default to iso10646_1.
11933 (fill_in_logfont): Use dpi from extra slot. Don't bother with
11934 string font registries. Don't fill in font name if it is a generic
11935 family name, fill family instead. Use spacing, family and script
11936 extra info to fill pitch, family and charset fields.
11937 (list_all_matching_fonts): Use font_callback_data struct.
11938 (unicode_range_for_char): Remove.
11939 (font_supported_scripts): New function.
11940 (w32font_initialize): Remove.
11941 (syms_of_w32font): Update which symbols are defined.
11942
119432008-02-01 Jason Rumney <jasonr@gnu.org>
11944
11945 * font.c (font_pixel_size): Reverse assq_no_quit args.
11946
11947 * w32term.h (FONT_WIDTH): Report max width, not average.
11948 (FONT_MAX_WIDTH): Remove.
11949 (FONT_AVG_WIDTH): New macro.
11950
11951 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
11952 redefinition of FONT_WIDTH.
11953
11954 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
11955 (w32_cache_char_metrics): Use FONT_WIDTH.
11956
11957 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
11958
119592008-02-01 Jason Rumney <jasonr@gnu.org>
11960
11961 * w32font.c (w32font_open): Make lfHeight negative.
11962
11963 * w32fns.c (x_default_font_parameter): Use new style font name.
11964 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
11965
119662008-02-01 Jason Rumney <jasonr@gnu.org>
11967
11968 * w32font.c (QCsubranges): New symbol.
11969 (w32font_open, w32font_has_char): Get subranges from subproperty
11970 of extra.
11971 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
11972 (syms_of_w32font): Define :subranges symbol.
11973
11974 * font.c (font_put_extra): Expose externally.
11975
11976 * font.h (font_put_extra): Move declaration from font.c.
11977
11978 * font.c (Ffont_get): Use font driver to determine otf capability.
11979 (adjust_anchor): Check if driver defines anchor_point before using.
11980
11981 * w32font.c (w32font_open): Handle size, height and pixel_size better.
11982 (w32font_draw): Use options.
11983 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
11984 Fix detection of truetype fonts.
11985 (registry_to_w32_charset): Handle charsets other than iso8859-1
11986 expressed as lisp symbols.
11987 (w32_registry): Express charset as lisp symbol.
11988 (fill_in_logfont): Reverse pixel and point height logic.
11989 Don't set width here. Set quality to default.
11990
11991 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
11992 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
11993
11994 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
11995 Remove redundant loop and allocation.
11996
11997 * makefile.w32-in (font.o, w32font.o): New objects.
11998 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
11999 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
12000
12001 * xdisp.c (fill_composite_glyph_string): Make the first arg to
12002 STORE_XCHARB a valid l-value.
12003
12004 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
12005 calculations for non-Truetype fonts.
12006 (x_draw_glyph_string): Sync with xterm.c.
12007 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
12008 Remove redundant code.
12009 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
12010
12011 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
12012 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
12013
12014 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
12015 (x_to_w32_charset, w32_to_x_charset): Expose externally.
12016
12017 * w32font.c: New file for w32 font backend.
12018
120192008-02-01 Kenichi Handa <handa@m17n.org>
12020
12021 * term.c: Don't include "buffer.h" twice.
12022
120232008-02-01 Kenichi Handa <handa@m17n.org>
12024
12025 * character.c (Funibyte_string): New function.
12026 (syms_of_character): Defsubr it.
12027
120282008-02-01 Jason Rumney <jasonr@gnu.org>
12029
12030 * w32term.c [USE_FONT_BACKEND]:
12031 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
12032 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
12033 (x_draw_glyph_string, x_draw_glyph_string_foreground)
12034 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
12035 (x_free_frame_resources): Sync with xterm.c.
12036
120372008-02-01 Andreas Schwab <schwab@suse.de>
12038
12039 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
12040 char-table size.
12041
120422008-02-01 Kenichi Handa <handa@m17n.org>
12043
12044 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
12045
120462008-02-01 Kenichi Handa <handa@m17n.org>
12047
12048 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
12049 font_otf_gpos, add font_drive_otf.
12050
12051 * fontset.c (fontset_find_font): Pay attention to font size
12052 specified for a font.
12053 (reorder_font_vector): Check contents of font_def.
12054
12055 * font.c (struct otf_list): Delete it.
12056 (otf_list): Make it a lisp variable.
12057 (otf_open): Use lispy otf_list.
12058 (generate_otf_features): Rename from parse_gsub_gpos_spec.
12059 (check_otf_features): New function.
12060 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
12061 New functions.
12062 (font_drive_otf): New function merging font_otf_gsub and
12063 font_otf_gpos.
12064 (font_open_for_lface): New arg spec. Change argument order.
12065 (font_load_for_face): Adjust for the change of font_open_for_lface.
12066 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
12067 Ffont_otf_gpos.
12068 (syms_of_font): Staticpro otf_list. Delete defsubr of
12069 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
12070
12071 * xfaces.c (set_font_frame_param): Adjust for the change of
12072 font_open_for_lface.
12073
12074 * font.h (font_open_for_lface): Adjust prototype.
12075 (struct font_driver): Delete members otf_gsub and otf_gpos, add
12076 member otf_drive.
12077 (font_otf_gsub, font_otf_gpos): Delete externs.
12078 (font_drive_otf): Extern it.
12079
120802008-02-01 Kenichi Handa <handa@m17n.org>
12081
12082 * font.c (font_at): If the window W is not on a window system,
12083 return Qnil.
12084
12085 * coding.c (produce_chars, encode_coding): Don't call
12086 insert_from_gap if no characters to produce.
12087
120882008-02-01 Kenichi Handa <handa@m17n.org>
12089
12090 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
12091 Fclear_face_cache.
12092
12093 * xfaces.c (face_for_font): Check also face->font==font->font.font.
12094
120952008-02-01 Miles Bader <miles@gnu.org>
12096
12097 * emacs.c (main): Change default value of `enable_font_backend' to 1.
12098 Parse "--disable-font-backend" option.
12099 (standard_args): Add "--disable-font-backend" option.
12100
121012008-02-01 Kenichi Handa <handa@m17n.org>
12102
12103 * fontset.c (fontset_find_font): New function.
12104 (fontset_font): Use fontset_find_font.
12105 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
12106 Register the specified font for all Latin characters.
12107 (new_fontset_from_font): Register the specified font for all Latin
12108 characters.
12109 (dump_fontset): For a realized fontset, include the base fontset
12110 name in the returned vector.
12111
121122008-02-01 Kenichi Handa <handa@m17n.org>
12113
12114 * character.h (CHAR_STRING): Cast C to unsigned on calling
12115 char_string.
12116
12117 * character.c (char_string): Type of arg C changed to unsigned.
12118 Signal an error if C is an invalid character code.
12119
12120 * editfns.c (general_insert_function, Fchar_to_string):
12121 Use CHARACTERP, not INTEGERP.
12122
121232008-02-01 Kenichi Handa <handa@m17n.org>
12124
12125 * character.h (MIN_MULTIBYTE_LEADING_CODE)
12126 (MAX_MULTIBYTE_LEADING_CODE): New macros.
12127
12128 * regex.c (analyse_first): Fix for multibyte characters in "case
12129 charset:" and "case categoryspec:".
12130
121312008-02-01 Andreas Schwab <schwab@suse.de>
12132
12133 * Makefile.in (LIBES): Move standard libraries to the end.
12134
121352008-02-01 Kenichi Handa <handa@m17n.org>
12136
12137 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
12138 nonzero, don't shrink the buffer nextb.
12139
12140 * buffer.h (struct buffer_text): New member inhibit_shrinking.
12141
12142 * coding.c (coding_alloc_by_making_gap): New arg offset.
12143 (alloc_destination): Call coding_alloc_by_making_gap with the arg
12144 offset.
12145 (decode_coding_iso_2022): Update coding->safe_charsets.
12146 (decode_coding_gap): Temporarily set
12147 current_buffer->text->inhibit_shrinking to 1.
12148
121492008-02-01 Kenichi Handa <handa@m17n.org>
12150
12151 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
12152 indexing into elements of s->cmp and s->char2b.
12153
121542008-02-01 Juanma Barranquero <lekktu@gmail.com>
12155
12156 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
12157
121582008-02-01 Kenichi Handa <handa@m17n.org>
12159
12160 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
12161 target_multibyte instead of multibyte.
12162 (re_match_2_internal): Call bcmp_translate with target_multibyte.
12163 (bcmp_translate): Change the argument name from multibyte to
12164 target_multibyte.
12165
121662008-02-01 Kenichi Handa <handa@m17n.org>
12167
12168 These changes are to compile a regexp into a pattern that can be
12169 used both for multibyte and unibyte targets.
12170
12171 * Makefile.in (search.o): Depend on charset.h.
12172
12173 * character.c (multibyte_char_to_unibyte_safe): New function.
12174
12175 * search.c: Include "charset.h".
12176 (compile_pattern_1): Delete argument multibyte. Don't set
12177 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
12178 (compile_pattern): Don't compare cp->buf.target_multibyte.
12179 Compare cp->buf.charset_unibyte.
12180 (compile_pattern): Set cp->buf.target_multibyte.
12181
12182 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
12183
12184 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
12185
12186 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
12187 multibyte. Change callers.
12188 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
12189 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
12190 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
12191 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
12192 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
12193 (regex_compile): Make the compiled pattern usable both for
12194 multibyte and unibyte targets.
12195 (analyse_first): Make the fastmap usable both for multibyte and
12196 unibyte targets.
12197 (TRANSLATE_VIA_MULTIBYTE): Delete.
12198 (re_match_2_internal): Pay attention to the case that the
12199 multibyteness of bufp and target may be different.
12200
122012008-02-01 Kenichi Handa <handa@m17n.org>
12202
12203 * xdisp.c (x_produce_glyphs): When a font is not found, make the
12204 empty box occupy at least one column width.
12205
122062008-02-01 Miles Bader <miles@gnu.org>
12207
12208 * Makefile.in: Remove redundant HAVE_XFT clause.
12209
122102008-02-01 Kenichi Handa <handa@m17n.org>
12211
12212 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
12213
122142008-02-01 Kenichi Handa <handa@m17n.org>
12215
12216 * fontset.c (Finternal_char_font): Fix for the case of POSITION
12217 being nil.
12218
122192008-02-01 Kenichi Handa <handa@m17n.org>
12220
12221 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
12222
122232008-02-01 Kenichi Handa <handa@m17n.org>
12224
12225 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
12226
122272008-02-01 Kenichi Handa <handa@m17n.org>
12228
12229 * search.c (simple_search): Fix previous change.
12230
122312008-02-01 Kenichi Handa <handa@m17n.org>
12232
12233 * xftfont.c (ftfont_font_format): Extern declaration.
12234
12235 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
12236
12237 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
12238 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
12239
12240 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
12241 (ftfont_font_format): Fix previous change.
12242
12243 * font.h (Ffont_xlfd_name): EXFUN it.
12244
12245 * font.c (font_parse_xlfd): Fix the array size of `f'.
12246 (register_font_driver): Use EQ to compare driver->type.
12247
12248 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
12249 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
12250 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
12251
122522008-02-01 Kenichi Handa <handa@m17n.org>
12253
12254 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
12255 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
12256
122572008-02-01 Kenichi Handa <handa@m17n.org>
12258
12259 * xfont.c (xfont_open): Set font->format.
12260
12261 * xftfont.c (xftfont_open): Set font->format.
12262
12263 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
12264 (ftfont_list): Include FC_FONTFORMAT in FcObject.
12265 (ftfont_open): Set font->format.
12266 (ftfont_font_format): New function.
12267
12268 * font.h (struct font): New member format.
12269
12270 * font.c (Qopentype): New variable.
12271 (syms_of_font): Defsym it.
12272 (Fquery_font): Change the format of the last element of the return
12273 value.
12274
122752008-02-01 Kenichi Handa <handa@m17n.org>
12276
12277 * xfns.c (xic_create_xfontset): Try the default fontset name as a
12278 last resort.
12279
122802008-02-01 Kenichi Handa <handa@m17n.org>
12281
12282 * coding.c (detect_coding_charset): Fix detection of multi-byte
12283 charset.
12284
122852008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
12286
12287 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
12288
122892008-02-01 Kenichi Handa <handa@m17n.org>
12290
12291 * xdisp.c (get_next_display_element): Set it->face_id for the
12292 first component of a composition.
12293 (x_produce_glyphs): Check if the font is changed or not for composition.
12294
122952008-02-01 Kenichi Handa <handa@m17n.org>
12296
12297 * fontset.c (Qlatin): New variable.
12298 (syms_of_fontset): Define it as a lisp symbol.
12299 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
12300
123012008-02-01 Kenichi Handa <handa@m17n.org>
12302
12303 * font.c (font_unparse_fcname): Pay attention to the case that
12304 some of font property is a null string.
12305
123062008-02-01 Kenichi Handa <handa@m17n.org>
12307
12308 * term.c: Include "composite.h".
12309 (encode_terminal_code): Output all components of composition.
12310 Check the size of encode_terminal_src.
12311 (produce_glyphs): For composition, call produce_composite_glyph.
12312 (append_composite_glyph, produce_composite_glyph): New functions.
12313
12314 * xdisp.c (x_produce_glyphs): In handling composition, if a font
12315 is not found, get font_info from the current ascii face.
12316
123172008-02-01 Kenichi Handa <handa@m17n.org>
12318
12319 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
12320 buffer-file-name to Qnil before calling insert_from_buffer.
12321
12322 * font.c (font_unparse_fcname): Pay attention to the case that
12323 foundry is a null string.
12324
123252008-02-01 Kenichi Handa <handa@m17n.org>
12326
12327 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
12328
12329 * font.c (Qunicode_sip): New variable.
12330 (syms_of_font): Declare it as a Lisp symbol.
12331
12332 * font.h (Qunicode_sip): Extern it.
12333
123342008-02-01 Kenichi Handa <handa@m17n.org>
12335
12336 * composite.c (get_composition_id): Pay attention to TAB component.
12337
12338 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
12339 TAB. Adjust for the change of s->char2b which always points to
12340 the first element of allocated memory.
12341
12342 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
12343
12344 * xdisp.c (handle_composition_prop): Set it->c to the first
12345 non-TAB component.
12346 (fill_composite_glyph_string): Change argument.
12347 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
12348 (x_produce_glyphs): Fix handling of left/right padding.
12349
123502008-02-01 Kenichi Handa <handa@m17n.org>
12351
12352 * coding.c (detect_coding_system): Fix for handling off
12353 inhibit_iso_escape_detection. Fix for the case that no coding
12354 system is defined for a specific coding category.
12355
123562008-02-01 Kenichi Handa <handa@m17n.org>
12357
12358 * font.c (font_matching_entity): Delete unused local var.
12359
12360 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
12361 opening a font.
12362
12363 * fileio.c (Finsert_file_contents): On recovering a file, assume
12364 Unix-like eol.
12365 (choose_write_coding_system): On auto-saving a file, force
12366 Unix-like eol.
12367
12368 * coding.c (setup_coding_system): Fix setting of
12369 coding->common_flags based on eol_type.
12370 (coding_inherit_eol_type): If PARENT is not nil, be sure to
12371 inherit from it.
12372
123732008-02-01 Kenichi Handa <handa@m17n.org>
12374
12375 * alloc.c (NSTATICS): Increas to 0x600.
12376
123772008-02-01 Kenichi Handa <handa@m17n.org>
12378
12379 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
12380 (ftfont_list): Don't check :name property.
12381 (ftfont_match): New function.
12382 (ftfont_pattern_entity): If the pattern doesn't contain
12383 FC_SPACING, don't assume FC_MONO.
12384
12385 * font.h (struct font_driver): New member `match'.
12386 (font_update_drivers): Adjust prototype.
12387
12388 * font.c (font_parse_fcname, font_parse_name): Don't change :name
12389 property of FONT.
12390 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
12391 them unconditionally.
12392 (font_matching_entity): New function.
12393 (font_open_by_name): Try font_matching_entity if exact match is
12394 not found.
12395 (font_update_drivers): Delete the arg FONT. Return a list of
12396 actually used backends. Don't free faces, font caches here.
12397 Don't store data in frame parameters. Don't call x_set_font.
12398 (Ffont_spec): Store :name property as is.
12399 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
12400 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
12401 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
12402 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
12403 Call font->driver->otf_gsub instead of font_otf_gsub.
12404
12405 * frame.c (x_set_font_backend): Do more works that were done in
12406 font_update_drivers before.
12407
12408 * xfont.c (xfont_match): New function.
12409 (xfont_driver): Set xfont_driver.match to xfont_match.
12410 (xfont_draw): Set font in GC if necessary.
12411
12412 * ftxfont.c (ftxfont_match): New function.
12413 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
12414
12415 * xftfont.c (xftfont_match): New function.
12416 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
12417
124182008-02-01 Kenichi Handa <handa@m17n.org>
12419
12420 * font.h (struct font): New member scalable.
12421 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
12422 (font_otf_gsub): Adjust prototype.
12423
12424 * font.c (font_otf_capability): Fix handling of the default langsys.
12425 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
12426 Check the contents of SPEC.
12427 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
12428 (check_gstring): New function.
12429 (REPLACEMENT_CHARACTER): New macro.
12430 (font_otf_gsub): New arg alternate_subst. Be sure to set all
12431 glyph codes of GSTRING.
12432 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
12433 (font_prepare_composition): Set cmp->glyph_len.
12434 (font_open_entity): Set font->scalable.
12435 (Ffont_get): Handle :otf property.
12436 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
12437 functions.
12438 (Fquery_font): Use font->font.full_name.
12439 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
12440 Sfont_otf_alternates.
12441
12442 * ftfont.c (ftfont_open): Set font->font.full_name and
12443 font->font.name properly. Fix calculation of font->font.height
12444 and font->min_width.
12445
12446 * ftxfont.c (ftxfont_create_gcs): New function.
12447 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
12448 (ftxfont_draw_backgrond): Fix filling region.
12449 (ftxfont_default_fid): New function.
12450 (ftxfont_open): Set xfont->fid to the return value of
12451 ftxfont_default_fid.
12452 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
12453 (ftxfont_done_face): Free only GCs that are created by
12454 ftxfont_create_gcs.
12455 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
12456
12457 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
12458 Clip to src->width, etc (not src->clip_XXX).
12459
12460 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
12461 FontBackend frame parameter.
12462
124632008-02-01 Kenichi Handa <handa@m17n.org>
12464
12465 * font.h (struct font_driver_list): New member `on'.
12466 (Fclear_font_cache): EXFUN it.
12467 (font_update_drivers): Extern it.
12468
12469 * font.c (font_unparse_fcname): Fix typo (swidth->width).
12470 (font_list_entities): Check driver_list->on.
12471 (register_font_driver): Initalize `on' member to 0.
12472 (font_update_drivers): New function.
12473 (Fclear_font_cache): Check driver_list->on.
12474
12475 * frame.h (Qfont_backend): Extern it.
12476 (x_set_font_backend): Extern it.
12477
12478 * frame.c (Qfont_backend): New variable.
12479 (frame_parms): New element for font-backend.
12480 (x_set_font_backend): New function.
12481
12482 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
12483 FontBackend frame parameter.
12484 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
12485 x_set_font_backend.
12486
12487 * xfont.c (xfont_list): Don't try listing by :name property if the
12488 name is not for XLFD.
12489
124902008-02-01 Kenichi Handa <handa@m17n.org>
12491
12492 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
12493 (LGLYPH_SET_TO): New macros.
12494 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
12495 element of G is vector or not.
12496 (font_at): Extern it.
12497
12498 * font.c: Include window.h.
12499 (font_lispy_object): New function.
12500 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
12501 end of valid glyph.
12502 (font_close_object): Fix getting (struct font *).
12503 (font_at): New function.
12504 (Ffont_get): If FONT is a font-object, get entity from it.
12505 (Ffont_make_gstring): Initialize elements of glyphs with nil.
12506 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
12507 range check.
12508 (Ffont_at): New function.
12509 (syms_of_font): Defsubr Sfont_at.
12510
12511 * xdisp.c (it_props): Move the entry for Qauto_composed to just
12512 before the entry for Qcomposition.
12513 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
12514 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
12515 the font in gstring.
12516 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
12517 LGLYPH_FORM (g) to detect the end of valid glyph.
12518 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
12519 we are composing with gstring.
12520
12521 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
12522 Check if adjustment is vector or not.
12523
12524 * Makefile.in (font.o): Make it depends on window.h.
12525
125262008-02-01 Kenichi Handa <handa@m17n.org>
12527
12528 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
12529 adjustment is vector or not.
12530
125312008-02-01 Miles Bader <miles@gnu.org>
12532
12533 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
12534
125352008-02-01 Kenichi Handa <handa@m17n.org>
12536
12537 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
12538 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
12539 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
12540
12541 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
12542 (DEVICE_DELTA): Fix typo.
12543 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
12544 LGLYPH format.
12545
12546 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
12547 the change of LGLYPH format.
12548
125492008-02-01 Kenichi Handa <handa@m17n.org>
12550
12551 * ftfont.c (ftfont_list): Fix typo.
12552 (ftfont_build_basic_charsets): Don't include letters with diacritics.
12553
125542008-02-01 Jan Djärv <jan.h.d@swipnet.se>
12555
12556 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
12557
12558 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
12559 xftface_info is non-NULL.
12560
125612008-02-01 Jan Djärv <jan.h.d@swipnet.se>
12562
12563 * ftfont.c (ftfont_list): Move misplaced #endif.
12564
125652008-02-01 Kenichi Handa <handa@m17n.org>
12566
12567 * ftfont.c (ftfont_list): Pay attention to the case that
12568 FC_CAPABILITY is not defined.
12569
125702008-02-01 Kenichi Handa <handa@m17n.org>
12571
12572 * xftfont.c (xftfont_open): Set charset related members to -1.
12573
12574 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
12575 QCname.
12576 (ftfont_open): Set charset related members to -1.
12577
12578 * fontset.c (Votf_script_alist): New variable.
12579 (syms_of_fontset): Initialize it.
12580 (fontset_font): Delete unused variable.
12581
12582 * fontset.h (Votf_script_alist): Extern it.
12583
12584 * font.c (font_find_for_lface): Optimize code.
12585
12586 * font.h (font_close_object, font_merge_old_spec): Extern them.
12587
125882008-02-01 Kenichi Handa <handa@m17n.org>
12589
12590 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
12591 (syms_of_font): Initialize them.
12592 (font_pixel_size): Allow float value in dpi.
12593 (font_prop_validate_type): Delete.
12594 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
12595 Change caller.
12596 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
12597 (font_prop_validate_extra): Delete.
12598 (font_prop_validate_spacing): New function.
12599 (font_property_table): Add elements for all known properties.
12600 (get_font_prop_index): Rename from check_font_prop_name. New
12601 argument FROM. Change caller.
12602 (font_prop_validate): Validate all known properties.
12603 (font_put_extra): Delete argument force. Change caller.
12604 (font_expand_wildcards): Make it static. Fix the way of shrinking
12605 the possible range.
12606 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
12607 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
12608 Change caller.
12609 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
12610 (font_parse_fcname): Delete argument merge. Fix parsing of point
12611 size. Don't validate properties values here. Change caller.
12612 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
12613 (font_open_by_name): Delete unused variable.
12614 (Ffont_spec): Likewise. Validate property values.
12615 (Ffont_match_p): New function.
12616
12617 * font.h (QCscalable): Extern it.
12618 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
12619
12620 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
12621
12622 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
12623 (xfont_list_pattern): New function.
12624 (xfont_list): Use xfont_list_pattern.
12625
126262008-02-01 Kenichi Handa <handa@m17n.org>
12627
12628 * font.h (Flist_fonts): EXFUN it.
12629
126302008-02-01 Jason Rumney <jasonr@gnu.org>
12631
12632 * w32term.c (w32_initialize): Add back smoothing_type and
12633 smoothing_enabled definitions.
12634
126352008-02-01 Kenichi Handa <handa@m17n.org>
12636
12637 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
12638 s->face->font on determining underline position.
12639
126402008-02-01 Kenichi Handa <handa@m17n.org>
12641
12642 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
12643 (font_has_char): Accept font-object too.
12644 (font_find_for_lface): Try at first with a size specified in face.
12645
126462008-02-01 Kenichi Handa <handa@m17n.org>
12647
12648 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
12649 font_open_by_name.
12650
126512008-02-01 Kenichi Handa <handa@m17n.org>
12652
12653 * font.h (QCspacing, QCdpi): Extern them.
12654 (enum font_spacing): New enum.
12655 (FONT_PIXEL_SIZE_QUANTUM): New macro.
12656
12657 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
12658 (QCspacing, QCdpi): New variables.
12659 (syms_of_font): Initialize them.
12660 (font_pixel_size): New function.
12661 (font_put_extra): New function.
12662 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
12663 in FONT_EXTRA.
12664 (font_parse_fcname): Handle enumerated values (e.g. bold).
12665 Fix handling font size. Add QCname property that contains only
12666 unknown properties.
12667 (font_score): Change argument. Change caller. Pay attention to
12668 FONT_PIXEL_SIZE_QUANTUM.
12669 (font_sort_entites, font_list_entities, font_find_for_lface)
12670 (font_open_for_lface, font_open_by_name): Fix handling of font size.
12671 (Ffont_spec): Add QCname property that contains only unknown properties.
12672
12673 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
12674 include weight in listing pattern, instead check weight of each
12675 listed font. Don't include scalable in pattern. Pay attention to
12676 FONT_PIXEL_SIZE_QUANTUM.
12677
126782008-02-01 Kenichi Handa <handa@m17n.org>
12679
12680 * font.c (font_parse_fcname): Fix parsing of point-size.
12681 (font_unparse_fcname): Produce symbolic names for style properties.
12682 (font_list_entities): Handle float size correctly.
12683 (font_open_by_name): Prefer `normal' property values if the name
12684 doesn't specify them.
12685
12686 * fontset.c (Finternal_char_font): Use font_get_name, not
12687 Ffont_xlfd_name.
12688
12689 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
12690 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
12691 pattern. Don't force scalable.
12692
12693 * xftfont.c (xftfont_open): For generating a name, start from
12694 96-byte buffer.
12695
126962008-02-01 Jan Djärv <jan.h.d@swipnet.se>
12697
12698 * frame.h (x_new_fontset2): Fix prototype.
12699
127002008-02-01 Kenichi Handa <handa@m17n.org>
12701
12702 * font.h (struct font_driver): Delete member parse_name.
12703 (font_match_p, font_get_spec, font_parse_fcname)
12704 (font_unparse_fcname): Extern them.
12705 (font_get_name): Adjust prototype.
12706
12707 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
12708 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
12709 (font_expand_wildcards): Fix handling ENCODING field. Avoid
12710 unnecessary checks for weight, slant, and swidth.
12711 (font_parse_fcname): New function.
12712 (font_unparse_fcname): New function.
12713 (font_parse_name): New function.
12714 (font_match_p): New function.
12715 (font_get_name): Change return value to Lisp string.
12716 (font_get_spec): New function.
12717 (Qunspecified, Qignore_defface): Don't extern them.
12718 (font_find_for_lface): Assume that LFACE is fully specified.
12719 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
12720 object, use it for FACE.
12721 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
12722 driver->parse_name.
12723 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
12724
12725 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
12726 prototype.
12727
12728 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
12729 argument F. Don't call Fnew_fontset. Instead, directly call
12730 make_fontset.
12731
12732 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
12733
12734 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
12735 of x_new_fontset2.
12736
12737 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
12738 (Qsans__serif): New variables.
12739 (ftfont_generic_family_list): New variable.
12740 (syms_of_ftfont): Initialize the above variables.
12741 (ftfont_pattern_entity): Delete argument NAME.
12742 (ftfont_list_generic_family): New function.
12743 (ftfont_parse_name): Delete this function.
12744 (ftfont_list): Try generic family only when FcFontList found no font.
12745 (ftfont_list_family): Fix args to FcObjectSetBuild.
12746
12747 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
12748 object in attrs[LFACE_FONT_INDEX].
12749 (set_lface_from_font_name): Cancel all changes for font-backend.
12750 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
12751 function.
12752 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
12753 font object in QCfont attribute.
12754 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
12755 (realize_default_face) [USE_FONT_BACKEND]: Call
12756 set_lface_from_font_and_fontset.
12757
12758 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
12759 "fixed", and signal error here if no suitable font was found.
12760
12761 * xfont.c (xfont_parse_name): Delete this function.
12762
12763 * xftfont.c (xftfont_open): Change coding style of error
12764 handling. Generate fontconfig's fontname pattern.
12765
12766 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
12767 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
12768
12769 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
12770 Both args FONTSET and FONT_OBJECT must be existing ones.
12771
127722008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12773
12774 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
12775
127762008-02-01 Kenichi Handa <handa@m17n.org>
12777
12778 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
12779
12780 * font.h (struct font): Fix typo.
12781
12782 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
12783 XLFD_XXX_INDEX.
12784 (enum xlfd_field_mask): New enum.
12785 (intern_font_field): Changed argument. Change caller. If digits
12786 are followed by non-digits, return a symbol.
12787 (font_expand_wildcards): New function.
12788 (font_parse_xlfd): Fix wildcard handling.
12789 (Ffont_spec): If :name is specified, reflect the info in the other
12790 properties.
12791
12792 * ftfont.c (ftfont_pattern_entity): Fix typo.
12793 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
12794 locale.
12795
127962008-02-01 Kenichi Handa <handa@m17n.org>
12797
12798 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
12799
12800 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
12801 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
12802 registry doesn't specify encoding part.
12803 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
12804 (font_open_by_name): At first try parsing the name.
12805 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
12806 as Lisp symbols.
12807
12808 * fontset.c (reorder_font_vector): Pay attention to the case that
12809 the 3rd element of font_def is nil.
12810 (fontset_font): For the default fontset, append one more fontset
12811 elements for a script-based font specification. Don't add script
12812 attribute on finding a font.
12813 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
12814 font name.
12815 (fontset_ascii_font): If a font can't be opened, return nil.
12816
12817 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
12818 (ftfont_pattern_entity): New function.
12819 (ftfont_get_cache): Assume that freetype_font_cache is already
12820 initialized.
12821 (ftfont_list): Handle the case that a file is specified in font
12822 name. Use ftfont_pattern_entity to generate entities.
12823 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
12824 (syms_of_ftfont): Initialize freetype_font_cache.
12825
12826 * xftfont.c (xftfont_open): Make the font name fontconfig's
12827 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
12828 (xftfont_close): Free font->font.name if not NULL.
12829
12830 * xfont.c (xfont_list): If script is specified for a font, return
12831 null_vector.
12832 (xfont_list_family): Declare argument type.
12833
12834 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
12835 name, set LFACE_FONT (lface) to nil.
12836
12837 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
12838 return Qnil.
12839
128402008-02-01 Kenichi Handa <handa@m17n.org>
12841
12842 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
12843 (standard_args): Add "-enable-font-backend".
12844
128452008-02-01 Kenichi Handa <handa@m17n.org>
12846
12847 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
12848 (struct xftdraw_list, xftdraw_list): Delete them.
12849 (register_xftdraw, check_xftdraw): Delete them.
12850 (xftfont_prepare_face): Don't call register_xftdraw.
12851 (xftfont_done_face): Don't call check_xftdraw.
12852 (xftfont_draw): Get background color only when with_background is
12853 nonzero.
12854
12855 * xfont.c (xfont_encode_char): Fix calculation of char2b.
12856
128572008-02-01 Kenichi Handa <handa@m17n.org>
12858
12859 These changes are for the new font handling codes.
12860
12861 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
12862 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
12863 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
12864 (FONTSRC, FONTOBJ): New variables.
12865 (obj): Add $(FONTOBJ).
12866 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
12867 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
12868 @LIBOTF_LIBS@.
12869 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
12870 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
12871
12872 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
12873
12874 * character.h (Vscript_representative_chars): Extern it.
12875
12876 * character.c (Vscript_representative_chars): New variable.
12877 (syms_of_character): Declare it as a Lisp variable.
12878
12879 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
12880 enable_font_backend is nonzero, accept the composition method
12881 COMPOSITION_WITH_GLYPH_STRING.
12882
12883 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
12884 enumeration COMPOSITION_WITH_GLYPH_STRING.
12885
12886 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
12887 members clip_x, clip_y, clip_width, and clip_height.
12888 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
12889
12890 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
12891 --enable-font-backend. Call syms_of_font.
12892
12893 * fns.c (assoc_no_quit): New function.
12894
12895 * fontset.h (FONT_INFO_FROM_FACE): New macro.
12896 (face_for_font, new_fontset_from_font)
12897 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
12898
12899 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
12900 (fontset_font, fontset_ascii, face_for_char)
12901 (make_fontset_for_ascii_face, Ffont_info)
12902 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
12903 is nonzero, use font-backend mechanism.
12904 (find_font_encoding): Make it non-static.
12905 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
12906 New functions.
12907
12908 * frame.h (struct frame): New members resx and resy.
12909 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
12910 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
12911
12912 * frame.c [USE_FONT_BACKEND]: Include "font.h".
12913 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
12914
12915 * lisp.h (assoc_no_quit): Extern it.
12916
12917 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
12918 Through out the file, use FONT_INFO_FROM_FACE instead of
12919 FONT_INFO_FROM_ID, use get_per_char_metric instead of
12920 rif->per_char_metric.
12921 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
12922 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
12923 (get_glyph_face_and_encoding, fill_composite_glyph_string)
12924 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
12925 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
12926 nonzero, use font-backend mechanism.
12927 (get_per_char_metric): New function.
12928
12929 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
12930 (set_lface_from_font_name)
12931 (set_font_frame_param, free_realized_face)
12932 (prepare_face_for_display, clear_face_gcs)
12933 (Finternal_set_font_selection_order, realize_x_face)
12934 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
12935 font-backend mechanism.
12936 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
12937 (load_face_font) [USE_FONT_BACKEND]: Abort.
12938 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
12939 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
12940
12941 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
12942 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
12943 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
12944 nonzero, register all available font drivers. Call
12945 x_default_font_parameter for deciding a font.
12946 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
12947
12948 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
12949 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
12950 (x_set_glyph_string_clipping_exactly)
12951 (x_compute_glyph_string_overhangs)
12952 (x_draw_glyph_string_foreground)
12953 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
12954 (x_free_frame_resources) [USE_FONT_BACKEND]: If
12955 enable_font_backend is nonzero, use font-backend mechanism.
12956 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
12957
129582008-02-01 Kenichi Handa <handa@m17n.org>
12959
12960 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
12961 system_eol_type.
12962 (syms_of_coding): Initialize system_eol_type.
12963
12964 * process.c (Fset_process_coding_system): Inherit system's eol
12965 format if necessary.
12966
129672008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12968
12969 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
12970
129712008-02-01 Kenichi Handa <handa@m17n.org>
12972
12973 * coding.c (decode_eol): Pay attention to buffer relocation in
12974 del_range_2.
12975 (decode_coding): Call decode_eol before restoring undo_list.
12976
129772008-02-01 Kenichi Handa <handa@m17n.org>
12978
12979 * charset.c (Fdefine_charset_internal): Fix setting of
12980 emacs_mule_bytes.
12981
129822008-02-01 Kenichi Handa <handa@m17n.org>
12983
12984 * keyboard.c (read_char): Check if C is a character or not before
12985 looking up Vkeyboard_translate_table.
12986
129872008-02-01 Kenichi Handa <handa@m17n.org>
12988
12989 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
12990 condition to terminate the loop.
12991
129922008-02-01 Kenichi Handa <handa@m17n.org>
12993
12994 * coding.c (produce_composition): Compare charbuf[i] instead of
12995 args[i] against 0.
12996 (Fterminal_coding_system): Use EQ to compare Lisp objects.
12997
129982008-02-01 Kenichi Handa <handa@m17n.org>
12999
13000 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
13001 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
13002 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
13003 detect_coding.
13004 (emacs_mule_char): Handle old style (Emacs 20) component character
13005 of a composition.
13006 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
13007 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
13008 composition rule.
13009 (decode_coding_emacs_mule): Handle invalid bytes correctly.
13010
130112008-02-01 Kenichi Handa <handa@m17n.org>
13012
13013 * coding.c (encode_coding_ccl): Allocate destination dynamically
13014 when necessary.
13015
130162008-02-01 Kenichi Handa <handa@m17n.org>
13017
13018 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
13019 the loop. When quitted, show a proper error message.
13020
130212008-02-01 Kenichi Handa <handa@m17n.org>
13022
13023 * xterm.c (x_set_glyph_string_clipping_exactly): Set
13024 src->clip_head and src->clip_tail temporarily instead of src->hl.
13025
13026 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
13027 character sequence.
13028 (Fccl_execute_on_string): Use ASET, not XSET.
13029
130302008-02-01 Kenichi Handa <handa@m17n.org>
13031
13032 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
13033
130342008-02-01 Kenichi Handa <handa@m17n.org>
13035
13036 * coding.c (decode_coding): Fix the condition of terminating the
13037 decoding loop.
13038
130392008-02-01 Kenichi Handa <handa@m17n.org>
13040
13041 * data.c (Faset): On setting a character bigger than 255 in a
13042 unibyte string, signal an error instead of make the string multibyte.
13043
130442008-02-01 Kenichi Handa <handa@m17n.org>
13045
13046 * charset.c (map_charset_chars): Fix for ascii-compatible charset
13047 made by a mapping table.
13048
130492008-02-01 Kenichi Handa <handa@m17n.org>
13050
13051 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
13052 not.
13053 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
13054 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
13055
13056 * xterm.c (x_draw_composite_glyph_string_foreground): Check
13057 s->face is NULL or not.
13058
130592008-02-01 Kenichi Handa <handa@m17n.org>
13060
13061 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
13062 (x_draw_glyph_string): Fix drawing of right_overhang and
13063 left_overhang around/on cursor.
13064
13065 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
13066
130672008-02-01 Kenichi Handa <handa@m17n.org>
13068
13069 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
13070
130712008-02-01 Kenichi Handa <handa@m17n.org>
13072
13073 * coding.c (Fdefine_coding_system_internal)
13074 (Fdefine_coding_system_alias): Avoid a duplicated element in
13075 Vcoding_system_alist.
13076
130772008-02-01 Kenichi Handa <handa@m17n.org>
13078
13079 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
13080
13081 * coding.c (Qcoding_system_define_form): New variable.
13082 (syms_of_coding): Intern and staticpro it.
13083 (Fcoding_system_p): Check Qcoding_system_define_form.
13084 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
13085
13086 * coding.h (CODING_SYSTEM_P): If ID is not available, call
13087 Fcoding_system_p.
13088 (CHECK_CODING_SYSTEM): If ID is not available, call
13089 Fcheck_coding_system.
13090 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
13091 Try also Fcheck_coding_system.
13092
130932008-02-01 Kenichi Handa <handa@m17n.org>
13094
13095 * coding.c (code_conversion_restore): GCPRO arg.
13096
130972008-02-01 Kenichi Handa <handa@m17n.org>
13098
13099 * character.c (lisp_string_width): Check multibyteness of STRING.
13100
131012008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13102
13103 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
13104 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
13105 (decode_mac_font_name): Use decode_coding_c_string instead of
13106 decode_coding.
13107 (x_load_font): Initialize fontp->fontset to -1. Set
13108 fontp->encoding_type.
13109
131102008-02-01 Kenichi Handa <handa@m17n.org>
13111
13112 * search.c (search_buffer): Give up BM search on case-fold-search
13113 if one of a target character has a case-equivalence of different
13114 byte length even if that target charcter is an ASCII.
13115 (simple_search): Fix calculation of byte length of matched text.
13116 (boyer_moore): Fix handling of case-equivalent multibyte characters.
13117
131182008-02-01 Kenichi Handa <handa@m17n.org>
13119
13120 * coding.c (decode_coding): Fix handling of invalid bytes.
13121
131222008-02-01 Kenichi Handa <handa@m17n.org>
13123
13124 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
13125 Unicode characters.
13126
131272008-02-01 Kenichi Handa <handa@m17n.org>
13128
13129 * coding.c (encode_coding_object): If a pre-write-conversion
13130 function makes a new buffer, kill it.
13131
131322008-02-01 Kenichi Handa <handa@m17n.org>
13133
13134 * coding.c (QCascii_compatible_p): New variable.
13135 (syms_of_coding): Initialize it.
13136 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
13137 calling string_char.
13138 (record_conversion_result): Add `default:' case.
13139 (coding_charset_list): Delete unused variable `coding_type'.
13140 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
13141 property in the plist of the coding system.
13142 (Fcoding_system_put): Check QCascii_compatible_p.
13143
131442008-02-01 Miles Bader <miles@gnu.org>
13145
13146 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
13147 removed calculation of frame `f', as it's now used.
13148
131492008-02-01 Kenichi Handa <handa@m17n.org>
13150
13151 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
13152 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
13153 (UNIDATA): New variable.
13154 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
13155 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
13156 $(RUN_TEMACS) unconditionally.
13157
131582008-02-01 Kenichi Handa <handa@m17n.org>
13159
13160 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
13161 (admindir): New variable.
13162 ($(lispsource)international/charprop.el): New target.
13163
131642008-02-01 Miles Bader <miles@gnu.org>
13165
13166 * character.c (chars-in-region): Remove obsolete function.
13167 (syms_of_character): Remove its initialization.
13168
131692008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
13170
13171 * w32select.c (validate_coding_system)
13172 (setup_windows_coding_system): New functions.
13173 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
13174 setup_windows_coding_system.
13175 (setup_config, Fw32_get_clipboard_data): Use
13176 validate_coding_system.
13177 (Fx_selection_exists): Move call to setup_config to a place
13178 where signals are allowed.
13179
13180 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
13181 (Fcheck_coding_system): Add declarations.
13182
131832008-02-01 Kenichi Handa <handa@m17n.org>
13184
13185 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
13186
131872008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13188
13189 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
13190 string as the second argument for x_new_fontset.
13191
131922008-02-01 Kenichi Handa <handa@m17n.org>
13193
13194 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
13195 (encode_coding_object): Use safe_call instead of call2.
13196
131972008-02-01 Kenichi Handa <handa@m17n.org>
13198
13199 * fontset.c (Fset_fontset_font): Check family element of a given vector.
13200
13201 * Makefile.in (lisp): Include charprop.el.
13202
132032008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13204
13205 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
13206 Not sure if it's unnecessary.
13207
132082008-02-01 Steven Tamm <steventamm@mac.com>
13209
13210 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
13211 some possibly unnecessary fontset checking code that crashed
13212 when creating a new frame.
13213
132142008-02-01 Kenichi Handa <handa@m17n.org>
13215
13216 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
13217 lookup_face.
13218
13219 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
13220
13221 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
13222
132232008-02-01 Kenichi Handa <handa@m17n.org>
13224
13225 * coding.c: Cancel the change done in HEAD on 2008-02-01.
13226 (coding_charset_list): New function.
13227
13228 * coding.h (coding_charset_list): Extern it.
13229
132302008-02-01 Kenichi Handa <handa@m17n.org>
13231
13232 * fontset.c (Fset_fontset_font): Call find_font_encoding with
13233 concatenation of family and registry.
13234
132352008-02-01 Kenichi Handa <handa@m17n.org>
13236
13237 * character.h (BYTE8_STRING): Fix typo.
13238
13239 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
13240 string to multibyte (sync to HEAD).
13241
13242 * casefiddle.c (casify_region): Handle changes in byte-length
13243 using replace_range_2 (sync to HEAD).
13244
132452008-02-01 Andreas Schwab <schwab@suse.de>
13246
13247 * chartab.c (map_char_table): GCPRO table and arg.
13248
132492008-02-01 Kenichi Handa <handa@m17n.org>
13250
13251 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
13252 already at limit.
13253
132542008-02-01 Kenichi Handa <handa@m17n.org>
13255
13256 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
13257 instead of fast_c_string_match_ignore_case.
13258 (find_font_encoding): Change argument to Lisp_Object. Use
13259 fast_string_match_ignore_case instead of
13260 fast_c_string_match_ignore_case. Change caller.
13261
132622008-02-01 Kenichi Handa <handa@m17n.org>
13263
13264 * xdisp.c (get_next_display_element): In unibyte case, decide to
13265 display in octal form by checking a character by
13266 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
13267
13268 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
13269
13270 * character.c (unibyte_has_multibyte_table): New variable.
13271
13272 * character.h (unibyte_has_multibyte_table): Extern it.
13273 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
13274
132752008-02-01 Kenichi Handa <handa@m17n.org>
13276
13277 * coding.c (encode_coding_iso_2022): Fix handling of charset
13278 annotation.
13279
132802008-02-01 Kenichi Handa <handa@m17n.org>
13281
13282 * coding.c (setup_coding_system): If coding_system is nil, use
13283 Qundecided.
13284 (Fterminal_coding_system): Return nil if terminal coding system is
13285 `undecided'.
13286 (syms_of_coding): Define coding-system `undecided' here. Setup
13287 terminal_coding as `undecided'.
13288
132892008-02-01 Kenichi Handa <handa@m17n.org>
13290
13291 * xdisp.c (message_dolog, set_message_1): Call
13292 unibyte_char_to_multibyte with arg type int.
13293
13294 * lread.c (read1): Fix reading of a char-table.
13295
13296 * print.c (print_object): Include sub char-table in circularities
13297 detection.
13298
132992008-02-01 Kenichi Handa <handa@m17n.org>
13300
13301 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
13302 Append the found sequences in car of ARGS instead of prepending.
13303
133042008-02-01 Kenichi Handa <handa@m17n.org>
13305
13306 * fileio.c (report_file_error): Make a unibyte string from
13307 strerror (errorno).
13308 (Fsubstitute_in_file_name): Fix the arg to
13309 unibyte_char_to_multibyte. It is evaluated twice.
13310
133112008-02-01 Kenichi Handa <handa@m17n.org>
13312
13313 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
13314
133152008-02-01 Kenichi Handa <handa@m17n.org>
13316
13317 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
13318 BOM is not found.
13319 (detect_coding, detect_coding_system): Optimization for ISO-2022
13320 when no 8-bit data is found.
13321
133222008-02-01 Jason Rumney <jasonr@gnu.org>
13323
13324 * w32fns.c (x_to_w32_font): Update to use new coding struct.
13325
133262008-02-01 Kenichi Handa <handa@m17n.org>
13327
13328 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
13329 CHARS.
13330
133312008-02-01 Steven Tamm <steventamm@mac.com>
13332
13333 * macterm.c (mac_encode_char): Add charset argument and update
13334 to use encoding_type.
13335 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
13336 switch to pure fontset.
13337 (decode_mac_font_name): Temporarily remove decoding.
13338 (x_font_name_to_mac_font_name): Temporarily remove encoding.
13339 (x_load_font): Temporarily remove encoding.
13340
133412008-02-01 Kenichi Handa <handa@m17n.org>
13342
13343 * xfaces.c (Fface_font): If frame is not on a window system,
13344 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
13345 refer to face->font.
13346 (split_font_name_into_vector, build_font_name_from_vector)
13347 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
13348 when HAVE_WINDOW_SYSTEM is defined.
13349
133502008-02-01 Kenichi Handa <handa@m17n.org>
13351
13352 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
13353 (x_produce_glyphs): Fix setting of members of cmp in case
13354 cmp->glyph_len is zero.
13355
13356 * fontset.c (Fset_fontset_font): Fix docstring.
13357 (Ffontset_info): Make it backward compatible. New arg ALL.
13358
133592008-02-01 Kim F. Storm <storm@cua.dk>
13360
13361 * process.c (read_process_output): Grow decoding_buf when needed;
13362 this could cause a crash in allocate_string and compact_small_strings.
13363
133642008-02-01 Kenichi Handa <handa@m17n.org>
13365
13366 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
13367
133682008-02-01 Kenichi Handa <handa@m17n.org>
13369
13370 * coding.c (setup_coding_system): Set coding->common_flags
13371 correctly for raw-text.
13372 (consume_chars): On encoding unibyte text by raw-text, don't check
13373 multibyte form.
13374 (encode_coding): On encoding by raw-text, never use translation tables.
13375
13376 * fileio.c (e_write): Short cut for the case of no encoding.
13377
133782008-02-01 Kenichi Handa <handa@m17n.org>
13379
13380 * coding.c (detect_coding, detect_coding_system): Delete unused
13381 variables.
13382
133832008-02-01 Kenichi Handa <handa@m17n.org>
13384
13385 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
13386 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
13387
133882008-02-01 Kenichi Handa <handa@m17n.org>
13389
13390 * coding.c (Ffind_coding_systems_region_internal): Include
13391 raw-text and no-conversion in the result.
13392
133932008-02-01 Kenichi Handa <handa@m17n.org>
13394
13395 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
13396 (load_font_get_repertory): Delete unnecessary check of ENCODING of
13397 FONT_DEF.
13398 (font_def_arg, add_arg, from_arg, to_arg): New args.
13399 (set_fontset_font): Change argument.
13400 (Fset_fontset_font): Fix for the case that TARGET is a script
13401 name and charset name.
13402 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
13403
134042008-02-01 Kenichi Handa <handa@m17n.org>
13405
13406 * fontset.c (fontset_font): Rename from fontset_face. Change return
13407 value.
13408 (face_suitable_for_char_p, face_for_char): Adjust for the change
13409 of fontset_font.
13410 (make_fontset_for_ascii_face): Fix setting of the fontset element
13411 for ASCII.
13412 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
13413 to get a font name.
13414 (Ffontset_info): Adjust for the change of fontset_font.
13415
13416 * coding.c (emacs_mule_char): Check invalid code more rigidly.
13417
13418 * character.h (LEADING_CODE_LATIN_1_MIN)
13419 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
13420
134212008-02-01 Kenichi Handa <handa@m17n.org>
13422
13423 * editfns.c (check_translation): New function.
13424 (Ftranslate_region_internal): Handle M:N mapping.
13425
134262008-02-01 Kenichi Handa <handa@m17n.org>
13427
13428 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
13429
134302008-02-01 Kenichi Handa <handa@m17n.org>
13431
13432 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
13433 goto invalid_code.
13434 (decode_coding_iso_2022): Fix handling of invalid designation.
13435
13436 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
13437 after calling code_conversion_save.
13438
134392008-02-01 Kenichi Handa <handa@m17n.org>
13440
13441 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
13442
13443 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
13444
13445 * fontset.c: Include "intervals.h".
13446 (fontset_face): Fix comparing of Lisp_Objects.
13447 (free_face_fontset, new_fontset_from_font_name): Fix
13448 Lisp_Object/int mixup.
13449
13450 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
13451
13452 * coding.c: Add many prototypes for static functions.
13453 (get_translation_table): Allow max_lookup to be NULL.
13454 (decode_coding, Ffind_coding_systems_region_internal)
13455 (Funencodable_char_position, Fcheck_coding_systems_region): Call
13456 get_translation_table with max_lookup NULL.
13457
134582008-02-01 Kenichi Handa <handa@m17n.org>
13459
13460 * coding.c (get_translation_table): Declare it as Lisp_Object.
13461 (LOOKUP_TRANSLATION_TABLE): New macro.
13462 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
13463 instead of CHAR_TABLE_REF.
13464
134652008-02-01 Kenichi Handa <handa@m17n.org>
13466
13467 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
13468 annotation data format.
13469 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
13470 Change arguments FROM and TO to single argument NCHARS. Change caller.
13471 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
13472 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13473 (decode_coding_ccl, decode_coding_charset): Pay attention to
13474 coding->charbuf_used.
13475 (get_translation): New function.
13476 (produce_chars): New arguments translation_table and last_block.
13477 Translate characters here. Return number of carryover chars.
13478 Change caller.
13479 (produce_composition): New argument pos. Change caller.
13480 Adjust for the change of annotation data format.
13481 (produce_charset, produce_annotation): Likewise.
13482 (decode_coding, encode_coding): Don't call translate_chars.
13483 (consume_chars): New arg translation_table. Change caller.
13484 (translate_chars): Delete.
13485 (syms_of_coding): Make translation-table's number of extra slots 2.
13486
134872008-02-01 Kenichi Handa <handa@m17n.org>
13488
13489 * search.c (simple_search): Fix setting this_pos_byte in backward
13490 search.
13491
13492 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
13493 byte sequence.
13494 (detect_coding_ccl): Fix setting of the variable valids.
13495
134962008-02-01 Kenichi Handa <handa@m17n.org>
13497
13498 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
13499
13500 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
13501
13502 * editfns.c (Ftranslate_region_internal): Rename from
13503 Ftranslate_region. Accept a char-table in TABLE.
13504 (syms_of_editfns): Defsubr Stranslate_region_internal.
13505
13506 * xfaces.c (set_lface_from_font_name): If a font is specified for
13507 a frame, generate a fontset from the font.
13508 (build_scalable_font_name): If the scalable font is requested for
13509 a specific size, don't change that size.
13510 (try_font_list): Try a scalable font also in the case that a
13511 pattern string is specified.
13512
135132008-02-01 Kenichi Handa <handa@m17n.org>
13514
13515 * xfaces.c (Fface_font): New optional arg CHARACTER.
13516
135172008-02-01 Kenichi Handa <handa@m17n.org>
13518
13519 * charset.h (CHARSET_OFFSET): New macro.
13520
135212008-02-01 Kenichi Handa <handa@m17n.org>
13522
13523 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
13524
13525 * fontset.c (fontset_face): Handle the case that repertory is a
13526 char-table.
13527 (find_font_encoding): Return nil for unknown encoding.
13528 (Fset_fontset_font): Ignore a font of unknown encoding.
13529
135302008-02-01 Kenichi Handa <handa@m17n.org>
13531
13532 * keymap.c (describe_vector): Handle default value of a char table.
13533
13534 * fontset.c (fontset_face): Handle fallback fonts correctly.
13535 (Ffontset_info): Return infomation about fallback fonts.
13536
135372008-02-01 Kenichi Handa <handa@m17n.org>
13538
13539 * fontset.c (FONTSET_DEFAULT): New macro.
13540 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
13541 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
13542 the case that it is nil.
13543 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
13544 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
13545
13546 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
13547 subset or superset.
13548
135492008-02-01 Kenichi Handa <handa@m17n.org>
13550
13551 * emacs.c (main): Call init_charset after syms_of_XXX.
13552
13553 * charset.c (Vcharset_map_directory): Delete.
13554 (Vcharset_map_path): New variable.
13555 (load_charset_map_from_file): Use Vcharset_map_path instead.
13556 (init_charset): Initialize Vcharset_map_path.
13557 (syms_of_charset): Delete declaration of "charset-map-directory",
13558 add declaration of "charset-map-path".
13559
135602008-02-01 Kenichi Handa <handa@m17n.org>
13561
13562 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
13563 ASCII only string.
13564
13565 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
13566
13567 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
13568 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
13569
135702008-02-01 Kenichi Handa <handa@m17n.org>
13571
13572 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
13573
13574 * coding.c (QCmnemonic, QCdefalut_char)
13575 (QCdecode_translation_table, QCencode_translation_table)
13576 (QCpost_read_conversion, QCpre_write_conversion): New variables.
13577 (get_translation_table): Return a list of translation tables if
13578 necessary.
13579 (decode_coding): Call get_translation_table with ENCODEP 0.
13580 (char_encodable_p): If translation_table is non-nil, always call
13581 translate_char.
13582 (Fdefine_coding_system_internal): Accept list of translation
13583 tables as :encode-translation-table and :decode-translation-table.
13584 (Fcoding_system_put): New function.
13585 (syms_of_coding): Declare new symbols. Defsubr
13586 Scoding_system_put.
13587 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
13588 typically JISX0212.
13589
13590 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
13591 when the charset is superset type.
13592
13593 * character.c (translate_char): Accept list of translation tables.
13594
135952008-02-01 Kenichi Handa <handa@m17n.org>
13596
13597 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
13598 (CODING_ATTR_TRANS_TBL): New macro.
13599
13600 * coding.c (get_translation_table): New function.
13601 (translate_chars): Fix the bug of skipping annotation data.
13602 (decode_coding, encode_coding): Utilize get_translation_table.
13603 (char_encodable_p, Funencodable_char_position): Translate char if
13604 necessary.
13605 (Ffind_coding_systems_region_internal)
13606 (Fcheck_coding_systems_region): Setup translation table for encode
13607 in a coding system attribute vector in advance.
13608 (Fdefine_coding_system_internal): Allow a symbol as translation
13609 table. For shift-jis type coding system, allow 4th charset.
13610
136112008-02-01 Kenichi Handa <handa@m17n.org>
13612
13613 * coding.c (decode_coding_sjis): Check the first byte rigidly.
13614
13615 * xdisp.c (get_next_display_element): Pass -1 as POS to
13616 FACE_FOR_CHAR if displaying a C-string.
13617
136182008-02-01 Kenichi Handa <handa@m17n.org>
13619
13620 * composite.c (get_composition_id): Handle xoff and yoff in a
13621 composition rule.
13622
13623 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
13624 (struct composition): New member lbearing and rbearing.
13625
13626 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
13627 (x_get_glyph_overhangs): Handle a composition glyph.
13628 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
13629
13630 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
13631 composition glyph.
13632
136332008-02-01 Kenichi Handa <handa@m17n.org>
13634
13635 * print.c: Include charset.h.
13636 (Vprint_charset_text_property): New variable.
13637 (Qdefault): Extern it.
13638 (PRINT_STRING_NON_CHARSET_FOUND)
13639 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
13640 (print_check_string_result): New variable.
13641 (print_check_string_charset_prop): New function.
13642 (print_prune_charset_plist): New variable.
13643 (print_prune_string_charset): New function.
13644 (print_object): Call print_prune_string_charset if
13645 Vprint_charset_text_property is not t.
13646 (print_interval): Print nothing if interval->plist is nil.
13647 (syms_of_print): Declare Vprint_charset_text_property as a lisp
13648 variable. Init and staticpro print_prune_charset_plist.
13649
136502008-02-01 Kenichi Handa <handa@m17n.org>
13651
13652 * fontset.c (new_fontset_from_font_name): Use the specified font
13653 for all characters in the new fontset.
13654
13655 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
13656 OBJECT args.
13657
13658 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
13659 OBJECT args for composition too.
13660
13661 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
13662 OBJECT args.
13663
136642008-02-01 Kenichi Handa <handa@m17n.org>
13665
13666 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
13667
13668 * fontset.c (reorder_font_vector): Adjust for the change of
13669 FONT_DEF format.
13670 (fontset_face): New arg id. Change caller.
13671 (face_for_char): New args pos and object.
13672 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
13673 (fs_query_fontset): Check NAME by Fassoc too.
13674 (Fset_fontset_font): Allow non-XLFD font name.
13675 (Ffontset_info): Adjust for the change of FONT_DEF format.
13676
13677 * fontset.h (face_for_char): Adjust prototype.
13678
13679 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
13680 (append_space, extend_face_to_end_of_line)
13681 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
13682 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
13683
13684 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
13685 POS and OBJECT args.
13686
13687 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
13688 POS and OBJECT args.
13689
136902008-02-01 Jason Rumney <jasonr@gnu.org>
13691
13692 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
13693 of GlobalAlloc'ed memory.
13694
136952008-02-01 Kenichi Handa <handa@m17n.org>
13696
13697 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
13698
13699 * charset.h (charset_table_used): Delete extern.
13700
13701 * charset.c (charset_table_used): Make it static.
13702 (map_charset_chars): Fix args to c_function with.
13703
13704 * chartab.c (map_sub_char_table_for_charset): Fix args to
13705 c_function with.
13706
13707 * coding.h (enum coding_result_code): Delete
13708 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
13709
13710 * coding.c (Qinsufficient_source, Qinconsistent_eol)
13711 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
13712 (Vlast_code_conversion_error): New variables.
13713 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
13714 (ONE_MORE_BYTE): Record error if any instead of signaling an
13715 error. If non-ASCII multibyte char is found, return the negative
13716 value of the code. All callers changed to check it.
13717 (ONE_MORE_BYTE_NO_CHECK): Likewise.
13718 (record_conversion_result): New function. Change all codes setting
13719 coding->result to call this function.
13720 (detect_coding_utf_8, decode_coding_utf_8)
13721 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
13722 Don't use the local variable incomplete.
13723 (emacs_mule_char): Change the second arg to `const'.
13724 (decode_coding): Fix of flushing out unprocessed data.
13725 (make_conversion_work_buffer): Fix making of a work buffer.
13726 (decode_coding_object): Return coding->dst_object.
13727
13728 * fontset.c (set_fontset_font): Fix args.
13729
13730 * lisp.h (CHARACTERBITS): Define as 22.
13731
13732 * process.c (send_process): Be sure to set coding->src_multibyte.
13733
13734 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
13735
137362008-02-01 Kenichi Handa <handa@m17n.org>
13737
13738 * xdisp.c (handle_auto_composed_prop): Give limit to
13739 Fnext_single_char_property_change.
13740
137412008-02-01 Kenichi Handa <handa@m17n.org>
13742
13743 * composite.c (syms_of_composite): Don't make the composition hash
13744 table weak.
13745
13746 * fontset.c (Fset_fontset_font): Fix docstring.
13747
13748 * lisp.h (detect_coding_system): Adjust prototype.
13749
13750 * fileio.c (kill_workbuf_unwind): Delete this function.
13751 (Finsert_file_contents): Adjust the call of detect_coding_system.
13752 Get conversion_buffer by code_conversion_save. Use the macro
13753 CODING_MAY_REQUIRE_DECODING. After decoding, update
13754 coding_system.
13755
13756 * coding.h (make_conversion_work_buffer): Delete extern.
13757 (code_conversion_save): Extern it.
13758
13759 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
13760 (CODING_GET_INFO): Delete argument eol_type. Change callers.
13761 (decode_coding_utf_8): Don't do eol converion.
13762 (detect_coding_utf_16): Check coding->src_chars, not
13763 coding->src_bytes. Add heuristics for those that have no signature.
13764 (decode_coding_emacs_mule, decode_coding_iso_2022)
13765 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
13766 Don't do eol converion.
13767 (adjust_coding_eol_type): Return a new coding system.
13768 (detect_coding): Don't detect eol. Fix for utf-16 detection.
13769 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
13770 each change.
13771 (decode_coding): Pay attention to undo_list. Do eol conversion for
13772 all types of coding-systems (if necessary).
13773 (Vcode_conversion_work_buf_list): Delete it.
13774 (Vcode_conversion_reused_workbuf): Rename from
13775 Vcode_conversion_reused_work_buf.
13776 (Vcode_conversion_workbuf_name): New variable.
13777 (reused_workbuf_in_use): New variable.
13778 (make_conversion_work_buffer): Delete the arg DEPTH.
13779 (code_conversion_restore): Change argument to cons.
13780 (code_conversion_save): Delete the argument BUFFER. Change callers.
13781 (detect_coding_system): New argument src_chars. Change callers.
13782 Fix for utf-16 detection.
13783 (init_coding_once): Don't use ISO_carriage_return.
13784 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
13785 reused_workbuf_in_use.
13786
137872008-02-01 Kenichi Handa <handa@m17n.org>
13788
13789 * keymap.c (store_in_keymap): Pay attention to the case that idx
13790 is a cons specifying a character range.
13791
137922008-02-01 Kenichi Handa <handa@m17n.org>
13793
13794 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
13795 HANDLED_RECOMPUTE_PROPS.
13796
13797 * coding.c (Fdefine_coding_system_internal): Fix checking of
13798 ascii compatibility.
13799
138002008-02-01 Kenichi Handa <handa@m17n.org>
13801
13802 * charset.c (find_charsets_in_text): Delete unused locale variable.
13803 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
13804
13805 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
13806 Resync charset_list to Vemacs_mule_charset_list.
13807
13808 * keymap.c (store_in_keymap): Pay attention to the case that idx
13809 is a cons specifying a character range.
13810
138112008-02-01 Kenichi Handa <handa@m17n.org>
13812
13813 * composite.c (update_compositions): Bind inhibit-read-only, etc
13814 to t before calling remove-list-of-text-properties.
13815
13816 * print.c (print_object): Always print ASCII chars as is.
13817
138182008-02-01 Kenichi Handa <handa@m17n.org>
13819
13820 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
13821
13822 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
13823 is a char table.
13824
138252008-02-01 Kenichi Handa <handa@m17n.org>
13826
13827 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
13828
138292008-02-01 Kenichi Handa <handa@m17n.org>
13830
13831 * xfaces.c (set_lface_from_font_name): Fix for the case that
13832 FONTNAME is not fontset name.
13833
138342008-02-01 Kenichi Handa <handa@m17n.org>
13835
13836 * fns.c (base64_encode_1): Fix previous change.
13837
138382008-02-01 Kenichi Handa <handa@m17n.org>
13839
13840 * fontset.c (set_fontset_font): New function.
13841 (Fset_fontset_font): If a font is specified for a charset, use
13842 map_charset_chars to store the font spec in a fontset.
13843
138442008-02-01 Kenichi Handa <handa@m17n.org>
13845
13846 * fontset.c (fontset_face): Create a fallback fontset on demand.
13847 (make_fontset): Don't create a fallback fontset here.
13848 (free_face_fontset): Free a fallback fontset (if any) too.
13849 (n_auto_fontsets): Delete this variable.
13850 (auto_fontset_alist): New variable.
13851 (new_fontset_from_font_name): Check auto_fontset_alist.
13852 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
13853 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
13854 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
13855 Defsubr Sfontset_list_all.
13856
138572008-02-01 Kenichi Handa <handa@m17n.org>
13858
13859 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
13860
138612008-02-01 Kenichi Handa <handa@m17n.org>
13862
13863 * fontset.c (Fnew_fontset): Check NAME more rigidly.
13864
138652008-02-01 Kenichi Handa <handa@m17n.org>
13866
13867 * editfns.c (Fgoto_char): Fix docstring.
13868
138692008-02-01 Kenichi Handa <handa@m17n.org>
13870
13871 * insdel.c (insert_from_gap): Adjust intervals correctly.
13872
138732008-02-01 Jason Rumney <jasonr@gnu.org>
13874
13875 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
13876 (pfnGetFontUnicodeRanges): New dynamically loaded function.
13877 (w32_initialize): Try to load it.
13878 (x_get_font_repertory): Use it if available.
13879 (w32_encode_char): Add shortcut for unicode output.
13880
13881 * w32fns.c (w32_load_system_font): Default charset to -1.
13882 (x_to_w32_charset): Match all fonts for unicode.
13883 (w32_to_x_charset): New parameter matching. Don't return partial
13884 or wildcard charsets.
13885 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
13886 (w32_codepage_for_font): Return CP_UNICODE for unicode.
13887 (w32_to_x_font): Match charset to real charset.
13888 (enum_font_cb2): Always list unicode versions.
13889
13890 * makefile.w32-in (temacs): Increase EMHEAP.
13891
138922008-02-01 Jason Rumney <jasonr@gnu.org>
13893
13894 * w32term.c (w32_encode_char): New charset parameter.
13895 font_info.encoding becomes encoding_type.
13896 (x_get_font_repertory): New function. Warning: stub only!
13897 (x_new_font): Return quickly if font already set.
13898 (x_new_fontset): fontsetname parameter is Lisp_Object.
13899 Use new fs_query_fontset. Try new_fontset_from_font_name.
13900 Use fontset_name for return value.
13901
13902 * w32term.h: Declare x_get_font_repertory.
13903
13904 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
13905 place of find_charset_in_text. Use encode_coding_object in place
13906 of encode_coding.
13907 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
13908 decode_coding.
13909
13910 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
13911 of x_new_fontset.
13912 (w32_load_system_font): Initialize charset as unicode.
13913 font_info.encoding becomes encoding_type.
13914 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
13915 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
13916 (syms_of_w32fns): Set get_font_repertory_func.
13917
13918 * w32console.c: Include character.h. Use terminal_encode_buffer
13919 from term.c.
13920 (write_glyphs): Use new version of encode_terminal_code. Use
13921 encode_coding_object in place of encode_coding.
13922
13923 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
13924 encoding becomes encoding_type.
13925
13926 * term.c (terminal_encode_buffer): Make externally visible.
13927
13928 * makefile.w32-in: Add character.h dependancies.
13929 (character.o, chartab.o): New targets.
13930
139312008-02-01 Kenichi Handa <handa@m17n.org>
13932
13933 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
13934 CODING_ID_EOL_TYPE.
13935
139362008-02-01 Andreas Schwab <schwab@suse.de>
13937
13938 * coding.c (produce_chars): Revert last change.
13939
139402008-02-01 Kenichi Handa <handa@m17n.org>
13941
13942 * charset.h (charset_unicode): Extern it.
13943
13944 * charset.c (string_xstring_p): Check by (C >= 0x100).
13945 (find_charsets_in_text): Change format of the arc CHARSETS. New
13946 arg MULTIBYTE.
13947 (Ffind_charset_region, Ffind_charset_string): Adjust for the
13948 change of find_charsets_in_text.
13949 (Fsplit_char): Fix doc. Never return unknown.
13950
13951 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
13952
13953 * coding.c (Fdefine_coding_system_alias): Update
13954 Vcoding_system_list.
13955
13956 * fontset.c (load_font_get_repertory): Pay attention to the case
13957 that ENCODING of a font is specified by a char-table.
13958
13959 * xterm.c (x_get_font_repertory): Handle the case that the
13960 encoding of font is other than Unicode.
13961
139622008-02-01 Kenichi Handa <handa@m17n.org>
13963
13964 * term.c (encode_terminal_code): Don't handle glyph-table. Check
13965 if a character is encodable by the terminal coding system. If
13966 not, produces proper number of `?'s. Update
13967 terminal_encode_buffer and terminal_encode_buf_size if necessary.
13968 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
13969
139702008-02-01 Kenichi Handa <handa@m17n.org>
13971
13972 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
13973 variables.
13974 (encode_terminal_code): Change argument. Encode multiple
13975 characters at once. Store the result of encoding in
13976 terminal_encode_buffer.
13977 (write_glyphs, insert_glyphs): Adjust for the change of
13978 encode_terminal_code.
13979 (term_init): Initialize terminal_encode_buffer and
13980 terminal_encode_buf_size.
13981
13982 * coding.c (consume_chars): If coding->src_object is nil, don't
13983 check annotation.
13984
139852008-02-01 Kenichi Handa <handa@m17n.org>
13986
13987 * character.c (char_string): Use ASCII_CHAR_P instead of
13988 SINGLE_BYTE_CHAR_P.
13989
139902008-02-01 Kenichi Handa <handa@m17n.org>
13991
13992 * xdisp.c (handle_auto_composed_prop): Check if the last
13993 characters of auto-composed region is newly composed with the
13994 following characters.
13995 (handle_composition_prop): Fix checking of point being inside
13996 composition.
13997
139982008-02-01 Kenichi Handa <handa@m17n.org>
13999
14000 * fns.c (concat): Don't change multibyteness of the result by
14001 concatenating an 8-bit character.
14002
14003 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
14004 multibyteness of the result when newelt is an 8-bit character.
14005
140062008-02-01 Dave Love <fx@gnu.org>
14007
14008 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
14009 EMACS_INT.
14010
14011 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
14012
14013 * xfaces.c (face_numeric_value): Declare dim size_t.
14014 (Finternal_lisp_face_equal_p): Remove unused f.
14015
14016 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
14017 (MATRIX_ROW): Remove unused vars.
14018 (draw_glyphs, x_insert_glyphs, fast_find_position)
14019 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
14020 byte/char counts.
14021
14022 * regex.c (regex_compile): Remove unused var.
14023
14024 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
14025
14026 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
14027 (Faccessible_keymaps, where_is_internal): Remove unused vars.
14028
14029 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
14030
14031 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
14032
14033 * fileio.c (Fwrite_region): Remove unused var.
14034
14035 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
14036 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
14037
14038 * composite.c (Fremove_list_of_text_properties): Declare.
14039
14040 * coding.c (inhibit_pre_post_conversion): Remove (unused).
14041 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
14042 (coding_inherit_eol_type): Remove unused attrs.
14043 (detect_coding): Cast arg of detect_eol.
14044
14045 * charset.c (syms_of_charset): Remove unused var p.
14046 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
14047 byte/char counts.
14048
14049 * casetab.c (set_case_table): Remove unused var.
14050
14051 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
14052 unused vars.
14053
140542008-02-01 Dave Love <fx@gnu.org>
14055
14056 * xterm.c (x_bitmap_mask): Declare.
14057
140582008-02-01 Dave Love <fx@gnu.org>
14059
14060 * xterm.c (x_term_init): Fix type error.
14061
14062 * lisp.h: Add Funibyte_char_to_multibyte.
14063
14064 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
14065 (Fset_coding_system_priority): Doc fix.
14066
14067 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
14068
14069 * indent.c (check_composition): Make start and end EMACS_INT.
14070
14071 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
14072
14073 * xdisp.c (handle_composition_prop, check_point_in_composition):
14074 Make buffer positions EMACS_INT.
14075
14076 * composite.c (find_composition, run_composition_function)
14077 (update_compositions, Ffind_composition_internal): Make buffer
14078 positions EMACS_INT.
14079
14080 * composite.h (find_composition, update_compositions): Make
14081 position args EMACS_INT.
14082
14083 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
14084
14085 * intervals.c (get_property_and_range):
14086 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
14087
14088 * unexalpha.c: Don't include varargs.h.
14089
140902008-02-01 Dave Love <fx@gnu.org>
14091
14092 * coding.h (ENCODE_UTF_8): New.
14093
14094 * Makefile.in (gtkutil.o): Depend on coding.h.
14095
14096 * coding.c (Fset_coding_system_priority): Doc fix.
14097
140982008-02-01 Kenichi Handa <handa@m17n.org>
14099
14100 * fileio.c (Finsert_file_contents): Call setup_coding_system in
14101 the case of auto saving.
14102
141032008-02-01 Andreas Schwab <schwab@suse.de>
14104
14105 * chartab.c (map_char_table, map_char_table_for_charset): Protect
14106 `range' from GC.
14107
141082008-02-01 Kenichi Handa <handa@m17n.org>
14109
14110 * coding.c (decode_coding_sjis): Check bytes more rigidly.
14111
141122008-02-01 Kenichi Handa <handa@m17n.org>
14113
14114 * fileio.c (choose_write_coding_system): Return a decided coding system.
14115 (Fwrite_region): Set Vlast_coding_system_used to the return value
14116 of choose_write_coding_system.
14117
141182008-02-01 Kenichi Handa <handa@m17n.org>
14119
14120 * charset.c (Fset_charset_priority): Pay attention to duplicated
14121 arguments.
14122
14123 * coding.c (QCcategory): New variable.
14124 (syms_of_coding): Defsym it. Set all elements of
14125 Vcoding_category_table and their symbol values.
14126 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
14127 coding-category-XXX, and coding-category-list.
14128 (Fdefine_coding_system_internal): Add category in the plist.
14129
141302008-02-01 Kenichi Handa <handa@m17n.org>
14131
14132 * callproc.c (Fcall_process): Handle carryover correctly.
14133
14134 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
14135 (raw_text_coding_system): Check NILP (coding_system).
14136 (coding_inherit_eol_type): Check NILP (coding_system) and
14137 NILP (parent).
14138 (consume_chars): Fix for the case of raw-text.
14139
14140 * process.c (read_process_output): Handle carryover correctly.
14141
141422008-02-01 Dave Love <fx@gnu.org>
14143
14144 * regex.c (re_search_2): Fix last change.
14145
141462008-02-01 Kenichi Handa <handa@m17n.org>
14147
14148 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
14149 target_multibyte. Even in a unibyte case, return a converted
14150 multibyte char.
14151 (GET_CHAR_AFTER): New macro.
14152 (PATFETCH): Translate via multibyte char.
14153 (HANDLE_UNIBYTE_RANGE): Delete this macro.
14154 (SETUP_MULTIBYTE_RANGE): New macro.
14155 (regex_compile): Setup compiled code so that its multibyteness
14156 matches that of a target. Fix the handling of "[X-YZ]" using
14157 SETUP_MULTIBYTE_RANGE.
14158 (analyse_first) <charset>: For filling fastmap for all multibyte
14159 characters, don't check by BASE_LEADING_CODE_P.
14160 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
14161 the same as RE_MULTIBYTE_P (bufp) now.
14162 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
14163 (TARGET_CHAR_AND_LENGTH): Delete this macro.
14164 (TRANSLATE_VIA_MULTIBYTE): New macro.
14165 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
14166 It is the same as RE_MULTIBYTE_P (bufp) now.
14167 <exactn>: Translate via multibyte.
14168 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
14169 translate it.
14170 <charset, charset_not>: Fetch a character by
14171 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
14172 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
14173 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
14174 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
14175 by GET_CHAR_AFTER.
14176 (bcmp_translate): Likewise.
14177
14178 * search.c (compile_pattern): Check the member target_multibyte,
14179 not the member multibyte of buf.
14180
14181 * lread.c (read1): While reading a string, set force_singlebyte
14182 and force_multibyte correctly.
14183
14184 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
14185 up of unibyte_to_multibyte_table.
14186
141872008-02-01 Kenichi Handa <handa@m17n.org>
14188
14189 * coding.c (setup_coding_system): If coding has
14190 post-read-conversion or pre-write-conversion, set
14191 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
14192 respectively.
14193 (decode_coding_gap): Run post-read-conversion if any.
14194
14195 * fileio.c (Finsert_file_contents): Even if we read into a
14196 unibyte buffer, check if we must decode the result or not.
14197
141982008-02-01 Kenichi Handa <handa@m17n.org>
14199
14200 * coding.c (make_conversion_work_buffer): Change the work buffer
14201 name to the same one as that of Emacs 21.
14202
142032008-02-01 Kenichi Handa <handa@m17n.org>
14204
14205 * coding.h (make_conversion_work_buffer): Adjust prototype.
14206 (code_conversion_restore): Don't extern it.
14207
14208 * coding.c (detected_mask): Delete unused variable.
14209 (decode_coding_iso_2022): Pay attention to the byte sequence of
14210 CTEXT extended segment, and retain those bytes as is.
14211 (decode_coding_ccl): Delete unused variable `valids'.
14212 (setup_coding_system): Delete unused variable `category'.
14213 (consume_chars): Delete unused variable `category'. Make it work
14214 for non-multibyte case.
14215 (make_conversion_work_buffer): Change argument.
14216 (saved_coding): Delete unused variable.
14217 (code_conversion_restore): Don't check saved_coding->destination.
14218 (code_conversion_save): New function.
14219 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
14220 instead of record_unwind_protect.
14221 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
14222 (detect_coding_system): Delete unused variable `mask'.
14223 (Fdefine_coding_system_internal): Delete unused variable id.
14224
14225 * fileio.c (kill_workbuf_unwind): New function.
14226 (Finsert_file_contents): On replacing, call
14227 make_conversion_work_buffer with correct args, and call
14228 record_unwind_protect with the first arg kill_workbuf_unwind.
14229
14230 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
14231
142322008-02-01 Kenichi Handa <handa@m17n.org>
14233
14234 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
14235 (fontset_add): Fix for the case that TO is less than TO1.
14236 (Ffontset_info): Don't use fallback fontset on checking the
14237 default fontset.
14238 (dump_fontset): New function for debugging.
14239
14240 * coding.c (Fdefine_coding_system_internal): Fix for the case that
14241 coding_type is Qcharset.
14242
142432008-02-01 Kenichi Handa <handa@m17n.org>
14244
14245 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
14246 (map_char_table): Don't inherit the value from the parent on
14247 initializing VAL. Adjust for the above change.
14248
142492008-02-01 Kenichi Handa <handa@m17n.org>
14250
14251 * coding.c (Qsignature, Qendian): Delete these variables.
14252 (syms_of_coding): Don't initialize them.
14253 (CATEGORY_MASK_UTF_16_AUTO): New macro.
14254 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
14255 detect_info->found.
14256 (decode_coding_utf_16): Don't detect BOM here.
14257 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
14258 is NOT utf_16_without_bom.
14259 (setup_coding_system): For a coding system of type utf-16, check
14260 if the attribute :endian is Qbig or not (not nil or not), and set
14261 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
14262 (detect_coding): If coding type is utf-16 and BOM detection is
14263 required, detect it.
14264 (Fdefine_coding_system_internal): For a coding system of type
14265 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
14266
142672008-02-01 Kenichi Handa <handa@m17n.org>
14268
14269 * coding.c (coding_set_source): Fix for the case that the current
14270 buffer is different from coding->src_object.
14271 (decode_coding_object): Don't use the conversion work buffer if
14272 DST_OBJECT is a buffer.
14273
142742008-02-01 Dave Love <fx@gnu.org>
14275
14276 * lread.c (read_emacs_mule_char) [len==2]: Index
14277 emacs_mule_charset correctly.
14278
142792008-02-01 Dave Love <fx@gnu.org>
14280
14281 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
14282 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
14283 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
14284 treated specially.)
14285 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
14286 (detected_mask): Remove Big5 bits.
14287
142882008-02-01 Kenichi Handa <handa@m17n.org>
14289
14290 The following changes are to make the font rescaling facility
14291 compatible with Emacs 21.
14292
14293 * xfaces.c (Vface_font_rescale_alist): Rename from
14294 Vface_resizing_fonts.
14295 (struct font_name): Rename member resizing_ratio to rescale_ratio.
14296 (font_rescale_ratio): Rename from font_resizing_ratio.
14297 (split_font_name): Set font->rescale_ratio.
14298 (better_font_p): Pay attention to font->rescale_ratio.
14299 (build_scalable_font_name): Likewise. Change RESX, and RESY
14300 fields.
14301 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
14302
143032008-02-01 Kenichi Handa <handa@m17n.org>
14304
14305 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
14306 (Qutf_16_le): Remove these variables.
14307 (syms_of_coding): Don't DEFSYM them.
14308 (decode_coding_utf_16): Fix handling of BOM.
14309 (encode_coding_utf_16): Fix handling of BOM.
14310
143112008-02-01 Kenichi Handa <handa@m17n.org>
14312
14313 * fileio.c (Finsert_file_contents): On replacing, before decoding
14314 the file into the work buffer, set point of the work buffer to the end.
14315
143162008-02-01 Dave Love <fx@gnu.org>
14317
14318 * coding.c (Fcheck_coding_systems_region): Fix type errors.
14319
143202008-02-01 Dave Love <fx@gnu.org>
14321
14322 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
14323 and fix C types.
14324
143252008-02-01 Kenichi Handa <handa@m17n.org>
14326
14327 * xdisp.c (SKIP_GLYPHS): New macro.
14328 (set_cursor_from_row): Pay attention to string display properties.
14329
14330 * category.c (copy_category_entry): Fix for the case that RANGE
14331 is an integer.
14332
14333 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
14334
14335 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
14336
143372008-02-01 Kenichi Handa <handa@m17n.org>
14338
14339 * charset.c (Fcharset_id_internal): New function.
14340 (syms_of_charset): Defsubr it.
14341
14342 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
14343 with the last arg charset_list acquired from coding.
14344 (Fdefine_coding_system_internal): For ccl-based coding system, fix
14345 the attribute coding_attr_ccl_valids.
14346
14347 * coding.h (enum define_coding_ccl_arg_index): Set the first
14348 member coding_arg_ccl_decoder to coding_arg_max.
14349
14350 * ccl.h (ccl_driver): Adjust prototype.
14351
14352 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
14353 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 14354 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
14355 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
14356 last arg Qnil.
14357
143582008-02-01 Kenichi Handa <handa@m17n.org>
14359
14360 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
14361 call encode_char.
14362
14363 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
14364
143652008-02-01 Dave Love <fx@gnu.org>
14366
14367 * composite.c (syms_of_composite): Make composition_hash_table weak.
14368
143692008-02-01 Kenichi Handa <handa@m17n.org>
14370
14371 * dispextern.h (check_face_attributes, generate_ascii_font_name)
14372 (font_name_registry): Don't extern them.
14373 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
14374
14375 * fontset.h (Qfontset): Don't extern it.
14376 (new_fontset_from_font_name): Extern it.
14377
14378 * fontset.c: Give 8 extra slots to fontset objects.
14379 (Qfontset_info): New variable.
14380 (syms_of_fontset): Defsym it.
14381 (FONTSET_FALLBACK): New macro.
14382 (fontset_face): Try also the default fontset.
14383 (make_fontset): Realize a fallback fontset from the default fontset.
14384 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
14385 using split_font_name_into_vector and build_font_name_from_vector.
14386 (Fset_fontset_font): Access the elements of font_spec by enum
14387 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
14388 name by using split_font_name_into_vector.
14389 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
14390 generate a proper font name from the fontset name. Update
14391 Vfontset_alias_alist.
14392 (n_auto_fontsets): New variable.
14393 (new_fontset_from_font_name): New function.
14394 (Ffont_info): Store the information about fonts generated from the
14395 default fontset in the first extra slot of the returned char-table.
14396
14397 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
14398 (font_name_registry): Delete function.
14399 (split_font_name_into_vector): New function.
14400 (build_font_name_from_vector): New function.
14401 (font_list): The argument REGISTRY is now a list of registry names.
14402 (choose_face_font): If we are choosing an ASCII font, and ATTRS
14403 specifies an explicit font name, return the name as is. Make a
14404 list of registy names.
14405
14406 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
14407 of x_new_fontset.
14408 (Fx_create_frame): Don't call x_new_fontset here. Just use
14409 x_list_fonts to check the existence of fonts.
14410
14411 * xterm.h (x_new_fontset): Adjust prototype.
14412
14413 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
14414 string. Use new_fontset_from_font_name to create a fontset from a
14415 font name.
14416
144172008-02-01 Kenichi Handa <handa@m17n.org>
14418
14419 * syntax.c (Vfind_word_boundary_function_table): New name for
14420 Vnext_word_boundary_function_table.
14421 (find-word-boundary-function-table): New name for
14422 next-word-boundary-function-table.
14423
144242008-02-01 Dave Love <fx@gnu.org>
14425
14426 * Makefile.in: Fix some dependencies.
14427
14428 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
14429 set it to nil before returning.
14430
14431 * composite.c (update_compositions): Fix type error.
14432
14433 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
14434
144352008-02-01 Kenichi Handa <handa@m17n.org>
14436
14437 * xterm.c (x_new_font): Optimize for the case that the font is
14438 already set for the frame.
14439
144402008-02-01 Kenichi Handa <handa@m17n.org>
14441
14442 * chartab.c (char_table_ascii): Check if the char table contents
14443 is sub-char-table or not.
14444 (char_table_set, char_table_set_range): Fix argument to
14445 char_table_ascii.
14446
14447 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
14448 (detect_coding_utf_8, detect_coding_utf_16)
14449 (detect_coding_emacs_mule, detect_coding_iso_2022)
14450 (detect_coding_sjis, detect_coding_big5)
14451 (detect_coding_ccl, detect_coding_charset): Change argument MASK
14452 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
14453 sequence is valid in this coding system. Change callers.
14454 (MAX_ANNOTATION_LENGTH): New macro.
14455 (ADD_ANNOTATION_DATA): New macro.
14456 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
14457 ADD_ANNOTATION_DATA. Change the format of annotation data.
14458 (ADD_CHARSET_DATA): New macro.
14459 (emacs_mule_char): New argument ID. Change callers.
14460 (decode_coding_emacs_mule, decode_coding_iso_2022)
14461 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
14462 Produce charset annotation data in coding->charbuf.
14463 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
14464 to charset annotation data in coding->charbuf.
14465 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
14466 coding->common_flags if the coding system is iso-2022 based and
14467 uses designation.
14468 (produce_composition): Adjust for the new annotation data format.
14469 (produce_charset): New function.
14470 (produce_annotation): Handle charset annotation.
14471 (handle_composition_annotation, handle_charset_annotation): New
14472 functions.
14473 (consume_chars): Handle charset annotation. Utilize the above two
14474 functions.
14475 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
14476 buffer, get the deleted text as a string and set
14477 coding->src_object to that string.
14478 (detect_coding, detect_coding_system): Use the new struct
14479 coding_detection_info.
14480
14481 * coding.h (struct coding_detection_info): New structure.
14482 (struct coding_system): Adjust prototype of the member `detector'.
14483 (CODING_ANNOTATE_CHARSET_MASK): New macro.
14484
144852008-02-01 Kenichi Handa <handa@m17n.org>
14486
14487 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
14488
144892008-02-01 Dave Love <fx@gnu.org>
14490
14491 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
14492 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
14493 to new local and nullify apropos_accumulate before returning.
14494 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
14495
144962008-02-01 Kenichi Handa <handa@m17n.org>
14497
14498 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
14499 correctly.
e3eea1fc 14500
aac0c6e3
MR
145012008-02-01 Dave Love <fx@gnu.org>
14502
14503 * fns.c (Flanginfo): Call synchronize_system_time_locale.
14504
145052008-02-01 Kenichi Handa <handa@m17n.org>
14506
14507 The following changes are to make character composition happen
14508 automatically on displaying.
14509
14510 * Makefile.in (lisp, shortlisp): Add composite.elc.
14511
14512 * composite.h (Qauto_composed, Vauto_composition_function)
14513 (Qauto_composition_function): Extern them.
14514
14515 * composite.c (Vcomposition_function_table)
14516 (Qcomposition_function_table): Delete variables.
14517 (Qauto_composed, Vauto_composition_function)
14518 (Qauto_composition_function): New variables.
14519 (run_composition_function): Don't call
14520 compose-chars-after-function.
14521 (update_compositions): Clear `auto-composed' text property.
14522 (compose_chars_in_text): Delete this function.
14523 (syms_of_composite): Staticpro Qauto_composed and
14524 Qauto_composition_function. Declare Vauto_composition_function as
14525 a Lisp variable.
14526
14527 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
14528
14529 * xdisp.c (it_props): Add an entry for Qauto_composed.
14530 (handle_auto_composed_prop): New function.
14531
14532 * xselect.c (selection_data_to_lisp_data): Don't call
14533 compose_chars_in_text.
14534
145352008-02-01 Dave Love <fx@gnu.org>
14536
14537 * keyboard.c (read_char): Modify checking around use of
14538 Vkeyboard_translate_table.
14539
14540 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
14541 and fix C types.
14542
145432008-02-01 Kenichi Handa <handa@m17n.org>
14544
14545 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
14546 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14547 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
14548 the case that the last byte is '\r' correctly.
14549 (decode_coding): Flush out the unprocessed data correctly.
14550 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
14551
145522008-02-01 Dave Love <fx@gnu.org>
14553
14554 * xterm.c (XTread_socket): Fix changes for defined keysyms.
14555 Add XK_ISO... case.
14556 (xaw_scroll_callback): Revert last change.
14557
145582008-02-01 Kenichi Handa <handa@m17n.org>
14559
14560 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
14561
145622008-02-01 Kenichi Handa <handa@m17n.org>
14563
14564 * xfaces.c (Vface_resizing_fonts): New variable.
14565 (struct font_name): New member `resizing_ratio'.
14566 (font_resizing_ratio): New function.
14567 (split_font_name): Set font->resizing_ratio.
14568 (better_font_p): Pay attention to font->resizing_ratio.
14569 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
14570 RESX, and RESY fields.
14571 (try_alternative_families): Try scalable fonts if
14572 Vscalable_fonts_allowed is not Qt.
14573 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
14574
145752008-02-01 Dave Love <fx@gnu.org>
14576
14577 * xterm.c (xaw_scroll_callback): Cast correctly.
14578
145792008-02-01 Dave Love <fx@gnu.org>
14580
14581 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
14582 (lispy_kana_keys): Comment out.
14583 (make_lispy_event) [XK_kana_A]: Comment out.
14584
14585 * xterm.c (xaw_scroll_callback): Cast call_data.
14586 (XTread_socket): Deal with ASCII keysyms.
14587 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
14588
145892008-02-01 Dave Love <fx@gnu.org>
14590
14591 * xterm.c (Vx_keysym_table): New.
14592 (syms_of_xterm): Initialize it.
14593 (XTread_socket): Use it.
14594 From head: Eliminate incorrect optimization that tried to avoid
14595 decoding the output of X*LookupString.
14596 (x_get_font_repertory): Delete charset declaration.
14597
145982008-02-01 Kenichi Handa <handa@m17n.org>
14599
14600 * coding.c (detect_coding_charset): If only ASCII bytes are found,
14601 return 0.
14602 (Fdefine_coding_system_internal): Setup
14603 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
14604
146052008-02-01 Dave Love <fx@gnu.org>
14606
14607 * coding.c (Fcheck_coding_system): Doc fix.
14608
14609 * editfns.c (Finsert_byte): Return a proper value.
14610
146112008-02-01 Kenichi Handa <handa@m17n.org>
14612
14613 * coding.c (decode_coding): Fix args to translate_chars. Pay
14614 attention to Vstandard_translation_table_for_decode.
14615 (encode_coding): Fix args to translate_chars. Pay attention to
14616 Vstandard_translation_table_for_encode.
14617
14618 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
14619 SINGLE_BYTE_CHAR_P.
14620
14621 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
14622 not by SINGLE_BYTE_CHAR_P.
14623
14624 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
14625 SINGLE_BYTE_CHAR_P.
14626
14627 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
14628 SINGLE_BYTE_CHAR_P.
14629
14630 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
14631 by SINGLE_BYTE_CHAR_P.
14632
14633 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
14634 SINGLE_BYTE_CHAR_P.
14635
146362008-02-01 Dave Love <fx@gnu.org>
14637
14638 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
14639
146402008-02-01 Dave Love <fx@gnu.org>
14641
14642 * fns.c (Flanginfo): Fix typo.
14643
14644 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
14645
146462008-02-01 Kenichi Handa <handa@m17n.org>
14647
14648 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
14649 (detect_coding_emacs_mule, detect_coding_iso_2022)
14650 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
14651 incomplete byte sequence. Don't update *mask when correctly detected.
14652 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
14653 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
14654 (detect_coding, detect_coding_system): Adjust for the changes above.
14655
146562008-02-01 Kenichi Handa <handa@m17n.org>
14657
14658 * character.c (char_string): Rename from
14659 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
14660 (string_char): Rename from string_char.
14661
14662 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
14663 if C is greater than MAX_3_BYTE_CHAR.
14664 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
14665 string_char instead of string_char_with_unification.
14666
146672008-02-01 Dave Love <fx@gnu.org>
14668
14669 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
14670
146712008-02-01 Kenichi Handa <handa@m17n.org>
14672
14673 * keymap.c (push_key_description): Pay attention to force_multibyte.
14674
14675 * regex.c (re_search_2): Fix for the case of unibyte buffer.
14676
146772008-02-01 Dave Love <fx@gnu.org>
14678
14679 * charset.c (define_charset_internal): Rename `supprementary'.
14680
14681 * Makefile.in (lisp, shortlisp): Remove latin-N.
14682
146832008-02-01 Dave Love <fx@gnu.org>
14684
14685 * xfns.c (x_window, x_window): Use use_xim.
14686
14687 * xterm.c (use_xim): Initialize.
14688 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
14689 (x_term_init): Maybe set use_xim.
14690
14691 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
14692
146932008-02-01 Kenichi Handa <handa@m17n.org>
14694
14695 * search.c (search_buffer): Fix case-fold-search of multibyte
14696 characters.
14697 (boyer_moore): Rename the last argument to char_high_bits.
14698
146992008-02-01 Kenichi Handa <handa@m17n.org>
14700
14701 * xdisp.c (display_string): Fix for the case of zero width glyph.
14702
14703 * xfns.c (x_set_font): Change the error message of the case that
14704 x_new_fontset returns Qt.
14705
14706 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
14707 (Finternal_set_lisp_face_attribute): Use signal_error for the
14708 error of invalid fontset.
14709
14710 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
14711 fontset, return Qt.
14712
147132008-02-01 Dave Love <fx@gnu.org>
14714
14715 * unexelf.c (unexec): Make .got handling not SGI-specific.
14716
14717 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
14718
14719 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
14720
14721 * keyboard.c (read_key_sequence): Fix type error.
14722
14723 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
14724 type error.
14725
14726 * fontset.c (fontset_add): Return Lisp_Object.
14727
147282008-02-01 Dave Love <fx@gnu.org>
14729
14730 * charset.h (charset_ordered_list_tick): Declare extern.
14731
147322008-02-01 Kenichi Handa <handa@m17n.org>
14733
14734 The following changes (and some of 2008-02-01 changes of mine) are
14735 for handling syntax, category, and case conversion for unibyte
14736 characters by converting them to multibyte on the fly. With these
14737 changes, we don't have to setup syntax and case tables for unibyte
14738 characters in each language environment.
14739
14740 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
14741 multibyte if necessary.
14742
14743 * bytecode.c (Fbyte_code): Likewise.
14744
14745 * character.h (LEADING_CODE_LATIN_1_MIN)
14746 (LEADING_CODE_LATIN_1_MAX): New macros.
14747 (unibyte_to_multibyte_table): Extern it.
14748 (unibyte_char_to_multibyte): New macro.
14749 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
14750 (CHAR_LEADING_CODE): New macro.
14751 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
14752
14753 * character.c (unibyte_to_multibyte_table): New variable.
14754 (unibyte_char_to_multibyte): Move to character.h and define as macro.
14755 (multibyte_char_to_unibyte): If C is an eight-bit character,
14756 convert it to the corresponding byte value.
14757
14758 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
14759 not 1, signals an error. Update the elements of
14760 unibyte_to_multibyte_table.
14761 (init_charset_once): Initialize unibyte_to_multibyte_table.
14762 (syms_of_charset): Define the charset `iso-8859-1'.
14763
14764 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
14765 as is without converting it to unibyte. In a unibyte buffer,
14766 convert C to multibyte before checking the syntax.
14767
14768 * lisp.h (unibyte_char_to_multibyte): Delete extern.
14769
14770 * minibuf.c (Fminibuffer_complete_word): Use the macro
14771 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
14772
14773 * regex.h (struct re_pattern_buffer): New member target_multibyte.
14774
14775 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
14776 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
14777 that is zero, convert an eight-bit char to multibyte.
14778 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
14779 non-emacs case.
14780 (PATFETCH): Convert an eight-bit char to multibyte.
14781 (HANDLE_UNIBYTE_RANGE): New macro.
14782 (regex_compile): Setup the compiled pattern for multibyte chars
14783 even if the given regex string is unibyte. Use PATFETCH_RAW
14784 instead of PATFETCH in many places. To handle `charset'
14785 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
14786 only for ASCII chars.
14787 (analyse_first) <exactn>: Simplify because the compiled pattern
14788 is multibyte.
14789 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
14790 <charset>: Use CHAR_LEADING_CODE to get leading codes.
14791 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
14792 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
14793 multibyte always 1.
14794 (re_search_2): In emacs, set the locale variable multibyte to 1,
14795 otherwise to 0. New local variable target_multibyte. Check it
14796 to decide the multibyteness of STR1 and STR2. If
14797 target_multibyte is zero, convert unibyte chars to multibyte
14798 before translating and checking fastmap.
14799 (TARGET_CHAR_AND_LENGTH): New macro.
14800 (re_match_2_internal): In emacs, set the locale variable multibyte
14801 to 1, otherwise to 0. New local variable target_multibyte. Check
14802 it to decide the multibyteness of STR1 and STR2. Use
14803 TARGET_CHAR_AND_LENGTH to fetch a character from D.
14804 <charset, charset_not>: If multibyte is nonzero, check fastmap
14805 only for ASCII chars. Call bcmp_translate with
14806 target_multibyte, not with multibyte.
14807 <begline>: Declare the local variable C as `unsigned'.
14808 (bcmp_translate): Change the last arg name to target_multibyte.
14809
14810 * search.c (compile_pattern_1): Don't adjust the multibyteness of
14811 the regexp pattern and the matching target. Set cp->buf.multibyte
14812 to the multibyteness of the regexp pattern. Set
14813 cp->but.target_multibyte to the multibyteness of the matching target.
14814 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
14815 FETCH_STRING_CHAR_ADVANCE.
14816 (Freplace_match): Convert unibyte chars to multibyte.
14817
14818 * syntax.c (char_quoted, back_comment, scan_words)
14819 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
14820 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
14821 unibyte chars to multibyte.
14822 (skip_chars): Delete the arg syntaxp, and move the code for
14823 handling syntaxes to skip_syntaxes. Change callers.
14824 Fix the case that the multibyteness of STRING and the current
14825 buffer doesn't match.
14826 (skip_syntaxes): New function.
14827 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
14828 SINGLE_BYTE_CHAR_P.
14829
148302008-02-01 Kenichi Handa <handa@m17n.org>
14831
14832 * xfaces.c (QCfontset): New variable.
14833 (LFACE_FONTSET): New macro.
14834 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
14835 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
14836 (Finternal_set_lisp_face_attribute)
14837 (Finternal_get_lisp_face_attribute): Handle QCfontset.
14838 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
14839 check also LFACE_FONTSET_INDEX.
14840 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
14841 attrs[LFACE_FONT_INDEX].
14842 (syms_of_xfaces): Intern and staticpro QCfontset.
14843
14844 * dispextern.h (enum lface_attribute_index): New member
14845 LFACE_FONTSET_INDEX.
14846
14847 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
14848
148492008-02-01 Kenichi Handa <handa@m17n.org>
14850
14851 * coding.c (coding_set_destination): Fix coding->destination for
14852 the case converting a region.
14853 (encode_coding_utf_8): Encode eight-bit chars as single byte.
14854 (encode_coding_object): Fix coding->dst_pos and
14855 coding->dst_pos_byte for the case converting a region.
14856
14857 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
14858
14859 * character.h (BYTE8_STRING): New macro.
14860
14861 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
14862
148632008-02-01 Kenichi Handa <handa@m17n.org>
14864
14865 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
14866 characters by octal form.
14867
14868 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
14869
14870 * buffer.h (_fetch_multibyte_char_len): Delete extern.
14871 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
14872 _fetch_multibyte_char_len.
14873 (FETCH_CHAR_AS_MULTIBYTE): New macro.
14874
14875 * casetab.c (set_canon, set_identity, shuffle): Simplify.
14876
14877 * casefiddle.c (casify_object): Simplify. Handle the case that
14878 the case conversion change the byte length.
14879 (casify_region): Likewise.
14880
14881 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
14882
14883 * character.c (_fetch_multibyte_char_len): Delete this variable.
14884 (syms_of_character): Setup Vprintable_chars.
14885
14886 * editfns.c (Fchar_equal): Fix for the unibyte case.
14887 (Finsert_byte): New function.
14888 (syms_of_editfns): Defsubr it.
14889
14890 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
14891 of direct code 0x3ffff.
14892
14893 * search.c (Freplace_match): Fix for the unibyte case.
14894
148952008-02-01 Kenichi Handa <handa@m17n.org>
14896
14897 * lread.c (safe_to_load_p): Fix the logic.
14898
14899 * syntax.c (scan_words): Don't treat characters belonging to
14900 different scripts as constituting a word.
14901
14902 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
14903
14904 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
14905
14906 * emacs.c (main): In the case of --unibyte, instead of aborting on
14907 finding non-empty buffer, make it unibyte.
14908
149092008-02-01 Kenichi Handa <handa@m17n.org>
14910
14911 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
14912 to create a fontset.
14913
149142008-02-01 Dave Love <fx@gnu.org>
14915
14916 * character.c (Funibyte_char_to_multibyte): Doc fix.
14917
14918 * xfns.c [HAVE_STDLIB_H]: Fix last change.
14919
149202008-02-01 Kenichi Handa <handa@m17n.org>
14921
14922 * fontset.c (fontset_add): Make the type `int'.
14923 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
14924
14925 * character.c (unibyte_char_to_multibyte)
14926 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
14927 charset_unibyte, not charset_primary.
14928
14929 * charset.h (charset_unibyte): Extern it instead of charset_primary.
14930
14931 * charset.c (charset_unibyte): Rename from charset_primary.
14932 (Funibyte_charset): Rename from Fprimary_charset.
14933 (Fset_unibyte_charset): Rename from Fset_primary_charset.
14934 (syms_of_charset): Adjust for the above changes.
14935
14936 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
14937 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
14938 it->multibyte_p is zero.
14939
14940 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
14941 Delete extern.
14942
149432008-02-01 Kenichi Handa <handa@m17n.org>
14944
14945 * coding.c (Fdefine_coding_system_internal): Fix category setting
14946 for a coding system of type iso-2022.
14947
149482008-02-01 Kenichi Handa <handa@m17n.org>
14949
14950 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
14951
149522008-02-01 Kenichi Handa <handa@m17n.org>
14953
14954 * syntax.c (Vnext_word_boundary_function_table): New variable.
14955 (next-word-boundary-function-table): Declare it as a Lisp variable
14956 in syms_of_syntax.
14957 (scan_words): Call functions in Vnext_word_boundary_function_table
14958 if any.
14959
14960 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
14961
14962 * fontset.c (fs_load_font): If fontp->charset is not negative,
14963 return fontp without setting its members.
14964
149652008-02-01 Dave Love <fx@gnu.org>
14966
14967 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
14968
14969 * m/sparc.h (HAVE_ALLOCA): Delete.
14970
14971 * s/irix6-5.h: Don't include strings.h.
14972 (bcopy, bzero, bcmp): Don't undef.
14973
14974 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
14975
14976 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
14977 (TIOCSIGSEND): Don't test IRIX6.
14978 (bcopy, bzero, bcmp): Define conditionally.
14979
149802008-02-01 Kenichi Handa <handa@m17n.org>
14981
14982 * buffer.c (Qas, Qmake, Qto): New variables.
14983 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
14984 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
14985
14986 * callproc.c (Fcall_process): Don't call insert_1_both directly if
14987 we are inserting a process output into a multibyte buffer.
14988
14989 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
14990 multibyte_char_to_unibyte.
14991
14992 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
14993 by the primary charset, make it eight-bit char.
14994 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
14995
14996 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
14997 (charset_8_bit__control, charset_8_bit_graphic)
14998 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
14999 (define_charset_internal): New function.
15000 (syms_of_charset): Call define_charset_internal for pre-defined
15001 charsets.
15002
15003 * charset.h (charset_8_bit): Extern it.
15004
15005 * coding.c (make_conversion_work_buffer): Adjust for the change
15006 of Fset_buffer_multibyte.
15007 (encode_coding_raw_text): Increment p0 in the loop.
15008
15009 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
15010
15011 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
15012 for the change of Fset_buffer_multibyte.
15013
15014 * fns.c (Fstring_to_multibyte): New function.
15015 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
15016
150172008-02-01 Dave Love <fx@gnu.org>
15018
15019 * xfns.c (x_put_x_image): Declare args.
15020
15021 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
15022 (try_font_list): Declare an arg.
15023
15024 * xdisp.c (message2_nolog, set_message): Declare an arg.
15025
15026 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
15027
15028 * syntax.c (scan_sexps_forward): Declare an arg.
15029
15030 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
15031 Declare an arg.
15032
15033 * lisp.h (Fnew_fontset): Declare.
15034
15035 * keymap.c (push_key_description): Call CHARACTERP correctly.
15036
15037 * fontset.c (fontset_add): Declare args. Call make_number correctly.
15038 (face_for_char): Delete unused vars.
15039 (Fset_fontset_font): Doc fix. Delete unused vars.
15040
15041 * doc.c (Fsubstitute_command_keys): Delete unused vars.
15042
15043 * composite.c (update_compositions): Declare arg.
15044
15045 * cm.c (calccost, cmgoto): Declare args.
15046
15047 * charset.c: Remove `emacs' conditional. Doc fixes.
15048 (map_char_table_for_charset): Declare.
15049
15050 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
15051
15052 * ccl.c: Remove `emacs' conditional.
15053
150542008-02-01 Kenichi Handa <handa@m17n.org>
15055
15056 The following changes are to allow specifying multiple font
15057 patterns for a character range (specified by script or charset).
15058
15059 * Makefile.in (abbrev.o): Depend on syntax.h.
15060 (xfaces.o): Depend on charset.h.
15061
15062 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
15063 SINGLE_BYTE_CHAR_P.
15064
15065 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
15066
15067 * character.h (Vchar_script_table): Extern it.
15068
15069 * character.c (Vscript_alist): Delete.
15070 (Vchar_script_table, Qchar_script_table): New variable.
15071 (syms_of_character): Declare Vchar_script_table as a lisp variable
15072 and initialize it.
15073
15074 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
15075 have property char-table-extra-slots, make no extra slot.
15076
15077 * dispextern.h (struct face): Delete member `charset'.
15078 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
15079 SINGLE_BYTE_CHAR_P.
15080 (choose_face_font, lookup_non_ascii_face, font_name_registry):
15081 Add prototypes.
15082 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
15083 (generate_ascii_font_name): Rename from generate_ascii_font.
15084
15085 * fontset.h (get_font_repertory_func): New prototype.
15086 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
15087 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
15088
15089 * fontset.c (Qprepend, Qappend): New variables.
15090 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
15091 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
15092 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
15093 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
15094 (fontset_ref_and_range, fontset_add, reorder_font_vector)
15095 (load_font_get_repertory): New functions.
15096 (fontset_set): Delete.
15097 (fontset_face): New arg FACE. Return face ID, not face.
15098 Complete re-write to handle new fontset structure. Change caller.
15099 (free_face_fontset): Use ASET istead of AREF (X) = Y.
15100 (face_for_char): Don't call lookup_face.
15101 (make_fontset_for_ascii_face): New arg FACE.
15102 (fs_load_font): New arg CHARSET_ID. Don't check
15103 Vfont_encoding_alist here.
15104 (find_font_encoding): New function.
15105 (list_fontsets): Use STRINGP, not ! NILP.
15106 (accumulate_script_ranges): New function.
15107 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
15108 re-written to handle new fontset structure.
15109 (Ffontset_font): Return a copy of element.
15110 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
15111 docstring of font-encoding-alist.
15112
15113 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
15114 (Fset_fotset_font): Fix arguments to 5.
15115
15116 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
15117
15118 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
15119 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
15120 (highlight_trailing_whitespace): Adjust for the change of
15121 lookup_named_face.
15122
15123 * xfaces.c: Include charset.h.
15124 (load_face_font): Delete argument C. Change caller.
15125 (generate_ascii_font_name): Rename from generate_ascii_font.
15126 (font_name_registry): New function.
15127 (cache_face): Store ascii faces before non-ascii faces in buckets.
15128 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
15129 Lookup only ascii faces.
15130 (lookup_non_ascii_face): New function.
15131 (lookup_named_face): Delete argument C. Change caller.
15132 (lookup_derived_face): Delete argument C. Change caller.
15133 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
15134 a string, just call font_list with it.
15135 (choose_face_font): Delete arguments FACE and C. New arg
15136 FONT_SPEC. Change caller.
15137 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
15138 Change caller.
15139 (realize_non_ascii_face): New function.
15140 (realize_x_face): Call load_face_font here.
15141 (realize_tty_face): Delete argument C. Change caller.
15142 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
15143 get a face ID.
15144 (dump_realized_face): Don't print charset of FACE.
15145
15146 * xfns.c (x_set_font): Always call x_new_fontset and
15147 store_frame_parameter.
15148 (Fx_create_frame): Call x_new_fontset, not x_new_font.
15149 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
15150
15151 * xterm.h (x_get_font_repertory): Extern it.
15152
15153 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
15154 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
15155 it->multibyte_p is zero.
15156 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
15157 (x_new_fontset): If FONTSETNAME doesn't match any existing
15158 fontsets, create a new one.
15159 (x_get_font_repertory): New function.
15160
151612008-02-01 Kenichi Handa <handa@m17n.org>
15162
15163 * coding.c (Ffind_coding_systems_region_internal): Detect an
15164 ASCII only string correctly.
15165
15166 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
15167 version is 0.
15168
151692008-02-01 Kenichi Handa <handa@m17n.org>
15170
15171 * lread.c: Include "coding.h".
15172 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
15173 (load_each_byte, unread_char): New variables.
15174 (readchar_backlog): Delete.
15175 (readchar): Return a character unless load_each_byte is nonzero.
15176 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
15177 cons. If unread_char is not -1, simply return it.
15178 (unreadchar): Handle the case that readcharfun is
15179 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
15180 (read_multibyte): Delete.
15181 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
15182 (read_emacs_mule_char): New functions.
15183 (Fload): Even if the file doesn't have the extension ".elc", if
15184 safe_to_load_p returns a positive version number, assume that the
15185 file contains bytecompiled code. If the version is less than 22,
15186 load the file while decoding multibyte sequences by emacs-mule.
15187 (readevalloop): Don't use readchar_backlog.
15188 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
15189 (Fread_from_string): Pay attention to the case that STREAM is a cons.
15190 (read_escape): Delete the arg BYTEREP.
15191 (read1): Set load_each_byte to 1 temporarily while handling
15192 #@NUMBER. Don't call read_multibyte.
15193 (read_vector): Call Fread with a cons. If readcharfun is
15194 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
15195 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
15196 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
15197 and Qload_force_doc_strings.
15198
151992008-02-01 Kenichi Handa <handa@m17n.org>
15200
15201 * xdisp.c (face_before_or_after_it_pos): Call
15202 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
15203
152042008-02-01 Kenichi Handa <handa@m17n.org>
15205
15206 * character.h (TRAILING_CODE_P): New macro.
15207 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
15208 (string_char_with_unification): Fix prototype.
15209 (Vscript_alist): Extern it.
15210
15211 * character.c (Vscript_alist): New variable.
15212 (string_char_with_unification, str_as_unibyte)
15213 (string_escape_byte8): Add `const' to local variables.
15214 (syms_of_character): Declare script-alist as a Lisp variable.
15215
15216 * charset.h (Vcharset_ordered_list): Extern it.
15217 (charset_ordered_list_tick): Extern it.
15218 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
15219 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
15220 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
15221 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
15222 (Funify_charset): Adjust for the change of Funify_charset.
15223
15224 * charset.c (charset_ordered_list_tick): New variable.
15225 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
15226 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
15227 deunify intead of unify a charset.
15228 (string_xstring_p): Add `const' to local variables.
15229 (find_charsets_in_text): Add `const' to arguments and local variables.
15230 (encode_char): Adjust for the change of Funify_charset. Fix
15231 detecting of invalid code.
15232 (Fset_charset_priority): Increment charset_ordered_list_tick.
15233 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
15234 and TO_CODE.
15235
15236 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
15237 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
15238 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
15239 (decode_coding_ccl, consume_chars)
15240 (Ffind_coding_systems_region_internal)
15241 (Fcheck_coding_systems_region): Add `const' to local variables.
15242
15243 * print.c (print_object): Use octal form for printing the
15244 contents of a bool vector.
15245
152462008-02-01 Dave Love <fx@gnu.org>
15247
15248 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
15249 <version == 20>: Refuse to load.
15250
152512008-02-01 Dave Love <fx@gnu.org>
15252
15253 * fns.c: Move coding.h.
15254 (Qcodeset, Qdays, Qmonths): New.
15255 (concat): Use CHARACTERP instead of INTEGERP.
15256 (Flocale_codeset): Delete.
15257 (Flanginfo): New function.
15258 (syms_of_fns): Change accordingly.
15259
15260 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
15261
152622008-02-01 Dave Love <fx@gnu.org>
15263
15264 * casetab.c (init_casetab_once, init_casetab_once): Fix
15265 CHAR_TABLE_SET call.
15266
15267 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
15268
15269 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
15270
15271 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
15272 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
15273 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
15274
15275 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
15276
15277 * coding.c (ENCODE_DESIGNATION, decode_eol)
15278 (make_conversion_work_buffer, code_conversion_restore)
15279 (Fdefine_coding_system_internal): Convert Lisp types.
15280 (code_conversion_restore): Use EQ, not ==.
15281 (Fencode_coding_string): Fix code_convert_string call.
15282
15283 * coding.h (code_convert_region): Fix prototype.
15284
15285 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
15286
15287 * fontset.c (fontset_ref, fontset_set, fs_load_font)
15288 (Ffontset_info): Convert Lisp types.
15289
15290 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
15291
15292 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
15293
15294 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
15295
15296 * chartab.c: Include "...h", not <...h> in some cases.
15297
15298 * callproc.c (Fcall_process): Remove unused variables.
15299
153002008-02-01 Dave Love <fx@gnu.org>
15301
15302 * coding.c (Fset_coding_system_priority): Allow null arg list.
15303
153042008-02-01 Dave Love <fx@gnu.org>
15305
15306 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
15307 (Fself_insert_and_exit): Use CHARACTERP.
15308
15309 * callproc.c (Fcall_process): Remove unused vars.
15310
15311 * xterm.c (XTread_socket): Add extra dead keysyms.
15312
15313 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
15314
15315 * dispextern.h: Remove prototypes for redraw_frame,
15316 redraw_garbaged_frames.
15317
15318 * cmds.c (Fself_insert_command): Use CHARACTERP.
15319
15320 * chartab.c (make_sub_char_table): Remove unused var.
15321 (Fset_char_table_default, Fmap_char_table): Doc fix.
15322
15323 * keymap.c (access_keymap): Remove generic char code.
15324 (push_key_description): Use CHARACTERP.
15325
153262008-02-01 Dave Love <fx@gnu.org>
15327
15328 * charset.c: Doc fixes.
15329 (Funify_charset): Extra checking.
15330
153312008-02-01 Dave Love <fx@gnu.org>
15332
15333 * lread.c: Remove some unused variables.
15334 (safe_to_load_p): If safe, return the magic number version byte.
15335 (Fload): Maybe use load-with-code-conversion.
15336
153372008-02-01 Kenichi Handa <handa@m17n.org>
15338
15339 * category.c (Fmodify_category_entry): Don't modify the contents
15340 of category_set for characters out of the range. Avoid
15341 unnecessary modification.
15342
15343 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
15344 Vchar_unify_table. The default value of the table is now nil.
15345
15346 * character.c (syms_of_character): Setup Vchar_width_table for
15347 eight-bit-control and raw-byte chars.
15348
15349 * charset.h (enum define_charset_arg_index): Delete
15350 charset_arg_parents and add charset_arg_subset and
15351 charset_arg_superset.
15352 (enum charset_attr_index): Delete charset_parents and add
15353 charset_subset and charset_superset.
15354 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
15355 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
15356 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
15357 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
15358 (CHARSET_SUPERSET): New macros.
15359 (charset_work): Extern it.
15360 (ENCODE_CHAR): Use charset_work.
15361 (CHAR_CHARSET_P): Adjust for the change of encoder format.
15362 (map_charset_chars): Extern it.
15363
15364 * charset.c (load_charset_map): Set the default value of encoder
15365 and deunifier char-tables to nil.
15366 (map_charset_chars): Change argument. Change callers. Use
15367 map_char_table_for_charset instead of map_char_table.
15368 (Fmap_charset_chars): New optional args from_code and to_code.
15369 (Fdefine_charset_internal): Adjust for the change of
15370 `define-charset' (:parents -> :subset or :superset).
15371 (charset_work): New variable.
15372 (encode_char, syms_of_charset): Adjust for the change of
15373 Fdefine_charset_internal.
15374 (Ffind_charset_string): Setup the vector `charsets' correctly.
15375
15376 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
15377 the previous change.
15378 (char_table_ref_and_range): Adjust for the above change.
15379 (map_sub_char_table_for_charset): New function.
15380 (map_char_table_for_charset): New function.
15381
15382 * keymap.c (describe_vector): Handle a char-table directly here.
15383 (describe_char_table): Delete.
15384
15385 * lisp.h (map_charset_chars): Delete.
15386
153872008-02-01 Dave Love <fx@gnu.org>
15388
15389 * fns.c (count_combining): Comment out (unused).
15390 (Flocale_codeset): New.
15391 (syms_of_fns): Defsubr it.
15392
15393 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
15394 (size_t): Remove.
15395
153962008-02-01 Dave Love <fx@gnu.org>
15397
15398 * Makefile.in (chartab.o): Depend on charset.h.
15399
154002008-02-01 Kenichi Handa <handa@m17n.org>
15401
15402 * character.c (syms_of_character): Set the default value of
15403 Vprintable_chars to Qnil.
15404
154052008-02-01 Dave Love <fx@gnu.org>
15406
15407 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
15408
154092008-02-01 Kenichi Handa <handa@m17n.org>
15410
15411 * charset.c (load_charset_map): Handle the case that from < to
15412 correctly.
15413
15414 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
15415 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
15416 Pay attention to raw-8-bit chars.
15417
154182008-02-01 Kenichi Handa <handa@m17n.org>
15419
15420 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
15421 It is not bytecompiled now.
15422
15423 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
15424 (charset_jisx0208): New variables.
15425 (Fdefine_charset_internal): Setup them if appropriate.
15426 (init_charset_once): Initialize them to -1.
15427
15428 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
15429 (charset_jisx0208): Extern them.
15430
15431 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
15432 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
15433 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
15434 (setup_iso_safe_charsets): Fix arguments to Fassq.
15435 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
15436 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
15437 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
15438 (encode_coding_iso_2022): Change the 1st arg to
15439 ENCODE_ISO_CHARACTER to a variable.
15440
154412008-02-01 Kenichi Handa <handa@m17n.org>
15442
15443 * charset.h (enum define_charset_arg_index): New enums
15444 charset_arg_min_code and charset_arg_max_code.
15445 (struct charset): New member char_index_offset.
15446
15447 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
15448 Take charset->char_index_offset into account.
15449 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
15450 args[charset_arg_max_code]. Setup charset.char_index_offset.
15451 (syms_of_charset): Fix args to Fdefine_charset_internal.
15452
154532008-02-01 Dave Love <fx@gnu.org>
15454
15455 * coding.c (decode_coding_utf_8): Reject overlong sequences.
15456
154572008-02-01 Dave Love <fx@gnu.org>
15458
15459 * coding.c: Doc fixes.
15460 (Fcoding_system_aliases): Fix return value.
15461 (Qmac): Remove (duplicated) definition.
15462
154632008-02-01 Dave Love <fx@gnu.org>
15464
15465 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
15466 functions.
15467
15468 * character.c (Fstring): Doc fix.
15469
15470 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
15471
15472 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
15473 ids.
15474 (font-encoding-alist): Doc fix.
15475
154762008-02-01 Dave Love <fx@gnu.org>
15477
15478 * term.c (costs_set): Declare static, non-initialized for pcc.
15479 (encode_terminal_code): Remove unused var.
15480
15481 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
15482 for K&R.
15483
15484 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
15485
15486 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
15487 (suffixes): Move out of make_subsidiaries for K&R.
15488
15489 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
15490
15491 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
15492
154932008-02-01 Dave Love <fx@gnu.org>
15494
15495 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
15496
15497 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
15498
154992008-02-01 Yong Lu <lyongu@asia-infonet.com>
15500
15501 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
15502
15503 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
15504
155052008-02-01 Kenichi Handa <handa@m17n.org>
15506
15507 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
15508 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
15509
155102008-02-01 Kenichi Handa <handa@m17n.org>
15511
15512 * coding.c (decode_coding_charset): Adjust for the change of
15513 Fdefine_coding_system_internal.
15514 (Fdefine_coding_system_internal): For a coding system of
15515 `charset' type, store a list of charset IDs in
15516 `charset_attr_charset_valids' element of coding attributes.
15517
155182008-02-01 Kenichi Handa <handa@m17n.org>
15519
15520 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
15521 (emacs_mule_char): New arg src. Delete arg `composition'. Change
15522 caller. Handle 2-byte and 3-byte charsets correctly.
15523 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
15524 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
15525 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
15526 (DECODE_EMACS_MULE_21_COMPOSITION): Call
15527 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
15528 sequence.
15529 (decode_coding_emacs_mule): Handle composition correctly. Rewind
15530 `src' and `consumed_chars' correctly before calling emacs_mule_char.
15531 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
15532 and alt&rule composition.
15533 (decode_coding_iso_2022): Handle composition correctly.
15534 (init_coding_once): Setup emacs_mule_bytes for private charsets.
15535
15536 * charset.c (Fdefine_charset_internal): Fix bug for the case of
15537 re-defining a charset. If the charset has :emacs-mule-id, setup
15538 emacs_mule_bytes.
15539 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
15540
155412008-02-01 Kenichi Handa <handa@m17n.org>
15542
15543 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
15544 (encode_coding_big5, encode_coding_charset): If coding requires safe
15545 encoding, produce a character specified by
15546 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
15547
155482008-02-01 Dave Love <fx@gnu.org>
15549
15550 * xterm.c (XSetIMValues): Declare.
15551
15552 * process.c: Conditionally include sys/wait.h, pty.h.
15553
15554 * print.c (print_object): Fix print format for 64-bit systems.
15555
15556 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
15557
15558 * buffer.c (emacs_strerror): Declare.
15559
15560 * fontset.c (Fclear_face_cache): Declare.
15561 (accumulate_font_info): Comment-out (unused).
15562 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
15563 variables.
15564
15565 * character.h (string_escape_byte8): Declare.
15566
15567 * charset.c (load_charset_map, load_charset_map_from_file): Remove
15568 unused vars.
15569 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
15570 (Fmap_charset_chars): Doc fix.
15571
15572 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
15573 (Fset_coding_system_priority, Fset_coding_system_priority)
15574 (Fdefine_coding_system_internal): Doc fix.
15575
155762008-02-01 Dave Love <fx@gnu.org>
15577
15578 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
15579
155802008-02-01 Kenichi Handa <handa@m17n.org>
15581
15582 * character.c (string_escape_byte8): Make multibyte string with
15583 correct size.
15584
15585 * charset.c (Fmake_char): Delete unnecessary code.
15586
155872008-02-01 Kenichi Handa <handa@m17n.org>
15588
15589 * xfns.c (x_encode_text): Allocate coding.destination here, and
15590 call encode_coding_object with dst_object Qnil.
15591
15592 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
15593 multibyte form correctly.
15594
15595 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
15596 against Vfont_encoding_alist.
15597
15598 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
15599 handling of charset list.
15600 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
15601 (decode_coding_object): Move point to coding->dst_pos before
15602 calling post-read-conversion function.
15603 (encode_coding_object): Give correct arguments to
15604 pre-write-conversion. Ignore the return value of
15605 pre-write-conversion function. Pay attention to the case that
15606 pre-write-conversion changes the current buffer. If dst_object is
15607 Qt, even if coding->src_bytes is zero, allocate at least one byte
15608 to coding->destination.
15609
15610 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
15611
15612 * charset.c (Fmake_char): Make it more backward compatible.
15613 (Fmap_charset_chars): Fix docstring.
15614
156152008-02-01 Dave Love <fx@gnu.org>
15616
15617 * coding.c: Doc fixes.
15618 (Fdefine_coding_system_alias): Use names, not symbols, in
15619 coding-system-alist.
15620
156212008-02-01 Kenichi Handa <handa@m17n.org>
15622
15623 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
15624 of calling free_realized_face.
15625
156262008-02-01 Yong Lu <lyongu@asia-infonet.com>
15627
15628 * charset.c (read_hex): Don't treat SPC as a comment starter.
15629 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
15630 (Fdecode_char): Fix typo.
15631
156322008-02-01 Kenichi Handa <handa@m17n.org>
15633
15634 * charset.h (struct charset): New member `code_space_mask'.
15635
15636 * coding.c (coding_set_source): Delete the local variable beg_byte.
15637 (encode_coding_charset, Fdefine_coding_system_internal):
15638 Delete the local variable charset.
15639 (Fdefine_coding_system_internal): Setup
15640 attrs[coding_attr_charset_valids] correctly.
15641
15642 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
15643 member to check if CODE is valid or not.
15644 (Fdefine_charset_internal): Initialize `code_space_mask' member.
15645 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
15646 is within the range of charset->min_code and carset->max_code.
15647
156482008-02-01 Dave Love <fx@gnu.org>
15649
15650 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
15651
15652 * dispextern.h (generate_ascii_font): Fix return type.
15653
15654 * xfaces.c (generate_ascii_font): Fix arg declaration.
15655
15656 * coding.c (coding_inherit_eol_type)
15657 (Fset_terminal_coding_system_internal)
15658 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
15659
156602008-02-01 Kenichi Handa <handa@m17n.org>
15661
15662 * coding.c (decode_coding_charset, encode_coding_charset): Handle
15663 multiple charsets correctly.
15664
156652008-02-01 Kenichi Handa <handa@m17n.org>
15666
15667 * search.c (boyer_moore): Fix handling of multibyte character
15668 translation.
15669
15670 * xdisp.c (display_mode_element): When the variable `elt' is
15671 changed, update `this' and `lisp_string'.
15672
156732008-02-01 Kenichi Handa <handa@m17n.org>
15674
15675 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
15676
15677 * callproc.c (Fcall_process): Be sure to give the current buffer
15678 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
15679
15680 * charset.c (struct charset_map_entries): New struct.
15681 (load_charset_map): Rename from parse_charset_map. New args
15682 entries and n_entries. Change caller.
15683 (load_charset_map_from_file): Rename from load_charset_map.
15684 Change caller. New arg control_flag. Call load_charset_map at
15685 the tail.
15686 (load_charset_map_from_vector): New function.
15687 (Fdefine_charset_internal): Setup charset.compact_codes_p.
15688 (encode_char): If the charset is compact, change a character index
15689 to a code point.
15690
15691 * coding.c (coding_alloc_by_making_gap): Check the case that the
15692 source and destination are the same correctly.
15693 (decode_coding_raw_text): Set coding->consumed_char and
15694 coding->consumed to 0.
15695 (produce_chars): If coding->chars_at_source is nonzero, update
15696 coding->consumed_char and coding->consumed before calling
15697 alloc_destination.
15698 (Fdefine_coding_system_alias): Register ALIAS in
15699 Vcoding_system_alist.
15700 (syms_of_coding): Define `no-conversion' coding system at the tail.
15701
15702 * fileio.c (Finsert_file_contents): Set coding_system instead of
15703 val. If the current buffer is multibyte, always call
15704 decode_coding_gap.
15705
15706 * xfaces.c (try_font_list): Give higher priority to fontset's
15707 family than face's family.
15708
157092008-02-01 Kenichi Handa <handa@m17n.org>
15710
15711 * callproc.c (Fcall_process): Be sure to give the current buffer
15712 to decode_coding_c_string.
15713
15714 * xfaces.c (try_font_list): Give a family specified in a fontset
15715 higher priority than a family specified in a face.
15716
157172008-02-01 Kenichi Handa <handa@m17n.org>
15718
15719 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
15720 Fix arguments to insert_from_buffer.
15721
15722 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
15723
157242008-02-01 Kenichi Handa <handa@m17n.org>
15725
15726 * coding.c (produce_chars): Set the variable `multibytep' correctly.
15727 (decode_coding_gap): Set coding->dst_multibyte correctly.
15728
157292008-02-01 Kenichi Handa <handa@m17n.org>
15730
15731 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
15732 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
15733 (encode_coding_utf_16): Substitute coding->default_char for
15734 non-Unicode characters.
15735 (decode_coding): Don't call record_insert here.
15736 (setup_coding_system): Initialize `surrogate' of
15737 coding->spec.utf_16 to 0.
15738 (EMIT_ONE_BYTE): Fix for multibyte case.
15739
15740 * insdel.c (insert_from_gap): Call record_insert.
15741
157422008-02-01 Kenichi Handa <handa@m17n.org>
15743
15744 * casefiddle.c (casify_region): Fix multibyte case.
15745
15746 * character.c (c_string_width): Add return type `int'.
15747 (char_string_with_unification): Delete arg ADVANCED.
15748
15749 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
15750 (CHAR_STRING): Adjust for the change of char_string_with_unification.
15751 (CHAR_STRING_ADVANCE): Make it do-while statement.
15752
15753 * chartab.c (sub_char_table_set_range): Optimize for the case
15754 DEPTH == 3. Add workaround code for a GCC optimization bug.
15755
15756 * charset.c (parse_charset_map): Remove an unused variable.
15757
15758 * coding.c: Delete unused variables.
15759
15760 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
15761 earlier. If inserted is zero and the coding system doesn't
15762 require flushing, don't call decode_coding_gap.
15763
15764 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
15765
157662008-02-01 Kenichi Handa <handa@m17n.org>
15767
15768 The following changes are for using Unicode as an internal
15769 character model, and use UTF-8 format for buffer/string
15770 representation.
15771
15772 * .gdbinit (xchartable): Adjust for the change of char table structure.
15773 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
15774
15775 * Makefile.in (obj): Add character.o and chartab.o.
15776 (lisp, shortlisp): Remove utf-8.elc.
15777 (*.o): For many files, change dependency on charset.h to
15778 character.h, and add dependency on character.h.
15779 (character.o, chartab.o): New targets.
15780
15781 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
15782 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
15783 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
15784 of "charset.h".
15785
15786 * dired.c, filelock.c: Include "character.h".
15787
15788 * alloc.c: Include "character.h" instead of "charset.h".
15789 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
15790 (syms_of_alloc): Remove defsubr for Smake_char_table.
15791
15792 * buffer.c: Include "character.h" instead of "charset.h", don't
15793 include "coding.h".
15794 (Fset_buffer_multibyte): Adjust for UTF-8.
15795
15796 * buffer.h: EXFUN Fbuffer_live_p.
15797
15798 * callproc.c: Include "character.h" instead of "charset.h".
15799 (Fcall_process): Big change for the new code-conversion APIs.
15800
15801 * casetab.c: Include "character.h" instead of "charset.h".
15802 (set_canon, set_identity, shuffle): Adjust for the new
15803 map_char_table spec.
15804 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
15805 accessing the char table structure.
15806
15807 * chartab.c: New file that implements char table.
15808
15809 * category.c: Include "character.h".
15810 (copy_category_entry): New function.
15811 (copy_category_table): Call map_char_table and copy_category_entry.
15812 (Fmake_category_table): Initialize all top-level slots.
15813 (char_category_set): New function.
15814 (modify_lower_category_set): Delete.
15815 (Fmodify_category_entry): Call char_table_ref_and_range.
15816
15817 * category.h (CATEGORY_SET): Just call char_category_set.
15818
15819 * ccl.c: Include "character.h".
15820 (Qccl, Qcclp): New variables.
15821 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
15822 it's less than 256.
15823 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
15824 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
15825 and DST type.
15826 (ccl_driver): Change types of argument, adjust code accordingly.
15827 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
15828 ccl_driver.
15829 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
15830
15831 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
15832 New members src_multibyte, dst_multibyte, consumed, and produced.
15833 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
15834 (CODING_SPEC_CCL_PROGRAM): New macro.
15835 (ccl_driver): Update prototype.
15836 (Qccl, Qcclp, Fccl_program_p): Extern them.
15837 (CHECK_CCL_PROGRAM): New macro.
15838
15839 * character.c, character.h, chartab.c: New files.
15840
15841 * charset.c: Mostly re-written. Move character and multibyte sequence
15842 handling codes to character.c.
15843
15844 * charset.h: Mostly re-written. Move character and multibyte sequence
15845 handling codes to character.h.
15846
15847 * coding.c, coding.h: Mostly re-written.
15848
15849 * composite.c: Include "character.h" instead of "charset.h".
15850 (CHAR_WIDTH): Move to character.h.
15851 (HASH_KEY, HASH_VALUE): Delete.
15852
15853 * composite.h (enum composition_method): Change order of enumeration
15854 symbols.
15855
15856 * data.c: Include "character.h" instead of "charset.h".
15857 (Faref): Call CHAR_TABLE_REF for a char table.
15858 (Faset): Call CHAR_TABLE_SET for a char table.
15859
15860 * dispextern.h (free_realized_face, check_face_attribytes)
15861 (generate_ascii_font): Extern them.
15862 (free_realized_multibyte_face): Delete extern.
15863
15864 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
15865 table structure.
15866
15867 * editfns.c: Include "character.h" instead of "charset.h".
15868 (Fchar_to_string): Always call CHAR_STRING.
15869
15870 * emacs.c (main): Call init_charset_once, init_charset,
15871 syms_of_chartab, and syms_of_character.
15872
15873 * fileio.c: Include "character.h" instead of "charset.h".
15874 (Finsert_file_contents): Big change for the new code-conversion API.
15875 (choose_write_coding_system, Fwrite_region): Likewise.
15876 (build_annotations_2): Delete.
15877 (e_write): Big change for the new code-conversion API.
15878
15879 * fns.c: Include "character.h" instead of "charset.h".
15880 (copy_sub_char_table): Move to chartab.c.
15881 (Fcopy_sequence): Call copy_char_table for a char table.
15882 (concat): Delete codes calling count_multibyte.
15883 (string_char_to_byte, string_byte_to_char): Adjust for the new
15884 multibyte form.
15885 (internal_equal): Adjust for the change of char table structure.
15886 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
15887 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
15888 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
15889 (char_table_translate, optimize_sub_char_table)
15890 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
15891 chartab.c.
15892 (char_table_ref_and_index): Delete.
15893 (HASH_KEY, HASH_VALUE): Move to lisp.h.
15894 (Fmd5): Call preferred_coding_system instead of accessing
15895 Vcoding_category_list. Adjust for the new code-conversion API.
15896 (syms_of_fns): Move defsubr for char table related functions to
15897 chartab.c.
15898
15899 * fontset.c: Mostly re-written.
15900
15901 * fontset.h (struct font_info): Change type of the member encoding_type.
15902 (enum FONT_SPEC_INDEX): New enum.
15903 (fontset_font_pattern, fs_load_font): Update prototype.
15904 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
15905
15906 * indent.c: Include "character.h" instead of "charset.h".
15907 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
15908
15909 * insdel.c: Include "character.h" instead of "charset.h".
15910 (copy_text): Don't refer to Vnonascii_translation_table.
15911 (insert_from_gap): New function.
15912
15913 * keyboard.c: Include "character.h" instead of "charset.h".
15914 (command_loop_1): Never call direct_output_forward_char before
15915 a non-ASCII character.
15916 (read_char): If Vkeyboard_translate_table is a char table, always
15917 translate a character.
15918
15919 * keymap.c: Include "character.h".
15920 (store_in_keymap): Handle the case that IDX is a cons.
15921 (Fdefine_key): Handle the case that KEY is a cons and the car part
15922 is also a cons (range).
15923 (push_key_description): Adjust for the new character code.
15924 (describe_vector): Call describe_char_table for a char table.
15925 (describe_char_table): New function.
15926
15927 * keymap.h (describe_char_table): Extern it.
15928
15929 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
15930 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
15931 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
15932 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
15933 Delete.
15934 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
15935 structure.
15936 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
15937 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
15938 (CHARTAB_SIZE_BITS_3): New macros.
15939 (chartab_size): Extern it.
15940 (struct Lisp_Char_Table): Re-design.
15941 (struct Lisp_Sub_Char_Table): New structure.
15942 (HASH_KEY, HASH_VALUE): Move from fns.c.
15943 (CHARACTERBITS): Define as 22.
15944 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
15945 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
15946 (GC_SUB_CHAR_TABLE_P): New macro.
15947 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
15948 (code_convert_string_norecord): Deleted extern.
15949 (init_character_once, syms_of_character, init_charset)
15950 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
15951
15952 * lread.c: Include "character.h".
15953 (read_multibyte): New arg NBYTES.
15954 (read_escape): Change the meaning of returned *BYTEREP.
15955 (to_multibyte): Delete.
15956 (read1): Adjust the handling of char table and string.
15957
15958 * print.c: Include "character.h" instead of "charset.h".
15959 (print_string): Convert 8-bit raw bytes to octal form by
15960 string_escape_byte8.
15961 (print_object): Adjust for the new multibyte form. Print 8-bit
15962 raw bytes always in octal form. Handle sub char table correctly.
15963
15964 * process.c: Include "character.h" instead of "charset.h".
15965 (read_process_output, send_process): Adjust for the new
15966 code-conversion API.
15967
15968 * puresize.h (BASE_PURESIZE): Increase.
15969
15970 * regex.c: Include "character.h" instead of "charset.h".
15971 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
15972 (regex_compile): Accept a range whose starting and ending
15973 character have different leading bytes.
15974 (analyse_first): Adjust for the above change.
15975
15976 * search.c: Include "character.h" instead of "charset.h".
15977 (search_buffer, boyer_moore): Adjust for the new multibyte form.
15978 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
15979
15980 * syntax.c: Include "character.h" instead of "charset.h".
15981 (syntax_parent_lookup): Delete.
15982 (Fmodify_syntax_entry): Accept a cons as CHAR.
15983 (skip_chars): Adjust for the new multibyte form.
15984 (init_syntax_once): Call char_table_set_range instead of directly
15985 accessing the structure of a char table.
15986
15987 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
15988 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
15989 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
15990 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
15991
15992 * term.c: Include "buffer.h" and "character.h".
15993 (encode_terminal_code, write_glyphs): Adjust for the new
15994 code-conversion API.
15995 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
15996
15997 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
15998
15999 * xdisp.c: Include "character.h".
16000 (get_next_display_element): Adjust for the new multibyte form.
16001 (disp_char_vector): Adjust for the new char table structure.
16002 (decode_mode_spec_coding): Adjust for the new structure of
16003 coding system.
16004 (decode_mode_spec): Adjust for the new code-conversion API.
16005
16006 * xfaces.c: Include "character.h" instead of "charset.h".
16007 (load_face_font): Adjust for the change of choose_face_font and
16008 FS_LOAD_FONT.
16009 (generate_ascii_font): New function.
16010 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
16011 (set_font_frame_param): Adjust for the change of choose_face_font.
16012 (free_realized_face): Make it public.
16013 (free_realized_faces_for_fontset): Rename from
16014 free_realized_multibyte_face. Free also faces realized for ASCII.
16015 (choose_face_font): Change arguments. Adjust for the change of
16016 fontset_font_pattern and FS_LOAD_FONT.
16017
16018 * xfns.c: Include "character.h".
16019 (x_encode_text): Adjust for the new code-conversion API.
16020
16021 * xselect.c: Don't include "charset.h".
16022 (selection_data_to_lisp_data): Adjust for the new code conversion API.
16023
16024 * xterm.c: Include "character.h".
16025 (x_encode_char): New argument CHARSET. Change caller.
16026 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
16027 Call ENCODE_CHAR instead of SPLIT_CHAR.
16028 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
16029 CHAR_WIDTH instead of CHARSET_WIDTH.
16030 (XTread_socket): Adjust for the new code-conversion API.
16031 (x_new_font): Adjust for the change of FS_LOAD_FONT.
16032 (x_load_font): Adjust for the change of struct font.
16033
160342008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16035
16036 * xfaces.c (face_at_buffer_position): Remove unused vars.
16037
160382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16039
16040 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
16041 Fix overflow checking.
16042
160432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16044
16045 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
16046 Cancel previous change.
16047
160482008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
16049
16050 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
16051 ccl->eight_bit_control. Fix check for buffer overflow.
16052 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
16053 (ccl_driver): Initialize extra_bytes to 0.
16054
160552008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
16056
16057 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
16058 return it ORed with ctrl_modifier.
16059
160602008-01-29 Miles Bader <miles@gnu.org>
16061
16062 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
16063
160642008-01-28 Jason Rumney <jasonr@gnu.org>
16065
16066 * w32.c (stat): Don't double check for networked drive.
16067
160682008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
16069
16070 * window.c (run_window_configuration_change_hook): New function.
16071 Code extracted from set_window_buffer. Set the selected frame.
16072 (set_window_buffer): Use it.
16073 * window.h (run_window_configuration_change_hook): Declare.
16074 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
16075
16076 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
16077
160782008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
16079
16080 * Makefile.in: Remove references to unused macros.
16081
160822008-01-26 Eli Zaretskii <eliz@gnu.org>
16083
16084 * w32.c (g_b_init_get_sid_sub_authority)
16085 (g_b_init_get_sid_sub_authority_count): New static variables.
16086 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
16087 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
16088 (init_user_info): Use them to retrieve uid and gid.
16089 Use 500/513, the Windows defaults, as Administrator's uid/gid.
16090 (fstat): Use pw_uid and pw_gid from the_passwd structure for
16091 st_uid and st_gid of the file.
16092
160932008-01-26 Jason Rumney <jasonr@gnu.org>
16094
16095 * w32.c (logon_network_drive): New function.
16096 (stat): Use it.
16097
160982008-01-26 Chong Yidong <cyd@stupidchicken.com>
16099
16100 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
16101 invisible text covered with an ellipsis.
16102
161032008-01-25 Richard Stallman <rms@gnu.org>
16104
16105 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
16106 jump back to beginning. Move some other initializations after that.
16107 (Qwindow_text_change_functions, Vwindow_text_change_functions):
16108 New variables.
16109 (syms_of_xdisp): Init them.
16110
16111 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
16112
16113 * buffer.c (reset_buffer_local_variables):
16114 Implement `permanent-local-hook'.
16115 (Qpermanent_local_hook): New variable.
16116 (syms_of_buffer): Init and staticpro it.
16117
161182008-01-25 Michael Albinus <michael.albinus@gmx.de>
16119
16120 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
16121
161222008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
16123
16124 * fns.c (Fclrhash): Return TABLE.
16125
161262008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16127
16128 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
16129 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
16130 is set even without positional changes.
16131 (x_scroll_bar_clear): Set bar->redraw_needed_p.
16132
16133 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
16134
161352008-01-23 Jason Rumney <jasonr@gnu.org>
16136
16137 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
16138
16139 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
16140 the unicode range available in MULE by locale-coding-system.
16141 Improve dbcs lead byte detection. Set event timestamp and modifiers
16142 earlier.
16143
161442008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16145
16146 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
16147 [MAC_OSX] (init_mac_osx_environment): Initialize it.
16148 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
16149 when used on child processes.
16150
161512008-01-21 Michael Albinus <michael.albinus@gmx.de>
16152
16153 * dbusbind.c (Fdbus_method_return_internal): Rename from
16154 Fdbus_method_return.
16155 (Fdbus_unregister_object): Move to dbus.el.
16156 (Fdbus_call_method, Fdbus_method_return_internal)
16157 (Fdbus_send_signal): Improve debug messages.
16158
161592008-01-20 Martin Rudalics <rudalics@gmx.at>
16160
16161 * undo.c (undo_inhibit_record_point): New variable.
16162 (syms_of_undo): Initialize it.
16163 (record_point): Don't record point when undo_inhibit_record_point
16164 is set.
16165
161662008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
16167
16168 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
16169
16170 * xdisp.c (Qauto_hscroll_mode): New var.
16171 (syms_of_xdisp): Initialize it.
16172 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
16173 window's buffer.
16174 (hscroll_windows): Don't check automatic_hscrolling_p here.
16175
16176 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
16177 vscroll if we're setting window-buffer to the value it already has.
16178
161792008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
16180
16181 * m/intel386.h: Remove references to XENIX.
16182
161832008-01-17 Andreas Schwab <schwab@suse.de>
16184
16185 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
16186 instead of HAVE_X86_64_LIB64_DIR.
16187 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
16188
161892008-01-17 Glenn Morris <rgm@gnu.org>
16190
16191 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
16192 to HAVE_X86_64_LIB64_DIR.
16193
161942008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
16195
16196 * s/irix3-3.h:
16197 * s/irix4-0.h:
16198 * s/386-ix.h:
16199 * s/domain.h:
16200 * s/hpux9-x11r4.h:
16201 * s/hpux9shxr4.h: Remove files for systems no longer supported.
16202
16203 * sysdep.c: Remove code containing references to symbols defined
16204 by unsupported systems.
16205
162062008-01-16 Glenn Morris <rgm@gnu.org>
16207
16208 * coding.c (select-safe-coding-system-function): Doc fix.
16209
162102008-01-15 Glenn Morris <rgm@gnu.org>
16211
16212 * config.in: Revert 2008-01-13 change: this is a generated file.
16213
162142008-01-13 Tom Tromey <tromey@redhat.com>
16215
16216 * lisp.h: Fix typo.
16217
162182008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
16219
16220 * m/sequent-ptx.h:
16221 * m/sequent.h:
16222 * s/ptx.h:
16223 * s/ptx4-2.h:
16224 * s/ptx4.h: Remove files for systems no longer supported.
16225
16226 * callproc.c (Fcall_process): Fix previous change.
16227
162282008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
16229
16230 * unexsunos4.c: Remove file, system not supported anymore.
16231
16232 * m/mips.h:
16233 * m/intel386.h:
16234 * callproc.c:
16235 * config.in:
16236 * ecrt0.c:
16237 * emacs.c:
16238 * fileio.c:
16239 * frame.c:
16240 * getpagesize.h:
16241 * keyboard.c:
16242 * lread.c:
16243 * process.c:
16244 * puresize.h:
16245 * sysdep.c:
16246 * systty.h:
16247 * syswait.h:
16248 * unexec.c:
16249 * xdisp.c:
16250 * alloc.c: Remove code containing references to symbols defined by
16251 unsupported systems.
16252
162532008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
16254
16255 * coding.c (detect_coding_mask): Fix previous change.
16256
162572008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
16258
16259 * coding.c (detect_coding_iso2022): New arg
16260 latin_extra_code_state. Allow Latin extra codes only
16261 when *latin_extra_code_state is nonzero.
16262 (detect_coding_mask): If there is a NULL byte, detect the encoding
16263 as UTF-16 or binary. If Latin extra codes exist, detect the
16264 encoding as ISO-2022 only when there's no other proper encoding is
16265 found.
16266
162672008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16268
16269 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
16270 #ifdef MAC_OS.
16271
162722008-01-08 Richard Stallman <rms@gnu.org>
16273
16274 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
16275
162762008-01-06 Nick Roberts <nickrob@snap.net.nz>
16277
16278 * keyboard.c (parse_menu_item): Don't enclose key bindings on
16279 menu bar in parentheses.
16280
162812008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
16282
16283 * m/7300.h:
16284 * m/acorn.h:
16285 * m/alliant-2800.h:
16286 * m/alliant.h:
16287 * m/alliant1.h:
16288 * m/alliant4.h:
16289 * m/altos.h:
16290 * m/amdahl.h:
16291 * m/apollo.h:
16292 * m/att3b.h:
16293 * m/aviion-intel.h:
16294 * m/aviion.h:
16295 * m/celerity.h:
16296 * m/clipper.h:
16297 * m/cnvrgnt.h:
16298 * m/convex.h:
16299 * m/cydra5.h:
16300 * m/delta88k.h:
16301 * m/dpx2.h:
16302 * m/dual.h:
16303 * m/elxsi.h:
16304 * m/f301.h:
16305 * m/gould-np1.h:
16306 * m/gould.h:
16307 * m/i860.h:
16308 * m/ibmps2-aix.h:
16309 * m/ibmrt-aix.h:
16310 * m/ibmrt.h:
16311 * m/irist.h:
16312 * m/is386.h:
16313 * m/isi-ov.h:
16314 * m/mega68.h:
16315 * m/mg1.h:
16316 * m/news-r6.h:
16317 * m/news-risc.h:
16318 * m/news.h:
16319 * m/nh3000.h:
16320 * m/nh4000.h:
16321 * m/ns16000.h:
16322 * m/ns32000.h:
16323 * m/nu.h:
16324 * m/orion.h:
16325 * m/orion105.h:
16326 * m/paragon.h:
16327 * m/pfa50.h:
16328 * m/plexus.h:
16329 * m/pyramid.h:
16330 * m/pyrmips.h:
16331 * m/sh3el.h:
16332 * m/sps7.h:
16333 * m/sr2k.h:
16334 * m/stride.h:
16335 * m/sun1.h:
16336 * m/sun2.h:
16337 * m/sun3-68881.h:
16338 * m/sun3-fpa.h:
16339 * m/sun3-soft.h:
16340 * m/sun3.h:
16341 * m/sun386.h:
16342 * m/symmetry.h:
16343 * m/tad68k.h:
16344 * m/tahoe.h:
16345 * m/targon31.h:
16346 * m/tek4300.h:
16347 * m/tekxd88.h:
16348 * m/tower32.h:
16349 * m/tower32v3.h:
16350 * m/ustation.h:
16351 * m/wicat.h:
16352 * m/xps100.h:
16353 * s/cxux.h:
16354 * s/cxux7.h:
16355 * s/dgux.h:
16356 * s/dgux4.h:
16357 * s/dgux5-4-3.h:
16358 * s/dgux5-4r2.h:
16359 * s/esix.h:
16360 * s/esix5r4.h:
16361 * s/hiuxmpp.h:
16362 * s/hiuxwe2.h:
16363 * s/iris3-5.h:
16364 * s/iris3-6.h:
16365 * s/isc2-2.h:
16366 * s/isc3-0.h:
16367 * s/isc4-0.h:
16368 * s/isc4-1.h:
16369 * s/newsos5.h:
16370 * s/newsos6.h:
16371 * s/osf1.h:
16372 * s/osf5-0.h:
16373 * s/riscix1-1.h:
16374 * s/riscix12.h:
16375 * s/sco4.h:
16376 * s/sco5.h:
16377 * s/sunos4-0.h:
16378 * s/sunos4-1.h:
16379 * s/sunos413.h:
16380 * s/sunos4shr.h:
16381 * s/umax.h:
16382 * s/unipl5-2.h:
16383 * s/xenix.h:
16384 * cxux-crt0.s:
16385 * unexapollo.c:
16386 * unexconvex.c:
16387 * unexenix.c:
16388 * unexsni.c: Remove files for systems no longer supported.
16389
16390 * m/intel386.h: Remove references to unsupported systems.
16391
16392 * w32.c (get_emacs_configuration): Remove reference to i860.
16393
16394 * sysdep.c: Remove dead code.
16395
163962008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
16397
16398 * s/rtu.h:
16399 * m/masscomp.h: Remove files. Platform is obsolete.
16400
164012008-01-04 Michael Albinus <michael.albinus@gmx.de>
16402
16403 * dbusbind.c (Fdbus_method_return): New function.
16404 (xd_read_message): Add the serial number to the event.
16405 (Fdbus_register_method): Activate the function.
16406
164072008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
16408
16409 * keyboard.c (read_key_sequence): Fix typo.
16410
164112008-01-03 Michael Albinus <michael.albinus@gmx.de>
16412
16413 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
16414 (xd_signature, xd_append_arg): Handle element type detection for
16415 empty arrays.
16416 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
16417 SDATA () calls; this must be solved more general.
16418 (Fdbus_register_signal): Use SBYTES instead of strlen.
16419
164202008-01-03 Magnus Henoch <magnus@zemdatav>
16421
16422 * dbusbind.c (xd_append_arg): Use unsigned char instead of
16423 unsigned int for byte values (necessary for big-endian platform).
16424 (Fdbus_call_method): Handle the case of no returned arguments.
16425
164262007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
16427
16428 * dbusbind.c (xd_read_message): Use non-static input_event struct.
16429
164302007-12-31 Magnus Henoch <mange@freemail.hu>
16431
16432 * dbusbind.c (xd_signature): Signature of variant is just "v".
16433
164342007-12-30 Michael Albinus <michael.albinus@gmx.de>
16435
16436 * dbusbind.c: Fix several errors and compiler warnings.
16437 Reported by Tom Tromey <tromey@redhat.com>.
16438 (XD_ERROR, XD_DEBUG_MESSAGE)
16439 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
16440 (xd_append_arg): Part for basic D-Bus types rewritten.
16441 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
16442 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
16443 appropriate.
16444 (xd_read_message): Return Qnil. Don't signal an error; it is not
16445 useful during event reading.
16446 (Fdbus_register_signal): Signal an error if the check for
16447 FUNCTIONP fails.
16448 (Fdbus_register_method): New function. The implementation is not
16449 complete, the call of the function signals an error therefore.
16450 (Fdbus_unregister_object): New function, renamed from
16451 Fdbus_unregister_signal. The initial check signals an error, if
16452 the object is not well formed.
16453
164542007-12-30 Richard Stallman <rms@gnu.org>
16455
16456 * textprop.c (get_char_property_and_overlay):
16457 Signal error if POSITION is out of range in a buffer.
16458
164592007-12-29 Martin Rudalics <rudalics@gmx.at>
16460
16461 * w32fns.c (Fx_create_frame): Make copy of frame parameters
16462 because the original parameters are in pure storage now.
16463
164642007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16465
16466 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
16467
164682007-12-22 Eli Zaretskii <eliz@gnu.org>
16469
16470 * callint.c (syms_of_callint) <command-history>: Add reference to
16471 history-length in the doc string.
16472
164732007-12-17 Jason Rumney <jasonr@gnu.org>
16474
16475 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
16476 before passing as wParam.
16477
164782007-12-22 Michael Albinus <michael.albinus@gmx.de>
16479
16480 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
16481 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
16482 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
16483 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
16484 as number.
16485 (Fdbus_call_method): Fix docstring.
16486
164872007-12-21 Michael Albinus <michael.albinus@gmx.de>
16488
16489 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
16490 New macros.
16491 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
16492 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
16493 Simplify.
16494 (xd_signature): New function.
16495 (xd_append_arg): Compute also signatures. Major rewrite.
16496 (xd_retrieve_arg): Make debug messages friendly.
16497 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
16498 Check for signatures of arguments.
16499
165002007-12-19 Michael Albinus <michael.albinus@gmx.de>
16501
16502 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
16503 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
16504 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
16505 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
16506 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
16507 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
16508 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
16509 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
16510 (xd_retrieve_value): Remove. Functionality included in ...
16511 (xd_append_arg): New function.
16512 (Fdbus_call_method, Fdbus_send_signal): Apply it.
16513
165142007-12-16 Michael Albinus <michael.albinus@gmx.de>
16515
16516 * dbusbind.c (top): Include <stdio.h>.
16517 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
16518 dbus_message_new_method_call and dbus_message_new_signal.
16519 (Fdbus_register_signal): Rename unique_name to uname.
16520 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
16521 non-existing unique name. Fix typos in matching rule. Return an
16522 object which is useful in Fdbus_unregister_signal.
16523 (Fdbus_unregister_signal): Reimplementation, in order to remove
16524 only the corresponding entry.
16525 (Vdbus_registered_functions_table): Change the order of entries.
16526 Apply these changes in xd_read_message and Fdbus_register_signal.
16527
165282007-12-16 Andreas Schwab <schwab@suse.de>
16529
16530 * fileio.c (Finsert_file_contents): Fix overflow check to not
16531 depend on undefined integer overflow.
16532
165332007-12-14 Jason Rumney <jasonr@gnu.org>
16534
16535 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
16536 for characters above 127.
16537
165382007-12-13 Jason Rumney <jasonr@gnu.org>
16539
16540 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
16541 before dereferencing array.
16542 (lookup_vk_code): Remove zero comparison.
16543
165442007-12-14 Michael Albinus <michael.albinus@gmx.de>
16545
16546 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
16547 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
16548 Use `unsigned int' instead of `uint'.
16549 (xd_read_message, Fdbus_register_signal): Split expressions into
16550 multiple lines before operators "&&" and "||", according to the
16551 GNU Coding Standards.
16552
165532007-12-14 Eli Zaretskii <eliz@gnu.org>
16554
16555 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
16556
165572007-12-12 Juri Linkov <juri@jurta.org>
16558
16559 * buffer.c (Frename_buffer): In interactive spec replace
16560 `read-buffer' with `read-string' that uses `buffer-name-history'
16561 as history, and the current buffer's name as default.
16562
165632007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
16564
16565 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
16566 manipulating the backtrace manually.
16567 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
16568 (struct backtrace, backtrace_list): Remove.
16569 (command_loop_1): Remove dead var `no_direct'.
16570
16571 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
16572 preserve non-built-in buffer-local variables.
16573 (Fkill_all_local_variables): Don't re-create&re-set permanent
16574 buffer-local variables.
16575
165762007-12-09 Juri Linkov <juri@jurta.org>
16577
16578 * buffer.c (Frename_buffer): Change interactive spec from "s" to
16579 Lisp code that uses `read-buffer' with current buffer as default.
16580
165812007-12-08 Michael Albinus <michael.albinus@gmx.de>
16582
16583 * dbusbind.c (xd_read_message): Generate an event for every
16584 registered handler. There might be several handlers registered
16585 for the same signal.
16586 (Fdbus_register_signal): Don't overwrite a registration for the
16587 same signal. Add a new registration if handlers are different.
16588 (Vdbus_registered_functions_table): Rework doc string.
16589
165902007-12-07 Michael Albinus <michael.albinus@gmx.de>
16591
16592 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
16593 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
16594 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
16595 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
16596 Unify argument lists.
16597 (xd_read_message, Fdbus_register_signal): Reorder and extend event
16598 arguments and hash table keys. Use unique name for service.
16599 (Fdbus_unregister_signal): Remove checks.
16600 (Vdbus_registered_functions_table): Fix doc string.
16601
166022007-12-05 Magnus Henoch <mange@freemail.hu>
16603
16604 * process.c (make_process): Initialize pty_flag to 0.
16605
166062007-12-05 Jason Rumney <jasonr@gnu.org>
16607
16608 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
16609 specified XBMs.
16610
166112007-12-05 Richard Stallman <rms@gnu.org>
16612
16613 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
16614
166152007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16616
16617 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
16618 New variable.
16619 (mac_try_close_socket) [MAC_OSX]: New function.
16620 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
16621 Update cfsockets_for_select. Replace invalid CFRunLoop source.
16622
16623 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
16624 Use mac_try_close_socket.
16625
166262007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16627
16628 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
16629 reloc_base.
16630 (copy_dysymtab): Compute relocation base here.
16631 (rebase_reloc_address) [__ppc64__]: New function.
16632 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
16633 changed.
16634
166352007-12-05 Jason Rumney <jasonr@gnu.org>
16636
16637 * w32proc.c (sys_spawnve): Quote args with wildcards.
16638
166392007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16640
16641 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
16642 __objc_* sections.
16643 (unrelocate) [_LP64]: Set relocation base to address of data segment.
16644
166452007-12-05 Michael Albinus <michael.albinus@gmx.de>
16646
16647 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
16648 Move check for Vdbus_registered_functions_table to
16649 xd_read_queued_messages.
16650 (xd_read_queued_messages): Protect xd_read_message calls by
16651 internal_condition_case_1.
16652
166532007-12-04 Michael Albinus <michael.albinus@gmx.de>
16654
16655 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
16656 Qdbus_system_bus and Qdbus_session_bus, respectively.
16657 (Vdbus_intern_symbols): Remove.
16658 (Vdbus_registered_functions_table): New hash table.
16659 (XD_SYMBOL_INTERN_SYMBOL): Remove.
16660 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
16661 Rewrite in order to manage registered functions by hash table
16662 Vdbus_registered_functions_table.
16663
166642007-12-03 Jan Djärv <jan.h.d@swipnet.se>
16665
16666 * xterm.c: Update URL to Window Manager Specification in comment.
16667
166682007-12-02 Michael Albinus <michael.albinus@gmx.de>
16669
16670 * config.in (HAVE_DBUS): Add.
16671
16672 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
16673 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
16674 (obj): Add $(DBUS_OBJ).
16675 (LIBES): Add $(DBUS_LIBS).
16676 (dbusbind.o): New target.
16677
16678 * dbusbind.c: New file.
16679
16680 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
16681
16682 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
16683 (Qdbus_event): New Lisp symbol.
16684 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
16685 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 16686 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
16687
16688 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
16689
166902007-12-01 Richard Stallman <rms@gnu.org>
16691
16692 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
16693
166942007-11-30 Jason Rumney <jasonr@gnu.org>
16695
16696 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
16697 (w32con_reset_terminal_modes): Clear screen buffer.
16698 (w32_face_attributes): Don't use color indexes that are out of range.
16699 Only reverse the default colors.
16700
16701 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
16702 WINDOWSNT.
16703
16704 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
16705
167062007-11-29 Jason Rumney <jasonr@gnu.org>
16707
16708 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
16709 (w32_face_attributes): Use Vtty_defined_color_alist to determine
16710 if the terminal colors are initialized.
16711 (unspecified_fg, unspecified_bg): Remove unused declarations.
16712
167132007-11-29 Andreas Schwab <schwab@suse.de>
16714
16715 * keyboard.c (apply_modifiers): Fix typo.
16716
167172007-11-29 Richard Stallman <rms@gnu.org>
16718
16719 * keymap.c (Fcurrent_local_map): Doc fix.
16720
167212007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
16722
16723 * s/gnu-kfreebsd.h: New file.
16724
167252007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
16726
16727 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
16728 Don't cast redundantly.
16729
16730 * keyboard.c (KEY_TO_CHAR): New macro.
16731 (parse_modifiers, apply_modifiers): Accept integer arguments.
16732 (read_key_sequence): Use them to unify the "shift->unshift" mapping
16733 for chars and symbol keys.
16734 After doing such remapping, apply function-key-map again.
16735
167362007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
16737
16738 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
16739 compiled anymore.
16740
167412007-11-26 Andreas Schwab <schwab@suse.de>
16742
16743 * process.c (list_processes_1): Fix indentation level of the
16744 command column.
16745
167462007-11-23 Andreas Schwab <schwab@suse.de>
16747
16748 * editfns.c (Fformat): Handle %c specially since it requires the
16749 argument to be of type int.
16750
167512007-11-23 Markus Triska <markus.triska@gmx.at>
16752
16753 * emacs.c (main): Call init_editfns before init_process, since
16754 init_process sets Vprocess_connection_type depending on OS release.
16755
167562007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
16757
16758 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
16759 (find_symbol_value): Use do_symval_forwarding.
16760
16761 * data.c (set_internal): Set the value in the `cons-cell' (for
16762 Buffer_Local_values) not only for frame-local variables.
16763
167642007-11-22 Andreas Schwab <schwab@suse.de>
16765
16766 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
16767 values to sprintf.
16768 * keymap.c (Fsingle_key_description): Likewise.
16769 * print.c (print_object): Likewise.
16770
167712007-11-22 Jan Djärv <jan.h.d@swipnet.se>
16772
16773 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
16774 file for image is nil.
16775
167762007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
16777
16778 * term.c: Include stdarg.h.
16779 (fatal): Implement using varargs.
16780 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
16781
167822007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
16783
16784 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
16785 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
16786 Update call to buffer_slot_type_mismatch.
16787 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
16788 (buffer_slot_type_mismatch): Update.
16789 * buffer.c (buffer_local_types): Remove.
16790 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
16791 (defvar_per_buffer): Set the type in the buffer_objfwd.
16792
167932007-11-21 Jason Rumney <jasonr@gnu.org>
16794
16795 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
16796 CreateFileMapping returns NULL on failure.
16797
167982007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
16799
16800 * search.c (Fset_match_data): Remove the `evaporate' feature.
16801 (unwind_set_match_data): Don't use the `evaporate' feature.
16802
168032007-11-21 Jason Rumney <jasonr@gnu.org>
16804
16805 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
16806
16807 * w32console.c (w32con_write_glyphs): Remove unused variables.
16808
168092007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
16810
16811 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
16812
16813 * s/darwin.h (MULTI_KBOARD): Remove.
16814
16815 * macfns.c (x_create_tip_frame, Fx_create_frame)
16816 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
16817
168182007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
16819
16820 * buffer.c (Fbuffer_local_value): Remove redundant test.
16821 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
16822 than in `current-buffer' to match the comment.
16823 Do the swap using swap_in_global_binding.
16824
16825 * data.c (store_symval_forwarding, set_internal):
16826 * eval.c (specbind): Remove dead code.
16827
16828 * coding.c (detect_coding, Fupdate_coding_systems_internal):
16829 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
16830 Since we do not want to see internal Lisp_*fwd objects here.
16831
168322007-11-18 Jan Djärv <jan.h.d@swipnet.se>
16833
16834 * sysdep.c (init_system_name): Use getaddrinfo if available.
16835
16836 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
16837 (x_scroll_bar_note_movement): start, end, with, height in struct
16838 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
16839
168402007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
16841
16842 * puresize.h (BASE_PURESIZE): Increase to 1190000.
16843
168442007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
16845
16846 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
16847 This undoes Richard's change of 14-Oct-2002.
16848
16849 * alloc.c (allocate_other_vector):
16850 * lisp.h (allocate_other_vector): Remove.
16851
16852 * window.c (struct save_window_data): Move non-lisp data to the end
16853 and make it `int' rather than Lisp_Object.
16854 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
16855 Done wrap/unwrap integer values.
16856 (Fset_window_configuration, compare_window_configurations):
16857 Update use of fields to their new types.
16858
16859 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
16860 Turn integer fields into `int'. Merge x_window_low and x_window_high.
16861 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
16862 (SET_SCROLL_BAR_X_WINDOW): Remove.
16863 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
16864 Access the new x_window field directly.
16865 * xterm.c (x_scroll_bar_create): Use a pseudovector.
16866 Don't wrap/unwrap integers into Lisp_Objects.
16867 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
16868 (x_scroll_bar_report_motion):
16869 Don't wrap/unwrap integers into Lisp_Objects.
16870 (x_term_init): Use SDATA.
16871 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
16872 (x_scroll_bar_set_handle, x_scroll_bar_remove)
16873 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
16874 (x_scroll_bar_report_motion, x_scroll_bar_clear):
16875 * xfns.c (x_set_background_color):
16876 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
16877 Access the new x_window field directly.
16878
16879 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
16880 (allocate_pseudovector): Make non-static.
16881
16882 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
16883 (allocate_pseudovector): Declare.
16884 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
16885
168862007-11-15 Andreas Schwab <schwab@suse.de>
16887
16888 * editfns.c (Fformat): Correctly format EMACS_INT values.
16889 Also take precision into account when formatting an integer.
16890
16891 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
16892
168932007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
16894
16895 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
16896 (syms_of_keyboard): Defsubr it.
16897
16898 * data.c (swap_in_global_binding): Fix longstanding bug where
16899 store_symval_forwarding was not called with the right second argument,
16900 thus causing objfwd-ing from being dropped.
16901
169022007-11-14 Juanma Barranquero <lekktu@gmail.com>
16903
16904 * macfns.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_backing_store)
16908 (Fx_display_visual_class, Fx_display_save_under):
16909 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
16910 (Fx_display_pixel_height, Fx_display_planes)
16911 (Fx_display_color_cells, Fx_server_max_request_size)
16912 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
16913 (Fx_display_mm_height, Fx_display_mm_width)
16914 (Fx_display_backing_store, Fx_display_visual_class)
16915 (Fw32_select_font, Fx_display_save_under):
16916 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
16917 (Fx_display_pixel_height, Fx_display_planes)
16918 (Fx_display_color_cells, Fx_server_max_request_size)
16919 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
16920 (Fx_display_save_under): Fix typos in docstrings.
16921
169222007-11-14 Juanma Barranquero <lekktu@gmail.com>
16923
16924 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
16925 corresponding to deleted entries; they are an implementation detail.
16926 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
16927 Remove variables.
16928 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
16929 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
16930 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
16931 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
16932 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
16933 (Fw32_define_rgb_color, Fw32_load_color_file)
16934 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
16935 Fix typos in docstrings.
16936 (Fx_server_version): Reflow docstring.
16937 (Fw32_shell_execute): Doc fixes.
16938
169392007-11-13 Juanma Barranquero <lekktu@gmail.com>
16940
16941 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
16942 if w32_parse_hot_key returned nil.
16943
169442007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
16945
16946 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
16947
169482007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 16949
aac0c6e3
MR
16950 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
16951
16952 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
16953
16954 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
16955 Remove W32_SCROLL_BAR_CLICK_EVENT.
16956
16957 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
16958 Add MULTIMEDIA_KEY_EVENT.
16959
16960 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
16961 (lispy_multimedia_keys) [WINDOWSNT]: New array.
16962 (make_lispy_event) [WINDOWSNT]: Use it to translate
16963 MULTIMEDIA_KEY_EVENT.
16964
16965 * w32term.h (WM_APPCOMMAND): Define if not already.
16966 (GET_APPCOMMAND_LPARAM): Likewise.
16967
16968 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
16969 WM_APPCOMMAND.
16970
16971 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
16972 (syms_of_w32fns): Export and initialize it.
16973 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
16974
169752007-11-09 Chong Yidong <cyd@stupidchicken.com>
16976
16977 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
16978 twice.
16979
16980 * xdisp.c (handle_face_prop): Fix last change.
16981
169822007-11-09 Richard Stallman <rms@gnu.org>
16983
16984 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
16985 not just for after-strings and before-strings.
16986 Call face_for_overlay_string and pass the overlay to it.
16987 (handle_display_prop): Determine whether property came from an overlay.
16988 Pass OVERLAY arg to handle_single_display_spec.
16989 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
16990 (load_overlay_strings): Fill in it->string_overlays.
16991 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
16992
16993 * xfaces.c (face_for_overlay_string): Function renamed from
16994 face_at_buffer_position_no_overlays, and add arg OVERLAY.
16995
16996 * dispextern.h (struct it): New elt string_overlays.
16997 New elt from_overlay, also in stack.
16998 Rearrange a few elements.
16999 (face_for_overlay_string): Decl renamed from
17000 face_at_buffer_position_no_overlays, and add argument.
17001
170022007-11-09 Richard Stallman <rms@gnu.org>
17003
17004 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
17005 to get the base face for an overlay string.
17006
17007 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
17008
17009 * xfaces.c (face_at_buffer_position_no_overlays): New function.
17010
17011 * xdisp.c (handle_stop): Move some code out of loop.
17012
170132007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17014
17015 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
17016 Fix conversion from Lisp object to ATSUFontID.
17017
170182007-11-09 Jason Rumney <jasonr@gnu.org>
17019
17020 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
17021
170222007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17023
17024 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
17025 Don't assume regions are aligned to page boundary.
17026 (print_load_command_name): Add LC_UUID if defined.
17027
170282007-11-09 Richard Stallman <rms@gnu.org>
17029
17030 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
17031
170322007-11-07 Jason Rumney <jasonr@gnu.org>
17033
17034 * s/windows95.h: Remove.
17035
170362007-11-06 Jan Djärv <jan.h.d@swipnet.se>
17037
17038 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
17039 abort with a message on unhandled store_type values.
17040
170412007-11-01 Jan Djärv <jan.h.d@swipnet.se>
17042
17043 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
17044 Remove HAVE_X11R5 and HAVE_X11R4.
17045
170462007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
17047
17048 * Makefile.in: Remove references to sunfns.c and sunfns.o.
17049
170502007-11-01 Johan Bockgård <bojohan@gnu.org>
17051
17052 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
17053 Don't set s->stippled_p here, since it has already been set by
17054 x_set_glyph_string_gc from x_draw_glyph_string.
17055
170562007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
17057
17058 * sunfns.c: Remove file.
17059
17060 * m/sun386.h:
17061 * m/sun2.h:
17062 * m/sparc.h: Remove Sun windows code.
17063
170642007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
17065
17066 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
17067 (init_keyboard): Set current_kboard's window-system to nil.
17068 (tty_read_avail_input): Typo.
17069 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
17070
170712007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
17072
17073 * s/usg5-4.h:
17074 * s/usg5-3.h:
17075 * s/ptx.h:
17076 * m/is386.h:
17077 * m/ibmps2-aix.h:
17078 * Makefile.in: Remove all mentions of X10.
17079
17080 * dispnew.c (syms_of_display): Don't mention version 10.
17081
170822007-10-28 Juanma Barranquero <lekktu@gmail.com>
17083
17084 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
17085 ($(BLD)/abbrev.$(O)): Remove.
17086
170872007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
17088
17089 Rewrite abbrev.c in Elisp.
17090 * image.c (Qcount): Don't declare as extern.
17091 (syms_of_image): Initialize and staticpro `Qcount'.
17092 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
17093 * emacs.c (main): Don't call syms_of_abbrev.
17094 * Makefile.in (obj): Remove abbrev.o.
17095 (abbrev.o): Remove.
17096 * abbrev.c: Remove.
17097
170982007-10-26 Martin Rudalics <rudalics@gmx.at>
17099
17100 * window.c (window_min_size_2): Don't count header-line.
17101
171022007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
17103
17104 * frame.h (struct frame): Move all bit fields after the first bit
17105 field to take advantage of the available space. Group all the
17106 chars together to reduce wasted space due to padding.
17107
171082007-10-26 Juanma Barranquero <lekktu@gmail.com>
17109
17110 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
17111
17112 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
17113 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
17114 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
17115 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
17116 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
17117 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
17118 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
17119 (last_marked, mark_object_loop_halt): Make static.
17120
17121 * frame.c (syms_of_frame) <delete-frame-functions>:
17122 Fix typo in docstring.
17123
171242007-10-25 Juanma Barranquero <lekktu@gmail.com>
17125
17126 * w32.c (init_environment): Fix tiny memory leak.
17127 (w32_get_resource): Remove unused variable `ok'.
17128
171292007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
17130
17131 Make `window-system' into a keyboard-local variable (rather than
17132 frame-local as done originally by multi-tty).
17133
17134 * keyboard.h (struct kboard): Add Vwindow_system.
17135 * keyboard.c (init_kboard): Set a default for Vwindow_system.
17136 (mark_kboards): Mark Vwindow_system.
17137
17138 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
17139 (init_display): Don't set the obsolete `window-system' frame-param.
17140
17141 * xterm.c (x_term_init):
17142 * w32term.c (w32_create_terminal):
17143 * term.c (init_tty): Set Vwindow_system.
17144 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
17145 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
17146
17147 * xfns.c (Fx_create_frame, x_create_tip_frame):
17148 * w32fns.c (Fx_create_frame, x_create_tip_frame):
17149 * macfns.c (Fx_create_frame):
17150 Don't set the obsolete `window-system' frame-param.
17151
17152 * frame.h (Qwindow_system): Remove.
17153 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
17154 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
17155
171562007-10-24 Richard Stallman <rms@gnu.org>
17157
17158 * frame.c (x_figure_window_size): For fullscreen case,
17159 set USPosition | PPosition without clobbering rest of window_prompting.
17160
17161 * keyboard.c (Fcurrent_idle_time): Doc fix.
17162
17163 * print.c (Fwith_output_to_temp_buffer): Doc fix.
17164
171652007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
17166
17167 * process.c (unwind_request_sigio): Only define if __ultrix__.
17168
17169 * callproc.c (child_setup): Remove spurious *.
17170
17171 * lisp.h (Fget_text_property): Declare.
17172 (have_menus_p): Declare it here rather than in sys-dep header files.
17173 * macterm.h (have_menus_p):
17174 * msdos.h (have_menus_p):
17175 * xterm.h (have_menus_p): Remove.
17176
17177 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
17178 (Fmake_variable_frame_local): Just check the variable's const-ness
17179 rather than checking nil or t.
17180
171812007-10-22 Jason Rumney <jasonr@gnu.org>
17182
17183 * w32fns.c: Include math.h.
17184 (w32_abort): Declaration moved to nt/config.nt.
17185
17186 * s/ms-w32.h (HAVE_STDLIB_H): Define.
17187 (abort): Redefinition moved to nt/config.nt.
17188
17189 * m/windowsnt.h: Remove.
17190
171912007-10-22 Juanma Barranquero <lekktu@gmail.com>
17192
17193 * emacs.c (Fdump_emacs): Fix typo in message.
17194 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
17195 <installation-directory>: Reflow docstring.
17196
171972007-10-22 Juri Linkov <juri@jurta.org>
17198
17199 * minibuf.c: Allow minibuffer default to be a list of default values.
17200 With empty input use the first element of this list as returned default.
17201 (string_to_object)
17202 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
17203 (read_minibuf): If defalt is cons, set histstring to its car.
17204 (Fread_string): If default_value is cons, set val to its car.
17205 (Fread_buffer): If def is cons, use its car.
17206 (Fcompleting_read): If defalt is cons, set val to its car.
17207
172082007-10-21 Michael Albinus <michael.albinus@gmx.de>
17209
17210 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
17211
172122007-10-20 Juanma Barranquero <lekktu@gmail.com>
17213
17214 * doc.c (Fdocumentation): Check for advice in all cases.
17215
172162007-10-19 Chong Yidong <cyd@stupidchicken.com>
17217
17218 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
17219
172202007-10-19 Richard Stallman <rms@gnu.org>
17221
17222 * doc.c (Fdocumentation): Check for and handle an advised function.
17223
172242007-10-19 Juanma Barranquero <lekktu@gmail.com>
17225
17226 * process.c (Fset_process_filter): Doc fix.
17227
172282007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
17229
17230 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
17231 which caused key-translation-map to applied repeatedly (thus breaking
17232 double-mode).
17233
172342007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
17235
17236 * xselect.c (x_own_selection, x_handle_selection_clear)
17237 (x_clear_frame_selections):
17238 * w32menu.c (list_of_panes, list_of_items):
17239 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
17240 * textprop.c (validate_plist, interval_has_all_properties)
17241 (interval_has_some_properties, interval_has_some_properties_list)
17242 (add_properties, text_property_list):
17243 * process.c (Fget_buffer_process, list_processes_1, status_notify):
17244 * minibuf.c (Fassoc_string):
17245 * macselect.c (x_own_selection, x_clear_frame_selections)
17246 (Fx_disown_selection_internal):
17247 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
17248 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
17249
172502007-10-17 Chong Yidong <cyd@stupidchicken.com>
17251
17252 * process.c: Link to libs for calling res_init() if available.
17253 (Fmake_network_process): Call res_init() before getaddrinfo or
17254 gethostbyname, if possible.
17255
172562007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
17257
17258 * lread.c (read1): Set pvectype for char_tables.
17259
17260 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
17261 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
17262 Add type checks.
17263 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
17264
17265 * alloc.c (free_misc): Use XMISCTYPE.
17266 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
17267
172682007-10-17 Glenn Morris <rgm@gnu.org>
17269
17270 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
17271 (syms_of_minibuf): Add Qcompletion_ignore_case.
17272 * dired.c (Qcompletion_ignore_case): Change to external.
17273 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
17274 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
17275 (Fread_file_name): Use it rather than intern'ing.
17276
17277 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
17278 (Fread_coding_system): Ignore case of user input.
17279
172802007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17281
17282 * xdisp.c (handle_display_prop): Ignore display specs after
17283 replacing one when string text is being replaced.
17284 (handle_single_display_spec): Pretend as if characters with display
17285 property haven't been consumed only when buffer text is being replaced.
17286
172872007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
17288
17289 * xfns.c (Fx_create_frame, Fx_display_list):
17290 * window.c (window_fixed_size_p, enlarge_window)
17291 (shrink_window_lowest_first):
17292 * macterm.c (init_font_name_table):
17293 * macfns.c (Fx_create_frame, Fx_display_list):
17294 * lread.c (close_load_descs):
17295 * keyboard.c (read_char_x_menu_prompt):
17296 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
17297 * coding.c (code_convert_region_unwind): Test the type of an object
17298 rather than just !NILP before extracting data from it.
17299
17300 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
17301
17302 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
17303 (XMISCANY): New macro.
17304 (XMISCTYPE): Use it.
17305 (struct Lisp_Misc_Any): New type.
17306 (union Lisp_Misc): Use it.
17307 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
17308 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
17309 (find_symbol_value, set_internal, default_value, Fset_default)
17310 (Fmake_variable_buffer_local, Fmake_local_variable)
17311 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
17312 (Flocal_variable_if_set_p, Fvariable_binding_locus):
17313 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
17314 * alloc.c (allocate_buffer): Set the size and tag.
17315 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
17316 Use XMISCANY.
17317 (die): Follow the GNU convention for error messages.
17318 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
17319 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
17320 tag any more.
17321 (set_buffer_internal_1):
17322 * frame.c (store_frame_param):
17323 * eval.c (specbind):
17324 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
17325
17326 * doc.c (Fsnarf_documentation): Simplify.
17327
173282007-10-14 Juanma Barranquero <lekktu@gmail.com>
17329
17330 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
17331 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
17332
173332007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
17334
17335 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
17336
173372007-10-14 Juanma Barranquero <lekktu@gmail.com>
17338
17339 * eval.c (do_autoload): Don't save autoloads.
17340
17341 * data.c (Ffset): Save autoload of the function being set.
17342
173432007-10-07 John Paul Wallington <jpw@pobox.com>
17344
17345 * xfns.c (x_create_tip_frame): Set the `display-type' frame
17346 parameter before setting up faces.
17347
173482007-10-13 Eli Zaretskii <eliz@gnu.org>
17349
17350 * ccl.c (Fregister_code_conversion_map):
17351 * keyboard.c (append_tool_bar_item): Reformat last change.
17352
17353 * lisp.h (eabs): Rename from `abs'. All callers changed.
17354
173552007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
17356
17357 * buffer.c (add_overlay_mod_hooklist):
17358 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
17359 * fontset.c (make_fontset):
17360 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
17361 (append_tool_bar_item):
17362 * macmenu.c (grow_menu_items):
17363 * w32menu.c (grow_menu_items):
17364 * xmenu.c (grow_menu_items): Use larger_vector.
17365
173662007-10-13 Eli Zaretskii <eliz@gnu.org>
17367
17368 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
17369 selected frame'' on MSDOS).
17370
173712007-10-12 Martin Rudalics <rudalics@gmx.at>
17372
17373 * frame.c (Qexplicit_name): New variable.
17374 (x_report_frame_params): Report it in parameter alist.
17375 (syms_of_frame): Intern and staticpro it.
17376
173772007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
17378
17379 * macfns.c (x_create_tip_frame): Set terminal for frame.
17380
173812007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
17382
17383 * frame.c (Qenvironment): Remove.
17384 (syms_of_frame) <Qenvironment>: Don't initialize.
17385 (Fdelete_frame): Don't treat the `environment' param specially.
17386 * frame.h (Qenvironment): Don't declare.
17387 * callproc.c (set_initial_environment): Don't set unused frame param.
17388
17389 * frame.c (Fframe_with_environment): Remove.
17390 (syms_of_frame) <Sframe_with_environment>: Don't declare.
17391
17392 * lisp.h (Fframe_with_environment): Don't declare.
17393
173942007-10-10 Juanma Barranquero <lekktu@gmail.com>
17395
17396 * indent.c (indent_tabs_mode, last_known_column)
17397 (last_known_column_modified): Make static.
17398 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
17399
174002007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
17401
17402 * puresize.h (BASE_PURESIZE): Increase to 1170000.
17403
174042007-10-09 Jason Rumney <jasonr@gnu.org>
17405
17406 * w32term.c (x_set_window_size): Disable code that attempts to tell
17407 Lisp code about a size change before it actually happens.
17408
174092007-10-09 Richard Stallman <rms@gnu.org>
17410
17411 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
17412 return HANDLED_RETURN.
17413
174142007-10-08 Martin Rudalics <rudalics@gmx.at>
17415
17416 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
17417 when there's an unread command event.
17418
17419 * frame.c (focus_follows_mouse): Move here from frame.el to allow
17420 window autoselection act appropriately when leaving selected frame.
17421 (syms_of_frame): Initialize focus_follows_mouse.
17422 * frame.h (focus_follows_mouse): Extern it.
17423 * macterm.c (XTread_socket): When focus_follows_mouse is nil
17424 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
17425 * msdos.c (dos_rawgetc): Likewise.
17426 * w32term.c (w32_read_socket): Likewise.
17427 * xterm.c (handle_one_xevent): Likewise.
17428 * xdisp.c (syms_of_xdisp): In doc-string of
17429 mouse-autoselect-window mention focus-follows-mouse.
17430
174312007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17432
17433 * macterm.c (mac_load_query_font): Fix missing return value.
17434 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
17435 Add BLOCK_INPUT.
17436
174372007-10-08 Richard Stallman <rms@gnu.org>
17438
17439 * xdisp.c (get_window_cursor_type): Implement documented behavior
17440 for cursor-in-non-selected-windows = t.
17441
174422007-10-08 Jason Rumney <jasonr@gnu.org>
17443
17444 * w32.c (w32_get_resource): Always close registry keys.
17445
174462007-10-08 Jason Rumney <jasonr@gnu.org>
17447
17448 * makefile.w32-in (LIBS): Add COMCTL32.
17449
17450 * w32fns.c (globals_of_w32fns): Init common controls.
17451
174522007-10-08 Richard Stallman <rms@gnu.org>
17453
17454 * image.c (our_memory_buffer): Rename from omfib_buffer.
17455
174562007-10-08 Richard Stallman <rms@gnu.org>
17457
17458 * buffer.c (Foverlays_at): Doc fix.
17459
174602007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
17461
17462 * fns.c (Fplist_put): Preserve uneven tail data.
17463
174642007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
17465
17466 * termhooks.h (enum event_kind): Remove trailing comma.
17467
17468 * frame.h (enum): Remove trailing comma.
17469
174702007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
17471
17472 * w32proc.c (delete_child): Don't terminate threads of zombies.
17473
174742007-10-08 Martin Rudalics <rudalics@gmx.at>
17475
17476 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
17477
17478 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
17479 last-repeatable-command.
17480 (init_kboard): Initialize Vlast_repeatable_command.
17481 (command_loop_1): Set it to real_this_command unless that was
17482 bound to an input event.
17483 (mark_kboards): Mark it.
17484
174852007-10-08 Richard Stallman <rms@gnu.org>
17486
17487 * eval.c (condition-case): Doc fix.
17488
174892007-10-08 Masatake YAMATO <jet@gyve.org>
17490
17491 * xfaces.c (tty_supports_face_attributes_p): Fix code
17492 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
17493 was copied and not edited.
17494
174952007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
17496
17497 Add new `input-decode-map' keymap and use it for terminal
17498 escape sequences.
17499 * keyboard.h (struct kboard): Add Vinput_decode_map.
17500 Remove Vlocal_key_translation_map.
17501 * keyboard.c (read_key_sequence): Add support for input-decode-map.
17502 (init_kboard): Init input-decode-map.
17503 Replace local-key-translation-map back with key-translation-map.
17504 (syms_of_keyboard): Declare input-decode-map.
17505 Remove local-key-translation-map. Update docstrings.
17506 (mark_kboards): Mark Vinput_decode_map.
17507 Don't mark Vlocal_key_translation_map.
17508 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
17509 Replace local-key-translation-map back with key-translation-map.
17510 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
17511 Bind in input-decode-map rather than function-key-map.
17512
17513 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
17514 This was made redundant by the previous introduction of XSETPVECTYPE.
17515
175162007-10-09 Richard Stallman <rms@gnu.org>
17517
17518 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
17519
175202007-09-29 Richard Stallman <rms@gnu.org>
17521
17522 * eval.c (internal_condition_case_2, internal_condition_case_1)
17523 (internal_condition_case): Reenable abort if x_catching_errors ()
17524 to see if that really happens and why.
17525
175262007-10-06 Andreas Schwab <schwab@suse.de>
17527
17528 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
17529
175302007-10-04 Juanma Barranquero <lekktu@gmail.com>
17531
17532 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
17533
175342007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
17535
17536 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
17537
175382007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
17539
17540 * window.h (struct window):
17541 * window.c (struct save_window_data, struct saved_window):
17542 * termhooks.h (struct terminal):
17543 * process.h (struct Lisp_Process):
17544 * frame.h (struct frame):
17545 * buffer.h (struct buffer):
17546 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
17547 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
17548 The size field of (pseudo)vectors is now unsigned.
17549 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
17550
17551 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
17552 Turn `count' into an integer.
17553
17554 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
17555 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
17556 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
17557 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
17558 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
17559
17560 * alloc.c (allocate_pseudovector): New fun.
17561 (ALLOCATE_PSEUDOVECTOR): New macro.
17562 (allocate_window, allocate_terminal, allocate_frame)
17563 (allocate_process): Use it.
17564 (mark_vectorlike): New function.
17565 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
17566 (mark_terminals): Use it.
17567 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
17568 (Fmake_byte_code): Use XSETPVECTYPE.
17569
17570 * frame.c (Fframe_parameters): Minor simplification.
17571
17572 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
17573
17574 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
17575
17576 * buffer.c (Fget_buffer_create, init_buffer_once):
17577 * lread.c (defsubr):
17578 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
17579
17580 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
17581 defined differently in the m/*.h files.
17582 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
17583 (XSETPVECTYPE): New macro.
17584 (XSETPSEUDOVECTOR): Use it.
17585
17586 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
17587 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
17588
17589 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
17590 * lread.c (defvar_per_buffer):
17591 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
17592
17593 * window.c (candidate_window_p): Only consider as visible frames that
17594 are on the same terminal.
17595
17596 * m/ibms390x.h (MARKBIT): Remove unused macro.
17597
175982007-10-01 Juanma Barranquero <lekktu@gmail.com>
17599
17600 * lread.c (Fload): Fix typo in docstring.
17601
176022007-10-01 Michaël Cadilhac <michael@cadilhac.name>
17603
17604 * floatfns.c (Fexpt): Manually check for overflows, so that a power
17605 of a non-zero value can't yield zero.
17606
176072007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
17608
17609 * term.c (term_clear_mouse_face, term_mouse_highlight)
17610 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
17611
17612 * print.c (safe_debug_print): Use XHASH.
17613
17614 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
17615 Lisp elements such as tags.
17616 (XHASH): New macro.
17617 (EQ): Use it.
17618 (SREF, SSET, STRING_COPYIN): Use SDATA.
17619 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
17620
17621 * alloc.c (mark_terminal): Remove left-over declaration.
17622 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
17623 (allocate_vectorlike): Remove type argument. Adjust callers.
17624 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
17625 Only handle the one remaining MEM_TYPE_VECTORLIKE.
17626
17627 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
17628 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
17629 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
17630 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
17631 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
17632 Use them.
17633
17634 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
17635 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
17636 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
17637
176382007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
17639
17640 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
17641 loaded by default.
17642
176432007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
17644
17645 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
17646 on this tty.
17647 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
17648
17649 * term.c (mouse_face_window): Rename from Qmouse_face_window.
17650 Update all users.
17651 (handle_one_term_event): Use Gpm_DrawPointer.
17652 (Fgpm_mouse_start): Rename from Fterm_open_connection.
17653 Signal errors instead of returning nil. Always return nil.
17654 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
17655 Make it a noop if gpm-mouse was not activated.
17656 (syms_of_term): Update names.
17657
176582007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
17659
17660 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
17661 (init_sys_modes): Check that gpm_tty is the current tty.
17662
17663 * alloc.c (allocate_terminal): Set the vector size to only count the
17664 lisp fields. Initialize those to nil.
17665 (mark_object): Don't treat terminals specially.
17666 (mark_terminal): Remove.
17667 (mark_terminals): Use mark_object instead.
17668
17669 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
17670 the GC to the beginning.
17671
17672 * indent.h:
17673 * indent.c: Use EMACS_INT for ints coming from Elisp data.
17674
17675 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
17676
176772007-09-25 Jason Rumney <jasonr@gnu.org>
17678
17679 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
17680
17681 * w32console.c (create_w32cons_output): Remove.
17682
17683 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
17684
17685 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
17686 (reset_sys_modes): Use reset_terminal_modes_hook.
17687
176882007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
17689
17690 * eval.c (do_autoload): Don't output any message.
17691
176922007-09-24 Juri Linkov <juri@jurta.org>
17693
17694 * emacs.c (standard_args): Change priority of "--no-splash"
17695 from 40 to 3. Add "--no-desktop" with the same priority.
17696
176972007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
17698
17699 * alloc.c (gc_sweep): Check cons cell mark bits word by word
17700 and optimize the case where they are all 1.
17701
177022007-09-23 Johannes Weiner <hannes@saeurebad.de>
17703
17704 * lisp.h (abs): Define if not defined.
17705 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
17706 Don't define `abs', since it's defined in lisp.h.
17707
177082007-09-22 Eli Zaretskii <eliz@gnu.org>
17709
17710 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
17711 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
17712 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
17713 (init_tty): Use DEV_TTY instead of "/dev/tty".
17714 [WINDOWSNT]: No need to protect from NAME arg being null.
17715
177162007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
17717
17718 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
17719 up the tty state.
17720
177212007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
17722
17723 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
17724 (gpm_tty): Change its type.
17725 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
17726 (gpm_tty): Change its type and initialize it.
17727 (Fterm_open_connection): Check the frame is indeed a tty.
17728 Use the new gpm_tty.
17729 (Fterm_close_connection): Use the new gpm_tty.
17730 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
17731 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
17732
177332007-09-21 Juanma Barranquero <lekktu@gmail.com>
17734
17735 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
17736 underline_color, to draw strike-through.
17737
177382007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
17739
17740 * lisp.h (allocate_terminal): Declare.
17741
17742 * window.c (candidate_window_p): Consider frames that are being placed
17743 by the user as somewhere between visible and iconified.
17744 (window_loop): Prefer windows on the current frame.
17745 (Fselect_window): Move the use of select-frame to the beginning so we
17746 can just delegate all the work (it'll call us back anyway).
17747
17748 * frame.c (Qdisplay_environment_variable):
17749 * frame.h (Qdisplay_environment_variable): Delete.
17750
17751 * .gdbinit (xbacktrace): Print the arg's address rather than the value
17752 of the first arg, since that value may be a union.
17753
17754 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
17755 parameter rather than Qdisplay_environment_variable. If all else
17756 fails, look for DISPLAY in initial-environment.
17757
177582007-09-21 Glenn Morris <rgm@gnu.org>
17759
17760 * Makefile.in (emacstool): Remove target.
17761 (lisp, shortlisp): Remove termdev.elc.
17762
177632007-09-21 Markus Triska <markus.triska@gmx.at>
17764
17765 * xterm.c (x_delete_display): Compile session management conditionally.
17766
177672007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
17768
17769 * callproc.c (getenv_internal_1): New function.
17770 (getenv_internal): Use it.
17771 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
17772
17773 * terminal.c (get_terminal): Don't accept ints to represent terminals.
17774 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
17775 (Fset_terminal_parameter): Work with dead terminals as well.
17776 (Fmodify_terminal_parameters): Remove.
17777
17778 * terminal.c (get_terminal): Handle terminals.
17779 Make sure the terminal returned is live.
17780 (create_terminal): Use allocate_terminal.
17781 (mark_terminals): Move to alloc.c.
17782 (delete_terminal): Use terminal->name as liveness status.
17783 NULL out fields after freeing their contents.
17784 Don't deallocate the object.
17785 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
17786 rather than an int.
17787 (Fterminal_live_p): Accept non-integer arguments.
17788 (Fterminal_list): Return terminal objects rather than an ints.
17789
17790 * alloc.c (enum mem_type): New member for `terminal' objects.
17791 (allocate_terminal): New function.
17792 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
17793 Handle terminals.
17794 (mark_terminal): New fun.
17795 (mark_terminals): Move from terminal.c.
17796
17797 * term.c (get_tty_terminal): Don't treat output_initial specially.
17798 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
17799 (delete_tty): Use terminal->name as liveness status.
17800
17801 * termhooks.h (struct terminal): Make it into a pseudovector.
17802 Remove `deleted' replaced by checking `name's nullness.
17803
17804 * print.c (print_object): Handle terminals.
17805
17806 * lisp.h (enum pvec_type): New `terminal' pseudovector.
17807 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
17808
17809 * frame.c (make_terminal_frame):
17810 * keyboard.c (tty_read_avail_input):
17811 * w32term.c (x_delete_terminal):
17812 * xfns.c (Fx_create_frame, x_create_tip_frame):
17813 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
17814
178152007-09-20 Glenn Morris <rgm@gnu.org>
17816
17817 * process.c (Fmake_network_process): Doc fix.
17818
178192007-09-19 Jason Rumney <jasonr@gnu.org>
17820
17821 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
17822
178232007-09-19 Michaël Cadilhac <michael@cadilhac.name>
17824
17825 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
17826 Fix a C warning regarding variable constness.
17827
17828 * xterm.c (handle_one_xevent): Fix a C warning.
17829
178302007-09-18 Jason Rumney <jasonr@gnu.org>
17831
17832 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
17833
178342007-09-17 Jan Djärv <jan.h.d@swipnet.se>
17835
17836 * gtkutil.c (gdpy_def): New variable.
17837 (xg_initialize): Initialize gdpy_def.
17838 (xg_display_close): If no other display exists, set gdpy_def to a
17839 new connection.
17840
178412007-09-16 Jan Djärv <jan.h.d@swipnet.se>
17842
17843 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
17844 when we have no file name for the icon.
17845 (xg_tool_bar_expose_callback): Remove.
17846 (xg_create_tool_bar): Don't connect expose signal to
17847 xg_tool_bar_expose_callback.
17848 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
17849
178502007-09-16 Andreas Schwab <schwab@suse.de>
17851
17852 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
17853 values instead of zapping them.
17854
178552007-09-14 Glenn Morris <rgm@gnu.org>
17856
17857 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
17858 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
17859 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
17860 scope and rename to omfib_buffer for clarity.
17861 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
17862
178632007-09-14 Kenichi Handa <handa@m17n.org>
17864
17865 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
17866
178672007-09-13 Jason Rumney <jasonr@gnu.org>
17868
17869 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
17870
17871 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
17872
17873 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
17874 (mac_term_init): Call here instead, passing rif.
17875
178762007-09-13 Glenn Morris <rgm@gnu.org>
17877
17878 * s/hpux.h: No longer define `static' as nothing.
17879
178802007-09-13 Johan Bockgård <bojohan@gnu.org>
17881
17882 * callint.c (Fcall_interactively): Remove unused var `fun'.
17883
178842007-09-12 Romain Francoise <romain@orebokech.com>
17885
17886 * window.c (prefer_window_split_horizontally, display_buffer):
17887 Revert 2007-09-08 change.
17888
178892007-09-12 Glenn Morris <rgm@gnu.org>
17890
17891 * alloca.c: Remove file.
17892 * Makefile.in (alloca): Do not undef.
17893 (allocaobj, alloca.o): Remove.
17894 (otherobj): Remove allocaobj.
17895 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
17896 * regex.c (C_ALLOCA): Remove all references and code that was only
17897 used when this was defined.
17898 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
17899 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
17900 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
17901
17902 * Makefile.in (SOURCES, unlock, relock): Delete.
17903
17904 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
17905 (menu_grab_callback): All uses changed.
17906
17907 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
17908 (x_reply_selection_request): All uses changed.
17909
179102007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
17911
17912 * lread.c (load_warn_old_style_backquotes): Change message to look
17913 better when it appears in the middle of byte-compiler messages.
17914
179152007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
17916
17917 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
17918
17919 * xterm.c (x_create_terminal): Add comment.
17920
17921 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
17922
179232007-09-10 Richard Stallman <rms@gnu.org>
17924
17925 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
17926
179272007-09-10 Michaël Cadilhac <michael@cadilhac.name>
17928
17929 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
17930 (DEFUN): Document `intspec', use it instead of `prompt'.
17931
17932 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
17933
17934 * data.c (Finteractive_form): If the interactive specification starts
17935 with a `(', use it as a Lisp form.
17936
17937 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
17938 name and file modes.
17939
17940 * callint.c (Fcall_interactively): Comment fixes.
17941
179422007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
17943
17944 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
17945 and compiled functions.
17946
179472007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
17948
17949 * window.c (prefer_window_split_horizontally): New variable.
17950 (display_buffer): Consider splitting window horizontally depending
17951 on prefer_window_split_horizontally.
17952
179532007-09-08 Eli Zaretskii <eliz@gnu.org>
17954
17955 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
17956
179572007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
17958
17959 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
17960
17961 * frame.c (x_set_frame_parameters): Check number is positive before
17962 using XFASTINT.
17963
17964 * window.c (freeze_window_start): Don't presume selected_window holds
17965 a window object.
17966 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
17967
179682007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
17969
17970 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
17971
179722007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
17973
17974 * window.c (Vsplit_window_preferred_function): New var.
17975 (Fdisplay_buffer): Use it.
17976 (syms_of_window): Export, and initialize it.
17977
179782007-09-06 Pixel <pixel@mandriva.com> (tiny change)
17979
17980 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
17981
179822007-09-06 Glenn Morris <rgm@gnu.org>
17983
17984 * gtkutil.c (menu_grab_callback) <cnt>:
17985 * xselect.c (x_reply_selection_request) <cnt>: Move static
17986 variable to file scope.
17987
179882007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
17989
17990 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
17991 consistent values of selected_frame and selected_window.
17992
179932007-09-04 Jason Rumney <jasonr@gnu.org>
17994
17995 * w32console.c (initialize_w32_display): Zero unused hooks.
17996
179972007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
17998
17999 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
18000 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
18001
180022007-09-04 Jason Rumney <jasonr@gnu.org>
18003
18004 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
18005 in w32console.c. Set up input. Remove XXX comments that have been
18006 confirmed as correct.
18007
18008 * s/ms-w32.h (MULTI_KBOARD): Define.
18009
18010 * w32console.c (one_and_only_w32cons): Remove.
18011 (initialize_w32_display): Take terminal argument.
18012
18013 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
18014 initialize_w32_display.
18015 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
18016
18017 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
18018
18019 * keyboard.c (discard_mouse_events): Discard it.
18020 (make_lispy_event): Translate it to a lisp event.
18021 (lispy_wheel_names): Add wheel-left and right events.
18022 (syms_of_keyboard): Enlarge wheel_syms.
18023
18024 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
18025 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
18026
18027 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
18028
18029 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
18030 from WM_MOUSEHWHEEL.
18031 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
18032
18033 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
18034 terminal.
18035
18036 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
18037 keyboard for the terminal.
18038
180392007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
18040
18041 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
18042 (Vresume_tty_hook): Rename from Vresume_tty_functions.
18043 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
18044 and resume-tty-function to resume-tty-hook.
18045 (Fsuspend_tty, Fresume_tty): Use new names.
18046
180472007-09-02 Jan Djärv <jan.h.d@swipnet.se>
18048
18049 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
18050 if it starts with "n:".
18051
180522007-08-31 Jan Djärv <jan.h.d@swipnet.se>
18053
18054 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
18055
180562007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
18057
18058 * frame.h:
18059 * frame.c (Qterm_environment_variable): Remove.
18060 (syms_of_frame): Don't init and staticpro it.
18061
18062 * callproc.c (getenv_internal): Remove special case for $TERM.
18063
18064 * callproc.c (Vinitial_environment): New variable.
18065 (set_initial_environment): Initialize it.
18066 (syms_of_callproc): Declare it.
18067 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
18068 TERM under which a process runs is never related to the TERM in which
18069 Emacs is running.
18070
180712007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
18072
18073 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
18074 * s/darwin.h: ... do it here.
18075
180762007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
18077
18078 * lisp.h (set_initial_environment): Rename from set_global_environment.
18079
18080 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
18081 removed by mistake on the multi-tty branch.
18082
18083 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
18084 (Fmodify_frame_parameters): Return a value.
18085
18086 * image.c (png_load): Comment-out var only used in commented-out code.
18087
18088 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
18089 before passing it to mark_object.
18090
18091 * xfaces.c (internal_resolve_face_name): Return a value.
18092 (internal_resolve_face_name, resolve_face_name_error): Comment out.
18093
18094 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
18095 (x_icon): Comment-out var only used in commented-out code.
18096
180972007-08-29 Romain Francoise <romain@orebokech.com>
18098
18099 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
18100 QUIT hasn't been provided.
18101
181022007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
18103
18104 * callproc.c (child_setup, getenv_internal): Use the
18105 display-environment-variable and term-environment-variable frame params.
18106 (set_initial_environment): Initialise Vprocess_environment.
18107
18108 * config.in: Disable multi-keyboard support on a mac.
18109
18110 * frame.c (Qterm_environment_variable)
18111 (Qdisplay_environment_variable): New variables.
18112 (syms_of_frame): Intern and staticpro them.
18113 (Fmake_terminal_frame): Disable output method test.
18114
18115 * frame.h: Declare them here.
18116
18117 * macfns.c (x_set_mouse_color): Get rif from the frame.
18118 (x_set_tool_bar_lines): Don't use updating_frame.
18119 (mac_window): Add 2 new parameters for consistency with other systems.
18120 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
18121 frame parameters following what is done in X11 and w32. Don't use
18122 FRAME_MAC_DISPLAY_INFO.
18123 (Fx_open_connection, start_hourglass): Remove window-system check.
18124 (x_create_tip_frame): Get the keyboard from the terminal.
18125
18126 * macmenu.c: Reorder includes.
18127 (Fx_popup_menu): Use terminal specific mouse_position_hook.
18128
18129 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
18130 terminal parameter.
18131 (x_clear_frame): Add a frame parameter.
18132 (note_mouse_movement): Get rif from the frame.
18133 (mac_term_init): Initialize the terminal.
18134 (mac_initialize): Make static and move terminal initialization ...
18135 (mac_create_terminal): ... to this new function.
18136
18137 * macterm.h (struct mac_display_info): Add terminal.
18138 (mac_initialize): Delete declaration.
18139
18140 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
18141
18142 * sysdep.c: Comment out text after #endif.
18143
18144 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
18145 is defined. Better initialize ttys in windows. Use terminal
18146 specific mouse_position_hook.
18147
18148 * termhooks.h (union display_info): Add mac_display_info.
18149
18150 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
18151 Set the default minibuffer frame, window_system and the rest of the
18152 frame parameters following what is done in X11.
18153
18154 * w32term.c (w32_initialize): Make static.
18155
18156 * xselect.c (x_handle_selection_clear): Only access
18157 terminal->kboard when MULTI_KBOARD is defined.
18158
18159 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
18160 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
18161
181622007-08-29 Jason Rumney <jasonr@gnu.org>
18163
18164 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
18165 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
18166
18167 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
18168 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
18169
18170 * keyboard.c (restore_kboard_configuration): Only define when
18171 MULTI_KBOARD defined.
18172
18173 * makefile.w32-in: Update dependancies from Makefile.in.
18174 (OBJ1): Add terminal.$(O)
18175
18176 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
18177 Don't define function body.
18178 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
18179
18180 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
18181
18182 * w32.c (request_sigio, unrequest_sigio): Remove.
18183
18184 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
18185 (w32con_clear_frame, w32con_clear_end_of_line)
18186 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
18187 (w32con_delete_glyphs, w32con_set_terminal_window)
18188 (scroll_line, w32_sys_ring_bell): Add frame arg.
18189 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
18190 Add terminal arg.
18191 (PICK_FRAME): Remove.
18192 (w32con_write_glyphs): Use frame specific terminal coding.
18193 (one_and_only_w32cons): New global variable.
18194 (initialize_w32_display): Use it for storing hooks.
18195 (create_w32cons_output): New function.
18196
18197 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
18198 arg a frame.
18199
18200 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
18201 Set window_system.
18202 (x_set_tool_bar_lines): Don't use updating_frame.
18203 (Fx_create_frame): Set terminal and ref count.
18204 (Fx_open_connection): Remove window-system check.
18205
18206 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
18207
18208 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
18209 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
18210 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
18211 Add frame arg.
18212 (x_delete_terminal, w32_create_terminal): New functions.
18213 (w32_term_init): Create a terminal.
18214 (w32_initialize): Move terminal specific initialization to
18215 w32_create_terminal.
18216
18217 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
18218 (w32_clear_rect, w32_clear_area): Use background from frame.
18219 (w32_display_info): Add terminal.
18220 (w32_sys_ring_bell, x_delete_display): Declare here.
18221
18222 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
18223
18224 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
18225
182262007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
18227
18228 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
18229 Fix get_named_tty calls for the controlling tty.
18230
182312007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
18232
18233 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
18234
182352007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
18236
18237 * term.c (tty_insert_glyphs): Add missing first parameter.
18238
182392007-08-29 Károly Lőrentey <karoly@lorentey.hu>
18240
18241 * buffer.c (Fbuffer_list, Fbury_buffer):
18242 Take frame->buried_buffer_list into account.
18243
18244 * cm.c (current_tty): New variable, for cmputc().
18245 (cmputc): Use it.
18246 (cmcheckmagic): Add tty parameter, look up terminal streams there.
18247 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
18248 (cmgoto): Add tty parameter. Pass it on to calccost().
18249 Use emacs_tputs() instead of tputs().
18250
18251 * cm.h (emacs_tputs): New macro to set current_tty, and then call
18252 tputs().
18253 (current_tty): New variable, for cmputc().
18254 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
18255
18256 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
18257 (internal_condition_case, internal_condition_case_1)
18258 (internal_condition_case_2): Don't abort when x_catching_errors.
18259
18260 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
18261 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
18262 prevent crashes caused by bogus longjmps in read_char.
18263
18264 * keymap.h (Fset_keymap_parent): Add EXFUN.
18265
18266 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
18267 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
18268 Remove redundant definition.
18269
18270 * macfns.c (x_set_mouse_color, x_make_gc):
18271 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
18272
18273 * w32term.c (x_free_frame_resources):
18274 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
18275 (w32_initialize): Use the accessor macros for terminal characteristics.
18276
18277 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
18278 Use the accessor macros for terminal characteristics.
18279 * msdos.c (internal_terminal_init): Use the accessor macros for
18280 terminal characteristics.
18281 (ScreenVisualBell, internal_terminal_init):
18282 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
18283
18284 * termopts.h (no_redraw_on_reenter): Declare.
18285
18286 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
18287 (mark_terminals, mark_ttys): Declare.
18288 (Fgarbage_collect): Call them.
18289 (mark_object): Mark buried_buffer_list.
18290
18291 * prefix-args.c: Include stdlib.h for exit.
18292
18293 * syssignal.h: Add comment.
18294
18295 * indent.c: Include stdio.h.
18296
18297 * window.h (Vinitial_window_system): Declare.
18298 (Vwindow_system): Delete declaration.
18299
18300 * fontset.c (Finternal_char_font): Use FRAME_RIF.
18301
18302 * image.c (lookup_image): Don't initialize `c' until the xasserts
18303 have been run.
18304
18305 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
18306 FRAME_FOREGROUND_PIXEL.
18307
18308 * print.c (print_preprocess): Don't lose print_depth levels while
18309 iterating.
18310
18311 * widget.c (update_from_various_frame_slots):
18312 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
18313
18314 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
18315 frames.
18316 (window_internal_height): Remove bogus make_number call.
18317 (init_window_once): Call make_terminal_frame with two zero parameters.
18318
18319 * fileio.c (Fread_file_name): Update comment.
18320
18321 * callint.c (Fcall_interactively):
18322 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
18323 Make sure it is correctly unwound.
18324
18325 * xsmfns.c (x_session_close): New function.
18326
18327 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
18328 Delete declarations.
18329
18330 * xterm.h: Remove declaration for x_fully_uncatch_errors.
18331 (x_output): Remove background_pixel and foreground_pixel fields.
18332 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
18333 (x_delete_device, x_session_close): Declare.
18334
18335 * lread.c: Include setjmp.h. Update declaration of `read_char'.
18336 (read_filtered_event): Call `read_char' with a local
18337 `wrong_kboard_jmpbuf'.
18338
18339 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
18340 Don't call single_kboard_state. Use FRAME_RIF.
18341
18342 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
18343 systems.
18344
18345 * lisp.h (set_process_environment): Rename to `set_global_environment'.
18346 (Fframe_with_environment, Fset_input_meta_mode)
18347 (Fset_quit_char): EXFUN.
18348 (x_create_device, tty_output, terminal, tty_display_info): Declare.
18349 (init_sys_modes, reset_sys_modes): Update prototypes.
18350 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
18351
18352 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
18353 Vlocal_key_translation_map, and Vkeyboard_translate_table.
18354 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
18355 Delete declarations.
18356 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
18357 (temporarily_switch_to_single_kboard, tty_read_avail_input):
18358 New declarations.
18359
18360 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
18361 already does that during init_display(). Call syms_of_keymap
18362 before syms_of_keyboard. Call `syms_of_terminal'.
18363 Call set_initial_environment, not set_process_environment.
18364 (shut_down_emacs): Call reset_all_sys_modes() instead of
18365 reset_sys_modes().
18366
18367 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
18368 (internal_resolve_face_name, resolve_face_name_error): New functions.
18369 (resolve_face_name): Protect against loops and errors thrown by Fget.
18370 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
18371 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
18372
18373 * scroll.c: Replace CURTTY() with local variables throughout the
18374 file (where applicable).
18375 (calculate_scrolling, calculate_direct_scrolling)
18376 (scrolling_1, scroll_cost): Use the accessor macros for terminal
18377 characteristics.
18378
18379 * keymap.c (Vfunction_key_map): Remove.
18380 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
18381 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
18382 (Vkey_translation_map): Remove.
18383 (syms_of_keymap): Remove DEFVAR for key-translation-map.
18384 (Fdescribe_buffer_bindings)
18385 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
18386 Update for terminal-local key-translation-map.
18387
18388 * Makefile.in (callproc.o): Update dependencies.
18389 (lisp, shortlisp): Add termdev.elc.
18390 (obj): Add terminal.o.
18391 (terminal.o): Add dependencies.
18392 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
18393 (data.o, fns.o): Add termhooks.h dependency.
18394 (SOME_MACHINE_LISP): Add dnd.elc.
18395 (minibuf.o): Fix typo.
18396 Update dependencies.
18397
18398 * data.c (do_symval_forwarding, store_symval_forwarding)
18399 (find_symbol_value): Use the selected frame's keyboard, not
18400 current_kboard.
18401
18402 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
18403 Vwindow_system.
18404
18405 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
18406 Fmenu_bar_open.
18407 (syms_of_xmenu): Update defsubr.
18408 (mouse_position_for_popup, Fx_popup_menu)
18409 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
18410 (set_frame_menubar, free_frame_menubar)
b97439ce 18411 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
18412 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
18413 an X frame.
18414
18415 * xselect.c (x_own_selection): Abort if not an X frame.
18416 (some_frame_on_display): Check if it is an X frame.
18417 (x_handle_selection_clear): Deal with MULTI_KBOARD.
18418
18419 * coding.c: Include frame.h and termhooks.h.
18420 (terminal_coding, keyboard_coding): Delete.
18421 (Fset_terminal_coding_system_internal)
18422 (Fset_keyboard_coding_system_internal)
18423 (Fkeyboard_coding_system)
18424 (Fterminal_coding_system): Add a terminal parameter.
18425 Get terminal_coding from the terminal.
18426 (init_coding_once): Don't call setup_coding_system here.
18427
18428 * dispextern.h (set_scroll_region, turn_off_insert)
18429 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
18430 (tty_clear_end_of_line, tty_setup_colors)
18431 (delete_tty, updating_frame)
18432 (produce_special_glyphs, produce_glyphs, write_glyphs)
18433 (insert_glyphs): Remove.
18434 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
18435 (tty_turn_off_highlight, get_tty_size): Add declaration.
18436 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
18437
18438 * frame.h (enum output_method): Add output_initial.
18439 (struct x_output): Delete.
18440 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
18441 Access foreground_pixel and background_pixel directly from the frame.
18442 (tty_display): Delete.
18443 (struct frame): Add buried_buffer_list, foreground_pixel,
18444 background_pixel and terminal. Delete kboard.
18445 (union output_data): Add tty.
18446 (FRAME_KBOARD): Get the kboard from the terminal.
18447 (FRAME_INITIAL_P): New macro.
18448 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
18449 (Qterm_environment_variable, Qdisplay_environment_variable)
18450 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
18451 New declarations.
18452
18453 * termchar.h (tty_output, tty_display_info): New structures.
18454 (tty_list): Declare.
18455 (FRAME_TTY, CURTTY): New macros.
18456 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
18457 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
18458 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
18459 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
18460
18461 * callproc.c: Include frame.h and termhooks.h, for terminal
18462 parameters.
18463 (add_env): New function.
18464 (child_setup): Use it.
18465 (child_setup, getenv_internal): Handle the new Vprocess_environment.
18466 (getenv_internal): Fix get_terminal_param call.
18467 (Fgetenv_internal, egetenv): Update doc.
18468 (syms_of_callproc): Initialize Vprocess_environment to nil.
18469 Register and initialize them. Remove obsolete defvars. Update doc
18470 strings.
18471 (child_setup): Handle Vlocal_environment_variables.
18472 (getenv_internal): Add terminal parameter.
18473 Handle Vlocal_environment_variables.
18474 (Fgetenv_internal): Add terminal parameter.
18475 (child_setup, getenv_internal, Fgetenv_internal): Store the local
18476 environment in a frame (not terminal) parameter. Update doc strings.
18477 (set_initial_environment): Rename from set_global_environment.
18478 Store Emacs environment in initial frame parameter.
18479
18480 * xdisp.c (redisplay_internal): Update references to
18481 `previous_terminal_frame'.
18482 (display_mode_line, Fformat_mode_line): Replace calls to
18483 `push_frame_kboard' with `push_kboard'.
18484 (get_glyph_string_clip_rects): Add extra parentheses and
18485 braces to prevent compiler warnings.
18486 (calc_pixel_width_or_height): Add xassert to check that the
18487 frame is alive. Don't call `lookup_image' on a termcap frame.
18488 (message2_nolog, message3_nolog, redisplay_internal)
18489 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
18490 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
18491 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
18492 (Fx_display_pixel_width, Fx_display_pixel_height)
18493 (Fx_display_planes, Fx_display_color_cells)
18494 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
18495 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
18496 (Fx_display_backing_store, Fx_display_visual_class)
18497 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
18498 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
18499
18500 * xfns.c (x_set_foreground_color x_set_background_color)
18501 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
18502 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
18503 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
18504 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
18505 terminal that is being deleted.
18506 (Fx_create_frame): Use `store_frame_param' to set `window-system'
18507 frame parameter, and make sure it overrides any user-supplied setting.
18508 (Fx_close_connection, Fx_synchronize): Unify argument names with
18509 the rest of the DEFUNs.
18510
18511 * dispnew.c (Fsend_string_to_terminal): Update call to
18512 `get_tty_terminal'.
18513 (Fredraw_frame, Fsend_string_to_terminal)
18514 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
18515 FRAME_TERMCAP_P and FRAME_TTY.
18516 (window_change_signal): Don't believe width/height values that are
18517 impossibly small.
18518 (Vinitial_window_system): Rename from Vwindow_system.
18519 (termscript, Wcm, rif): Delete.
18520
18521 * termhooks.h (struct terminal): New struct containing the
18522 previously global text display hooks and new members NAME,
18523 DELETED and PARAM_ALIST.
18524 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
18525 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
18526 (FRAME_RIF): New macros.
18527 (get_terminal_param, get_device): New declarations.
18528 (termscript): Delete declaration.
18529
18530 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
18531 (XTflash, x_free_frame_resources, x_scroll_bar_create)
18532 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
18533 FRAME_FOREGROUND_PIXEL.
18534 (x_fully_uncatch_errors): Disable definition.
18535 (x_scroll_bar_expose): Fix reference to foreground pixel.
18536 (XTread_socket): Disable loop on all X displays.
18537 (x_delete_terminal): Don't set terminal->deleted and let
18538 delete_terminal delete the frames on the terminal.
18539 (x_delete_display): Doc update to reflect changes in
18540 delete_terminal.
18541 (x_display_info) <terminal>: Move member earlier in the struct.
18542 (deleting_tty): Remove old variable.
18543 (Fsuspend_tty): Call clear_tty_hooks.
18544 (Fresume_tty, init_tty): Call set_tty_hooks.
18545 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
18546 errors on X frames.
18547 (x_catch_errors_unwind): Abort if x_error_message is NULL.
18548 (handle_one_xevent): Initialize `f' to NULL.
18549 (x_delete_terminal, x_create_terminal): New functions.
18550 (XTset_terminal_modes, XTreset_terminal_modes)
18551 (XTread_socket, x_connection_closed, x_term_init)
18552 (x_term_init, x_delete_display): Add terminal parameter.
18553 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
18554 X connections.
18555
18556 * frame.c: Include termchar.h.
18557 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
18558 (Qwindow_system, Qenvironment, Qterm_environment_variable)
18559 (Qdisplay_environment_variable): New vars.
18560 (Fframep): Deal with output_initial.
18561 (Fframe-live-p): Doc fix.
18562 (Fwindow-system): New function.
18563 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
18564 (make_terminal_frame): Don't create frames on a terminal that is
18565 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
18566 (store_frame_param): Check for found_for_frame before calling XFRAME.
18567 (Fmake_terminal_frame): Handle NULL tty names correctly.
18568 (syms_of_frame): Enhance doc string of `default-frame-alist'.
18569 (Fdelete_frame): Remove unused variable `count'. Don't allow other
18570 frames to refer to a deleted frame in their 'environment parameter.
18571 (Fframe_with_environment): New function.
18572 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
18573 (get_future_frame_param): New function.
18574 (Fmake_terminal_frame): Use it.
18575 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
18576
18577 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
18578 * sysdep.c (reset_sys_modes): Update for renames.
18579
18580 * keyboard.c (tty_read_avail_input): New function.
18581 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
18582 (syms_of_keyboard): Defsubr them.
18583 (Fset_input_meta_mode, Fset_quit_char): New functions.
18584 (Fset_input_mode): Split to above functions.
18585 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
18586 parameter. Use it in call to `read_char'.
18587 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
18588 Set wrong_kboard_jmpbuf correctly in recursive calls.
18589 Use current_kboard to access Vkeyboard_translate_table.
18590 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
18591 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
18592 Update longjmp invocations. Remember the original current_kboard,
18593 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
18594 changes it. Comment out unnecessary calls to
18595 `record_single_kboard_state' and `any_kboard_state'.
18596 Update recursive calls.
18597 (wrong_kboard_jmpbuf): Remove global variable.
18598 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
18599 Handle deleted interrupted_kboards correctly; that is a legal
18600 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
18601 and read_char calls. Abort if interrupted_kboard died in read_char.
18602 (any_kboard_state, single_kboard_state)
18603 (push_frame_kboard): Remove function.
18604 (pop_kboard): Switch out of single_kboard mode if the kboard has
18605 been deleted. Remove unused variable. Help debugging by not
18606 changing current_kboard unnecessarily. Set current_kboard to the
18607 kboard of the selected frame when the stored kboard object has
18608 been deleted before pop_kboard.
18609 (temporarily_switch_to_single_kboard): Change first parameter to a
18610 frame pointer. Throw an error when caller wants to change kboards
18611 while in single_kboard mode. Don't push_kboard if we weren't in
18612 single kboard state. Don't pop_kboard if we popped into any
18613 kboard state.
18614 (restore_kboard_configuration): Abort if pop_kboard changed the
18615 kboard in single_kboard mode. Call pop_kboard only after setting
18616 up single_kboard mode.
18617 (Frecursive_edit): Switch to single_kboard mode only in nested
18618 command loops.
18619 (cmd_error, command_loop, command_loop_1, timer_check):
18620 Comment out unnecessary call to `any_kboard_state' and
18621 `record_single_kboard_state'.
18622 (delete_kboard): Exit single_kboard mode if we have just deleted
18623 that kboard. Use FRAME_KBOARD.
18624 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
18625 `fatal_error_signal'.
18626 (record_single_kboard_state): Don't push_kboard if we weren't in
18627 single kboard state. Don't pop_kboard if we popped into any
18628 kboard state.
18629 (push_frame_kboard): Rename to push_kboard.
18630 (kbd_buffer_get_event): Use FRAME_TERMINAL.
18631 (read_avail_input): Read input from all terminals.
18632 (mark_kboards): Also mark Vkeyboard_translate_table.
18633 (kbd_buffer_store_event_hold): Simplify condition.
18634 (read_key_sequence): Reinitialize fkey and keytran at each replay.
18635 (Vkeyboard_translate_table): Move to struct kboard.
18636 (init_kboard): Initialize Vkeyboard_translate_table.
18637 (syms_of_keyboard): Use DEFVAR_KBOARD to define
18638 Vkeyboard_translate_table. Update doc strings. Update docs of
18639 local-function-key-map and function-key-map.
18640
18641 * terminal.c: New file.
18642
18643 * term.c: Include errno.h.
18644 (Vring_bell_function, device_list, initial_device)
18645 (next_device_id, ring_bell, update_begin, update_end)
18646 (set_terminal_window, cursor_to, raw_cursor_to)
18647 (clear_to_end, clear_frame, clear_end_of_line)
18648 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
18649 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
18650 (syms_of_term): Move their initialization to terminal.c.
18651 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
18652 (Ftty_display_color_cells)
18653 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
18654 (clear_tty_hooks, set_tty_hooks)
18655 (init_tty, maybe_fatal): New functions.
18656 (Ftty_type): Return nil if terminal is not on a tty instead of
18657 throwing an error. Doc update.
18658 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
18659 Doc update. Initialize new subrs and variables.
18660 (delete_tty): Use terminal->deleted.
18661 (tty_set_terminal_modes): Rename from set_terminal_modes.
18662 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
18663 (set_scroll_region): Rename to `tty_set_scroll_region'.
18664 (turn_on_insert): Rename to `tty_turn_on_insert'.
18665 (turn_off_insert): Rename to `tty_turn_off_insert'.
18666 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
18667 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
18668 (toggle_highligh): Rename to `tty_toggle_highlight'.
18669 (background_highlight): Rename to `tty_background_highlight'.
18670 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
18671 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
18672 (tty_set_scroll_region, tty_background_highlight)
18673 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
18674 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
18675 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
18676 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
18677 Add static modifier.
18678 (tty_reset_terminal_modes, tty_set_terminal_window)
18679 (tty_set_scroll_region, tty_background_highlight)
18680 (tty_highlight_if_desired, tty_cursor_to)
18681 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
18682 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
18683 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
18684 renames.
18685
186862007-08-28 Jan Djärv <jan.h.d@swipnet.se>
18687
18688 * keyboard.c: Qrtl is new.
18689 (parse_tool_bar_item): Handle :rtl keyword.
18690 (syms_of_keyboard): Intern :rtl keyword.
18691
18692 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
18693
18694 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
18695 so no Lisp code is executed.
18696 (file_for_image, find_rtl_image): New functions.
18697 (xg_get_image_for_pixmap): Use file_for_image.
18698 (update_frame_tool_bar): If direction is RTL, use RTL image if
18699 defined. Use Gtk stock images if defined.
18700
187012007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18702
18703 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
18704 for nonexistent or zero-width glyph in composition glyph.
18705
187062007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
18707
18708 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
18709
18710 * xdisp.c (Finvisible_p): New function.
18711 (syms_of_xdisp): defsubr it.
18712
187132007-08-24 Juanma Barranquero <lekktu@gmail.com>
18714
18715 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
18716 Doc fixes.
18717
187182007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18719
18720 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
18721
187222007-08-24 Martin Rudalics <rudalics@gmx.at>
18723
18724 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
18725 whether decoding has modified buffer contents.
18726
187272007-08-24 Jason Rumney <jasonr@gnu.org>
18728
18729 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
18730 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
18731 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
18732 (init_svg_functions) [HAVE_NTGUI]: New function.
18733 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
18734 (svg_load_image): Use them.
18735 (svg_load_image) [HAVE_NTGUI]: Implement background.
18736
187372007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18738
18739 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
18740 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
18741 (LIBX): Remove @RSVG_LIBS@.
18742 (LIBES): Add $(RSVG_LIBS).
18743
18744 * image.c (svg_load_image): Blend with specified background if exists.
18745 Use IMAGE_BACKGROUND. Add Mac OS Support.
18746
18747 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
18748 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
18749 Remove macros.
18750 [MAC_OSX] (socket_callback): Do nothing.
18751 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
18752 ReceiveNextEvent.
18753 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
18754 socket_callback.
18755 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
18756
187572007-08-22 Glenn Morris <rgm@gnu.org>
18758
18759 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
18760
187612007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
18762
18763 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
18764
18765 * image.c: Add support for SVG images. Some additional comments
18766 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
18767 (svg_image_p): New function to test for SVG image.
18768 (svg_load): New function to load SVG image.
18769 (svg_load_image): New function, helper for svg_load.
18770 (Qsvg): New Lisp_object.
18771 (svg_keyword_index): New enum.
18772 (svg_format): New static `image_keyword' struct.
18773 (svg_type): New static `image_type' struct.
18774 (librsvg/rsvg.h): Include it.
18775
187762007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
18777
18778 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
18779
187802007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
18781
18782 * lread.c (Qold_style_backquotes): New var.
18783 (syms_of_lread): Init and staticpro it.
18784 (load_warn_old_style_backquotes): New fun.
18785 (Fload): Use them to warn about old style backquotes.
18786 (end_of_file_error, Fload): Remove unused vars.
18787
18788 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
18789
18790 * lread.c (Vold_style_backquotes): New var.
18791 (syms_of_lread): Init and export it to Elisp.
18792 (read1): Set it when we find an old-style (back)quote.
18793
187942007-08-22 Jason Rumney <jasonr@gnu.org>
18795
18796 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
18797
187982007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
18799
18800 * puresize.h (BASE_PURESIZE): Increase to 1140000.
18801
188022007-08-19 Richard Stallman <rms@gnu.org>
18803
18804 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
18805
188062007-08-19 Andreas Schwab <schwab@suse.de>
18807
18808 * alloc.c (pure): Round PURESIZE up.
18809
188102007-08-17 Jan Djärv <jan.h.d@swipnet.se>
18811
18812 * xterm.c (handle_one_xevent): Remove check that mouse click is in
18813 active frame.
18814
188152007-08-16 Richard Stallman <rms@gnu.org>
18816
18817 * eval.c (Fcommandp): Add parens to clarify.
18818
18819 * minibuf.c (Fall_completions): Use enum for type of table.
18820
18821 * emacs.c (USAGE2): Improve text.
18822
188232007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
18824
18825 * term.c (tty_default_color_capabilities): Declare static
18826 variables in file scope, to avoid HPUX compiler problem.
18827
188282007-08-13 Jan Djärv <jan.h.d@swipnet.se>
18829
18830 * gtkutil.c (update_frame_tool_bar): Use -1 as index
18831 to gtk_toolbar_insert.
18832
188332007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
18834
18835 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
18836
18837 * insdel.c (reset_var_on_error): New fun.
18838 (signal_before_change, signal_after_change):
18839 Use it to reset (after|before)-change-functions to nil in case of error.
18840 Bind inhibit-modification-hooks to t.
18841 Don't bind (after|before)-change-functions to nil while they run.
18842
188432007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18844
18845 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
18846 filling pixmap with stippled background.
18847
188482007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18849
18850 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
18851 Don't use invisible frame as parent window for repositioning.
18852
188532007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
18854
18855 * print.c (new_backquote_output): Rename from old_backquote_output.
18856 (print): Inverse its logic (according to its name) so as to match the
18857 behavior of new_backquote_flag in lread.c.
18858
188592007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18860
18861 * gmalloc.c (posix_memalign): New function.
18862
18863 * macterm.c (frame_highlight, frame_unhighlight): Don't call
18864 ActivateControl/DeactivateControl here.
18865 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
18866 frame-notice-user-settings is non-nil.
18867 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
18868 for kEventParamFMFontStyle.
18869 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
18870 mac_pass_command_to_system and mac_pass_control_to_system here.
18871 (XTread_socket): Call ActivateControl/DeactivateControl here.
18872 (XTread_socket) [TARGET_API_MAC_CARBON]:
18873 Check mac_pass_command_to_system and mac_pass_control_to_system here.
18874 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
18875 for window repositioning.
18876
188772007-08-08 Glenn Morris <rgm@gnu.org>
18878
18879 * Replace `iff' in doc-strings and comments.
18880
188812007-08-07 Chong Yidong <cyd@stupidchicken.com>
18882
18883 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
18884
188852007-08-07 Martin Rudalics <rudalics@gmx.at>
18886
18887 * fileio.c (Finsert_file_contents): Run format-decode and
18888 after_insert_file_functions on entire buffer when REPLACE is
18889 non-nil and inhibit modification_hooks and point_motion_hooks.
18890 For consistency, run after_insert_file_functions iff something
18891 got inserted. Move signal_after_change and update_compositions
18892 after code running after_insert_file_functions. Make sure that
18893 undo_list doesn't record intermediate steps of the decoding process.
18894
188952007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18896
18897 * emacs.c (main)
18898 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
18899 Call malloc_enable_thread on interactive startup.
18900
18901 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
18902 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
18903 [USE_PTHREAD]: Conditionalize with it.
18904 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
18905 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
18906 New functions.
18907
189082007-08-06 Chong Yidong <cyd@stupidchicken.com>
18909
18910 * xdisp.c (redisplay_window): When restoring original buffer
18911 position, make sure it is still valid.
18912
18913 * image.c (png_load): Ignore png-supplied background color.
18914
189152007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18916
18917 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
18918 Use kCFAbsoluteTimeIntervalSince1970.
18919
18920 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
18921 New variable.
18922 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
18923 event loop should be quit.
18924 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
18925 Quit dialog event loop if quit_dialog_event_loop is set.
18926
18927 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
18928 (Selection): New typedef. Use instead of ScrapRef.
18929 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
18930 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
18931 (mac_clear_selection): Rename from clear_scrap.
18932 (get_flavor_type_from_symbol): New argument SEL and subsume function of
18933 scrap_has_target_type. All uses changed.
18934 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
18935 (mac_selection_has_target_p): New functions.
18936 (mac_put_selection_value): Rename from put_scrap_string.
18937 (mac_get_selection_value): Rename from get_scrap_string.
18938 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
18939 (put_scrap_private_timestamp, scrap_has_target_type)
18940 (get_scrap_private_timestamp): Remove functions.
18941 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
18942 (x_own_selection, x_get_local_selection):
18943 Use mac_valid_selection_value_p.
18944 (x_own_selection): Don't use put_scrap_private_timestamp.
18945 Record OWNERSHIP-INFO into Vselection_alist instead.
18946 (x_get_local_selection): Don't check type if request is local.
18947 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
18948 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
18949
189502007-08-04 Jan Djärv <jan.h.d@swipnet.se>
18951
18952 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
18953 add comment explaining why.
18954
189552007-08-03 Richard Stallman <rms@gnu.org>
18956
18957 * fileio.c (Fvisited_file_modtime): Use make_time.
18958
189592007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
18960
18961 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
18962 build.
18963
189642007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
18965
18966 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
18967
189682007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
18969
18970 * puresize.h (BASE_PURESIZE): Increase to 1130000.
18971
189722007-07-30 Richard Stallman <rms@gnu.org>
18973
18974 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
18975
189762007-07-29 Jan Djärv <jan.h.d@swipnet.se>
18977
18978 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
18979
189802007-07-28 Nick Roberts <nickrob@snap.net.nz>
18981
18982 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
18983 remote default-directory.
18984
18985 * buffer.c (mode-line-format): Update doc string.
18986
189872007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18988
18989 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
18990 scroll bar gap.
18991 (x_scroll_bar_create): Set bar->fringe_extended_p.
18992 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
18993 on frame edge. Check fringe background extension. Don't clear
18994 extended fringe background area.
18995
18996 * w32term.h (struct scroll_bar): New member fringe_extended_p.
18997 (w32_fill_area): Enclose multiple statements with do ... while (0).
18998
18999 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
19000 Extend fringe background to scroll bar gap.
19001 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
19002 Set bar->fringe_extended_p.
19003 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
19004 Put leftmost/rightmost scroll bars on frame edge. Check fringe
19005 background extension. Don't clear extended fringe background area.
19006
19007 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
19008 New member fringe_extended_p.
19009
190102007-07-25 Glenn Morris <rgm@gnu.org>
19011
19012 * Relicense all FSF files to GPLv3 or later.
19013
19014 * COPYING: Switch to GPLv3.
19015
190162007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
19017
19018 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
19019
19020 * data.c (Finteractive_form): Check for the presence of an
19021 `interactive-form' symbol property more thoroughly.
19022
19023 * data.c (Finteractive_form): Use an `interactive-form' property if
19024 present, analogous to the function-documentation property.
19025
190262007-07-24 Jason Rumney <jasonr@gnu.org>
19027
19028 * w32fns.c (x_real_positions): Get real position from OS instead of
19029 calculating it.
19030
190312007-07-23 Jason Rumney <jasonr@gnu.org>
19032
19033 * filelock.c (current_lock_owner): Allow for @ sign in username.
19034
190352007-07-22 Nick Roberts <nickrob@snap.net.nz>
19036
19037 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
19038 remote default-directory.
19039
19040 * buffer.c (mode-line-format): Describe above case in doc string.
19041
190422007-07-20 Eli Zaretskii <eliz@gnu.org>
19043
19044 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
19045 Define if not defined.
19046
190472007-07-18 Jason Rumney <jasonr@gnu.org>
19048
19049 * w32proc.c (w32_executable_type): Handle 64 bit executables.
19050
190512007-07-18 Richard Stallman <rms@gnu.org>
19052
19053 * data.c (Fsetq_default): Doc fix.
19054
19055 * eval.c (Fsetq): Doc fix.
19056
190572007-07-18 Juanma Barranquero <lekktu@gmail.com>
19058
19059 * coding.c (Ffind_operation_coding_system):
19060 * eval.c (For, Fand): Doc fixes.
19061 Reported by Johan Bockgård.
19062
190632007-07-18 Jan Djärv <jan.h.d@swipnet.se>
19064
19065 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
19066
19067 * xterm.h: Declare x_ewmh_activate_frame.
19068
19069 * xterm.c (x_ewmh_activate_frame): New function.
19070 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
19071
190722007-07-17 Martin Rudalics <rudalics@gmx.at>
19073
19074 * window.c (Fdisplay_buffer): If largest or LRU window is the
19075 only window, split it even if it is not eligible for splitting.
19076 This restores the original behavior broken by the 2007-07-15
19077 change.
19078
190792007-07-17 Glenn Morris <rgm@gnu.org>
19080
19081 * abbrev.c (abbrev_check_chars): New function.
19082 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
19083 Call abbrev_check_chars to check abbrev characters are word
19084 constituents. Doc fix.
19085
190862007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
19087
19088 * process.c (Fstart_process, Fmake_network_process)
19089 (read_process_output): Fix up last changes.
19090
190912007-07-16 Eli Zaretskii <eliz@gnu.org>
19092
19093 * makefile.w32-in (clean): Don't delete *~.
19094
190952007-07-16 Andreas Schwab <schwab@suse.de>
19096
19097 * window.c (Fdisplay_buffer): Use NILP.
19098 (Fset_window_scroll_bars): Likewise.
19099
191002007-07-15 Martin Rudalics <rudalics@gmx.at>
19101
19102 * window.c (window_min_size_2): New function.
19103 (window_min_size_1, size_window, Fdisplay_buffer)
19104 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
19105 windows without mode- or header-lines when window-min-height is
19106 too small.
19107 (size_window): Reset nodelete_p after testing it, following an
19108 earlier note by Kim F. Storm.
19109 (display_buffer): Do not set split_height_threshold to twice the
19110 value of window_min_height to avoid changing the value of a
19111 customizable variable. Rather explicitly check whether the
19112 height of the window that shall be splitted is at least as large
19113 as split_height_threshold.
19114 (Fwindow_full_width_p): New defun.
19115 (syms_of_window): Defsubr it.
19116
19117 * window.h: Add EXFUN for Fwindow_full_width_p.
19118
191192007-07-14 Jason Rumney <jasonr@gnu.org>
19120
19121 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
19122
191232007-07-14 Richard Stallman <rms@gnu.org>
19124
19125 * eval.c (maybe_call_debugger): New function.
19126 (find_handler_clause): Use maybe_call_debugger.
19127 Call it when the handler says `debug'.
19128 Eliminate DEBUGGER_VALUE_PTR.
19129 (Fsignal): Eliminate debugger_value.
19130 (Qdebug): New variable.
19131 (syms_of_eval): Initialize it.
19132
191332007-07-14 Juanma Barranquero <lekktu@gmail.com>
19134
19135 * eval.c (Fprogn):
19136 * keyboard.c (Ftrack_mouse):
19137 * print.c (Fwith_output_to_temp_buffer):
19138 * window.c (Fsave_window_excursion): Doc fix.
19139
191402007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
19141
19142 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
19143
191442007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
19145
19146 * process.h (struct Lisp_Process): Turn slots infd, outfd,
19147 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
19148 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
19149 read_output_delay, and read_output_skip from Lisp_Objects to ints.
19150 Remove unused encoding_carryover.
19151 * process.c: Adjust all functions accordingly.
19152
191532007-07-12 Richard Stallman <rms@gnu.org>
19154
19155 * term.c: Include unistd.h only if HAVE_UNISTD_H.
19156
191572007-07-11 Jason Rumney <jasonr@gnu.org>
19158
19159 * makefile.w32-in (LIBS): Include OLE32.
19160
19161 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
19162 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
19163
191642007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
19165
19166 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
19167 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
19168 from a Lisp_Object into a bare pointer.
19169 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
19170 Adjust the code correspondingly.
19171
19172 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
19173
19174 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
19175 (term_show_mouse_face): Remove unused var `j'.
19176 (handle_one_term_event): Remove unused vars `i' and `j'.
19177 Don't cast return value of ttyname since it's not necessary.
19178
191792007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
19180
19181 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
19182 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
19183
19184 * fns.c (map_char_table): Use an array of int for `indices' rather than
19185 an array of Lisp_Objects (which are only ever integers anyway).
19186 (Fmap_char_table): Update caller.
19187 * lisp.h: Update prototype.
19188 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
19189 * fontset.c (Ffontset_info):
19190 * casetab.c (set_case_table): Update callers.
19191
19192 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
19193
19194 * keymap.c (struct accessible_keymaps_data)
19195 (struct where_is_internal_data): New structures.
19196 (accessible_keymaps_1, where_is_internal_1): Use them to change
19197 interface to adhere to the one used by map_keymap.
19198 (Faccessible_keymaps, where_is_internal): Use map_keymap.
19199 (accessible_keymaps_char_table, where_is_internal_2): Remove.
19200
19201 * keymap.h (map_keymap_function_t): More informative prototype.
19202
192032007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
19204
19205 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
19206 (looking_at_1): Don't change search_regs and last_thing_searched
19207 if `inhibit-changing-match-data' is non-nil.
19208 (string_match_1, search_buffer, set_search_regs): Likewise.
19209 (syms_of_search): Add Lisp level definition for
19210 `inhibit-changing-match-data' and set it to nil.
19211 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
19212 start and end of the match, instead of using values in search_regs.
19213
192142007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
19215
19216 * minibuf.c (Fcompleting_read): New value `confirm-only'
19217 for `require-match'.
19218
192192007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
19220
19221 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
19222 part of the 2007-06-27 change to syms_of_fileio.
19223
192242007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19225
19226 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
19227 Check WINDOWP before using XWINDOW. Consolidate return statements.
19228
192292007-06-27 Richard Stallman <rms@gnu.org>
19230
19231 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
19232
192332007-06-27 Juanma Barranquero <lekktu@gmail.com>
19234
19235 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
19236
192372007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19238
19239 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
19240 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
19241 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
19242 (_free_internal, memalign): Use them.
19243 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
19244 Initialize to PTHREAD_MUTEX_INITIALIZER.
19245 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
19246 (morecore_nolock): Rename from morecore. All uses changed.
19247 Use only nolock versions of internal allocation functions.
19248 (_malloc_internal_nolock, _realloc_internal_nolock)
19249 (_free_internal_nolock): New functions created from
19250 _malloc_internal, _realloc_internal, and _free_internal.
19251 (_malloc_internal, _realloc_internal, _free_internal): Use them.
19252 Copy hook value to automatic variable before its use.
19253 (memalign): Copy hook value to automatic variable before its use.
19254
192552007-06-26 Kenichi Handa <handa@m17n.org>
19256
19257 * coding.c (Ffind_operation_coding_system): Docstring improved.
19258 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
19259
192602007-06-25 David Kastrup <dak@gnu.org>
19261
19262 * keymap.c (Fcurrent_active_maps): Add `position' argument.
19263 (Fwhere_is_internal): Adjust call to `current-active-maps' to
19264 cater for additional parameter.
19265
19266 * keymap.h: Adjust number of parameters to `current-active-maps'.
19267
19268 * doc.c (Fsubstitute_command_keys): Adjust call of
19269 `current-active-maps'.
19270
192712007-06-25 David Kastrup <dak@gnu.org>
19272
19273 * callint.c (Fcall_interactively): Make the parsing of interactive
19274 specs somewhat more readable.
19275
192762007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19277
19278 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
19279 to scroll bar gap also when bitmap fills fringe. Draw only foreground
19280 if extended background has already been filled.
19281
192822007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19283
19284 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
19285 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
19286
19287 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
19288 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
19289 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
19290 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
19291 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
19292 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
19293 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
19294 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
19295 Run timers during dialog popup.
19296 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
19297
192982007-06-21 Jason Rumney <jasonr@gnu.org>
19299
19300 * image.c (convert_mono_to_color_image): Swap fore and background.
19301
193022007-06-20 Jason Rumney <jasonr@gnu.org>
19303
19304 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
19305 (w32_free_bdf_font): Unmap memory not handle.
19306
193072007-06-20 Sam Steingold <sds@gnu.org>
19308
19309 * gmalloc.c (__morecore): Fix the declaration to comply with the
19310 definition.
19311
193122007-06-20 Juanma Barranquero <lekktu@gmail.com>
19313
19314 * w32term.c (w32_delete_display): Remove leftover declaration.
19315 (w32_define_cursor, w32_initialize): Make static.
19316
19317 * w32.c (_wsa_errlist): Fix typo in error message.
19318 (init_environment): Ignore any environment variable from the
19319 registry having a null value.
19320
193212007-06-20 Glenn Morris <rgm@gnu.org>
19322
19323 * Makefile.in (LIBGIF): Default to -lgif.
19324
193252007-06-17 Jason Rumney <jasonr@gnu.org>
19326
19327 * w32menu.c (add_menu_item): Don't use multibyte string functions on
19328 unicode strings.
19329
193302007-06-16 Juanma Barranquero <lekktu@gmail.com>
19331
19332 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
19333 Fix typo in docstring.
19334
193352007-06-16 Eli Zaretskii <eliz@gnu.org>
19336
19337 * w32menu.c (add_menu_item): Escape `&' characters in menu items
19338 and their keybindings.
19339
193402007-06-15 Chong Yidong <cyd@stupidchicken.com>
19341
19342 * composite.c (update_compositions): Fix last fix.
19343
193442007-06-14 Jason Rumney <jasonr@gnu.org>
19345
19346 * w32.c (get_process_times_fn): New function pointer.
19347 (globals_of_w32): Intialize it if present in kernel32.dll.
19348 (w32_get_internal_run_time): New function.
19349
19350 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
19351
193522007-06-14 Kenichi Handa <handa@etlken.m17n.org>
19353
19354 * composite.c (update_compositions): Check the validness of
19355 compositions.
19356
193572007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19358
19359 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
19360 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
19361
19362 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
19363 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
19364
19365 * macgui.h (USE_MAC_TOOLBAR): New define.
19366
19367 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
19368 Return immediately unless popup is activated.
19369
19370 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
19371 background to scroll bar gap.
19372 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
19373 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
19374 scroll bars on frame edge. Check fringe background extension.
19375 Don't clear extended fringe background area.
19376 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
19377 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
19378 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
19379 [USE_MAC_TOOLBAR]: New macros.
19380 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
19381 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
19382 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
19383 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
19384 [USE_MAC_TOOLBAR]: New functions.
19385 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
19386 manually if previous repositioning has failed.
19387 (mac_handle_keyboard_event): Use precomputed event kind.
19388 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
19389 as tool bar item click. Handle mouse movement over tool bar items.
19390
19391 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
19392 toolbar_win_gravity.
19393 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
19394 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
19395 Add externs.
19396
19397 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
19398 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
19399
194002007-06-14 Chong Yidong <cyd@stupidchicken.com>
19401
19402 * image.c (search_image_cache): Remove unused variable.
19403
194042007-06-13 Chong Yidong <cyd@stupidchicken.com>
19405
19406 * xfns.c, xmenu.c: Link to xaw3d if available.
19407
194082007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19409
19410 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
19411 frame_foreground and frame_background.
19412
19413 * image.c (lookup_image): Save frame foreground and background colors.
19414 (search_image_cache): Check if saved and current frame colors match.
19415
194162007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
19417
19418 * regex.c (regex_compile): Remove the `regnum' counter.
19419 Use bufp->re_nsub instead. Add support for \(?N:RE\).
19420
194212007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
19422
19423 * term.c: Include intervals.h to declare Fget_text_property.
19424
194252007-06-10 Jason Rumney <jasonr@gnu.org>
19426
19427 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
19428
194292007-06-08 Juanma Barranquero <lekktu@gmail.com>
19430
19431 * callint.c (Fcall_interactively):
19432 * editfns.c (Fdelete_and_extract_region):
19433 * fileio.c (Fread_file_name):
19434 * fns.c (Fmapconcat):
19435 * keyboard.c (cmd_error_internal):
19436 * keymap.c (Fkey_description):
19437 * lread.c (openp):
19438 * minibuf.c (read_minibuf):
19439 * search.c (wordify):
19440 * sunfns.c (sel_read):
19441 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
19442 * xfns.c (x_default_scroll_bar_color_parameter):
19443 * xmenu.c (menu_help_callback):
19444 * xselect.c (Fx_get_atom_name):
19445 * xterm.c (x_term_init): Use empty_unibyte_string.
19446
194472007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
19448
19449 * alloc.c (init_strings): Initialize canonical empty strings.
19450 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
19451 canonical empty string when the requested size is 0.
19452
19453 * emacs.c (empty_unibyte_string): Rename from empty_string.
19454 (empty_multibyte_string): New canonical empty string.
19455 (syms_of_emacs): Don't initialize empty_string.
19456
19457 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
19458 string, if appropriate.
19459 (empty_unibyte_string, empty_multibyte_string): New externs.
19460 (empty_string): Remove extern.
19461
19462 * lread.c (syms_of_lread): Use empty_unibyte_string.
19463
194642007-06-07 Jason Rumney <jasonr@gnu.org>
19465
19466 * s/ms-w32.h: Don't define HAVE_TZNAME.
19467
19468 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
19469
194702007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19471
19472 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
19473
19474 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
19475 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
19476
19477 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
19478 Don't call next handler.
19479 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
19480 Remove argument. Install handler to application.
19481 (set_frame_menubar): Don't change deep_p.
19482 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
19483 FRAME_OUTER_TO_INNER_DIFF_Y.
19484 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
19485 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
19486 [HAVE_DIALOGS]: New macros.
19487 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
19488 Use them.
19489 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
19490
19491 * macselect.c [MAC_OSX] (install_service_handler): Rename from
19492 init_service_handler. All callers changed. Return OSStatus value.
19493
19494 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
19495 All callers changed so as not to call SetPortWindowPort.
19496 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
19497 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
19498 mac_draw_string_common.
19499 (mac_draw_image_string_qd): Likewise.
19500 (mac_draw_string_common): Use them. Add INLINE.
19501 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
19502 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
19503 GetGlobalMouse.
19504 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
19505 and FRAME_OUTER_TO_INNER_DIFF_Y.
19506 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
19507 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
19508 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
19509 repositioning window to mac_handle_window_event.
19510 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
19511 saving window location to mac_handle_window_event
19512 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
19513 (install_menu_target_item_handler): Remove argument in extern.
19514 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
19515 Also accept command events.
19516 (do_keystroke): New function created from XTread_socket.
19517 (init_command_handler): Remove functions.
19518 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
19519 and save window location by kEventWindowShowing and kEventWindowHiding
19520 handlers here. Don't call next handler for window state change and
19521 focus events.
19522 (mac_handle_application_event, mac_handle_keyboard_event)
19523 [TARGET_API_MAC_CARBON]: New functions.
19524 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
19525 kEventWindowShowing and kEventWindowHiding events. Move installation
19526 of mouse, font, text input and menu target item handlers to
19527 install_application_handler.
19528 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
19529 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
19530 New function.
19531 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
19532 Register it.
19533 (XTread_socket) [TARGET_API_MAC_CARBON]:
19534 Consolidate SendEventToEventTarget calls.
19535 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
19536 Move application activation handler to mac_handle_application_event.
19537 Move keyboard handler to mac_handle_keyboard_event.
19538 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
19539 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
19540 init_command_handler. Call install_application_handler.
19541
19542 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
19543 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
19544
195452007-06-07 Glenn Morris <rgm@gnu.org>
19546
19547 * emacs.c (main): Use `emacs-copyright' in --version output.
19548
195492007-06-06 Chong Yidong <cyd@stupidchicken.com>
19550
19551 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
19552
195532007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19554
19555 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
19556
19557 * macgui.h: Replace WindowPtr with WindowRef.
19558
19559 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
19560 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
19561 Replace ControlHandle with ControlRef.
19562 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
19563
19564 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
19565 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
19566 Replace ControlHandle with ControlRef.
19567 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
19568 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
19569
19570 * macterm.h (struct scroll_bar): Rename member control_handle_low
19571 and control_handle_high to control_ref_low and control_ref_high.
19572 All uses changed.
19573 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
19574 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
19575 respectively. All uses changed.
19576 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
19577 (install_window_handler, remove_window_handler): Replace WindowPtr
19578 with WindowRef in externs.
19579
195802007-06-05 Juanma Barranquero <lekktu@gmail.com>
19581
19582 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
19583
195842007-06-03 Nick Roberts <nickrob@snap.net.nz>
19585
19586 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
19587
19588 * frame.c (Fmouse_position, Fmouse_pixel_position):
19589 Condition on HAVE_GPM too.
19590
19591 * term.c (term_mouse_highlight): Remove unused variables.
19592 (Fterm_open_connection): Set gpm_zerobased to 1.
19593 (term_mouse_movement, term_mouse_click, handle_one_term_event):
19594 Use zero based co-ordinates.
19595 (handle_one_term_event): Report a drag as mouse movement too.
19596
19597 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
19598
195992007-06-03 Chong Yidong <cyd@stupidchicken.com>
19600
19601 * image.c (search_image_cache): New function. Require background
19602 color match if background color is unspecified in the image spec.
19603 (uncache_image, lookup_image): Use it.
19604
196052007-06-01 Juanma Barranquero <lekktu@gmail.com>
19606
19607 * window.c (Fshrink_window): Reflow docstring.
19608
196092007-06-02 Chong Yidong <cyd@stupidchicken.com>
19610
19611 * Version 22.1 released.
19612
196132007-06-01 Richard Stallman <rms@gnu.org>
19614
19615 * xfns.c (x_encode_text): Add GCPRO.
19616
196172007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19618
19619 * xfns.c (x_set_name_internal): Save encoded name before
19620 x_encode_text in case string data is relocated.
19621
196222007-05-31 Richard Stallman <rms@gnu.org>
19623
19624 * buffer.c (syms_of_buffer): Doc fix.
19625
196262007-05-30 Nick Roberts <nickrob@snap.net.nz>
19627
19628 * sysdep.c (init_sys_modes): Add rather than replace with
19629 O_NONBLOCK.
19630
19631 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
19632 term_mouse_moveto.
19633
19634 * termhooks.h (term_mouse_moveto): New extern.
19635
19636 * term.c (mouse_face_window): Rename...
19637 (Qmouse_face_window): ...to this.
19638 (term_show_mouse_face, term_clear_mouse_face)
19639 (term_mouse_highlight): Use Qmouse_face_window.
19640 (term_mouse_moveto): New function.
19641 (term_mouse_position): Make it work.
19642 (syms_of_term): Uncomment assignment to mouse_position_hook.
19643 Staticpro Qmouse_face_window.
19644
196452007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19646
19647 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
19648 around current_column call.
19649
196502007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
19651
19652 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
19653 * xdisp.c (next_element_from_buffer):
19654 * window.c (delete_window):
19655 * term.c (term_mouse_highlight):
19656 * msdos.c (getdefdir):
19657 * macterm.c (mac_create_bitmap_from_bitmap_data)
19658 (init_font_name_table):
19659 * fns.c (Fsxhash):
19660 * data.c (Fmake_local_variable):
19661 * ccl.c (ccl_driver): Likewise.
19662
196632007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19664
19665 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
19666 Call mac_wakeup_from_rne on window size change.
19667
196682007-05-25 Chong Yidong <cyd@stupidchicken.com>
19669
19670 * image.c (uncache_image): Fix typo.
19671
196722007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
19673
19674 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
19675
196762007-05-22 Richard Stallman <rms@gnu.org>
19677
19678 * xterm.c (x_connection_closed): Remove NO_RETURN.
19679
196802007-05-22 Martin Rudalics <rudalics@gmx.at>
19681
19682 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
19683
196842007-05-21 Chong Yidong <cyd@stupidchicken.com>
19685
19686 * image.c (uncache_image): New function.
19687 (Fimage_refresh): New function.
19688
196892007-05-20 Jan Djärv <jan.h.d@swipnet.se>
19690
19691 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
19692
196932007-05-20 Nick Roberts <nickrob@snap.net.nz>
19694
19695 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
19696 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
19697
196982007-05-20 Nick Roberts <nickrob@snap.net.nz>
19699
19700 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
19701 conditional on [HAVE_GPM_H].
19702
197032007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
19704
19705 * syntax.c (skip_chars): Update syntax-table only after we checked that
19706 the new location is valid.
19707
197082007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19709
19710 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
19711 mac_get_window_bounds.
19712
197132007-05-20 Nick Roberts <nickrob@snap.net.nz>
19714
19715 * Makefile.in (LIBGPM): Allow it to be set from configure.
19716 If set then link Emacs with it.
19717
19718 * config.in: Regenerate.
19719
19720 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
19721 New externs.
19722
19723 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
19724 Include gpm.h.
19725 (handle_one_term_event, term_gpm): New externs.
19726
19727 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
19728 and allow it to be interrupted by SIGIO.
19729
19730 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
19731 (wait_reading_process_output): Wait on gpm_fd too.
19732 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
19733 (add_gpm_wait_descriptor_called_flag): New variable.
19734 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
19735
19736 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
19737 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
19738 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
19739 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
19740 (make_lispy_event): Add case GPM_CLICK_EVENT.
19741 (read_avail_input): Handle mouse input.
19742
19743 * term.c (write_glyphs_with_face): New function.
19744 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
19745 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
19746 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
19747 (mouse_face_face_id, term_gpm, pos_x, pos_y)
19748 (last_mouse_x, last_mouse_y): New variables.
19749 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
19750 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
19751 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
19752 (Fterm_close_connection): New functions.
19753 (term_init): Initialise mouse_face_window.
19754
197552007-05-19 Chong Yidong <cyd@stupidchicken.com>
19756
19757 * xdisp.c (redisplay_window): If first window line is a
19758 continuation line, recompute the new window start instead of
19759 recentering.
19760
197612007-05-18 Glenn Morris <rgm@gnu.org>
19762
19763 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
19764 Suggested by Alfred M. Szmidt <ams@gnu.org>.
19765
197662007-05-17 Glenn Morris <rgm@gnu.org>
19767
19768 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
19769
197702007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19771
19772 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
19773 dead key repeat and up events.
19774
197752007-05-14 Chong Yidong <cyd@stupidchicken.com>
19776
19777 * image.c (pbm_load): Check image size for monochrome pbm.
19778
197792007-05-13 Chong Yidong <cyd@stupidchicken.com>
19780
19781 * xterm.c (XTread_socket): Revert last change.
19782
197832007-05-12 Chong Yidong <cyd@stupidchicken.com>
19784
19785 * image.c (pbm_load): Correctly check image size for greyscale pbm.
19786
19787 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
19788
197892007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
19790
19791 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
19792 mixup (YAILOM).
19793
197942007-05-07 Andreas Schwab <schwab@suse.de>
19795
19796 * keymap.c (Flookup_key): Fix typo in last change.
19797
197982007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
19799
19800 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
19801 mapping for unibyte strings.
19802
198032007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19804
19805 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
19806 (Fx_popup_dialog) [MAC_OSX]: Likewise.
19807
198082007-04-29 Richard Stallman <rms@gnu.org>
19809
19810 * insdel.c (replace_range): For undo, record insertion first.
19811
198122007-04-29 Andreas Schwab <schwab@suse.de>
19813
19814 * lisp.h (VECSIZE): Use OFFSETOF.
19815
198162007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19817
19818 * xdisp.c (try_window_reusing_current_matrix): Fix number of
19819 disabled lines.
19820
198212007-04-28 Richard Stallman <rms@gnu.org>
19822
19823 * lread.c (read_escape): In a string, \s is always space.
19824
198252007-04-27 Jan Djärv <jan.h.d@swipnet.se>
19826
19827 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
19828
19829 * gtkutil.c (xg_update_menubar, create_menus): Create empty
19830 submenu for menu bar items.
19831
19832See ChangeLog.10 for earlier changes.
19833
19834;; Local Variables:
19835;; coding: utf-8
19836;; add-log-time-zone-rule: t
aac0c6e3
MR
19837;; End:
19838
76b6f707 19839 Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
aac0c6e3
MR
19840
19841 This file is part of GNU Emacs.
19842
19843 GNU Emacs is free software: you can redistribute it and/or modify
19844 it under the terms of the GNU General Public License as published by
19845 the Free Software Foundation, either version 3 of the License, or
19846 (at your option) any later version.
19847
19848 GNU Emacs is distributed in the hope that it will be useful,
19849 but WITHOUT ANY WARRANTY; without even the implied warranty of
19850 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19851 GNU General Public License for more details.
19852
19853 You should have received a copy of the GNU General Public License
19854 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
19855
19856;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40