* net/tramp.el (tramp-perl-file-truename): New defconst. Perl
[bpt/emacs.git] / src / ChangeLog
CommitLineData
18060980
CY
12009-10-25 Chong Yidong <cyd@stupidchicken.com>
2
3 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
4 string in menu maps (Bug#4471).
5
fec8f0fe
CY
62009-10-24 Chong Yidong <cyd@stupidchicken.com>
7
8 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
9 FRAME_NS_VIEW on terminal frames (Bug#4765).
10
10d66ec0
AS
112009-10-24 Andreas Schwab <schwab@linux-m68k.org>
12
1cae01f7
AS
13 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
14 DBUS_TYPE_UINTnn separately to get proper sign extension.
15
58a12889
AS
16 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
17 can properly handle unsigned types.
18 (make_uid, make_gid): Removed.
19
987c9327
AS
20 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
21 types again.
22
10d66ec0
AS
23 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument
24 type.
25 (system_process_attributes): Likewise.
26
905a9ed3
DN
272009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
28
29 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
30
31 * eval.c (Fautoload): Purecopy the filename. Simplify.
32
33 * category.c (Fdefine_category): Purecopy docstring.
34
a599b3e8
AS
352009-10-23 Andreas Schwab <schwab@linux-m68k.org>
36
7b792fc9
AS
37 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
38
a599b3e8
AS
39 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
40
b35ac83e
CY
412009-10-23 Chong Yidong <cyd@stupidchicken.com>
42
43 * window.c (Fwindow_edges, Fwindow_pixel_edges)
44 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
45 (Bug#4775).
46
e8903e00
SM
472009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
48
49 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
50 (init_fileio_once):
51 * lisp.h (init_fileio_once): Remove.
52 * emacs.c (main): Don't call init_fileio_once.
53
8f43cbf3
DN
542009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
55
56 * puresize.h (BASE_PURESIZE): Increase to 1430000.
57
26898943
AS
582009-10-21 Andreas Schwab <schwab@linux-m68k.org>
59
60 * doprnt.c (doprnt): Fix overflow check.
61
5c646d5a
JD
622009-10-21 Jan Djärv <jan.h.d@swipnet.se>
63
3132a7ea
JD
64 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
65
5c646d5a
JD
66 * xterm.h (x_wait_for_event): Declare it.
67
68 * xterm.c (pending_event_wait): New variable.
69 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
70 see pending_event_wait.eventtype.
71 (handle_one_xevent): Don't change gravity when parent changes.
72 (x_new_font): Call change_frame_size with new rows/columns before we try
73 to resize the frame.
74 (x_wait_for_event): New function.
75 (x_set_window_size_1): Don't change gravity unless change_gravity is set.
76 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
77 don't change frame size, instead wait for the ConfigureNotify.
78 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
79 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
80 (x_initialize): Initialize pending_event_wait.
81
82 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
83 size.
84
85 * widget.c (EmacsFrameSetValues): Add comment.
86 (EmacsFrameSetCharSize): Just call x_set_window_size.
87
88 * gtkutil.c (xg_frame_set_char_size): Flush events and call
89 x_wait_for_event.
90 (flush_and_sync): Removed again.
91 (xg_get_font_name): Suggest monospace if no previous font is known.
92
e9c1637d
SM
932009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
94
95 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 96 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 97
5a72cccb
YM
982009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
99
100 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
101 processing pending events when event is filtered for input method.
ab04798f 102 (Bug#3681)
5a72cccb 103
2629aa37
JB
1042009-10-20 Juanma Barranquero <lekktu@gmail.com>
105
106 * fns.c: Add #endif accidentally removed in previous change.
107
c3417a74
DN
1082009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
109
110 * fns.c: Remove code for unsupported system: MAC_OS.
111 * image.c: Likewise. Include setjmp.h.
112
9685cef2
JD
1132009-10-19 Jan Djärv <jan.h.d@swipnet.se>
114
115 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
116 pixel -1 (bug #4742).
117
d7306fe6
DN
1182009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
119
019d2c4c
DN
120 * process.c (create_pty): Remove conditionals for no longer
121 supported systems: UNIPLUS and RTU.
122
ee6bacd4
DN
123 * xterm.c:
124 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
125
d7306fe6
DN
126 * alloc.c: Do not define struct catchtag.
127 * eval.c: Move struct catchtag definition ...
128 * lisp.h: ... here.
129
130 * image.c: Move png.h #include earlier to avoid warnings.
131
132 * xterm.c:
133 * xsmfns.c:
134 * xselect.c:
135 * xrdb.c:
136 * xmenu.c:
137 * xftfont.c:
138 * xfont.c:
139 * xfns.c:
140 * xfaces.c:
141 * xdisp.c:
142 * window.c:
143 * widget.c:
144 * w32xfns.c:
145 * w32uniscribe.c:
146 * w32term.c:
147 * w32select.c:
148 * w32reg.c:
149 * w32proc.c:
150 * w32menu.c:
151 * w32inevt.c:
152 * w32heap.c:
153 * w32font.c:
154 * w32fns.c:
155 * w32console.c:
156 * w32.c:
157 * w16select.c:
158 * vm-limit.c:
159 * unexsol.c:
160 * unexec.c:
161 * unexcw.c:
162 * unexaix.c:
163 * undo.c:
164 * tparam.c:
165 * textprop.c:
166 * terminfo.c:
167 * terminal.c:
168 * termcap.c:
169 * term.c:
170 * syntax.c:
171 * sound.c:
172 * sheap.c:
173 * search.c:
174 * scroll.c:
175 * region-cache.c:
176 * regex.c:
177 * ralloc.c:
178 * process.c:
179 * print.c:
b024548b
DN
180 * nsterm.m:
181 * nsselect.m:
182 * nsmenu.m:
183 * nsimage.m:
184 * nsfont.m:
185 * nsfns.m:
d7306fe6
DN
186 * msdos.c:
187 * minibuf.c:
188 * menu.c:
189 * marker.c:
190 * macros.c:
191 * keymap.c:
192 * keyboard.c:
193 * intervals.c:
194 * insdel.c:
195 * indent.c:
196 * gtkutil.c:
197 * ftxfont.c:
198 * ftfont.c:
199 * fringe.c:
200 * frame.c:
201 * fontset.c:
202 * font.c:
203 * fns.c:
204 * floatfns.c:
205 * filelock.c:
206 * fileio.c:
207 * emacs.c:
208 * editfns.c:
209 * dosfns.c:
210 * doprnt.c:
211 * doc.c:
212 * dispnew.c:
213 * dired.c:
214 * dbusbind.c:
215 * data.c:
216 * composite.c:
217 * coding.c:
218 * cmds.c:
219 * cm.c:
220 * chartab.c:
221 * charset.c:
222 * character.c:
223 * ccl.c:
224 * category.c:
225 * casetab.c:
226 * casefiddle.c:
227 * callproc.c:
228 * callint.c:
229 * bytecode.c:
230 * buffer.c:
231 * atimer.c: Include setjmp.h. (Bug#4643)
232
fd5f21e6
SM
2332009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
234
4c0354d7
SM
235 Remove leftover table unibyte_to_multibyte_table.
236 * character.c (unibyte_to_multibyte_table): Remove.
237 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
238 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
239 * character.h (UNIBYTE_TO_CHAR): New macro.
240 (MAKE_CHAR_MULTIBYTE): Use it.
241 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
242 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
243 (message_dolog, set_message_1):
244 * search.c (Freplace_match):
245 * editfns.c (Fcompare_buffer_substrings):
246 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
247 (concat):
248 * insdel.c (copy_text, count_size_as_multibyte):
249 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
250 * term.c (produce_glyphs):
251 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
252 * regex.c (RE_CHAR_TO_MULTIBYTE):
253 * cmds.c (internal_self_insert):
254 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
255
fd5f21e6
SM
256 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
257
4418646e
DN
2582009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
259
260 * puresize.h (BASE_PURESIZE): Increase to 1310000.
261
35f5c1d2
JB
2622009-10-16 Juanma Barranquero <lekktu@gmail.com>
263
264 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
265
a0cd8f6b
AR
2662009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
267
268 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
269 still needed under Tiger.
270
271 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
272
273 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
274 __Apple__.
275
276 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
277
01a8d3fa
KH
2782009-10-15 Kenichi Handa <handa@m17n.org>
279
280 * print.c (print_object): Escape a symbol like "2E10" too.
281
bf6c75c9 2822009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
283
284 Cleanups and changes for 64-bit compile under Snow Leopard.
285 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
286
287 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
288
c5959062 289 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
290 (ns_findfonts, nsfont_list_family): Use long format in printf, and
291 cast argument.
292 (nsfont_open): Use ns_char_width() everywhere.
293 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where
294 appropriate.
295
296 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
297
298 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
299 where appropriate.
300
301 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
302 where appropriate.
6e4780c5
JB
303 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
304 Use stringWithUTF8String.
bf6c75c9
AR
305 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
306
6e4780c5
JB
307 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
308 Add formal protocol mention to inheritance.
bf6c75c9
AR
309 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
310
6e4780c5
JB
311 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
312 Fix printf format.
bf6c75c9
AR
313 (ns_query_color): Use CGFloat where appropriate.
314 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
315 (EmacsScroller-mouseDown:) Use long format in printf, and cast
316 argument.
317
3d87f118
AR
318 * config.in (NS_HAVE_NSINTEGER): Drop.
319
a95c8102
AR
320 * dbusbind.c (dbus-method-return-internal)
321 (dbus-method-error-internal): Use long format in printf, and cast
322 argument.
323
324 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
325 in printf, and cast argument.
326
6873acca 327 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
328 cast argument.
329
9ec6f100
GM
3302009-10-11 Glenn Morris <rgm@gnu.org>
331
332 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
333
5be883cd
JD
3342009-10-08 Jan Djärv <jan.h.d@swipnet.se>
335
336 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
337 menu bar with a small width so it doesn't enlarge the frame.
338
d7a39b51
JB
3392009-10-08 Juanma Barranquero <lekktu@gmail.com>
340
341 * fontset.c (Fset_fontset_font): Fix typos in error messages.
342
0c2b6f8e
GM
3432009-10-06 Glenn Morris <rgm@gnu.org>
344
345 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
346 SOME_MACHINE_LISP (this enters indirectly via DOC).
347
e02131a2
EZ
3482009-10-05 Eli Zaretskii <eliz@gnu.org>
349
350 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
351
b4744254
EZ
3522009-10-04 Eli Zaretskii <eliz@gnu.org>
353
354 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
355 Doc fix.
356
dbf64827
JB
3572009-10-03 Martin Rudalics <rudalics@gmx.at>
358
359 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
360
e9a0aef8
MA
3612009-10-02 Michael Albinus <michael.albinus@gmx.de>
362
363 * lisp.h (Qdelete_directory_internal): Removed, because it is not
364 used anymore outside fileio.c.
365
366 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
367
64eb2b56
JB
3682009-10-01 Juanma Barranquero <lekktu@gmail.com>
369
370 * lisp.h (Qdelete_directory_internal):
371 Declare, instead of Qdelete_directory.
372
373 * w32fns.c (Fsystem_move_file_to_trash): Use it.
374
9d28c33e
SM
3752009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
376
377 * eval.c (Fcalled_interactively_p): Add `kind' argument.
378
9d8f3bd9
MA
3792009-10-01 Michael Albinus <michael.albinus@gmx.de>
380
9d28c33e 381 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
382 Fdelete_directory. It is not a command anymore. It has no file
383 name handler.
384
9694740b
SM
3852009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
386
387 * xdisp.c (get_next_display_element): Use an enum in last change.
388
748e162f
KH
3892009-09-28 Kenichi Handa <handa@m17n.org>
390
9694740b 391 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
392 unibyte_display_via_language_environment in handling
393 Vnobreak_char_display.
394
17efd58d
AR
3952009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
396
397 * nsterm.h (ns_app_name): New extern variable.
398
399 * nsterm.m (ns_app_name): New variable.
400 (ns_term_init): Set and use it.
401 (ns_term_shutdown): Use it.
402
403 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
404 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
405
406 * nsfns.m (ns_set_name_iconic, ns_set_name)
407 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
408 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
409
9694740b
SM
410 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
411 Remove double-casting in client_data comparison.
31c2d412 412
3208cb35
YM
4132009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
414
415 * keyboard.c (make_lispy_event): Remember last wheel direction.
416 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
417
b7d552d6
GM
4182009-09-26 Glenn Morris <rgm@gnu.org>
419
420 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
421 internal.elc. Add term/pc-win.elc.
422 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
423 term/x-win.elc.
424 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
425 term/w32-win.elc.
426 (NS_SUPPORT): New.
427 (lisp): Add NS_SUPPORT.
428 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
429
4ff670a8
DR
4302009-09-25 David Reitter <david.reitter@gmail.com>
431
432 * nsmenu.m (EmacsMenu-clear): Recognize application menu
433 on Mac OS X 10.6+ (bug#4513).
434
feabfb6c
JB
4352009-09-24 Juanma Barranquero <lekktu@gmail.com>
436
437 * frame.c (xrdb_get_resource): Return nil for empty string resources;
438 some parts of Emacs code (like font selection) don't grok them. See
439 http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
440
de59072a
AS
4412009-09-24 Andreas Schwab <schwab@redhat.com>
442
443 * coding.c (decode_coding_iso_2022): Fix operator precedence.
444
a489517b
JB
4452009-09-24 Juanma Barranquero <lekktu@gmail.com>
446
447 * dired.c (Fdirectory_files): Fix typo in docstring.
448
0592970c
AR
4492009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
450
451 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
452 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
453 (EmacsScroller-setPosition:portion:whole:): Remove -display call
454 under GNUstep.
455 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
456
457 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
458 glyph advancement.
459
48e8a88b
AR
4602009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
461
462 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 463 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
464
465 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
466 deleted (bug #4492).
467
e14f0a78
AR
468 * nsfont.m (Vns_reg_to_script): New lisp variable.
469 (syms_of_nsfont): Declare it.
470 (ns_registry_to_script): New function.
471 (ns_get_req_script): Call it.
472 (ns_findfonts): Don't give up on non-unicode registry.
473
474 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
475
5b650faa
SM
4762009-09-20 Tom Tromey <tromey@redhat.com>
477
478 * eval.c (find_handler_clause): Make stack-trace-on-error work in
479 batch mode (bug#4228).
480
a489517b 4812009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
482
483 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 484 carefully. (Bug #4339)
0bae4e09 485
fcfe06f3
CY
4862009-09-18 Chong Yidong <cyd@stupidchicken.com>
487
d798ba87 488 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 489
31642728
AR
4902009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
491
492 * emacs.c (inhibit_x_resources): Update doc string for NS.
493 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 494 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
495
496 * nsterm.h (ns_no_defaults): Remove.
497
498 * nsterm.m (ns_no_defaults): Remove.
499 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
500 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
501 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
502 don't update the NSWindow itself.
503 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 504 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
505
506 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
507 ns_use_qd_smoothing.
508
509 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
510 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 511 (x-close-connection): Drop PSFlush() under OS X.
a489517b 512 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 513
8686ac71
JB
5142009-09-17 Juanma Barranquero <lekktu@gmail.com>
515
516 * emacs.c (inhibit_x_resources): New variable.
517 (main) [HAVE_NS]: Don't process --quick command line option.
518 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
519
520 * lisp.h (inhibit_x_resources): Declare it extern.
521
522 * w32reg.c (x_get_string_resource):
523 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
524
e227ba05
EZ
5252009-09-17 Eli Zaretskii <eliz@gnu.org>
526
527 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP): Add
528 lisp/term/internal.elc.
529
742d40e8
SM
5302009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
531
532 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
533 (bug#4461).
534
005bd5a2
DN
5352009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
536
537 * puresize.h (BASE_PURESIZE): Increase to 1290000.
538
539 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
540 (OBJECTS_MACHINE): Remove, unused.
541
f9af9719
SM
5422009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
543
544 * frame.c (x_get_resource_string): Remove unused.
545
0307c7d2
JD
5462009-09-15 Jan Djärv <jan.h.d@swipnet.se>
547
548 * xterm.c (x_new_font): Call change_frame_size before calling
549 x_set_window_size, in case frame size won't change.
550
551 * frame.c (x_set_font): Remove dead code.
552
428b13d6
SM
5532009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
554
555 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
556
5766c380
SM
5572009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
558
559 * lread.c (Fload): Don't output a message after loading an obsolete
560 package any more (done in Lisp now).
561
2fd0161b
CY
5622009-09-12 Chong Yidong <cyd@stupidchicken.com>
563
564 * fns.c (syms_of_fns): Doc fix (Bug#4227).
565
bc5e75b6
SM
5662009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
567
568 * keymap.c (Fwhere_is_internal): Use nconc2.
569
c31c985e
AM
5702009-09-11 Alan Mackenzie <acm@muc.de>
571
572 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
573 batch mode.
574
78012bd2
AS
5752009-09-11 Andreas Schwab <schwab@linux-m68k.org>
576
577 * xdisp.c (display_mode_element): Detect cycles.
578
9d889332
SM
5792009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
580
581 * keymap.c (where_is_internal): Don't erroneously return nil right after
582 filling the cache.
583 (where_is_internal_1): Fix up typo.
584
7ab5d780
GM
5852009-09-11 Glenn Morris <rgm@gnu.org>
586
587 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
588 share a common doc-string.
589
5238a749
SM
5902009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
591
66d77eda
SM
592 * keymap.c (get_keymap): Return the actual keymap symbol rather than
593 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
594
5238a749
SM
595 * keymap.c (QCadvertised_binding): New constant.
596 (syms_of_keymap): Initialize it.
597 (Fwhere_is_internal): Try and use bindings from :advertised-binding
598 if applicable.
599
19f48442
SM
6002009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
601
50d4ba39
SM
602 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
603 (parse_menu_item): Streamline since bindings are recomputed all the
604 time anyway. Don't bother checking Vdefine_key_rebound_commands any
605 more and don't support lmenu's menu-alias any more either.
606
a88a5372
SM
607 * keymap.c (where_is_internal_data): Make noindirect a boolean.
608 (where_is_internal): Strip it down to only traverse the keymaps.
609 Move the cache handling from Fwhere_is_internal to here.
610 (Fwhere_is_internal): Move the handling of remapping and the choice of
611 the best binding from where_is_internal to here.
612 Unify the cached/noncached paths, so remapping is also handled
613 correctly when the cache is used, and so the cache can be used to
614 speed up remap-handling when applicable.
615 Give preference to non-remapped bindings.
616 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
617 non-remapped bindings.
618 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
619 command remapping.
620
19f48442
SM
621 * xdisp.c (display_mode_element): Move list length limit from 50 to
622 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
623
599498c3 6242009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
625
626 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
627
f9b7b5ac
SM
6282009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
629
a53af587
JB
630 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
631 (Bug#4334)
632
f9b7b5ac
SM
633 * keymap.c (where_is_internal): Filter out shadowed remappings.
634 Assume that where_is_internal returns unshadowed bindings to simplify
635 the code and get rid of the gotos. Use ASIZE.
636
04f4b72d
JD
6372009-09-04 Jan Djärv <jan.h.d@swipnet.se>
638
4da146f2
JD
639 * xterm.c (x_focus_changed): If we get a focusout and pointer
640 is invisible, make it visible.
641
04f4b72d
JD
642 * xterm.h: Remove condition for declaration of
643 x_*_window_to_frame.
644
7cef7ce3
SM
6452009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
646
647 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
648 initial terminal as well.
649
a54fa5b7
JD
6502009-09-02 Jan Djärv <jan.h.d@swipnet.se>
651
652 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 653 x_menubar_window_to_frame.
a54fa5b7
JD
654
655 * xterm.c: Remove declarations also in xterm.h
656 (XTmouse_position): Do not return valid positions
657 for clicks in the menubar and the toolbar for Gtk+.
658
659 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
660 if the widget for the event has the same top level as a frame,
661 return the frame.
662 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
663 internal windows, bug #4122.
664 (x_non_menubar_window_to_frame): Remove.
665
5a021dd0
GM
6662009-09-02 Glenn Morris <rgm@gnu.org>
667
668 * buffer.c (default-major-mode): Move most of the doc from here...
669 (major-mode): ... to here.
670
548fe2f3
NR
6712009-08-30 Nick Roberts <nickrob@snap.net.nz>
672
673 * process.c (wait_reading_process_output): Keep the descriptor
674 when pty is used by a non-child process, e.g., in I/O buffer of
675 GDB this allows inferior to be restarted.
676
e0840eef
EZ
6772009-08-29 Eli Zaretskii <eliz@gnu.org>
678
679 * xdisp.c (redisplay_internal): Remove redundant test and collapse
680 both branches into one.
681
82e98df4
SM
6822009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
683
684 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
685 (main): Use enable-multibyte-characters rather than
686 default-enable-multibyte-characters. Output a warning message when
687 running a unibyte session.
688
890617cb
YM
6892009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
690
691 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
692 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
693 (copy_data_segment): Also copy __program_vars section.
694 (copy_dyld_info) [LC_DYLD_INFO]: New function.
695 (dump_it) [LC_DYLD_INFO]: Use it.
696
697 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
698
e7adeadc
EZ
6992009-08-28 Eli Zaretskii <eliz@gnu.org>
700
701 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
702 $(SRC)/buildobj.h.
703 (buildobj.h): Renamed from $(SRC)/buildobj.h.
704 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
705 $(SRC)/buildobj.h.
706 (clean): Add buildobj.h.
707
3ed8bbdc
TZ
7082009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
709
710 * print.c (print_object): Set escapeflag to 1 when printing
711 hashtable keys and values.
712
155a6764
SM
7132009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
714
715 * lread.c (read_integer): Use doubles (and potentially return a float
716 number) as we do in string-to-number.
717 (read1): Use strtol to read integers, signal errors on strtol's
718 overflow and use floats if strtol's output is too large for
719 Elisp integers.
720
877610de
EZ
7212009-08-27 Eli Zaretskii <eliz@gnu.org>
722
723 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
724 (make-buildobj-SH): Fix last change.
725 (SRC): Move to before where it's first used.
726
ef73e7be
KH
7272009-08-27 Kenichi Handa <handa@m17n.org>
728
550c8289
KH
729 * process.c (send_process): Use encode_coding_object instead of
730 encode_coding_string to perform eol-conversion even if the string
731 is unibyte.
732
60afa08d
KH
733 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
734 character.
735
ef73e7be 736 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 737 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 738
7b3a82d7
DN
7392009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
740
5654bf63
DN
741 * callproc.c (Fcall_process): Remove always true #if.
742
7b3a82d7
DN
743 * lisp.h: Replace #if 0 code for checking with text pointing to
744 the --enable-checking configure flag.
745
746 * emacs.c (main): Mention the --enable-profiling configure flag
747 instead of using CFLAGS.
748
878bde49
KR
7492009-08-26 Ken Raeburn <raeburn@raeburn.org>
750
751 * Makefile.in (buildobj.h): New target.
752 (doc.o): Depend on it.
753 (temacs${EXEEXT}): Don't generate buildobj.lst.
754 (mostlyclean): Delete buildobj.h, not buildobj.lst.
755 * makefile.w32-in ($(SRC)/buildobj.h): New target.
756 ($(BLD)/doc.$(O)): Depend on it.
757 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
758 provided by Eli Zaretskii.)
759 ($(TEMACS)): Don't generate buildobj.lst.
760 * doc.c: Include buildobj.h.
761 (buildobj): New static variable.
762 (Fsnarf_documentation): Use it, instead of opening and reading
763 buildobj.lst.
764
1574224c
MA
7652009-08-25 Michael Albinus <michael.albinus@gmx.de>
766
767 * dbusbind.c (Fdbus_call_method)
768 (Fdbus_call_method_asynchronously): Use English numeric format for
769 timeout values in doc string.
770
d9da2f45
KH
7712009-08-25 Kenichi Handa <handa@m17n.org>
772
ef73e7be
KH
773 * alloc.c (mark_char_table): New function.
774 (mark_object): Use mark_char_table for a char-table.
775
d9da2f45
KH
776 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
777 (CHAR_TABLE_REF): Use it.
778
c8edcc01
KR
7792009-08-23 Ken Raeburn <raeburn@raeburn.org>
780
781 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
782 before invoking the newly build emacs to check for load-path
783 shadowing.
784
7763401b
GM
7852009-08-22 Glenn Morris <rgm@gnu.org>
786
787 * Makefile.in (bootstrap_exe): New variable.
788 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
789 Use ${bootstrap_exe}.
790
729eadda
EZ
7912009-08-22 Eli Zaretskii <eliz@gnu.org>
792
793 * coding.h (encode_coding_string): Don't encode unibyte strings.
794 (Bug#4047)
795
eb4c6ace
MA
7962009-08-22 Michael Albinus <michael.albinus@gmx.de>
797
798 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
799
800 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
801 intended as hotfix only.
802 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
803
36e34d1b
AR
8042009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
805
806 * nsterm.m (ns_get_color): Update documentation properly for last
807 change, and clean up loose ends in the code left by it. Fix
808 longstanding bug with 16-bit hex parsing, and add support for
809 yet another X11 format (rgb:r/g/b) for compatibility.
810 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
811 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
812
f983eb8a
SM
8132009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
814
815 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
816
3f56d3c6
MA
8172009-08-20 Michael Albinus <michael.albinus@gmx.de>
818
819 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
820 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
821 (xd_initialize, xd_pending_messages): Check, whether
822 $DBUS_SESSION_BUS_ADDRESS is set.
823
fb641d68
YM
8242009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
825
826 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
827
828 * nsterm.m (ns_get_color): Remove incompatible color formats again.
829
cf59a374
GM
8302009-08-20 Glenn Morris <rgm@gnu.org>
831
832 * emacs.c (system-type): Doc fix.
833
1373f3be
SM
8342009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
835
836 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
837 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
838
058ed861
MA
8392009-08-18 Michael Albinus <michael.albinus@gmx.de>
840
1373f3be
SM
841 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
842 New functions.
058ed861
MA
843 (xd_initialize): Revert change from 2009-08-16.
844
563a866e 8452009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
846
847 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 848 font-group vector, return nil.
5fc05db0 849
e42bdf01
CY
8502009-08-17 Chong Yidong <cyd@stupidchicken.com>
851
852 * process.c (status_notify): Don't perform redisplay.
853 (Fdelete_process, list_processes_1, process_send_signal):
854 Expliticly perform redisplay.
855 (wait_reading_process_output): Always check process status, but
856 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
857
4230ab74
KR
8582009-08-17 Ken Raeburn <raeburn@raeburn.org>
859
1373f3be 860 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
861 (XFLOAT_INIT): New macro for storing a float value.
862 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
863 * fns.c (sxhash): Copy out the value of a float in order to
864 examine its bytes.
865 * dbusbind.c (xd_append_arg): Likewise.
866
4230ab74
KR
867 * emacs.c (main): Don't call syms_of_data twice.
868
a0645cdd
MA
8692009-08-16 Michael Albinus <michael.albinus@gmx.de>
870
871 * dbusbind.c (xd_initialize): Add connection file descriptor to
872 input_wait_mask, in order to let select() detect, whether a new
873 message has been arrived.
ca4f31ea 874 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 875
485db0ba
MA
8762009-08-15 Michael Albinus <michael.albinus@gmx.de>
877
1373f3be
SM
878 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
879 New functions.
485db0ba
MA
880
881 * lisp.h (xd_pending_messages): Declare.
882
883 * keyboard.c (readable_events): Call xd_pending_messages.
884
b5b98ff4
CY
8852009-08-15 Chong Yidong <cyd@stupidchicken.com>
886
1373f3be 887 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 888
f8354c6e
CY
889 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
890
b5b98ff4
CY
891 * buffer.c (set_buffer_internal_1)
892 (swap_out_buffer_local_variables): Check for unbound local
893 variables (Bug#4138).
894
8b9fc636
EZ
8952009-08-14 Eli Zaretskii <eliz@gnu.org>
896
897 * process.c (create_pty): Fix last change.
898
ce959360
CY
8992009-08-13 Chong Yidong <cyd@stupidchicken.com>
900
901 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
902 (xbm_load_image): Caller changed.
64b807c9 903 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 904
c7baf7e9
NR
9052009-08-13 Nick Roberts <nickrob@snap.net.nz>
906
907 * process.c (create_pty): New function.
908 (Fstart_process): Use it to allow Emacs to just associate a pty
909 with the buffer. See associated change in gdb-mi.el.
910 (list_processes_1): Deal with no program name.
911 (start_process_unwind): Use pid == -2 to mean no process.
912
1ac9108a
SM
9132009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
914
915 * cmds.c (nonundocount): New global variable.
916 (keys_of_cmds): Initialize it.
917 (Fself_insert_command): Use it to combine upto 20 sequential chars
918 into a single undo entry, just like the Qself_insert_command code in
919 keyboard.c does.
920 Call frame_make_pointer_invisible, also like the Qself_insert_command
921 code in keyboard.c does.
922 * keyboard.c (command_loop_1): Use the new global nonundocount rather
923 than its own local replacement for it.
924
e267324c
KR
9252009-08-10 Ken Raeburn <raeburn@raeburn.org>
926
1ac9108a 927 * fns.c (concat): Don't re-set string length to its current value.
77437343 928
1ac9108a
SM
929 * coding.h (decode_coding_string, encode_coding_string):
930 Use SBYTES macro.
f0bed503 931
1ac9108a 932 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
933 (doprnt): Merge with doprnt1, discarding lispstrings code.
934 * lisp.h (doprnt_lisp): Don't declare.
935
416e006d
JL
9362009-08-07 Juri Linkov <juri@jurta.org>
937
938 * puresize.h (BASE_PURESIZE): Increase to 1270000.
939
6f7d5780
DN
9402009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
941
942 * print.c (syms_of_print): Undo previous change.
943
f19a0f5b
TZ
9442009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
945
946 * lread.c (read1, syms_of_lread): Read hashtables back from the
947 readable format.
948
949 * print.c (print_preprocess, print_object): Print hashtables fully
950 and readably.
951 (syms_of_print): Provide 'hashtable-print-readable.
952
b9173dc2
AR
9532009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
954
955 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
956 no family set.
957 (nsfont_open): Handle case when entity has no family.
958
1586503c
AR
9592009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
960
961 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
962 element, not a list, for match case.
963
087048cd
KH
9642009-07-28 Kenichi Handa <handa@m17n.org>
965
966 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
967 rigidly.
968
969 * xfont.c (xfont_list_pattern): Don't ignore the return value of
970 font_parse_xlfd. Check font properties more rigidly.
971
780c2506
DN
9722009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
973
31fd7c5c
JB
974 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
975 bsd-common.h.
780c2506 976
a8c0cc18
KH
9772009-07-27 Kenichi Handa <handa@m17n.org>
978
979 * xfaces.c (face_with_height): Call font_clear_prop.
980
4fbe2306
CY
9812009-07-26 Chong Yidong <cyd@stupidchicken.com>
982
111d9af3
CY
983 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
984
985 * xterm.c (x_term_init): Use Qx.
986
4fbe2306
CY
987 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
988
1ac9108a 989 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
990 (ns_get_color): Revert 2009-07-16 change.
991
beb0b7f9
EZ
9922009-07-25 Eli Zaretskii <eliz@gnu.org>
993
994 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 995 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 996
2baf5e76
KR
9972009-07-25 Ken Raeburn <raeburn@raeburn.org>
998
1ac9108a
SM
999 * coding.h (decode_coding_string, encode_coding_string):
1000 Use SCHARS macro.
8890e5f5 1001
2baf5e76 1002 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 1003 (load_depth): Delete.
2baf5e76
KR
1004 (Qload_in_progress): New variable.
1005 (load_unwind): Don't reference load_depth or load_in_progress.
1006 (Fload): Likewise; specbind Qload_in_progress instead.
1007 (init_lread): Don't initialize load_depth.
1008 (syms_of_lread): Initialize and protect Qload_in_progress.
1009
1395c6f5
AR
10102009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
1011
1012 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
1013
4e2f36cf
AR
10142009-07-23 Yavor Doganov <yavor@gnu.org>
1015
1016 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
1017
5dd9a6f7
AR
10182009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
1019
1020 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
1021 Bugs 3792, 3720, 2402.
1022 (ns_lookup_indexed_color): Check for bad index.
1023 (ns_index_color): Init unused slot to 0.
1024 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
1025 Bug 3714, possibly 3082.
5dd9a6f7 1026
c902b920
JR
10272009-07-22 Jason Rumney <jasonr@gnu.org>
1028
1ac9108a
SM
1029 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
1030 Position IME window at cursor (Bug#2570).
c902b920
JR
1031 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
1032 (globals_of_w32fns): Dynamically load functions required above.
1033
1034 * w32term.c (w32_draw_window_cursor): Send message to reposition
1035 any IME window.
1036
090101cf
CY
10372009-07-21 Chong Yidong <cyd@stupidchicken.com>
1038
1039 * fileio.c: Revert 2009-07-16 changes.
1040 (Vauto_save_include_big_deletions): New variable.
1041 (Fdo_auto_save): Disable auto-save only if
1042 auto-save-include-big-deletions is nil.
1043
e6583e3d
CY
10442009-07-21 Chong Yidong <cyd@stupidchicken.com>
1045
1046 * xdisp.c (move_it_to): For continued lines ending in a tab, take
1047 the overflowed pixels into account (Bug#3879).
1048
ece435a5
KR
10492009-07-21 Ken Raeburn <raeburn@raeburn.org>
1050
1051 * lread.c (load_depth): New variable.
1052 (Fload, load_unwind, init_lread): Set it to the load recursion
1053 depth; set load_in_progress as a simple boolean based on the
1054 current load_depth. (Bug#3892)
1055
40b2d973
AR
10562009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
1057
1058 * nsfont.m (ns_has_attribute): Remove.
1059 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
1060
10be7e0d
JL
10612009-07-18 Juri Linkov <juri@jurta.org>
1062
1063 * process.c (Fset_process_query_on_exit_flag): Mention killing
1064 a buffer in docstring.
1065
fa055055
KH
10662009-07-17 Kenichi Handa <handa@m17n.org>
1067
1068 * casetab.c (shuffle): Fix the logic of setting up the cycle.
1069
042f7b69
YM
10702009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1071
1072 * nsfns.m (Fns_set_alpha): Remove function.
1073 (syms_of_nsfns): Don't defsubr it.
1074
1075 * nsterm.m (ns_get_color): Remove incompatible color formats.
1076 (ns_color_to_lisp): Generate #rrggbb color format string.
1077
4be941e3
RS
10782009-07-16 Richard Stallman <rms@gnu.org>
1079
1080 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
1081 (Fset_buffer_auto_saved): Handle save_length = -2.
1082
4e6b227d
CY
10832009-07-16 Chong Yidong <cyd@stupidchicken.com>
1084
1085 * xterm.c (Qx_gtk_map_stock): New var.
1086
1087 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
1088 of calling intern each time.
1089
a1856973
YM
10902009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1091
1092 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
1093 does tiling.
1094
1095 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
1096
497e54d8
KH
10972009-07-14 Kenichi Handa <handa@m17n.org>
1098
72d36834
KH
1099 * font.c (font_vconcat_entity_vectors): New function.
1100 (struct font_sort_data): New member font_driver_preference.
1101 (font_compare): Check font_driver_preference.
1102 (font_sort_entities): The format of the first argument changed.
1103 (font_delete_unmatched): Likewise.
1104 (font_list_entities): The return type changed.
1105 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
1106 (font_find_for_lface): Adjuste for the above changes.
1107 Don't suppress the checking of C even if the repertory supports it.
1108 (Flist_fonts): Adjust for the above changes.
72d36834 1109
1ac9108a
SM
1110 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
1111 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
1112 Reject a font who has adstyle property that is different from a
1113 langname derived from registry property.
1ac9108a 1114 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 1115
b6046155
EZ
11162009-07-13 Eli Zaretskii <eliz@gnu.org>
1117
1118 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
1119 local copy of dirfilename.
1120
fb6b6049
KH
11212009-07-13 Kenichi Handa <handa@m17n.org>
1122
e2402a5e
KH
1123 * chartab.c (sub_char_table_ref_and_range): Fix the range check
1124 against max_char.
1125
fb6b6049
KH
1126 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
1127 calling XSYMBOL (sym).
1128
65156807
EZ
11292009-07-11 Eli Zaretskii <eliz@gnu.org>
1130
1ac9108a
SM
1131 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
1132 New function.
1133 (directory_files_internal) [WINDOWSNT]:
1134 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
1135 the filesystem of the directory is fast or slow.
1136
1137 * w32.c (logon_network_drive): Don't assume PATH is an absolute
1138 file name.
1139 (is_slow_fs): New function.
1140 (stat): Use it to determine whether to issue more system calls to
1141 get accurate file attributes, when w32-get-true-file-attributes is
1142 `local'.
1143
e0ab5fcf
JD
11442009-07-10 Jan Djärv <jan.h.d@swipnet.se>
1145
1146 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 1147 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
1148 parameter font-parameter as default to the font dialog.
1149
784ceded
KH
11502009-07-10 Kenichi Handa <handa@m17n.org>
1151
1152 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
1153
fb8edc0b
EZ
11542009-07-09 Eli Zaretskii <eliz@gnu.org>
1155
1ac9108a 1156 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 1157
fb8edc0b
EZ
1158 * w32.c (stat): Treat UNC file names as residing on remote
1159 drives. (Bug#3542)
1160
635c75b1
KH
11612009-07-09 Kenichi Handa <handa@m17n.org>
1162
1163 * fontset.c (fontset_find_font): Fix previous change.
1164
c1d5ce94
MA
11652009-07-08 Michael Albinus <michael.albinus@gmx.de>
1166
1167 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
1168 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
1169 error flag.
1170
edb61b39
KH
11712009-07-08 Kenichi Handa <handa@m17n.org>
1172
374bf7e4
KH
1173 * fontset.c (fontset_find_font): Fix the logic of handling
1174 charset_matched.
1175 (font_for_char): Delete unused var.
1176 (generate_ascii_font_name): Delete it.
1177
edb61b39
KH
1178 * coding.h (JIS_TO_SJIS2): Fix the code range check.
1179
1180 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
1181 (encode_coding_sjis): Fix the code range check.
1182
0f3f018c
CY
11832009-07-07 Chong Yidong <cyd@stupidchicken.com>
1184
1185 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
1186 (Fexpand_file_name): Copy string data properly (Bug#3772).
1187
fcaf6f3a
JD
11882009-07-07 Jan Djärv <jan.h.d@swipnet.se>
1189
1190 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
1191 first MapNotify.
1192
6809ca75
KH
11932009-07-07 Kenichi Handa <handa@m17n.org>
1194
1195 * character.h (unibyte_has_multibyte_table): Delete extern.
1196 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
1197
1198 * charset.c (Fset_charset_priority): Update charset_unibyte.
1199 (syms_of_charset): Initialize charset_unibyte.
1200
1201 * character.c (unibyte_has_multibyte_table): Delete it.
1202 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
1203 charset_unibyte.
1204 (multibyte_char_to_unibyte_safe): Likewise.
1205 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
1206
1ac9108a 1207 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
1208 (x_produce_glyphs): Likewise.
1209
1210 * .gdbinit (xcharset): Fix the treating $arg0.
1211
ad9e2d54
EZ
12122009-07-04 Eli Zaretskii <eliz@gnu.org>
1213
1214 Emulation of `getloadavg' on MS-Windows.
1215 * w32.c: Include float.h
1216 (g_b_init_get_native_system_info, g_b_init_get_system_times)
1217 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
1218 (get_native_system_info, get_system_times): New functions.
1219 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
1220 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
1221 (globals_of_w32): Initialize g_b_init_get_native_system_info,
1222 g_b_init_get_system_times, and num_of_processors.
1223
0a3472c7
JR
12242009-07-03 Jason Rumney <jasonr@gnu.org>
1225
1226 * w32term.c (w32_initialize): Use standard types.
1227
80904120
EZ
12282009-07-03 Eli Zaretskii <eliz@gnu.org>
1229
1230 * dired.c (Ffile_attributes): Decode user and group names by the
1231 locale's encoding. (Bug#3443)
1232
6978862d
DN
12332009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
1234
f8d23104
DN
1235 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
1236 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
1237
1238 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
1239
1240 * term.c (init_tty): Remove spurious #ifdef.
1241
6978862d
DN
1242 * m/mips.h: Mention this file is also used for netbsd.
1243 * m/pmax.h: Remove file.
1244
e044e4fc
JD
12452009-07-03 Jan Djärv <jan.h.d@swipnet.se>
1246
1247 * xterm.h (struct x_display_info): Add invisible_cursor.
1248 (struct x_output): Add current_cursor.
1249
1250 * xterm.c (XTtoggle_invisible_pointer): New function.
1251 (x_define_frame_cursor): Don't define cursor if invisible or the
1252 same as before. Set current_cursor.
1253 (x_create_terminal): Set toggle_invisible_pointer_hook.
1254
1255 * xfns.c (make_invisible_cursor): New function.
1256 (x_set_mouse_color): Call make_invisible_cursor.
1257 Set current_cursor.
1258 (x_window): Set current_cursor.
1259
1260 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
1261
1262 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
1263 inserting a character.
1264 (read_avail_input): Call frame_make_pointer_visible.
1265
1266 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
1267 (frame_make_pointer_invisible, frame_make_pointer_visible):
1268 New functions.
e044e4fc
JD
1269 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
1270
1271 * frame.h: Declare frame_make_pointer_invisible and
1272 frame_make_pointer_visible.
1273 (struct frame): Add pointer_invisible.
1274
574c8efa
JD
12752009-07-02 Jan Djärv <jan.h.d@swipnet.se>
1276
7b507248
JD
1277 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
1278 frame isn't visible.
1279 (xg_frame_resized): If width/height is -1, get size of window
1280 from X server.
1281
1282 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
1283 for MapNotify.
1284
835bdaa7 1285 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 1286 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 1287 (flush_and_sync): Reintroduce.
574c8efa 1288
3f1c6666 12892009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 1290
31fd7c5c 1291 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
1292
1293 * xterm.c (x_handle_net_wm_state): Also look for sticky.
1294 (x_term_init): Initialize Xatom_net_wm_state_sticky.
1295
1296 * frame.h: Declare Qsticky.
1297
cad9ef74
JD
1298 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
1299
1300 * nsfns.m (ns_frame_parm_handlers): Ditto.
1301
1302 * frame.c: Declare Qsticky.
1303 (frame_parms): Add sticky.
1304
1305 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
1306
1307 * xterm.h: Declare x_set_sticky.
1308
1309 * xterm.c (x_set_sticky): New function.
1310
69b16610
JD
1311 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
1312 (xg_tool_bar_menu_proxy): Attach enter/leave events to
1313 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
1314
1315 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
1316
1317 * frame.c: Qmaximized is new.
1318 (x_set_frame_parameters): Do not handle fullscreen specially.
1319 Only set width and height if explicitly set.
1320 (x_set_fullscreen): Handle Qmaximized.
1321 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
1322 (syms_of_frame): Initialize Qmaximized.
1323
1ac9108a
SM
1324 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
1325 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
1326
1327 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
1328 for Expose event. Add call to x_check_fullscreen for MapNotify event.
1329 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
1330 set gravity to NorthWestGravity when USE_GTK.
1331 (set_wm_state): New function.
31fd7c5c 1332 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
1333 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
1334 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 1335 or the case when no window manager is running. That means remove calls
3f1c6666
JD
1336 to x_real_positions and x_fullscreen_adjust.
1337
1338 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
1339 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
1340 flush_and_sync.
1341 (xg_height_changed): New function.
1342 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
1343 and gtk_window_set_policy. Set frame gravity after parsing the
1344 geometry string.
3f1c6666
JD
1345 (xg_update_frame_menubar, free_frame_menubar)
1346 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
1347 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
1348 Remove calls to xg_frame_set_char_size.
1349
fd503d99
KH
13502009-07-01 Kenichi Handa <handa@m17n.org>
1351
1352 * keyboard.c (decode_keyboard_code): New function.
1353 (tty_read_avail_input): Decode the input bytes if necessary.
1354
1ac9108a
SM
1355 * coding.c (setup_coding_system):
1356 Initialize coding->carryover_bytes to 0.
fd503d99
KH
1357 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
1358 use Qno_conversion.
1359
24ed93fb
YM
13602009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1361
1362 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
1363
99061dfc
CY
13642009-06-30 Chong Yidong <cyd@stupidchicken.com>
1365
1ac9108a 1366 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 1367
ff90fbde
JR
13682009-06-30 Jason Rumney <jasonr@gnu.org>
1369
1370 * w32term.c (w32_initialize): Use GetModuleHandle for library that
1371 is already loaded.
1372 Set user model ID if supported (bug#1849).
1373
5f445726
JM
13742009-06-29 Jim Meyering <meyering@redhat.com>
1375
1376 Remove useless if-before-xfree test.
1377 * nsfont.m (nsfont_close): Remove useless test.
1378 * term.c (delete_tty): Likewise.
1379 * w32.c (system_process_attributes): Likewise.
1380 * w32font.c (w32font_close): Likewise.
1381 * xfaces.c (x_free_gc): Likewise.
1382 * xselect.c (buffer): Likewise.
1383
b9607587
AS
13842009-06-28 Andreas Schwab <schwab@linux-m68k.org>
1385
1386 * process.c (send_process): Keep decoded string in a local
1387 variable and protect it from GC. (Bug#3521)
1388
89ba96f4
EZ
13892009-06-28 Eli Zaretskii <eliz@gnu.org>
1390
1391 * term.c (create_tty_output) [MSDOS]: #ifdef away.
1392 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
1393
098a1589
CY
13942009-06-28 Chong Yidong <cyd@stupidchicken.com>
1395
485422be
CY
1396 * xdisp.c (start_display, handle_face_prop)
1397 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
1398 (redisplay_window, try_window_id, produce_image_glyph):
1399 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 1400
098a1589
CY
1401 * xterm.c (x_update_window_begin, x_new_focus_frame)
1402 (x_scroll_bar_handle_click, handle_one_xevent)
1403 (handle_one_xevent, XTread_socket, x_focus_on_frame)
1404 (x_make_frame_visible, x_make_frame_invisible)
1405 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
1406 code chunks that are now obsolete.
1407
78c38319
MA
14082009-06-28 Michael Albinus <michael.albinus@gmx.de>
1409
1410 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
1411 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
1412 for hours, when optimzation is enabled.
1413 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
1414 (xd_read_message): Make them static.
1415
4189ed40
CY
14162009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
1417
1418 * term.c (turn_on_face): Allow simultaneously bold and dim
1419 terminal faces (Bug#3530).
1420
cd9b5e16
CY
14212009-06-27 Chong Yidong <cyd@stupidchicken.com>
1422
4e23bedb
CY
1423 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
1424
cd9b5e16
CY
1425 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
1426 truncation glyphs (Bug#3686).
1427
07cc3c35
GM
14282009-06-27 Glenn Morris <rgm@gnu.org>
1429
1430 * m/pmax.h: Restore file, with only netbsd portions.
1431
31fd7c5c 14322009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 1433
cd9b5e16 1434 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 1435
42d4a64f
KH
14362009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
1437
1438 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
1439 the arg FORCE_SYMBOL.
1440
930fe55b 14412009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
1442
1443 * fontset.c (fontset_find_font): When a usable rfont_def is found
1444 in a fallback font-group, make it the first element of the group.
1445
57ebc3fd
CY
14462009-06-24 Chong Yidong <cyd@stupidchicken.com>
1447
1448 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
1449
f084f942
KH
14502009-06-24 Kenichi Handa <handa@m17n.org>
1451
1452 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
1453 set for C.
1454 (fontset_font): Record the availability of a font for C both in
1455 the realized fontsets of the current one and the default one.
1456
2f686c87
DN
14572009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
1458
1459 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
1460 conditional, it is always defined on AIX.
1461
666e158e
MB
14622009-06-23 Miles Bader <miles@gnu.org>
1463
1464 * window.c (Vrecenter_redisplay): New variable.
1465 (syms_of_window): Initialize it.
1466 (Qtty): New extern declaration.
1467 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
1468
c6da7cd2
JM
14692009-06-23 Jim Meyering <meyering@redhat.com>
1470
1ac9108a
SM
1471 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
1472 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 1473 pointer dereferences are guaranteed to be valid.
c6da7cd2 1474
678dca3d
KH
14752009-06-23 Kenichi Handa <handa@m17n.org>
1476
74d75424
KH
1477 * emacs.c (main): Call init_font ().
1478
1479 * font.h (Vfont_log): Extern it.
1480 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
1481
1482 * font.c (font_sort_entities, font_list_entities)
1483 (font_matching_entity, font_open_entity)
1484 (font_close_object): Change font_add_log to FONT_ADD_LOG.
1485 (Vfont_log): Delete static.
1486 (font_log_env_checked): Delete this variable.
1487 (font_add_log): Don't check font_log_env_checked.
1488 (font_deferred_log): Check Vfont_log.
1489 (init_font): New function.
1490
678dca3d
KH
1491 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
1492
1493 * w32font.c: Change font_add_log to FONT_ADD_LOG.
1494
1495 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
1496
1497 * xfont.c: Change font_add_log to FONT_ADD_LOG.
1498
1499 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
1500 (face_for_char): Don't call font_deferred_log here.
1501 (font_for_char): Likewise.
1502
8a668709
CY
15032009-06-22 Chong Yidong <cyd@stupidchicken.com>
1504
9a01ee33
CY
1505 * w32term.c (x_draw_glyph_string): Use the glyph string's width
1506 rather than its background_width for drawing the overline and
1507 underline (Bug#489).
1508
1509 * xterm.c (x_draw_glyph_string): Use the glyph string's width
1510 rather than its background_width for drawing the overline and
1511 underline (Bug#489).
ec7c9926
CY
1512 (xg_default_icon_file): New variable.
1513 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
1514 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 1515
8a668709
CY
1516 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
1517 (load_overlay_strings): Remove externs.
1518 (fast_find_position): Function deleted.
1519 (mouse_face_from_buffer_pos): New function, based on
1520 fast_find_position. Correctly handle before-strings,
1521 display-strings, and after-strings (Bug#1220).
1522 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
1523
4d4c02d8
CY
15242009-06-21 Chong Yidong <cyd@stupidchicken.com>
1525
1ac9108a 1526 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
1527 (move_it_in_display_line_to, move_it_in_display_line_to)
1528 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
1529
70243478
CY
15302009-06-21 Chong Yidong <cyd@stupidchicken.com>
1531
1532 * Branch for 23.1.
1533
13087e59
JR
15342009-06-21 Jason Rumney <jasonr@gnu.org>
1535
1536 * w32term.c (keyboard_codepage): New static variable.
1537 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
1538 (w32_read_socket) [WM_CHAR]: Use it to decode character
1539 input (bug#3237).
1540 (w32_initialize): Initialize it.
1541 (codepage_for_locale): New function.
1542
4735b74e
KR
15432009-06-20 Ken Raeburn <raeburn@raeburn.org>
1544
1545 * process.c (status_message): Pass Faset index argument as a lisp
1546 object, so as to work with USE_LISP_UNION_TYPE.
1547
0e727afa
YM
15482009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1549
1550 * coding.c (Ffind_coding_systems_region_internal):
1551 Cache checked characters.
1552
cf299835
KH
15532009-06-18 Kenichi Handa <handa@m17n.org>
1554
1ac9108a 1555 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 1556
90f20d94
AS
15572009-06-18 Andreas Schwab <aschwab@redhat.com>
1558
1559 * xdisp.c (redisplay_internal): Check that the frame is still
1560 live after redisplay of its windows.
1561 (redisplay_windows): Check that the window is still live.
1562
7f1faf1c
KH
15632009-06-17 Andreas Schwab <schwab@linux-m68k.org>
1564
1565 * coding.c (detect_coding_utf_16): Fix previous change.
1566
cc13543e
KH
15672009-06-16 Kenichi Handa <handa@m17n.org>
1568
1569 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
1570 UTF-16 by checking the dispersion of Eth and Oth bytes.
1571
977b85f4
AS
15722009-06-15 Andreas Schwab <schwab@linux-m68k.org>
1573
1574 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
1575
66bd43d1
KH
15762009-06-15 Kenichi Handa <handa@m17n.org>
1577
1578 * process.c (status_message): Fix previous change. Be sure to
1579 decode a localized string.
1580
cb5ca9c5
YM
15812009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1582
1583 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
1584 add comment explaining why.
1585
ec7709ba 15862009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 1587
ec7709ba 1588 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 1589
4b7f335c
AR
15902009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
1591
1592 * nsfont.m (ns_attribute_value): Remove.
1593 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
1594 (ns_has_attribute): Shrink the normal range.
1595 (ns_findfonts): Don't worry about requested spec in determining
1596 need for synthItal.
e41820ee 1597 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 1598
73b26103
SZ
15992009-06-14 Seiji Zenitani <zenitani@mac.com>
1600
1601 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
1602
5753e4da
KH
16032009-06-11 Kenichi Handa <handa@m17n.org>
1604
1605 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
1606 overhang for the static composition case.
1607
3561b671
KH
16082009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1609
5753e4da
KH
1610 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
1611 overhang for the automatic composition case.
1612
3561b671
KH
1613 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
1614 composition case.
1615
852bbd41
CY
16162009-06-10 Chong Yidong <cyd@stupidchicken.com>
1617
1618 * xdisp.c (get_next_display_element): When handling wrap-prefix
1619 and line-prefix, treat \n as a control character (bug#3502).
1620
9903d1e6
KH
16212009-06-10 Kenichi Handa <handa@m17n.org>
1622
1623 * font.c (font_parse_family_registry): Fix for one-char foundry.
1624 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
1625
0bcbaaaa
CY
16262009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
1627
1628 * process.c (status_message): Fix handling of multibyte signal
1629 string (Bug#3499).
1630
40aa3f13
JM
16312009-06-09 Jim Meyering <meyering@redhat.com>
1632
1f80c7e2
CY
1633 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
1634 color name is missing.
40aa3f13 1635
72d51285
KH
16362009-06-09 Kenichi Handa <handa@m17n.org>
1637
1638 * charset.c (Fmap_charset_chars): In docstring, state clearly that
1639 FROM-CODE and TO-CODE are codepoints of CHARSET.
1640
c1d04d84
AR
16412009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
1642
1643 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
1644
16452009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
1646
1647 Changes to support :script/:lang/:otf in NS font driver.
1648 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
1649 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
1650 indicate not part of font driver interface, and change callers.
1651 (ns_get_family): Remove pointless null check.
1652 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
1653 ns_spec_to_descriptor, ns_descriptor_to_entity.
1654 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
1655 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
1656 (ns_spec_to_descriptor, ns_descriptor_to_entity)
1657 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
1658 (ns_get_req_script, ns_accumulate_script_ranges)
1659 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
1660 New functions.
1661 (nsfont_list, nsfont_match): Use ns_findfonts.
1662 (nsfont_open): Use font descriptor instead of traits.
1663 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
1664 (dump_glyphstring): Rename to ns_dump_glyphstring.
1665
c7eb9816
AR
1666 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
1667
c1d04d84
AR
1668 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
1669
1670 * fontset.c (fontset_from_font): Remove NS-specific code.
1671
ec7709ba 16722009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
1673
1674 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
1675 nonactive windows.
1676
31fd7c5c 16772009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 1678
1ac9108a 1679 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 1680
68852c13 16812009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
1682
1683 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
1684
6756cd1d
CY
16852009-06-07 Chong Yidong <cyd@stupidchicken.com>
1686
1687 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
1688 account for the overflowing of newlines into the last glyph on the
1689 display line (Bug#3482).
1690
28bf482a
DR
16912009-06-05 David Reitter <david.reitter@gmail.com>
1692
ec7709ba
JB
1693 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
1694 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
1695 Fns_selection_exists_p, Fns_selection_owner_p.
1696
fdb55376
JR
16972009-06-03 Jason Rumney <jasonr@gnu.org>
1698
1699 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
1700 available. (Bug#3379)
1701
05129fbe
KH
17022009-05-29 Kenichi Handa <handa@m17n.org>
1703
1ac9108a
SM
1704 * coding.c (get_translation_table):
1705 Check Venable_character_translation.
05129fbe 1706
ec7709ba 17072009-05-26 David Reitter <david.reitter@gmail.com>
15891144 1708
ec7709ba
JB
1709 * nsterm.m (ns_raise_frame): Only raise frame if visible.
1710 (x_make_frame_visible): Move frame to front rather than calling
15891144 1711 ns_raise_frame().
ec7709ba 1712 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 1713 isn't key window.
ec7709ba 1714 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
1715 drawRect may be called by NSView even if the frame is hidden.
1716
ec7709ba
JB
1717 * nsfns.m (Fx_create_frame): Follow other ports in
1718 determining visibility; default to t. Ensure async_visible is set.
15891144 1719
21f73755
EZ
17202009-05-23 Eli Zaretskii <eliz@gnu.org>
1721
1722 * dired.c (Ffile_attributes): Doc fix.
1723
34001e41
CY
17242009-05-22 Chong Yidong <cyd@stupidchicken.com>
1725
1726 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
1727
46306a17
SM
17282009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
1729
1730 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
1731 and xfont_scratch_props.
1732 (syms_of_xfont): Do it here instead.
1733 (xfont_find_ccl_program): Delete, unused.
1734 (xfont_open): Delete unused var `i'.
1735
ef6e0694
KH
17362009-05-21 Kenichi Handa <handa@m17n.org>
1737
1738 * fontset.c (Qlatin): Don't make it static.
1739
46306a17
SM
1740 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
1741 New functions.
ef6e0694
KH
1742 (xfont_scripts_cache, xfont_scratch_props): New variables.
1743 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
1744 (xfont_list_pattern): Argument changed. Callers changed.
1745 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
1746 (xfont_list): Don't reject a font spec with :script property.
1747 (xfont_has_char): Fix setting of encoding.
1748 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
1749 xfont_scratch_props.
1750
17512009-05-19 Kenichi Handa <handa@m17n.org>
1752
46306a17 1753 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
1754 Callers changed.
1755
17562009-05-18 Kenichi Handa <handa@m17n.org>
1757
1758 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
1759
ac71ced7
SM
17602009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
1761
1762 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
1763 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
1764
1c6d1051
YM
17652009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1766
1767 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
1768 (x_delete_terminal): Dissociate resource database from display and
1769 then call XrmDestroyDatabase before closing display.
1770
9b9b779c
AR
17712009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
1772
1773 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
1774 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
1775 whether selected frame is viable before raising it (based on patch
1776 by David Reitter), and improve commentary.
1777 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 1778
cccd42d5
KH
17792009-05-15 Kenichi Handa <handa@m17n.org>
1780
1781 * font.c (Ffont_spec): Check arguments.
1782
337fbd17
CY
17832009-05-14 Chong Yidong <cyd@stupidchicken.com>
1784
1785 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
1786 weight when testing attributes (Bug#3282).
1787
47a6002f
JD
17882009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1789
1790 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
1791 what we expect to get in the next ConfigureNotify event.
1792
9cb363db
YM
1793 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
1794 before Xft one (Bug#1696).
1795
b9126609
CY
17962009-05-07 David Reitter <david.reitter@gmail.com>
1797
1798 * nsfns.m (Fx_display_planes): Compute bitplanes using
1799 NSBitsPerPixelFromDepth (Bug#3207).
1800
27a69fd9
CY
18012009-05-10 Chong Yidong <cyd@stupidchicken.com>
1802
1803 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
1804
00f37552
TTN
18052009-05-10 Ulrich Mueller <ulm@gentoo.org>
1806
1807 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
1808
2d82a920
DR
18092009-05-07 David Reitter <david.reitter@gmail.com>
1810
ec7709ba
JB
1811 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
1812 Respect mouse face background.
2d82a920 1813
46b0d52d
DR
18142009-05-07 David Reitter <david.reitter@gmail.com>
1815
ec7709ba
JB
1816 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
1817 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
1818 in ns_update_begin and ns_update_end.
1819
ce1b23bb
SM
18202009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
1821
5996e1b7
SM
1822 * nsfns.m (ns_get_screen): Rewrite.
1823 Don't presume selected-frame is of type `ns'.
1824
ba98e3a0
SM
1825 * font.c (font_update_drivers): Sanity fallback to avoid disabling
1826 all drivers.
1827
ce1b23bb
SM
1828 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
1829
bcda200f
YM
18302009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1831
1832 * keyboard.h (add_user_signal): Fix typo in extern.
1833
1834 * lisp.h (add_user_signal): Remove extern.
1835
1836 * unexelf.c (unexec): Consider a section to precede the .bss section
1837 if its addresses overlap that of .bss.
1838 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
1839 instead of dumping process.
1840
864660a2
SM
18412009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
1842
1843 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
1844
50da4e56
SM
18452009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
1846
1847 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
1848
51520a1a
DN
18492009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
1850
1851 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
1852 any statements.
1853
409ea3a1
AS
18542009-05-02 Andreas Schwab <schwab@linux-m68k.org>
1855
59c4c60f
AS
1856 * process.c (read_process_output): Make sure the current buffer is
1857 always restored.
1858
409ea3a1
AS
1859 * coding.c (record_conversion_result): Don't modify
1860 Vlast_code_conversion_error for successful result.
1861 (alloc_destination): Don't clobber conversion result. (Bug#1650)
1862
56f00ed2
KH
18632009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
1864
1865 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 1866 (load_charset_map): Remove unnecessary code.
56f00ed2 1867
4491c9d2
DR
18682009-04-30 David Reitter <david.reitter@gmail.com>
1869
35f5b128 1870 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
1871 through f24.
1872
6970f632
CY
18732009-04-30 Chong Yidong <cyd@stupidchicken.com>
1874
1875 * xfaces.c (face_at_buffer_position): New arg base_face_id.
1876
1877 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
1878 face_at_buffer_position.
1879 (face_before_or_after_it_pos, get_next_display_element)
1880 (note_mouse_highlight): Update face_at_buffer_position call.
1881
1882 * term.c (term_mouse_highlight):
1883 * msdos.c (IT_note_mouse_highlight):
1884 * fontset.c (Finternal_char_font):
35f5b128 1885 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
1886
1887 * dispextern.h (face_at_buffer_position): Update prototype.
1888
0c616f63
KH
18892009-04-30 Kenichi Handa <handa@m17n.org>
1890
35f5b128 1891 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 1892
ad3aaf33
AS
18932009-04-29 Andreas Schwab <schwab@linux-m68k.org>
1894
1895 * callproc.c (Fcall_process): Fix GC protection. Make sure
1896 current buffer is always restored.
1897
c3c963a0
YM
18982009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1899
1900 * atimer.c (init_atimer): Also clear stopped_atimers.
1901
1902 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
1903
7e3386cb
YM
1904 * process.c (create_process): Clean up merger residues of
1905 2008-07-17 change.
1906
91f68422
CY
19072009-04-29 Ulrich Mueller <ulm@gentoo.org>
1908
1909 * lread.c (Vread_circle): New variable.
1910 (read1): Disable recursive read if Vread_circle is nil.
1911
24b34550
KH
19122009-04-29 Kenichi Handa <handa@m17n.org>
1913
1914 * fontset.h (set_default_ascii_font): Delete extern.
1915
1916 * fontset.c (set_default_ascii_font): Delete this unused function.
1917
1918 * frame.c (x_set_font): When ARG is a font-object, check if the
1919 font-object matches with the ASCII font-spec of the frame's
9c358bda 1920 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 1921
77bf07e1
AS
19222009-04-28 Andreas Schwab <schwab@linux-m68k.org>
1923
1924 * fns.c (Flocale_info): Protect vector from GC during decoding.
1925
1926 * process.c (Fstart_process): Protect argv strings from GC during
1927 encoding.
1928
2c55aacf
AS
19292009-04-27 Andreas Schwab <schwab@linux-m68k.org>
1930
1931 * sysdep.c: Include <ctype.h>.
1932
b892d3c9
DR
19332009-04-27 David Reitter <david.reitter@gmail.com>
1934
35f5b128 1935 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
1936 Remove commented-out code.
1937
9d0644c4
JB
19382009-04-26 Johan Bockgård <bojohan@gnu.org>
1939
1940 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
1941
b7053016
JR
19422009-04-25 Jason Rumney <jasonr@gnu.org>
1943
1944 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
1945
4e8231f3
YM
19462009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1947
1948 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
1949 Swap bytes in short integer if fringe bitmap width > 8.
1950
493dcf2c
KH
19512009-04-23 Kenichi Handa <handa@m17n.org>
1952
1953 * xfaces.c (Fx_list_fonts): If a font size is specified in
1954 PATTERN, set it in returned scalable fonts.
1955
401e9e57
CY
19562009-04-22 Chong Yidong <cyd@stupidchicken.com>
1957
708e05dc
CY
1958 * keyboard.c (Fset_input_meta_mode): Doc fix.
1959
1960 * dispnew.c (Fsend_string_to_terminal): Doc fix.
1961
1ac9108a 1962 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
1963
1964 * coding.c (Fterminal_coding_system): Doc fix.
1965
1966 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
1967 (Fx_display_pixel_height, Fx_display_planes)
1968 (Fx_display_color_cells, Fx_server_max_request_size)
1969 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
1970 (Fx_display_mm_height, Fx_display_mm_width)
1971 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
1972 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
1973 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
1974 (check_x_display_info): Handle terminal objects instead of
1975 terminal ids.
1976
401e9e57
CY
1977 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
1978 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
1979 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
1980 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 1981
df80c7f0
KH
19822009-04-21 Kenichi Handa <handa@m17n.org>
1983
5a8f12af 1984 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 1985 (font_score): Check AVGWIDTH too.
908567ef 1986
df80c7f0
KH
1987 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
1988 worst case.
1ac9108a
SM
1989 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
1990 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 1991
705af33f
JR
19922009-04-19 Jason Rumney <jasonr@gnu.org>
1993
1994 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 1995 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
1996
1997 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
1998 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
1999 get_phys_cursor_geometry.
2000
b71ac3dd 2001 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
2002 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
2003 using get_phys_cursor_geometry.
2004
2005 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
2006 correctly calculated.
2007
dc2933eb
JD
20082009-04-19 Jan Djärv <jan.h.d@swipnet.se>
2009
1ac9108a
SM
2010 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
2011 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
2012 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
2013 is deprecated.
2014
973e7849
AS
20152009-04-18 Andreas Schwab <schwab@linux-m68k.org>
2016
2017 * font.c (font_put_frame_data): Use xfree instead of free.
2018
314d66f4
JB
20192009-04-17 Juanma Barranquero <lekktu@gmail.com>
2020
2021 * w32font.c (Qja, Qko): Remove declarations.
2022 (syms_of_w32font): Don't DEFSYM them.
2023
cf702558
CY
20242009-04-17 Chong Yidong <cyd@stupidchicken.com>
2025
2026 * font.c (Qja, Qko): Move definitions here from ftfont.c.
2027
2028 * font.h (Qja, Qko): Extern them.
2029
2030 * ftfont.c (Qja, Qko): Remove declarations.
2031
2032 * xfont.c (Qja, Qko): Remove declarations.
2033
b50504f5
KH
20342009-04-17 Kenichi Handa <handa@m17n.org>
2035
bde25748
KH
2036 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
2037 string from a vector to handle Latin-1 characters correctly.
2038
b50504f5
KH
2039 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
2040 entity even if the cache hits.
2041
f4646fff
AS
20422009-04-16 Andreas Schwab <schwab@linux-m68k.org>
2043
2044 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 2045 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 2046
e7deaab0
AS
2047 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
2048 * lisp.h: Adjust prototypes.
2049
0a0e7d49
CY
20502009-04-16 Chong Yidong <cyd@stupidchicken.com>
2051
2052 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
2053 change (Bug#3003).
2054
3c908a57
KH
20552009-04-16 Kenichi Handa <handa@m17n.org>
2056
1ac9108a 2057 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
2058
2059 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
2060 adstyle.
2061
2062 * ftfont.c (Qja, Qko): Don't make them static.
2063 (enum ftfont_cache_for): New enum.
2064 (fc_charset_table): Undo the previous change.
2065 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
2066 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
2067 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
2068 non-scarable font, try to get AVERAGE_WIDTH.
2069 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
2070 Change ft_face_cache from a list of a hash-table. Don't check
2071 `ja' and `ko' adstyle here.
2072 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
2073 FTFONT_CACHE_FOR_CHARET.
2074 (ftfont_get_charset): Undo the previous change.
1ac9108a 2075 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
2076 (ftfont_close): Likewise.
2077 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
2078
2079 * font.c (font_sort_entites): Change the meaning of the arg
2080 BEST-ONLY. Don't optimize for VEC of lenght 1.
2081 (font_select_entity): Just return the value of font_sort_entites.
2082
2083 * xfaces.c (merge_face_vectors): Reflect font properties in
2084 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
2085 font_clear_prop if a face attribute doesn't change.
2086
3c908a57
KH
2087 * charset.h (charset_ksc5601): Extern it.
2088
2089 * charset.c (charset_ksc5601): New variable.
2090 (Fdefine_charset_internal): Set charset_ksc5601.
2091 (init_charset_once): Initialize charset_ksc5601 to -1.
2092
d65859c3
DN
20932009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
2094
2095 * fileio.c (history_delete_duplicates): Remove unused declaration.
2096
2097 * callint.c (history_delete_duplicates): New declaration.
2098 (Fcall_interactively): Remove command history duplicates when
2099 history_delete_duplicates is true.
2100
3ba010e5
EZ
21012009-04-14 Eli Zaretskii <eliz@gnu.org>
2102
2103 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
2104
06f19b91
KH
21052009-04-14 Kenichi Handa <handa@m17n.org>
2106
2107 * font.c (Ffont_info): Fix docstring. Fix the second element of
2108 the returned value (bug#2949).
2109
2cce8bfc
CY
21102009-04-14 Chong Yidong <cyd@stupidchicken.com>
2111
2112 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
2113
d156542d
KH
21142009-04-14 Kenichi Handa <handa@m17n.org>
2115
2116 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
2117 encoding charset is ascii_compatible.
2118
2119 * charset.c (Fdefine_charset_internal): Make charset
2120 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
2121 code_offset is 0, and covers all ASCII characters.
2122
86fa089e
SM
21232009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
2124
2125 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
2126 (ns_string_to_pasteboard_internal):
2127 * nsmenu.m (process_dialog):
2128 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
2129 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
2130 * lisp.h (Fx_load_color_file): Declare.
2131
a8a3728b
KH
21322009-04-13 Kenichi Handa <handa@m17n.org>
2133
1ac9108a 2134 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
2135 (font_select_entity): Suppress the code to optimize for the same
2136 kind of fonts.
2137 (font_load_for_lface): Get a font that supports at least ASCII
2138 characters.
2139
2140 * ftfont.c (Qja, Qko): New variables.
2141 (fc_charset_table): Delete uniquifier data for iso8859-1.
2142 (ftfont_get_latin1_charset): New function.
2143 (get_adstyle_property): New function.
2144 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
2145 bitmap fonts.
2146 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
2147 Delete iso-8859-1 range from the charset of fonts whose adstyle is
2148 `ko' or `ja'.
2149 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 2150 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
2151 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
2152 property.
2153 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
2154 (syms_of_ftfont): DEFSYM Qja and Qko.
2155
483670b5
KH
21562009-04-09 Kenichi Handa <handa@m17n.org>
2157
12b55765
KH
2158 * charset.c (map_charset_chars): For a charset of `superset'
2159 method, fix calculation of code range.
2160
483670b5
KH
2161 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
2162 from the list of extra properties.
2163 (font_clear_prop): Be sure to delete `:name' font property.
2164
57d3b93b
KH
21652009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2166
b4b2c2ca
YM
2167 * dispnew.c (redraw_overlapping_rows): Fix detection of
2168 overlapping for topmost and bottommost rows.
2169
1ac9108a 2170 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 2171
472c3609
JR
21722009-04-06 Jason Rumney <jasonr@gnu.org>
2173
2174 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
2175
ab193662
KH
21762009-04-06 Kenichi Handa <handa@m17n.org>
2177
2178 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
2179
2180 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
2181
0c26f026
KH
21822009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2183
2184 * ftfont.c (ftfont_open): Fix checking of the return value of
2185 FT_Load_Char. Fix setting font->underline_thickness.
2186
e173bbce
CY
21872009-04-04 Chong Yidong <cyd@stupidchicken.com>
2188
2189 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
2190 (Fterminal_parameters, Fterminal_parameter)
2191 (Fset_terminal_parameter): In doc string, refer to terminal
2192 objects rather than terminal ids.
2193
693a2698
EZ
21942009-04-04 Eli Zaretskii <eliz@gnu.org>
2195
2196 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
2197 ret_lim_data. (Bug#2867)
2198
d5221487
CY
21992009-04-03 Chong Yidong <cyd@stupidchicken.com>
2200
2201 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
2202 so they don't get wider than the window, matching 2006-01-23
2203 change to the partner function in xdisp.c (Bug#2800).
2204
223509a3
KH
22052009-04-03 Kenichi Handa <handa@m17n.org>
2206
2207 * print.c (print_object): Make each lowest sub_char_table start a
2208 new line (Bug#2866).
2209
74fcd0b1
KH
22102009-04-02 Kenichi Handa <handa@m17n.org>
2211
2212 * fontset.c (fontset_font): Record no-font when a fontset
2213 explicitly tells not to try another font-specs.
2214
c542407d
SM
22152009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
2216
2217 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
2218
e3869731
KH
22192009-03-30 Kenichi Handa <handa@m17n.org>
2220
d8d2f142
KH
2221 * fontset.c (fontset_from_font): Specify only registry in a
2222 font-spec for all characters supported by that registry.
2223
e3869731
KH
2224 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
2225 even if HAVE_M17N_FLT is not defined.
2226
5da5f805
CY
22272009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
2228
2229 * ftfont.c: Conditionalize prototyping and use of
2230 ftfont_variation_glyphs.
2231
ab226c50
SM
22322009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
2233
9628fed7
SM
2234 * frame.c (delete_frame): Work around compiler bug.
2235
2236 * editfns.c (general_insert_function): Adjust to insdel.c changes.
2237 * insdel.c (prepare_to_modify_buffer, signal_before_change):
2238 Some more EMACS_INT.
2239 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
2240
2241 * xdisp.c (dump_glyph): Fix typo.
2242
ae19ba7c
SM
2243 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
2244 (adjust_markers_gap_motion, adjust_markers_for_delete)
2245 (adjust_markers_for_insert, adjust_point)
2246 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
2247 (make_gap, copy_text, count_size_as_multibyte, insert)
2248 (insert_and_inherit, insert_before_markers)
2249 (insert_before_markers_and_inherit, insert_1)
2250 (count_combining_before, count_combining_after, insert_1_both)
2251 (insert_from_string, insert_from_string_before_markers)
2252 (insert_from_string_1, insert_from_gap, insert_from_buffer)
2253 (insert_from_buffer_1, adjust_after_replace)
2254 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
2255 (replace_range_2, del_range, del_range_1, del_range_byte)
2256 (del_range_both, del_range_2, modify_region)
2257 (prepare_to_modify_buffer, signal_before_change)
2258 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
2259 for buffer positions and sizes.
2260 * lisp.h: Adjust prototypes accordingly.
2261
2262 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
2263 (non_regular_inserted, non_regular_nbytes, read_non_regular)
2264 (Finsert_file_contents): Use EMACS_INT for buffer positions.
2265
ab226c50
SM
2266 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
2267
46dfb8fb
JD
22682009-03-27 Jan Djärv <jan.h.d@swipnet.se>
2269
2270 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
2271 lines and columns so we keep the same pixel height and width.
2272
2273 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
2274 the property _NET_WM_STATE has changed.
46dfb8fb
JD
2275 (x_handle_net_wm_state): New function to update frame parameter
2276 fullscreen.
2277 (x_term_init): Initialize atoms for _NET_WM_STATE.
2278
2279 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
2280
d347e494
SM
22812009-03-27 Kevin Ryde <user42@zip.com.au>
2282
2283 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
2284 Gpm_GetEvent as an error that justifies closing the filedescriptor.
2285 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
2286 (Fgpm_mouse_stop): Pass that new parameter.
2287 * termhooks.h (close_gpm): Adjust prototype.
2288
84db11d6
SM
22892009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
2290
c95a5008
SM
2291 * lisp.h (Fx_focus_frame): Declare.
2292
84db11d6
SM
2293 * callint.c (Fcall_interactively): For '^' just delegate the work to
2294 handle-shift-selection.
2295 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
2296
0a1958d6
CY
22972009-03-24 Chong Yidong <cyd@stupidchicken.com>
2298
0bfdff23
CY
2299 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
2300
0a1958d6
CY
2301 * data.c (Qinteractive_form): New variable.
2302 (Finteractive_form): Use it.
2303
2304 * eval.c (Fcommandp): Use Qinteractive_form.
2305
58aec0d6
JR
23062009-03-24 Jason Rumney <jasonr@gnu.org>
2307
2308 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
2309 Calculate total size precisely. Decode environment variables
2310 before substituting. (Bug#38)
2311
553dd618
KH
23122009-03-24 Kenichi Handa <handa@m17n.org>
2313
2314 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 2315 encoding (Bug#2722).
553dd618 2316
c39ea606
JD
23172009-03-23 Jan Djärv <jan.h.d@swipnet.se>
2318
2319 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
2320 that gdpy is set.
2321
bc9b2b5e
AM
23222009-03-22 Alan Mackenzie <acm@muc.de>
2323
2324 * callint.c (Finteractive): Clarify the doc string - even
2325 promptless elements need \n separators.
2326
9f995a76
JR
23272009-03-22 Jason Rumney <jasonr@gnu.org>
2328
2329 * w32term.c (syms_of_w32term): Doc fix for
2330 x-use-underline-position-properties.
2331
22749e9a
EZ
23322009-03-21 Eli Zaretskii <eliz@gnu.org>
2333
2334 * w32.c (getpwuid): Change argument type to unsigned.
2335 (struct w32_id): Change type of `rid' member to unsigned.
2336 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
2337 argument ID to unsigned. All callers changed.
2338 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
2339
e00553bf
EZ
23402009-03-20 Eli Zaretskii <eliz@gnu.org>
2341
2342 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
2343 negative, produce a float value.
2344
2345 * dired.c (make_uid, make_gid): New functions.
2346 (Ffile_attributes): Use them to avoid negative UID and GID.
2347
f761d6b6
JB
23482009-03-20 Juanma Barranquero <lekktu@gmail.com>
2349
2350 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
2351 (syms_of_keyboard) <command-hook-internal, input-method-function>:
2352 Fix typos in docstrings.
2353
d507f8d7
KH
23542009-03-19 Kenichi Handa <handa@m17n.org>
2355
2356 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
2357 changed, use font_load_for_lface to get a new font object.
2358 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
2359
2360 * frame.c (x_set_font): Handle the case that ARG is a cons.
2361
c68845e0
GM
23622009-03-19 Glenn Morris <rgm@gnu.org>
2363
2364 * fileio.c (Fsubstitute_in_file_name): Doc fix.
2365
bfa49dd1
CY
23662009-03-19 Chong Yidong <cyd@stupidchicken.com>
2367
2368 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
2369
8458d4c1
KH
23702009-03-19 Kenichi Handa <handa@m17n.org>
2371
2372 * charset.c (load_charset_map_from_file): When a mapfile can't be
2373 loaded, signal an error.
2374
78e7d1fe
EZ
23752009-03-18 Eli Zaretskii <eliz@gnu.org>
2376
2377 * dired.c (Ffile_attributes): Make sure UID and GID are always
2378 positive, even if the value is too large for a positive EMACS_INT.
2379 Doc fix.
2380
2381 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
2382
5da9fdfa
YM
23832009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2384
2385 * xmenu.c (xdialog_show): Move Fredisplay call ...
2386 (Fx_popup_dialog): ... here.
2387
7519c40d
SM
23882009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
2389
2390 * dired.c (file_name_completion): Disable the first optimization just
2391 installed, since it is not implemented correctly.
2392
2cd298e2
SM
23932009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
2394
2395 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 2396 only if the entry can affect bestmatch.
2cd298e2
SM
2397 Stop the search early, as Ftry_completion already does.
2398
48d37adf
CY
23992009-03-17 Chong Yidong <cyd@stupidchicken.com>
2400
e10c9c93 2401 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 2402
9286b16a
CY
24032009-03-15 Chong Yidong <cyd@stupidchicken.com>
2404
2405 * keyboard.c (parse_menu_item): Don't display remappings as menu
2406 equivalent bindings (Bug#788).
2407
f7b146dc
JR
24082009-03-15 Jason Rumney <jasonr@gnu.org>
2409
2410 * w32term.h (WM_EMACS_PAINT): New message.
2411 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
2412 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
2413 before passing to lisp thread. (Bug#950)
2414
f761d6b6 24152009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 2416
d93f9575
CY
2417 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
2418 variable as it was never reset.
2419 (ns_term_init): Remove initialization of Lisp-settable defaults
2420 and ns_expand_space.
2421 (-setPanelFromDefaultValues): Remove ns_expand_space.
2422 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
2423 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
2424 i.e. no additional spacing, similar to Carbon port.
2425
d93f9575
CY
2426 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
2427 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 2428
305018ec
JD
24292009-03-14 Jan Djärv <jan.h.d@swipnet.se>
2430
2431 * sound.c (alsa_configure): Remove call to deprecated
2432 snd_pcm_sw_params_set_xfer_align.
2433
f761d6b6 24342009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
2435
2436 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
2437 after clicking in a detached tool bar.
2438 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
2439
46e722a9
SM
24402009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
2441
348db3dd
SM
2442 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
2443 int/Lisp_Object mixup).
46e722a9 2444
a3d16f39
KH
24452009-03-13 Kenichi Handa <handa@m17n.org>
2446
2447 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 2448 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
2449 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
2450 (set_fontset_font): Change ARG to a vector. Handle range_list in
2451 ARG correctly.
2452 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 2453 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
2454 the above change.
2455 (fontset_from_font): Fix previous change.
fe24f56a 2456 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
2457 entry. If FONTSET is the default fontset, don't set the extra
2458 slot of the returning char-table.
2459
b066e6b6
JB
24602009-03-12 Juanma Barranquero <lekktu@gmail.com>
2461
2462 * nsfns.m (Fx_close_connection): Doc fix.
2463 (Fns_do_applescript): Reflow docstring.
2464 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
2465 (Fx_display_pixel_width, Fx_display_pixel_height)
2466 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
2467 Fix typos in docstrings.
2468 (Fns_set_alpha): Fix typos in error messages.
2469
d472514e 24702009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 2471
d472514e 2472 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
2473 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
2474 were used for such events.
2475
d472514e
JB
2476 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
2477 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 2478
d472514e 2479 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
2480 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
2481
fb930676
KH
24822009-03-11 Kenichi Handa <handa@m17n.org>
2483
ff85581a
KH
2484 * font.h (font_open_by_spec): Extern it.
2485
c50b7e98
KH
2486 * font.c (font_open_by_spec): New function.
2487 (font_open_by_name): Use font_open_by_spec.
2488
fb930676
KH
2489 * frame.c (x_set_font): When ARG is a font-object, don't alter the
2490 fontset of the frame.
2491
2492 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
2493 modify the default font of frames that use this fontset.
2494 (num_auto_fontsets): New variable.
2495 (fontset_from_font): Use num_auto_fontsets to decide a fontset
2496 name. Be sure to set FONTSET_ASCII to the correct font name.
2497 (update_auto_fontset_alist): New function.
2498
df4e8455
JB
24992009-03-11 Juanma Barranquero <lekktu@gmail.com>
2500
2501 * makefile.w32-in: Update dependencies.
2502
0a375797
AR
25032009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
2504
2505 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
2506
61313fa3
SM
25072009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
2508
2509 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
2510
b55103fb
CY
25112009-03-10 Chong Yidong <cyd@stupidchicken.com>
2512
2513 * lread.c (Feval_buffer): Doc fix.
2514
dde2559c
KH
25152009-03-09 Kenichi Handa <handa@m17n.org>
2516
2517 * charset.c (Qfile_name_handler_alist): Extern it.
2518 (load_charset_map_from_file): Temporarily bind
2519 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
2520
df4e8455 25212009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 2522
47f588bb
GM
2523 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
2524 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 2525
4ddf94bd
AR
25262009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
2527
4c9bdfc2
AR
2528 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
2529 (x_set_window_size): Change back to calculated method of setting
2530 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
2531 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
2532 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
2533
fe41ae9e
AR
2534 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
2535
4c9bdfc2
AR
2536 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
2537 accelerator in parens under GNUstep.
2538
825d0875
KH
25392009-03-06 Kenichi Handa <handa@m17n.org>
2540
2541 These changes are to detect incorrect composition sequence without
f3b3be74 2542 looking ahead the source. (Bug#2370)
825d0875
KH
2543
2544 * coding.h: Include "composite.h".
2545 (enum compisition_state): New enum.
2546 (struct compisition_status): New struct.
2547 (struct iso_2022_spec): New member cmp_status.
2548 (struct emacs_mule_spec): New struct.
2549 (struct coding_system): New members ctext_extended_segment_len and
2550 embedded_utf_8. Change the union member
2551 spec.emacs_mule_full_support to spec.emacs_mule.
2552
2553 * coding.c (CODING_ISO_CMP_STATUS): New macro.
2554 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 2555 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
2556 (ADD_COMPOSITION_DATA): New arg nbytes.
2557 (emacs_mule_char): New arg cmp_status.
2558 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
2559 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
2560 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
2561 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
2562 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
2563 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
2564 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
2565 (EMACS_MULE_COMPOSITION_END): New macro.
2566 (emacs_mule_finish_composition): New function.
2567 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
2568 (decode_coding_emacs_mule): Avoid long looking ahead while
2569 handling composition.
2570 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
2571 (ENCODE_COMPOSITION_RULE): New macro.
2572 (finish_composition): New function.
2573 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
2574 (DECODE_COMPOSITION_START): New implementation.
2575 (DECODE_COMPOSITION_END): Likewise.
2576 (STORE_COMPOSITION_RULE): New macro.
2577 (decode_coding_iso_2022): Avoid long looking ahead while handling
2578 composition, CTEXT extended segment, and embedded UTF-8.
2579 (setup_coding_system): For a coding of type iso-2022, reset
2580 CODING_ISO_EXTSEGMENT_LEN (coding) and
2581 CODING_ISO_EMBEDDED_UTF_8 (coding).
2582 (get_translation): Delete arguments last_block, from_nchars,
2583 to_nchars. Callers changed.
2584 (produce_chars): Don't modify charbuf. Adjusted for the change of
2585 get_translation.
98a326f7 2586 (produce_composition): Adjust for the new annotation sequence.
825d0875 2587 (handle_composition_annotation): Likewise.
98a326f7 2588 (consume_chars): Adjust for the change of get_translation.
825d0875 2589
ccbc4452
AR
25902009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
2591
4ddf94bd 2592 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 2593
988a7ddb
KH
25942009-03-05 Kenichi Handa <handa@m17n.org>
2595
2596 * font.c (font_select_entity): New function.
2597 (font_find_for_lface): Use font_select_entity to select a font.
2598
2599 * fontset.c (fontset_find_font): If a font found without
a8a3728b 2600 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
2601 font with C restriction.
2602
98a326f7 26032009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 2604
be1bce46 2605 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 2606
10ea2b82
JR
26072009-03-04 Jason Rumney <jasonr@gnu.org>
2608
2c93b248 2609 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 2610 characters that have already been read. (Bug#2569)
2c93b248 2611
10ea2b82
JR
2612 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
2613 Log an error message if check_image_size failed.
2614 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 2615 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 2616
71a0c011
EZ
26172009-03-02 Eli Zaretskii <eliz@gnu.org>
2618
2619 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
2620 when decoding process output.
2621
2f63bba8
RS
26222009-03-01 Richard M Stallman <rms@gnu.org>
2623
2624 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
2625
2626 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
2627
0a9564cb
EZ
26282009-02-28 Eli Zaretskii <eliz@gnu.org>
2629
2630 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
2631 (decode_coding_emacs_mule, decode_coding_iso_2022)
2632 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
2633 (decode_coding_raw_text, decode_coding_charset)
2634 (setup_coding_system, decode_eol, decode_coding, consume_chars):
2635 Honor inhibit-eol-conversion. (Bug #2186)
2636
449148b3
JR
26372009-02-28 Jason Rumney <jasonr@gnu.org>
2638
2639 * coding.c (detect_coding_charset): If not checking latin extra,
2640 fail on characters between 0x80 and 0xA0. (Bug#2354)
2641
a4aee864
EZ
26422009-02-28 Eli Zaretskii <eliz@gnu.org>
2643
2644 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 2645 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 2646
d88bee5a
GM
26472009-02-27 Glenn Morris <rgm@gnu.org>
2648
2649 * callint.c (Finteractive): Doc fix.
2650
a808f22d
KH
26512009-02-27 Kenichi Handa <handa@m17n.org>
2652
2653 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
2654
caf8d60c
CY
26552009-02-27 Chong Yidong <cyd@stupidchicken.com>
2656
2657 * font.c (font_style_to_value): Set value for unknown symbols to
2658 100 instead of 255.
b61137ea
CY
2659 (weight_table, slant_table, width_table): Treat "unspecified" as
2660 the default value.
caf8d60c 2661
1a0de25c
JB
26622009-02-26 Juanma Barranquero <lekktu@gmail.com>
2663
2664 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
2665
8fc45744
JB
26662009-02-25 Juanma Barranquero <lekktu@gmail.com>
2667
107bd7d1
JB
2668 * lread.c (Fload): Stop checking Vloads_in_progress and signal
2669 error as soon as a recursive load is detected.
8fc45744 2670
f097e223
AR
26712009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2672
2673 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
2674 before caching.
2675
8810a12f
KH
26762009-02-24 Kenichi Handa <handa@m17n.org>
2677
2678 * fontset.c (fontset_find_font): Fix the condition for checking
2679 unavailable font.
2680
2c7d1565
GM
26812009-02-24 Glenn Morris <rgm@gnu.org>
2682
2683 * xfaces.c (Finternal_set_font_selection_order): Remove leading
2684 whitespace that confuses documentation.
2685
a20878b6
MB
26862009-02-23 Miles Bader <miles@gnu.org>
2687
2688 * process.c (Flist_system_processes, Fprocess_attributes)
2689 (syms_of_process): Rename `system-process-attributes' to
2690 `process-attributes'.
2691
b3b58c01
AS
26922009-02-22 Andreas Schwab <schwab@linux-m68k.org>
2693
1b3b981b
AS
2694 * coding.h (struct coding_system): Make safe_charsets a pointer to
2695 unsigned char.
2696 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
2697 being 255.
2698 (SAFE_CHARSET_P): Likewise.
2699 (setup_iso_safe_charsets): Properly setup safe_charsets.
2700 (Fdefine_coding_system_internal): Likewise.
2701 (setup_coding_system): Likewise. Remove unneeded casts.
2702 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
2703 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
2704 unneeded casts.
2705
b3b58c01
AS
2706 * insdel.c (del_range_2): Don't modify gap contents when called
2707 from decode_coding_object. (Bug#1809)
2708
0b6f228c
CY
27092009-02-21 Chong Yidong <cyd@stupidchicken.com>
2710
2711 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
2712 Qfont_object.
2713 (Ftype_of): Recognize font objects.
2714
2715 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
2716
2717 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
2718 moved to data.c.
2719
52f8870b
AR
27202009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
2721
2722 * nsterm.m (x_make_frame_invisible): Unset async_visible,
2723 async_iconified. Based on a patch by Christian Lynbech
2724 <christian.lynbech@tieto.com>.
2725 (EmacsView-windowDidMiniaturize:): Unset async_visible.
2726
7087d5e9
GM
27272009-02-20 Glenn Morris <rgm@gnu.org>
2728
2729 * syntax.c (Fskip_chars_forward): Fix doc typo.
2730
41d2ceef
CY
27312009-02-20 Chong Yidong <cyd@stupidchicken.com>
2732
2733 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
2734
1a3b7ca6
CY
27352009-02-19 Chong Yidong <cyd@stupidchicken.com>
2736
2737 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
2738
73cce38d
KH
27392009-02-19 Kenichi Handa <handa@m17n.org>
2740
2741 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 2742 Don't overflow coding->carryover. (Bug#2370)
73cce38d 2743
a51092ee
DN
27442009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
2745
2746 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
2747
c423ecca
KH
27482009-02-18 Kenichi Handa <handa@m17n.org>
2749
2750 * font.c (font_check_otf_features): Fix handling of `nil' element.
2751 (Ffont_spec): Describe :lang and :otf in the docstring.
2752
4c1958f4
AS
27532009-02-16 Andreas Schwab <schwab@suse.de>
2754
2755 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
2756 string.
2757
5704f39a
KH
27582009-02-16 Kenichi Handa <handa@m17n.org>
2759
2760 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 2761 (Bug#1723)
5704f39a 2762
8f0085aa
CY
27632009-02-14 Chong Yidong <cyd@stupidchicken.com>
2764
a057d86a 2765 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
2766
2767 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
2768 (handle_line_prefix): Suppress wrapping of wrap prefixes.
2769
aff01dd9
EZ
27702009-02-14 Eli Zaretskii <eliz@gnu.org>
2771
2772 * msdos.c (MAX_SCREEN_BUF): New macro.
2773 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
2774 Encode the entire run of glyphs sharing the same face, instead of
2775 doing that one glyph at a time (fixes a bug with displaying
2776 double-size characters).
2777
ba301db3
AR
27782009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
2779
2780 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
2781
2782 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
2783 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 2784 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
2785
2786 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 2787 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 2788
51d861de
SM
27892009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
2790
2791 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
2792 invisible areas.
2793
7fed8996
JR
27942009-02-12 Jason Rumney <jasonr@gnu.org>
2795
631ea4fb
JR
2796 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
2797 (add_font_entity_to_list): Call check_face_name even when family
2798 is unspecified.
2799
cb4a3e42
JR
2800 * w32term.c (x_display_pixel_height, x_display_pixel_width):
2801 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 2802 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 2803
7fed8996 2804 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 2805 raster fonts. (Bug#2219)
7fed8996 2806
895416e3
KH
28072009-02-12 Kenichi Handa <handa@m17n.org>
2808
2809 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
2810 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
2811 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 2812 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
2813 (find_automatic_composition): While looking forward and backward,
2814 check static composition. Fix where to stop looking forward.
2815 (composition_adjust_point): Fix checking of static composition.
2816 (Fcomposition_get_gstring): Pay attention to
1dacf998 2817 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
2818
2819 * lisp.h (fast_looking_at): Extern it.
2820
2821 * search.c (fast_looking_at): New function.
2822
51d861de 2823 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
2824 <struct glyph>.u.cmp.to.
2825 (append_composite_glyph): Likewise.
2826
51d861de 2827 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
2828 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
2829 composition.
51d861de 2830 (append_composite_glyph): Adjust for the change of
895416e3
KH
2831 <strcut glyph>.u.cmp.to.
2832
8510724d
JB
28332009-02-11 Juanma Barranquero <lekktu@gmail.com>
2834
2835 * casetab.c (init_casetab_once):
2836 * coding.c (ALLOC_CONVERSION_WORK_AREA):
2837 * font.c (font_update_lface):
2838 * fontset.c (Fnew_fontset):
2839 * ftfont.c (ftfont_drive_otf):
2840 * xfont.c (xfont_open):
2841 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
2842
294fa707
SM
28432009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
2844
2845 * fileio.c (Fwrite_region): !NILP -> CONSP.
2846
b5bfebec
AS
28472009-02-10 Andreas Schwab <schwab@suse.de>
2848
2849 * process.c (send_process): Properly relocate pointer into data
adab88bd 2850 when using encoded data. (Bug#2272)
b5bfebec 2851
cb84a2be
KH
28522009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
2853
2854 * coding.c (detect_coding_charset): Fix previous change.
2855
89e09428
JR
28562009-02-08 Jason Rumney <jasonr@gnu.org>
2857
2858 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 2859 disappeared while hourglass was displayed. (Bug #2193)
89e09428 2860
4470a277
AS
28612009-02-07 Andreas Schwab <schwab@suse.de>
2862
2863 * unexelf.c (unexec): Fix error message.
2864
3175b12a
AR
28652009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
2866
2867 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 2868 when modal window is active. (Bug #2152)
3175b12a
AR
2869 (applicationShouldTerminate:): Remove now-unneeded while loop
2870 around NSRunAlertPanel.
2871
2872 * nsmenu.m (popupSession): New file-global variable.
2873 (pop_down_menu): End the popupSession before closing dialog.
2874 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
2875 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
2876 don't query NSApp for events (just sleep instead).
2877
8434d0b8
EZ
28782009-02-07 Eli Zaretskii <eliz@gnu.org>
2879
51d861de
SM
2880 * coding.c (syms_of_coding) <translation-table-for-input>:
2881 Modify doc string to discourage use for character code unification.
8434d0b8 2882
aa82edfd
CY
28832009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2884
2885 * atimer.c (run_timers): Update pending_atimers.
2886
2d283c7c
CY
28872009-02-06 Chong Yidong <cyd@stupidchicken.com>
2888
eb306cab
CY
2889 * image.c (svg_load_image): Fix last change.
2890
2d283c7c
CY
2891 * xfns.c (Fx_create_frame): Signal an error if no font is
2892 found (Bug#2147).
2893
4d8e170e
JB
28942009-02-05 Juanma Barranquero <lekktu@gmail.com>
2895
2896 * character.c (syms_of_character) <script-representative-chars>:
2897 Fix typo in docstring.
2898
c96169a0
AR
28992009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
2900
2901 * nsmenu.m (pop_down_menu): New function.
2902 (ns_popup_dialog): Call it on unwind.
2903 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
2904 call timer_check() (Bug#2154).
2905 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
2906 handling_signal is set.
2907 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
2908
31fd7c5c 2909 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
2910
2911 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
2912
2913 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
2914
51d861de
SM
2915 * keyboard.c (poll_for_input_1, handle_async_input):
2916 Set handling_signal under HAVE_NS.
c96169a0 2917
aacd8ba1
GM
29182009-02-04 Glenn Morris <rgm@gnu.org>
2919
2920 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
2921
4cb75c4b
KH
29222009-02-04 Kenichi Handa <handa@m17n.org>
2923
2924 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
2925
2926 * charset.c (Fchar_charset): New optional arg restriction.
2927
2928 * coding.h (coding_system_charset_list): Extern it.
2929
2930 * coding.c (coding_system_charset_list): New function.
2931
2932 * composite.c: Include coding.h and termhooks.h.
2933 (composition_gstring_p): Fix for the terminal case.
2934 (composition_gstring_width): Likewise.
2935 (fill_gstring_body): Likewise.
2936 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
2937 the frame.
2938 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
2939 is within a composition.
867d4bb3 2940 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
2941
2942 * term.c (encode_terminal_code): Fix handling of composition.
2943 (produce_composite_glyph): For static composition, get pixel_width
2944 from struct composition.
2945
826ba17e
AS
29462009-02-02 Andreas Schwab <schwab@suse.de>
2947
2948 * unexelf.c (unexec): Handle unaligned bss offset.
2949
8ad093db
AR
29502009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
2951
2952 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
2953 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 2954
8ad093db
AR
2955 * keyboard.c (handle_interrupt): Don't call
2956 quit_throw_to_read_char() under NS.
d0a76a6e 2957
8ad093db
AR
2958 * blockinput.h: Remove NS-specific code.
2959
4d18a7a2
DN
29602009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
2961
db878925
DN
2962 * dispnew.c (window_change_signal): Don't try to get the size of a
2963 suspended tty frame.
2964 * term.c (Fresume_tty): Resize if the size has changed while the
2965 tty was suspended.
2966
4d18a7a2
DN
2967 * alloc.c (mark_stack): Properly conditionalize previous change.
2968
8984df7c
JB
29692009-01-30 Juanma Barranquero <lekktu@gmail.com>
2970
2971 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
2972 * w32term.c (w32_read_socket) [SYNC_INPUT]:
2973 Remove; this code is not used on Windows.
2974
75f4f1ac
EZ
29752009-01-30 Eli Zaretskii <eliz@gnu.org>
2976
2977 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
2978 EOLs that also has stray ^M characters.
2979
07a1e794
JB
29802009-01-30 Juanma Barranquero <lekktu@gmail.com>
2981
2982 * atimer.c (run_timers, alarm_signal_handler):
2983 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
2984 * w32inevt.c (w32_console_read_socket):
2985 * w32term.c (w32_read_socket):
2986 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
2987
a8b11cc9
CY
29882009-01-30 Chong Yidong <cyd@stupidchicken.com>
2989
2990 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
2991 Initialize it as a relative filename pattern.
2992 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
2993 (Fcall_process_region): Simplify temp file creation using
2994 temporary-file-directory.
2995
c279587b
EZ
29962009-01-29 Eli Zaretskii <eliz@gnu.org>
2997
2998 * msdos.c: Rename pending_signals to msdos_pending_signals.
2999 (sig_suspender, sigprocmask): Adjust.
3000
a8fe3242
CY
30012009-01-29 Chong Yidong <cyd@stupidchicken.com>
3002
3003 * keyboard.c (pending_signals): New var.
3004 (poll_for_input, input_available_signal, init_keyboard): Set it.
3005 (process_pending_signals): New function.
3006
3007 * lisp.h (QUIT): Check pending_signals instead of
3008 interrupt_input_pending. Use process_pending_signals.
3009
51d861de 3010 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 3011
51d861de 3012 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
3013
3014 * sysdep.c (emacs_write): Use process_pending_signals.
3015
3016 * xterm.c (XTread_socket): Update pending_signals.
3017
3018 * w32term.c (w32_read_socket): Update pending_signals.
3019
3020 * w32inevt.c (w32_console_read_socket): Update pending_signals.
3021
6570a1c4
KH
30222009-01-29 Kenichi Handa <handa@m17n.org>
3023
3024 * xftfont.c (xftfont_has_char): New function.
3025 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
3026
d72a4afa
AR
30272009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3028
3029 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
3030 under GNUstep.
3031 (ns_query_color): New declaration.
3032
3033 * nsterm.m (ns_confirm_quit): New variable.
3034 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
3035 (EmacsApp-applicationShouldTerminate:): Use it.
3036 (EmacsPrefsController): Let user set it.
3037 (ns_query_color): New function.
3038 (ns_defined_color): Use it.
3039 (ns_initialize): Drop.
3040 (ns_term_init): Add two lines from ns_initialize(), and set
3041 input_interrupt_mode to nil.
3042
3043 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 3044 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 3045
9fe78804
KH
30462009-01-28 Kenichi Handa <handa@m17n.org>
3047
3048 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
3049 (fontset_get_font_group): Remember that no font-group is specified
3050 for C.
9fe78804 3051
fa57de36
CY
30522009-01-27 Chong Yidong <cyd@stupidchicken.com>
3053
930600e9
CY
3054 * fns.c (concat): Check for string overflow (bug#1787).
3055
fa57de36
CY
3056 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
3057 Quadruple undo limits (bug#1501).
3058
7179ce7b
KH
30592009-01-27 Kenichi Handa <handa@m17n.org>
3060
3061 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
3062 directly use GT_Get_Char_index.
3063
3064 * xftfont.c (struct xftfont_info): New member `index'.
3065
3066 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 3067 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 3068
5be8fcc0
CY
30692009-01-26 Kenichi Handa <handa@m17n.org>
3070
3071 * fontset.c (fontset_find_font): Fix handling of non-cons return
3072 value of fontset_get_font_group.
3073 (fontset_font): Revert last change.
3074
19ae3e61
JR
30752009-01-26 Jason Rumney <jasonr@gnu.org>
3076
3077 * w32font.c (w32font_list_internal): Return quickly if registry is
3078 unknown. Simplify final return.
3079 (add_font_entity_to_list): Break complex logic down into more
3080 manageable chunks. Move unknown registry check to
3081 w32font_list_internal.
3082
8612b71a
AR
30832009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
3084
3085 Changes to remove Feval calls from GUI under NS.
3086
d8038940
JB
3087 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
3088 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
3089 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
3090
3091 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
3092 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
3093 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
3094 instead of NON_ASCII_KEYSTROKE_EVENT.
3095 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
3096 (EmacsApp-applicationShouldTerminate:): Query user.
3097 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
3098 instead of Feval.
3099
3100 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
3101
3102 * keyboard.c (kbd_buffer_get_event): Check for it.
3103 (keys_of_keyboard): Define lispy keys for
3104 ns-put/unput-working-text.
3105
3106 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
3107 versions.
3108 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
3109
6288ae55
CY
31102009-01-25 Chong Yidong <cyd@stupidchicken.com>
3111
3112 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 3113 setting current_buffer directly. (Bug#2044)
6288ae55 3114
289e7f8f
CY
31152009-01-24 Chong Yidong <cyd@stupidchicken.com>
3116
5ce87308 3117 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 3118 any work. (Bug#1952, bug#1990).
5ce87308 3119
64cc3cf6 3120 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 3121
b3243e6f
AR
31222009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3123
3124 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
3125 (ns_no_defaults): New declaration.
3126 (main): Use it.
e0d2e69a 3127
d900b2af 3128 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 3129
d900b2af 3130 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 3131
d900b2af
AR
3132 * nsterm.m (ns_no_defaults): New variable.
3133 (ns_initialize): Don't read defaults when ns_no_defaults.
3134 (EmacsView-readSelectionFromPasteboard:)
3135 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 3136 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
3137 (ns_dumpglyphs_stretch): New function.
3138 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 3139 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 3140
e0d2e69a
AR
3141 * nsimage.m (setPixmapData:): Set to ignore image DPI.
3142
3ac71f5d
CY
31432009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
3144
3145 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
3146 call for Sparc64.
3147
3fe53a83
AR
31482009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3149
3150 * nsfns.m:
3151 * nsgui.h:
3152 * nsmenu.m:
3153 * nsselect.m:
3154 * nsterm.h:
3155 * nsterm.m: Remove '23' comments that indicated code added during
3156 update from emacs-20 -> emacs-23.
3157
10f87c6f 31582009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
3159
3160 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 3161 ns_alternate_modifier. (Bug#1217)
a3b53a85 3162
c7cef62d
AR
3163 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
3164 Display all shortcuts, including those w/o super modifier.
3165
575fb8bd
AR
3166 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
3167
918b848b
CY
31682009-01-22 Chong Yidong <cyd@stupidchicken.com>
3169
3170 * fileio.c (Vwrite_region_post_annotation_function)
3171 (Vwrite_region_annotation_buffers): New vars.
3172 (build_annotations_unwind): Just reset
3173 Vwrite_region_annotation_buffers.
3174 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
3175 Call write-region-post-annotation-function.
3176 (build_annotations): Add to Vwrite_region_annotation_buffers if
3177 buffer changes.
3178
a39e2539
AR
31792009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3180
3181 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
3182 Tiger.
51d861de
SM
3183 * nsfns.m (ns_do_applescript):
3184 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 3185
35ed44db
AR
31862009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
3187
3188 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
3189
cbe0b5bf
AR
31902009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3191
3192 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 3193
6049d3a0
AR
3194 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
3195
3196 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
3197 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
3198 handle Ctrl-tab. (Bug#1841)
3199 (ns_get_color): Use unsigned long long for scanned hex string value.
3200 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 3201 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 3202 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 3203 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 3204 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 3205 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 3206 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 3207
d3810c21 3208 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 3209 DPI. (Bug#1316)
d3810c21
AR
3210 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
3211 values in onTiger section.
4c7077c3 3212
e301e634
CY
32132009-01-19 Chong Yidong <cyd@stupidchicken.com>
3214
7f82490b
CY
3215 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
3216 Check return value of font_spec_from_name.
64cc3cf6 3217 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
3218
3219 * font.c (font_spec_from_name): Return Qnil if font name could not
3220 be parsed.
3221 (font_parse_name): Treat a `?' character as part of an XLFD.
3222
e301e634
CY
3223 * fns.c (Fsubstring): Doc fix.
3224
1c0db158
KH
32252009-01-19 Kenichi Handa <handa@m17n.org>
3226
51d861de 3227 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
3228 (ftfont_list): Likewise.
3229
acf20901
JB
32302009-01-18 Juanma Barranquero <lekktu@gmail.com>
3231
fff4e459
JB
3232 * dbusbind.c (Fdbus_register_signal):
3233 * process.c (conv_sockaddr_to_lisp):
3234 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
3235
acf20901
JB
3236 * callproc.c (Fgetenv_internal): Doc fix.
3237
e7abcdfb
CY
32382009-01-16 Chong Yidong <cyd@stupidchicken.com>
3239
3240 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
3241 it is not even used.
3242
b60861e6
GM
32432009-01-16 Glenn Morris <rgm@gnu.org>
3244
3245 * font.c (Ffont_variation_glyphs): Silence compiler.
3246
8db52afe
JB
32472009-01-15 Juanma Barranquero <lekktu@gmail.com>
3248
3249 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
3250 Reported by David Robinow <drobinow@gmail.com>.
3251
4cddb209
KH
32522009-01-15 Kenichi Handa <handa@m17n.org>
3253
51d861de 3254 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 3255
f247f67b
JR
32562009-01-14 Jason Rumney <jasonr@gnu.org>
3257
3258 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 3259 never a fontset. (Bug#1562)
f247f67b 3260
f56a4450
KH
32612009-01-14 Kenichi Handa <handa@m17n.org>
3262
3263 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 3264 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 3265
4e99855e
CY
32662009-01-13 Chong Yidong <cyd@stupidchicken.com>
3267
3268 * font.c (font_clear_prop): If clearing the family, clear the font
3269 width index too.
3270
fff4e459 3271 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 3272
24f01470
JB
32732009-01-12 Juanma Barranquero <lekktu@gmail.com>
3274
3275 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
3276 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
3277 functions, use sizeof.
3278
a41240a3
MR
32792009-01-12 Martin Rudalics <rudalics@gmx.at>
3280
3281 * keyboard.c (read_char): Fix case where last_nonmenu_event
3282 returned a bad value with submenus. (Bug#447)
3283
944636b8
CY
32842009-01-12 Chong Yidong <cyd@stupidchicken.com>
3285
3286 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
3287 family, clear the font width index too.
3288
0dad7c6f
JR
32892009-01-11 Jason Rumney <jasonr@gnu.org>
3290
3291 * keyboard.c (cmd_error_internal): Exit when errors occur before
3292 frame creation and not in daemon mode. (Bug#1836)
3293
7c2363af
CY
32942009-01-10 Chong Yidong <cyd@stupidchicken.com>
3295
3296 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
3297 of a display vector, backtrack.
3298 (try_window_reusing_current_matrix): Check glyph type before
3299 referencing charpos member.
3300
97b1b294
EZ
33012009-01-10 Eli Zaretskii <eliz@gnu.org>
3302
3303 Fix Bug #876:
3304
3305 * coding.c (inhibit_null_byte_detection): New variable.
3306 (detect_coding, detect_coding_system): Don't pay attention to null
3307 bytes if inhibit_null_byte_detection is non-zero.
51d861de 3308 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
3309 <inhibit-iso-escape-detection>: Doc fix.
3310
4624b6e3
JR
33112009-01-09 Jason Rumney <jasonr@gnu.org>
3312
3313 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 3314 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
3315 Only report Unicode Plane 2 fonts as unicode-sip.
3316
323b840c
CY
33172009-01-09 Chong Yidong <cyd@stupidchicken.com>
3318
51d861de
SM
3319 * xfaces.c (Fx_font_family_list): Delete function.
3320 Move compatibility version to faces.el.
323b840c 3321
51d861de 3322 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 3323
eba7400d
MR
33242009-01-09 Martin Rudalics <rudalics@gmx.at>
3325
3326 * frame.c (x_set_frame_parameters): Remember requested value for
3327 fullscreen before it's reset by the parameter handler.
3328
4b09796d
GM
33292009-01-09 Glenn Morris <rgm@gnu.org>
3330
3331 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 3332 (last_command_event): ... and update all users.
4b09796d
GM
3333 (last_input_char): For clarity, rename to...
3334 (last_input_event): ... and update all users.
3335 (last-command-char, last-input-char): Move to subr.el as aliases.
3336 * cmds.c, commands.h: Update for last_command_char rename.
3337
14ccea62
CY
33382009-01-08 Chong Yidong <cyd@stupidchicken.com>
3339
51d861de 3340 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 3341
5f004711
JR
33422009-01-08 Jason Rumney <jasonr@gnu.org>
3343
3344 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
3345 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
3346 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
3347 Don't declare.
fff4e459 3348 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
3349 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
3350
b71f6f73
KH
33512009-01-07 Kenichi Handa <handa@m17n.org>
3352
50b06221 3353 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 3354 remember the coding system used for decoding in
50b06221
KH
3355 coding_system (Bug#1039).
3356
b71f6f73 3357 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 3358 breaking the loop. (Bug#870)
b71f6f73
KH
3359 (decode_coding_utf_16, decode_coding_emacs_mule)
3360 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
3361 (decode_coding_charset): Likewise.
3362
56f668f7
MR
33632009-01-05 Martin Rudalics <rudalics@gmx.at>
3364
3365 * frame.c (x_set_frame_parameters): Make sure height (width) get
3366 applied when fullwidth (fullheight) is set. (Bug#1522)
3367
5da9424d
JB
33682009-01-04 Juanma Barranquero <lekktu@gmail.com>
3369
3370 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
3371 (utc_base): Declare as ULONGLONG, not long double.
3372 (convert_time_raw): Delete.
3373 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
3374 (initialize_utc_base): New function.
3375 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
3376 (convert_from_time_t): Use initialize_utc_base; compute result with
3377 64-bit arithmetic.
3378 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
3379
c4605e09
EZ
33802009-01-03 Eli Zaretskii <eliz@gnu.org>
3381
9acef61c 3382 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
3383 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
3384 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
3385 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
3386 [!subprocesses]: Define.
3387 (syms_of_process) [!subprocesses]: Intern and staticpro them.
3388 (Flist_system_processes, Fsystem_process_attributes)
3389 [!subprocesses]: Call list_system_processes and
3390 system_process_attributes instead of returning Qnil.
3391
9acef61c
JB
3392 * dosfns.c (system_process_attributes, list_system_processes):
3393 New functions.
c4605e09
EZ
3394
3395 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
3396
3397 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
3398 Don't use the default (no-op) implementation.
3399
8b7d0a16
JR
34002009-01-03 Jason Rumney <jasonr@gnu.org>
3401
a6d46bc1
JR
3402 * keyboard.c (parse_modifiers_uncached): Wheel events are
3403 clicks (bug#687).
3404
8b7d0a16
JR
3405 * w32term.c (x_query_colors, x_query_color): New functions.
3406
3407 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
3408 (svg_load_image): Cast returned pointers from dynamically loaded
3409 functions. Eliminate W32 specific code.
3410
bfe11752
DN
34112009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
3412
89e2438a
DN
3413 * nsfns.m (x_set_foreground_color, x_set_background_color)
3414 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
3415 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
3416 x_ prefix instead of ns_. Update references.
3417 (syms_of_nsfns): Add a FIXME comment.
3418
3419 * nsterm.m (x_set_cursor_type): New prototype.
3420 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
3421
bfe11752
DN
3422 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
3423 for Solaris instead of incorrectly providing Qutime and Qcutime.
3424
031da700
EZ
34252009-01-02 Eli Zaretskii <eliz@gnu.org>
3426
3427 * w32.c (process_times): Compute sum of utime and stime.
3428 (system_process_attributes): Add Qtime to the alist.
3429
3430 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
3431 and add them to the alist.
3432
3433 * process.c (top level) <Qtime, Qctime>: New variables.
3434 (syms_of_process): staticpro them.
3435 (Fsystem_process_attributes): Add their documentation to the doc
3436 string.
3437
3438 * process.h: Declare Qtime and Qctime.
3439
df23bf08
JR
34402009-01-02 Jason Rumney <jasonr@gnu.org>
3441
9acef61c 3442 * image.c (Qgobject): New symbol.
df23bf08
JR
3443 (syms_of_image): Initialize it.
3444 (init_svg_functions): Load some functions from gobject library.
3445
5bbdf7aa
DN
34462009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
3447
3448 * frame.c (make_terminal_frame): Remove redundant code and useless
3449 block.
3450
63136da6
AS
34512009-01-01 Andreas Schwab <schwab@suse.de>
3452
3453 * process.c (conv_sockaddr_to_lisp): Add workaround for
3454 getsockname bug on BSD.
3455
9ef69046
CY
34562009-01-01 Chong Yidong <cyd@stupidchicken.com>
3457
d6fafbe0
CY
3458 * xfns.c (x_create_tip_frame): Set border width of the X window.
3459
51d861de 3460 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 3461
f9c34147
JR
34622009-01-01 Jason Rumney <jasonr@gnu.org>
3463
9acef61c 3464 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
3465 Don't block input, as per earlier xterm.c changes.
3466
f5497e45
AR
34672008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
3468
3469 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
3470 (ns_appkit_version_int): New function.
3471 (x-server-version): Use ns_appkit_version_int and follow 21+
3472 convention of returning 3 integers.
3473
c19cab20
KH
34742008-12-30 Kenichi Handa <handa@m17n.org>
3475
3476 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
3477 (CHAR_SURROGATE_PAIR_P): New macro.
3478
3479 * font.h (struct font_driver): New member get_variation_glyphs.
3480
9acef61c 3481 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
3482 (Ffont_variation_glyphs): New function.
3483 (syms_of_font): Defsubr it.
3484
3485 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
3486 ftfont_variation_glyphs.
3487 (setup_otf_gstring): New function.
3488 (ftfont_drive_otf): Use it.
3489 (ftfont_shape_by_flt): Handle variation selector.
3490 (ftfont_variation_glyphs): New function.
3491
28cd591f
MR
34922008-12-30 Martin Rudalics <rudalics@gmx.at>
3493
3494 * frame.c (Vemacs_iconified): Remove.
3495
7f714baf
JR
34962008-12-30 Jason Rumney <jasonr@gnu.org>
3497
3498 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 3499 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 3500
9d2d22ab
CY
35012008-12-30 Chong Yidong <cyd@stupidchicken.com>
3502
3503 * indent.c (Fvertical_motion): Don't advance iterator if we have
3504 reseated to the desired position.
3505
3506 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
3507 checking for pos match.
3508
545312c2
KH
35092008-12-30 Kenichi Handa <handa@m17n.org>
3510
1ede3eb6
KH
3511 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
3512 just get the low 8-bit of the code.
3513
545312c2
KH
3514 * font.c (font_intern_prop): Validate str as multibyte.
3515
bd7bbf29
DN
35162008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
3517
31e0750e
DN
3518 * dispextern.h (struct face): Move lface and hash from the middle
3519 of bitfields.
3520
bd7bbf29
DN
3521 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
3522
b5672e7c
DN
35232008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
3524
3525 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
3526 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
3527 instead of intervals.h.
3528
d704470f
AS
35292008-12-26 Andreas Schwab <schwab@suse.de>
3530
3531 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
3532 cons.
3533
54b33868
MR
35342008-12-26 Martin Rudalics <rudalics@gmx.at>
3535
3536 * textprop.c (Qminibuffer_prompt): New variable.
3537 (syms_of_textprop): Initialize it.
3538 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
3539 in minibuffer-prompt face. (Bug#1662)
3540
40b615d6
JR
35412008-12-25 Jason Rumney <jasonr@gnu.org>
3542
3543 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
3544
baae5c2d
JR
35452008-12-24 Jason Rumney <jasonr@gnu.org>
3546
3547 * ralloc.c (r_alloc_reset_variable): New function.
3548
3549 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 3550 record of what points where. (Bug#716)
baae5c2d 3551
a9051c88
DN
35522008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
3553
3554 * minibuf.c (read_minibuf): Follow the non-interactive case when
3555 running as a daemon, before detaching.
3556
8b146312
AS
35572008-12-22 Andreas Schwab <schwab@suse.de>
3558
3559 * buffer.c (init_buffer): Use realloc instead of xrealloc.
3560 * gtkutil.c (free_widget_value): Use xfree instead of free.
3561
56f2de10
MR
35622008-12-22 Martin Rudalics <rudalics@gmx.at>
3563
3564 * frame.c (delete_frame): New function derived from
3565 Fdelete_frame to handle Qnoelisp value for FORCE argument.
3566 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
3567 (Fdelete_frame): Call delete_frame. Remove line from doc-string
3568 saying that FORCE non-nil doesn't run `delete-frame-functions'.
3569 * frame.h: Extern delete_frame.
3570 * window.c (window_loop):
3571 * terminal.c (delete_terminal):
3572 * xterm.c (x_connection_closed):
3573 * xfns.c (Fx_hide_tip):
9acef61c 3574 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 3575
1fc200d6
JR
35762008-12-21 Jason Rumney <jasonr@gnu.org>
3577
3578 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
3579 when character maps to .notdef character.
3580
5e252df2
SM
35812008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
3582
3583 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
3584
99b72cc4
JR
35852008-12-20 Jason Rumney <jasonr@gnu.org>
3586
3587 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 3588 a graphical frame on Windows. (Bug#1325)
99b72cc4 3589
acc49a52
JD
35902008-12-20 Jan Djärv <jan.h.d@swipnet.se>
3591
3592 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
3593
6ea15123
CY
35942008-12-20 Chong Yidong <cyd@stupidchicken.com>
3595
3596 * minibuf.c (Fread_buffer): Doc fix.
3597
b2dab6c8
JR
35982008-12-20 Jason Rumney <jasonr@gnu.org>
3599
54ea0c87 3600 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 3601 server name in UNC paths. (Bug#719)
54ea0c87 3602
b2dab6c8 3603 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 3604 charbuf. (Bug#1035)
b2dab6c8 3605
6d1921be
DN
36062008-12-19 Daniel Engeler <engeler@gmail.com>
3607
3608 * sysdep.c (serial_configure): Fix typo.
3609
53934c98
DN
36102008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
3611
3612 * sysdep.c: Include alloca.h.
f4f634e8
DN
3613 (system_process_attributes): Add implementation for Solaris.
3614
3615 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 3616
06e111a6
DN
36172008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
3618
3619 Reorganize implementation of Flist_system_processes and
3620 Fsystem_process_attributes. No functional changes.
3621 * process.c: Don't #include pwd.h, grp.h and limits.h.
3622 (Flist_system_processes): Just call list_system_processes.
3623 (Fsystem_process_attributes): Just call system_process_attributes.
3624 (procfs_list_system_processes, time_from_jiffies)
3625 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
3626 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
3627
3628 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
3629 (list_system_processes): Rename from
3630 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
3631 Provide a do nothing implementation.
3632 (system_process_attributes): Rename from
3633 procfs_list_system_processes.
3634 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 3635 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
3636
3637 * w32.c (list_system_processes): Rename from
3638 w32_list_system_processes.
3639 (system_process_attributes): Rename from
3640 w32_system_process_attributes.
3641
3642 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
3643
3644 * process.h (w32_list_system_processes)
3645 (w32_system_process_attributes): Remove.
3646 (list_system_processes, system_process_attributes): New
3647 prototypes.
3648
6a705b23
KH
36492008-12-19 Kenichi Handa <handa@m17n.org>
3650
3651 * xfont.c (xfont_decode_coding_xlfd): New function.
3652 (xfont_encode_coding_xlfd): New function.
3653 (xfont_list_pattern): Decode XLFD by iso-8859-1.
3654 (xfont_list): Decode and encode XLFD by iso-8859-1.
3655 (xfont_match): Likewise.
3656 (xfont_list_family): Likewise.
3657 (xfont_open): Likewise.
3658
d66c0241 3659 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
3660 names are utf-8.
3661
d66c0241 3662 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
3663 names are utf-8.
3664
5a130941
JD
36652008-12-18 Jan Djärv <jan.h.d@swipnet.se>
3666
3667 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
3668 changed.
bfd20325
JD
3669 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
3670 clicked on a detached tool bar button.
5a130941 3671
fd95644b
DN
36722008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
3673
3674 * emacs.c (main): Print and error and exit when no data is read
3675 from the pipe.
3676
e6eee6ae
JR
36772008-12-17 Jason Rumney <jasonr@gnu.org>
3678
3679 * w32font.c (w32font_has_char): Always return -1.
3680
a35dd56b
KH
36812008-12-16 Kenichi Handa <handa@m17n.org>
3682
3683 * font.c (font_open_entity): Fix previous change.
3684
0e3635c2
DN
36852008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
3686
3687 * process.c: Include <limits.h>.
3688
d4835507 36892008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
3690
3691 * font.c (font_update_drivers): Fix mistake in reconstructing the
3692 driver list.
3693
36942008-12-16 Chong Yidong <cyd@stupidchicken.com>
3695
3696 * font.c (font_clear_cache): Fix format of font cache data.
3697
e2cbc401
CY
36982008-12-15 Chong Yidong <cyd@stupidchicken.com>
3699
3700 * xftfont.c (xftfont_open): Free Xft font pattern if
3701 XftFontOpenPattern fails.
3702
3703 * xterm.c (x_free_frame_resources): Remove extraneous call to
3704 free_frame_faces.
3705
b131d535
CY
37062008-12-13 Chong Yidong <cyd@stupidchicken.com>
3707
3708 * xterm.c (x_delete_display): Move xim_close_dpy call to
3709 x_delete_terminal.
3710 (x_delete_terminal): Call xim_close_dpy.
3711
e6df5336
JR
37122008-12-13 Jason Rumney <jasonr@gnu.org>
3713
3714 * w32font.c (intern_font_name): New function.
3715 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
3716 (w32font_open_internal, Fx_select_font): Decode font name.
3717 (fill_in_logfont, list_all_matching_fonts): Encode font name.
3718
3719 * w32font.h (intern_font_name): Declare new function.
3720
3721 * w32uniscribe.c (add_opentype_font_name_to_list):
3722 Use intern_font_name.
3723
20d68145
CY
37242008-12-13 Chong Yidong <cyd@stupidchicken.com>
3725
9f2554de
CY
3726 * frame.c (Fdelete_frame): Call free_font_driver_list.
3727
3d9bec9a
CY
3728 * font.c (free_font_driver_list): Implement missing function.
3729
20d68145
CY
3730 * w32term.c (w32_term_init): Don't initialize the image cache
3731 here; it will be done in init_frame_faces.
3732
3733 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
3734 (struct x_display_info): Remove unused member null_pixel. New
3735 member xim_callback_data.
3736
3737 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
3738 (xim_initialize): Save pointer to callback function data.
3739 (xim_close_dpy): Free callback function data. Call XCloseIM,
3740 reverting 2008-11-04 change by David Smith.
3741 (x_term_init): Don't initialize the image cache here; it will be
3742 done in init_frame_faces. Remove ancient "null_pixel" cruft.
3743 (x_delete_display): Free x_dnd_atoms member.
3744
96f9306b
KH
37452008-12-13 Kenichi Handa <handa@m17n.org>
3746
6dec9044
JB
3747 * font.c (font_rescale_ratio): Moved from xfaces.c.
3748 Argument type changed. Handle a font-spec too.
96f9306b 3749 (font_score): Check Vface_font_rescale_alist.
6dec9044 3750 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
3751
3752 * xfaces.c (font_rescale_ratio): Moved to font.c.
3753
8d5b4964
CY
37542008-12-13 Chong Yidong <cyd@stupidchicken.com>
3755
3756 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
3757
e6df5336
JR
37582008-12-12 Jason Rumney <jasonr@gnu.org>
3759
3760 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
3761 Vwindow_system_version to the real w32 major version.
3762
97c6058a
DN
37632008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
3764
3765 * term.c (init_tty): Move setting the terminal name before the
3766 potential user: maybe_fatal.
3767
ec4e88d7
CY
37682008-12-11 Chong Yidong <cyd@stupidchicken.com>
3769
d4835507
JB
3770 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
3771 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 3772
b4233ec9
JR
37732008-12-11 Jason Rumney <jasonr@gnu.org>
3774
8ec71e23 3775 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 3776 SYMBOL_CHARSET. (Bug#547)
8ec71e23 3777
b4233ec9 3778 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 3779 size for surrogates. (Bug#1096, bug#872)
b4233ec9 3780
011a0143
JB
37812008-12-11 Juanma Barranquero <lekktu@gmail.com>
3782
3783 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
3784
3c309f34
JB
37852008-12-11 Juanma Barranquero <lekktu@gmail.com>
3786
3787 * process.c (Fsystem_process_attributes, syms_of_process):
3788 Fix typo in name of Ssystem_process_attributes.
3789 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
3790
fedc6ab5
JB
37912008-12-11 Juanma Barranquero <lekktu@gmail.com>
3792
3793 * syntax.c (Fmodify_syntax_entry): Doc fix.
3794
ba3de0e8
JB
37952008-12-10 Juanma Barranquero <lekktu@gmail.com>
3796
3797 * font.c (Ffont_spec): Move usage to end of docstring.
3798
174f1c74
JR
37992008-12-10 Jason Rumney <jasonr@gnu.org>
3800
3801 * w32font.c (Qcham): New symbol.
3802 (font_supported_scripts): Add cham, and comments for other new
3803 scripts in bitfield from OpenType spec.
9d32f818
JR
3804 (add_font_entity_to_list): Limit unicode-sip fonts to those that
3805 contain characters beyond the bmp.
174f1c74 3806
7b649478
KH
38072008-12-10 Kenichi Handa <handa@m17n.org>
3808
3809 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 3810 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
3811 Qunicode_sip.
3812
2133e2d1
JB
38132008-12-10 Juanma Barranquero <lekktu@gmail.com>
3814
3815 * coding.c (QCdefault_char): Rename from QCdefalut_char.
3816 (Fcoding_system_put): Use QCdefault_char.
3817 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
3818
9af886ee
CY
38192008-12-09 Chong Yidong <cyd@stupidchicken.com>
3820
74d819eb
CY
3821 * xftfont.c (syms_of_xftfont): Fix typo.
3822
4ccfa1c0 3823 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 3824
7c19d3ae
DN
38252008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
3826
3827 * emacs.c (main): Close daemon_pipe on exec.
3828
567826bb
CY
38292008-12-08 Chong Yidong <cyd@stupidchicken.com>
3830
3831 * termchar.h (struct tty): New members termcap_term_buffer and
3832 termcap_strings_buffer.
3833
3834 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 3835 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
3836 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
3837 All callers changed.
3838 (init_tty): Store termcap data and string buffers in new struct
3839 tty members termcap_term_buffer and termcap_strings_buffer.
3840 (delete_tty): Free them.
4ccfa1c0 3841 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 3842
aa96c42b
SZ
38432008-12-07 Seiji Zenitani <zenitani@mac.com>
3844
3845 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 3846 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 3847
b7e1d896
CY
38482008-12-06 Chong Yidong <cyd@stupidchicken.com>
3849
3850 * coding.c (make_conversion_work_buffer): Disable buffer
3851 modification hooks in the work buffer.
3852
b5ec91a5
EZ
38532008-12-05 Eli Zaretskii <eliz@gnu.org>
3854
3855 * process.c (procfs_system_process_attributes): If `nread' has a
3856 negative value, assign zero to it.
3857
a5d2a52b
CY
38582008-12-05 Chong Yidong <cyd@stupidchicken.com>
3859
68c5540b 3860 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 3861
7bf1bb21
KH
38622008-12-05 Kenichi Handa <handa@m17n.org>
3863
3864 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
3865 second character is a combining character.
3866
2fdc7d00
EZ
38672008-12-05 Eli Zaretskii <eliz@gnu.org>
3868
3869 * process.c (procfs_system_process_attributes): Don't use cmd,
3870 cmdsize, and q without initializing them first.
3871
bf6bfba8
JR
38722008-12-04 Jason Rumney <jasonr@gnu.org>
3873
3874 * w32font.c (w32font_draw): Initialize orig_clip before getting
3875 it, and delete it when finished.
3876
a3b1a468
DN
38772008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
3878
3879 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
3880 case when running as a daemon before detaching.
3881
8b8be8eb
JB
38822008-12-03 Juanma Barranquero <lekktu@gmail.com>
3883
805f2638 3884 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 3885
b1bde622
KH
38862008-12-03 Kenichi Handa <handa@m17n.org>
3887
e500c47d
KH
3888 * font.c (font_at): Set `multibyte' at first.
3889
ca516334
KH
3890 * coding.c (decode_coding_charset): Check type of an element of
3891 vector VALIDS.
7bf1bb21 3892 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 3893
4ccfa1c0 3894 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
3895 (font_for_char): Likewise.
3896
1e5ecd37
CY
38972008-12-03 Chong Yidong <cyd@stupidchicken.com>
3898
d5b01609 3899 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
3900 (font_update_lface): Handle fonts with corrupted size specs,
3901 i.e. non-int and non-float.
d5b01609 3902
11e3a6e4 3903 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 3904 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 3905 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 3906
ab06788b
CY
3907 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
3908
1e5ecd37 3909 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 3910 underline_minimum_offset for underline position.
1e5ecd37 3911
63c125ab
DN
39122008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
3913
3914 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
3915
3916 * character.c (c_string_width): Specify the type for LEN.
3917
3a8406e1
KH
39182008-12-03 Kenichi Handa <handa@m17n.org>
3919
4ccfa1c0 3920 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 3921 (decode_coding_utf_8): Likewise.
4ccfa1c0 3922 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 3923 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 3924
651df7d9
CY
39252008-12-02 Chong Yidong <cyd@stupidchicken.com>
3926
3927 * keyboard.c (make_lispy_position): Only use PT if the selected
3928 window is current.
3929
1f625c6c
AS
39302008-12-02 Andreas Schwab <schwab@suse.de>
3931
f7741ce9
AS
3932 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
3933
1f625c6c
AS
3934 * doprnt.c (doprnt1): Fix size of charbuf.
3935
92bc2678
CY
39362008-12-02 Chong Yidong <cyd@stupidchicken.com>
3937
3938 * keyboard.c (timer_check): Revert last change.
3939
93b9e8cc
JB
39402008-12-02 Juanma Barranquero <lekktu@gmail.com>
3941
3942 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
3943
fd7a37d5
JB
39442008-12-01 Juanma Barranquero <lekktu@gmail.com>
3945
3946 * makefile.w32-in: Update dependencies.
3947 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
3948
c115043b
AS
39492008-12-01 Andreas Schwab <schwab@suse.de>
3950
3951 * font.c (register_font_driver): Use xmalloc.
3952 (font_put_frame_data): Likewise.
3953
f5668d2a
CY
39542008-12-01 Chong Yidong <cyd@stupidchicken.com>
3955
860d96be
CY
3956 * xfaces.c (realize_x_face): Make abort condition clearer.
3957
f5668d2a
CY
3958 * gtkutil.c (update_frame_tool_bar): Initialize variable.
3959
379c17e7
CY
39602008-11-30 Chong Yidong <cyd@stupidchicken.com>
3961
3962 * keyboard.c (timer_check): After a timer runs, ensure that the
3963 selected window's buffer is current.
3964
35f36d65
JB
39652008-11-30 Juanma Barranquero <lekktu@gmail.com>
3966
f952c61c
JB
3967 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
3968 It was accidentally restored by the Unicode merge.
3969
35f36d65
JB
3970 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
3971
b23077df
JB
39722008-11-29 Juanma Barranquero <lekktu@gmail.com>
3973
3974 * w32proc.c: Include "coding.h".
3975 (Fw32_short_file_name): Encode filename passed to Windows API.
3976 (Fw32_long_file_name): Encode filename passed to Windows API and
3977 decode back the result. (Bug#1433)
3978
b8ebe9dd
KH
39792008-11-29 Kenichi Handa <handa@m17n.org>
3980
8cc53f96
KH
3981 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
3982 not before accessing it.
3983
b8ebe9dd
KH
3984 * charset.c (Fdefine_charset_internal): After calculating
3985 min_char, max_char, and fastmap, copy the charset structure again.
3986 (encode_char): Fix the previous change.
3987
59bc82c0
SZ
39882008-11-28 Seiji Zenitani <zenitani@mac.com>
3989
3990 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
3991
3992 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
3993
3994 * nsterm.m (x_set_frame_alpha): New function.
3995
32247e3d
EZ
39962008-11-27 Eli Zaretskii <eliz@gnu.org>
3997
3998 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
3999
b003e5ff
JB
40002008-11-27 Juanma Barranquero <lekktu@gmail.com>
4001
4002 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
4003 pointer to check_face_name.
4004
708550f5
KH
40052008-11-27 Kenichi Handa <handa@m17n.org>
4006
4007 * category.h (SET_CATEGORY_SET): Call set_category_set.
4008 (set_category_set): Extern it.
4009
4010 * category.c (hash_get_category_set): New function.
4011 (Fmodify_category_entry): Adjusted for the change of
4012 char_table_ref_and_range. Call hash_get_category_set to get a
4013 category set to store in the table.
4014
4015 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
4016 Funify_charset.
4017
2ae37cf0 4018 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
4019 (DECODE_CHAR): Check if the decoder vector is ready.
4020 (ENCODE_CHAR): Check if the encoder char-table is ready.
4021 (maybe_unify_char): Extern it.
4022
4023 * charset.c (Vchar_unified_charset_table): Delete it.
4024 (inhibit_load_charset_map): New variable.
4025 (temp_charset_work): New variable.
4026 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
4027 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
4028 New macros.
4029 (load_charset_map): Meaning of control_flag changed. If
4030 inhibit_load_charset_map is nonzero, setup a table in
4031 temp_charset_work.
4032 (load_charset): New argument control_flag.
4033 (map_charset_for_dump): New function.
4034 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
4035 map_charset_for_dump.
4036 (Fdefine_charset_internal): If the charset method is MAP, load
4037 mapping tables by calling load_charset.
4038 (Funify_charset): Don't load a mapping table but directly set
4039 Vchar_unify_table.
4040 (maybe_unify_char): New function.
4041 (decode_char): Don't handle the deleted method MAP_DEFERRED.
4042 Handle the case of inhibit_load_charset_map being nonzero.
4043 (encode_char): Don't handle the deleted method MAP_DEFERRED.
4044 Handle the case of inhibit_load_charset_map being nonzero.
4045 (Fclear_charset_maps): Just free temp_charset_work.
4046 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
4047 variable.
4048
4049 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
4050 change of char_table_ref_and_range.
4051 (char_table_ref_and_range): Change the meaning of argument FROM
4052 and TO. Now the caller must provide initial values for *FROM
4053 and *TO.
4054
4055 * fontset.c (fontset_add): Adjusted for the change of
4056 char_table_ref_and_range.
4057 (fontset_get_font_group): Likewise.
4058 (Ffontset_info): Likewise.
4059
4060 * keymap.c (describe_vector): Adjusted for the change of
4061 char_table_ref_and_range. For char-table, put boundary between
4062 non-ASCII and 8-bit characters.
4063
4064 * print.c (print_object): For bool-vector, delete unnecessary
4065 check of ASCII_BYTE_P.
4066
9196133b
JR
40672008-11-26 Jason Rumney <jasonr@gnu.org>
4068
4069 * w32font.c (w32font_open_internal): Don't include external
9acef61c 4070 leading in font height. (Bug#879)
9196133b 4071
9f688acf
GM
40722008-11-26 Glenn Morris <rgm@gnu.org>
4073
4074 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
4075 redefinition with ifdef. (Bug#1383)
4076
90d19aff
AR
40772008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4078
4079 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
4080
4ccfa1c0 40812008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
4082
4083 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
4084 New EmacsView methods.
4085 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
4086 Fixes bug #1048,1357,1414.
4087
40882008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4089
4090 Fix bug #1362.
4091 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
4092 is not an indexed color.
4093 * nsterm.m (free_indexed_color): Add argument checking.
4094 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
4095
e7d5ecb3
CY
40962008-11-24 Chong Yidong <cyd@stupidchicken.com>
4097
4098 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
4099 Document confirm-after-completion value for
4100 minibuffer-completion-confirm.
4101
c285743c
JR
41022008-11-24 Jason Rumney <jasonr@gnu.org>
4103
4104 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
4105 warning.
4106
b0857706
JR
41072008-11-23 Jason Rumney <jasonr@gnu.org>
4108
4109 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
4110 restored before returning.
4111
4112 * w32font.c (check_face_name): New function.
4113 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 4114 fonts. (Bug#642)
b0857706 4115
ee50ff07
MR
41162008-11-22 Martin Rudalics <rudalics@gmx.at>
4117
4118 * buffer.c (Fswitch_to_buffer): Reword and mention new option
4119 confirm-nonexistent-file-or-buffer in doc-string.
4120
b8ff72fa
SM
41212008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
4122
4123 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
4124 Fix copy/paste typo. Add checks.
4125
cee53ed4
KH
41262008-11-21 Kenichi Handa <handa@m17n.org>
4127
4128 * coding.c (detect_coding_iso_2022): Reject invalid composition
4129 sequence.
4130 (DECODE_COMPOSITION_START): If the current source is the last
4131 block, and the current composition doesn't end, regard this
4132 sequence as invalid.
4133 (decode_coding_iso_2022): Handle invalid composition sequence.
4134
f6ef1e65
MR
41352008-11-20 Martin Rudalics <rudalics@gmx.at>
4136
4137 * window.c (coordinates_in_window): Don't return
4138 ON_VERTICAL_BORDER for the rightmost position of a mode/header
4139 line when the window is not the rightmost one. (Bug#1372)
4140
e08b1705
MR
41412008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
4142
4143 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
4144
ad98e89f
EZ
41452008-11-15 Eli Zaretskii <eliz@gnu.org>
4146
4147 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
4148 and bright_bg if noninteractive is non-zero.
4149
fb098a4b
CY
41502008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4151
4152 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
4153 x_draw_glyph_string_background.
4154
4155 * w32term.c (x_draw_glyph_string): Likewise.
4156
ce952b6e
CY
41572008-11-15 Chong Yidong <cyd@stupidchicken.com>
4158
4159 * xterm.c (x_draw_glyph_string): Stop drawing the background of
4160 the next glyph string once past the overhang width.
4161
4162 * nsterm.m (ns_draw_glyph_string): Likewise.
4163
4164 * w32term.c (x_draw_glyph_string): Likewise.
4165
26ea7079
CY
41662008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
4167
4168 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
4169 double file close.
4170
1c33c906
MR
41712008-11-14 Martin Rudalics <rudalics@gmx.at>
4172
4173 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
4174 dedicated status of window before attempting to display another
4175 buffer in it.
4176
8fc29035
JB
41772008-11-14 Juanma Barranquero <lekktu@gmail.com>
4178
4179 * msdos.c (Fmsdos_long_file_names):
4180 (syms_of_msdos) <dos-unsupported-char-glyph>:
4181 * dosfns.c (Fint86): Fix typos in docstrings.
4182
55fb4286
EZ
41832008-11-14 Eli Zaretskii <eliz@gnu.org>
4184
4185 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
4186
3fda0315
KY
41872008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
4188
4189 * puresize.h (BASE_PURESIZE): Increase to 1260000.
4190
7e849c17
CY
41912008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
4192
4193 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
4194
4195 * frame.h: Negative alpha means "don't touch".
4196
4197 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
4198
4199 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
4200
b9fd67bd
DN
42012008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
4202
4203 * hftctl.c:
4204 * chpdef.h:
4205 * acldef.h: Remove files used only for systems no longer supported.
4206
4207 * Makefile.in: Fix .o alphabetical ordering.
4208 (hftctl.o): Remove dependency, file removed.
4209 (keymap.o, print.o): Depend on charset.h.
4210
d5998e03
KH
42112008-11-10 Kenichi Handa <handa@m17n.org>
4212
2ae37cf0 4213 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 4214
be70e183
CY
42152008-11-08 Chong Yidong <cyd@stupidchicken.com>
4216
4217 * dired.c (file_name_completion): If completion_ignore_case is
4218 enabled, ignore case when checking completion-regexp-list.
4219
7cf94eac
EZ
42202008-11-08 Eli Zaretskii <eliz@gnu.org>
4221
4222 * vm-limit.c (get_lim_data): Fix last change.
4223
ee107a89
KH
42242008-11-08 Kenichi Handa <handa@m17n.org>
4225
4226 * character.c (Fget_byte): New function.
4227 (syms_of_character): Defsubr Fget_byte.
4228
5fd15622
CY
42292008-11-07 Chong Yidong <cyd@stupidchicken.com>
4230
4231 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
4232 cursor position is valid after scrolling.
4233
13d62fad
JB
42342008-11-06 Juanma Barranquero <lekktu@gmail.com>
4235
4236 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
4237
a1dd2936
GM
42382008-11-06 Glenn Morris <rgm@gnu.org>
4239
4240 * xterm.c (handle_one_xevent): Don't let popup menus cause
4241 mouse-autoselect-window related window switching. (Bug#1261)
4242
860cd236
CY
42432008-11-04 David Smith <davidsmith@acm.org> (tiny change)
4244
4245 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
4246
653a3150
AS
42472008-11-04 Andreas Schwab <schwab@suse.de>
4248
4249 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
4250
870f5cac
CY
42512008-11-03 Chong Yidong <cyd@stupidchicken.com>
4252
4253 * xfns.c (Fx_wm_set_size_hint): New function.
4254
1e02f3cb
MR
42552008-11-03 Martin Rudalics <rudalics@gmx.at>
4256
4257 * textprop.c (Fprevious_single_char_property_change): Return 0
4258 when there's no change in a string. (Bug#1301)
4259
e630dfc6
MR
42602008-11-02 Martin Rudalics <rudalics@gmx.at>
4261
4262 * frame.c (do_switch_frame): New argument NORECORD passed to
4263 Fselect_window.
4264 (Fselect_frame): New argument NORECORD passed to
4265 do_switch_frame.
4266 (Fset_frame_selected_window): New argument NORECORD passed to
4267 Fselect_frame.
4268 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
4269 in call of do_switch_frame.
4270 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
4271 Handle NORECORD argument in call of Fselect_frame.
4272 * lisp.h (do_switch_frame, Fselect_frame)
4273 (Fset_frame_selected_window): Adjust declarations.
4274 * window.c (select_frame_norecord): New function.
4275 (run_window_configuration_change_hook): Use it and call
4276 Fselect_frame with NORECORD set.
4277 (Fselect_window): Pass NORECORD to Fselect_frame.
4278 (Fset_window_configuration): Handle NORECORD argument in call of
4279 do_switch_frame.
4280 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
4281 Fset_frame_selected_window.
4282 * keyboard.c (command_loop_1): Handle NORECORD in call of
4283 Fselect_frame (currently ifdefd).
4284
9020b223
GM
42852008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
4286
4287 * emacs.c (USAGE2): Untabify.
4288
793ffee8
SM
42892008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
4290
4291 * composite.c (fill_gstring_header): Fix copy/paste typo.
4292
ab6d1131
MR
42932008-10-31 Martin Rudalics <rudalics@gmx.at>
4294
4295 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
4296 (Fother_window): Rename argument and rewrite doc-string.
4297 (select_window_norecord): Fix return value. (Bug#1276)
4298
601a9cf1
JB
42992008-10-30 Juanma Barranquero <lekktu@gmail.com>
4300
4301 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
4302 new frames overriding foreground for tooltips. Based on similar patch
4303 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
4304
813b0652
CY
43052008-10-29 Chong Yidong <cyd@stupidchicken.com>
4306
4307 * emacs.c (Fdaemon_initialized): Initialize nfd.
4308
4414f58f
MR
43092008-10-29 Martin Rudalics <rudalics@gmx.at>
4310
4311 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
4312 (Fwindow_text_height): Clarify doc-strings.
4313 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
4314 doc-string of window-scroll-functions.
4315
ecdcaa09
RS
43162008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
4317
4318 * category.c (syms_of_category): Fix typo in docstring.
4319
23fe745a
JB
43202008-10-28 Juanma Barranquero <lekktu@gmail.com>
4321
4322 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
4323 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
4324 Fix typos in docstrings.
4325
ff808935
DN
43262008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
4327
4328 * emacs.c (daemon_pipe): Make non-static.
4329 (IS_DAEMON): Move definition ...
4330 * lisp.h (IS_DAEMON): ... here.
4331 (daemon_pipe): Declare.
4332 (is_daemon): Remove.
4333 * dispnew.c (init_display): Use IS_DAEMON.
4334
fc012771
SM
43352008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
4336
4337 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
4338 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
4339
4340 * emacs.c (is_daemon): Remove.
4341 (main): Don't set is_daemon.
4342 (IS_DAEMON): New macro.
4343 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 4344 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
4345 parent exits.
4346 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
4347
d8bdbe6f
CY
43482008-10-27 Chong Yidong <cyd@stupidchicken.com>
4349
d1a072bf
CY
4350 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
4351 over-sized glyph, draw it with the default glyph width.
4352
e2e325aa
CY
4353 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
4354 glyph, draw it with the default glyph width.
4355
4356 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
4357 glyph, draw it with the default glyph width.
4358
d8bdbe6f
CY
4359 * xdisp.c (try_scrolling): When computing the distance from the
4360 scroll margin to PT, try moving some distance past the window
4361 bottom before giving up.
4362
7bfac547
MR
43632008-10-27 Martin Rudalics <rudalics@gmx.at>
4364
4365 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
4366 (Fset_window_buffer): Explain in doc-string that a window can be
4367 "strongly" dedicated to its buffer.
4368
4ff029f6
DN
43692008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
4370
4371 * emacs.c (daemon_name): New variable.
4372 (main): Deal with --daemon=SERVER_NAME.
4373 (Fdaemonp): Return a name if one was passed to --daemon.
4374
5790ef40
DN
43752008-10-26 Romain Francoise <romain@orebokech.com>
4376
f9bd0df9 4377 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
4378 (main): Create a pipe before forking, make the parent exit only after
4379 the child has closed its end of the pipe. Move closing the
4380 descriptors ...
4381 (Fdaemon_initialized): ... here. New function.
4382
f5385255
SM
43832008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
4384
4d632321
SM
4385 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
4386 the previous unoptimized table.
4387
f5385255
SM
4388 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
4389 the distinction between non-nil and non-t value of `dedicated'.
4390
6c56a0f3
CY
43912008-10-25 Chong Yidong <cyd@stupidchicken.com>
4392
4393 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 4394 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 4395
fec89261
MR
43962008-10-25 Martin Rudalics <rudalics@gmx.at>
4397
4398 * window.c (Fget_buffer_window, Fdelete_windows_on)
4399 (Freplace_buffer_in_windows): Make buffer argument optional and
4400 rename to buffer_or_name.
4401
34fcddd0
CY
44022008-10-24 Chong Yidong <cyd@stupidchicken.com>
4403
f5385255
SM
4404 * xdisp.c (handle_single_display_spec, handle_display_prop):
4405 Undo 2005-05-16 change.
34fcddd0
CY
4406 (handle_stop): Pop iterator if it's loaded with an empty string.
4407 (get_overlay_strings_1): Don't save iterator if it's loaded with
4408 an empty string (bug#1201).
4409
064766f2
KH
44102008-10-24 Kenichi Handa <handa@m17n.org>
4411
4412 * ftfont.c (ftfont_otf_features): Fix previous change.
4413 (ftfont_otf_capability): Check FeatureList.FeatureCount before
4414 calling ftfont_otf_features.
4415
f9bd0df9 44162008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
4417
4418 * font.c (font_match_p): Fix for the case that a vector of
4419 characters is in script-representative-chars.
4420
1dae9197
MA
44212008-10-24 Michael Albinus <michael.albinus@gmx.de>
4422
4423 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 4424 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
4425 (xd_read_queued_messages): Catch Qdbus_error from the macros.
4426 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
4427 macro. (Bug#1186).
4428
f9bd0df9 44292008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
4430
4431 * s/sol2-10.h: New file.
4432
878a4584
JB
44332008-10-23 Juanma Barranquero <lekktu@gmail.com>
4434
4435 * xdisp.c (fill_glyph_string): Fix typo in source (though the
4436 poor beast has survived 9+ years and the jump from xterm.c!).
4437
cd265ca6
MR
44382008-10-23 Martin Rudalics <rudalics@gmx.at>
4439
4440 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
4441 Reword doc-string.
f5385255 4442 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 4443
472a4dc9
JB
44442008-10-23 Juanma Barranquero <lekktu@gmail.com>
4445
4446 * character.c (syms_of_character) <script-representative-chars>:
4447 <unicode-category-table>: Doc fixes.
4448
159bd5a2
NF
44492008-10-23 Noah Friedman <friedman@splode.com>
4450
4451 * coding.c (make_conversion_work_buffer): Check that
4452 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
4453 Fget_buffer_create.
4454
49f9c344
KH
44552008-10-23 Kenichi Handa <handa@m17n.org>
4456
4457 * font.c (font_add_log): Check the values of extra properties.
4458
12bb3111
MR
44592008-10-22 Martin Rudalics <rudalics@gmx.at>
4460
4461 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
4462 Reword doc-string.
4463 (Fset_window_parameter): Use NILP.
4464 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 4465 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 4466
bbeb4e99
JB
44672008-10-22 Juanma Barranquero <lekktu@gmail.com>
4468
4469 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
4470
44712008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
4472
4473 * nsfns.m (ns_appkit_version): New function.
4474 (x-server-version): Use it.
4475 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
4476 (x-server-vendor): Don't check_ns().
4477
4478 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
4479
a9b555d3
JB
44802008-10-22 Juanma Barranquero <lekktu@gmail.com>
4481
4482 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
4483 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
4484
4626499f
KH
44852008-10-22 Kenichi Handa <handa@m17n.org>
4486
e3681952
KH
4487 * syntax.c (scan_words): Call word_boundary_p instead of comparing
4488 scripts.
4489
4626499f
KH
4490 * category.c (word_boundary_p): Check scripts instead of charset.
4491 Handle nil value in word-separating-categories and
4492 word-combining-categories.
4493 (syms_of_category): Fix docstrings of word-separating-categories
4494 and word-combining-categories.
4495
1560f91a
EZ
44962008-10-21 Eli Zaretskii <eliz@gnu.org>
4497
4498 * coding.c (Fencode_coding_region, Fdecode_coding_region)
4499 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
4500
f4668441
MR
45012008-10-21 Martin Rudalics <rudalics@gmx.at>
4502
4503 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
4504 Rename arg "buffer" to "buffer_or_name".
4505 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
4506 it optional.
4507 (no_switch_window): Remove since the return value is not used.
a9b555d3 4508 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
4509 Consider window as dedicated when Fwindow_dedicated_p returns a
4510 non-nil value.
4511 * lisp.h: Remove prototype for no_switch_window.
4512
fd75ddb2
JD
45132008-10-21 Jan Djärv <jan.h.d@swipnet.se>
4514
4515 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 4516 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 4517
07295713
KH
45182008-10-21 Kenichi Handa <handa@m17n.org>
4519
4520 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
4521 check Vlatin_extra_code_table.
4522
712adc82
EZ
45232008-10-20 Eli Zaretskii <eliz@gnu.org>
4524
4525 * fileio.c (Fset_file_modes): Doc fix.
4526
f549eb0b
MA
45272008-10-19 Michael Albinus <michael.albinus@gmx.de>
4528
4529 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
4530 in arrays.
4531
aac0c6e3
MR
45322008-10-19 Martin Rudalics <rudalics@gmx.at>
4533
4534 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
4535 Mention kill-buffer in doc-string.
4536 (Fset_window_buffer): Reinsert tem check removed in last commit.
4537 (Fenlarge_window, Fshrink_window): Have argument names and
4538 doc-string follow Elisp manual more closely.
4539
45402008-10-18 Eli Zaretskii <eliz@gnu.org>
4541
4542 * fileio.c (Fset_file_modes): Doc fix.
4543
45442008-10-18 Martin Rudalics <rudalics@gmx.at>
4545
4546 * window.c (Fwindow_width, Fset_window_start)
4547 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
4548 (Fdelete_windows_on, Freplace_buffer_in_windows):
4549 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
4550 (Fwindow_dedicated_p): Make window argument optional.
4551 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
4552 (Fset_window_buffer): Respect any non-nil dedicated value for
4553 window. Rename "buffer" argument to "buffer_or_name".
4554
45552008-10-18 Ulrich Mueller <ulm@gentoo.org>
4556
4557 * m/sh3.h: New file, machine description for SuperH.
4558
45592008-10-17 Martin Rudalics <rudalics@gmx.at>
4560
4561 * window.c (Fsplit_window): Rename arg horflag to horizontal.
4562
45632008-10-17 Kenichi Handa <handa@m17n.org>
4564
4565 * ftfont.c (ftfont_otf_features): Fix indexing
4566 gsub_gpos->FeatureList.Feature. Check the validity of indices.
4567
45682008-10-16 Magnus Henoch <mange@freemail.hu>
4569
4570 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
4571 (Fdbus_call_method_asynchronously): Ditto.
4572 This change makes C-h f display the argument list.
4573
45742008-10-16 Chong Yidong <cyd@stupidchicken.com>
4575
4576 * fileio.c (Fexpand_file_name): Doc fix.
4577
4578 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
4579 of :foreground and :background equivalent to unspecified (20.x
4580 compatibility).
4581
45822008-10-15 Eli Zaretskii <eliz@gnu.org>
4583
4584 * buffer.c (syms_of_buffer): Doc fix.
4585
45862008-10-14 Kenichi Handa <handa@m17n.org>
4587
4588 * font.c (font_clear_prop): When clearing font width, clear the
4589 average width field too.
4590
45912008-10-12 Andreas Schwab <schwab@suse.de>
4592
4593 * ftfont.c (ftfont_shape_by_flt): Make static.
4594 * ftfont.h (ftfont_shape_by_flt): Don't declare.
4595
4596 * font.c: Don't include <m17n-flt.h>.
4597
45982008-10-10 Eli Zaretskii <eliz@gnu.org>
4599
4600 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
4601
46022008-10-09 Eli Zaretskii <eliz@gnu.org>
4603
4604 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
4605 away code.
4606
46072008-10-09 Chong Yidong <cyd@stupidchicken.com>
4608
4609 * dispnew.c (update_text_area): Avoid looping due to large glyph
4610 overhangs (bug#1070).
4611
46122008-10-09 Kenichi Handa <handa@m17n.org>
4613
4614 * fontset.c (face_for_char): If face->fontset is negative, just
4615 return ascii_face.
4616
f5385255
SM
4617 * font.c (font_delete_unmatched): Fix previous change.
4618 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
4619
46202008-10-09 Martin Rudalics <rudalics@gmx.at>
4621
4622 * frame.c (Fraise_frame): On text-only terminals select frame in
4623 order to make it visible. (Bug#1061)
4624
46252008-10-08 Chong Yidong <cyd@stupidchicken.com>
4626
4627 * fontset.c (fontset_find_font): Check frame validity.
4628
46292008-10-07 Chong Yidong <cyd@stupidchicken.com>
4630
a9b555d3 4631 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
4632 (xg_display_close): Allow Emacs to close all displays (bug#985).
4633
46342008-10-06 Andreas Schwab <schwab@suse.de>
4635
f5385255 4636 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
4637
46382008-10-06 Chong Yidong <cyd@stupidchicken.com>
4639
f5385255 4640 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 4641
a9b555d3 4642 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
4643
4644 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
4645 during initialization.
4646
46472008-10-04 Eli Zaretskii <eliz@gnu.org>
4648
4649 * xdisp.c (redisplay_internal): If frame switched, redisplay the
4650 whole thing on MSDOS frames as well as on a TTY.
4651
4652 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
4653 well as for TTY.
4654 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
4655 well as on a TTY.
4656
4657 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
4658 as well as for TTY.
4659
4660 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
4661
4662 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
4663 MSDOS frames as well.
4664
46652008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
4666
4667 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
4668 correct arguments.
b71ac3dd 4669 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
4670
46712008-10-03 Glenn Morris <rgm@gnu.org>
4672
4673 * emacs.c (USAGE1): Add --daemon.
4674
46752008-10-02 Eli Zaretskii <eliz@gnu.org>
4676
4677 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
4678 100, so it's in percents as advertised.
4679
46802008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
4681
4682 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
4683 (ns_output.current_cursor, ns_output.desired_cursor)
4684 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
4685 (FRAME_NEW_CURSOR_COLOR): Remove.
4686
4687 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 4688 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
4689 enumeration (HOLLOW_BOX_CURSOR, etc.).
4690
4691 * nsterm.m (ns_frame_rehighlight): Remove commented code.
4692 (draw_window_cursor): Simplify code.
f5385255
SM
4693 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
4694 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 4695 updates manually.
a9b555d3
JB
4696 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
4697 Use core Emacs cursor types.
aac0c6e3 4698
b8ff72fa 4699 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
4700
47012008-10-02 Martin Rudalics <rudalics@gmx.at>
4702
4703 * process.c (Faccept_process_output): Fix doc-string.
4704
47052008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
4706
4707 * gmalloc.c (__sbrk): Also define for uClibc.
4708
4709 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
4710 for uClibc.
4711
47122008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4713
4714 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
4715 styles.
4716 (nsfont_open): Reenable the cache.
4717
47182008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4719
4720 * font.c (font_matching_entity): Reflect ATTRS in font selection.
4721 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
4722
47232008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
4724
4725 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
4726 a suspended terminal.
4727
47282008-09-30 Michael Albinus <michael.albinus@gmx.de>
4729
4730 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
4731
47322008-09-30 Eli Zaretskii <eliz@gnu.org>
4733
4734 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
4735
47362008-09-30 Chong Yidong <cyd@stupidchicken.com>
4737
4738 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
4739 in a continued line coincides with a line beginning.
4740
47412008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4742
4743 * nsfont.m (nsfont_trait_distance): Fix bug.
4744 (nsfont_list): Return a list rather than a vector (syncs with Handa
4745 changes of 2008-05-14).
4746 (nsfont_open): Improve logging.
4747
47482008-09-29 Andreas Schwab <schwab@suse.de>
4749
4750 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
4751
47522008-09-28 Martin Rudalics <rudalics@gmx.at>
4753
4754 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
4755 name as char-resolve-modifiers.
4756 Reported by: Markus Triska <markus.triska@gmx.at>
4757
47582008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
4759
4760 * dispnew.c (init_display): Return earlier when running as a daemon.
4761
47622008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
4763
4764 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
4765
47662008-09-27 Eli Zaretskii <eliz@gnu.org>
4767
4768 * composite.c (Fcomposition_get_gstring)
4769 (Fcompose_region_internal, Fcompose_string_internal)
4770 (Ffind_composition_internal): Doc fix.
4771 (syms_of_composite) <compose-chars-after-function>: Doc fix.
4772 (syms_of_composite) <auto-composition-function>: Doc fix.
4773 (syms_of_composite) <composition-function-table>: Doc fix.
4774
47752008-09-25 Chong Yidong <cyd@stupidchicken.com>
4776
4777 * search.c (wordify): New argument for lax word-ends.
4778 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
4779
47802008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
4781
4782 * lisp.h (is_daemon): Declare.
4783 * dispnew.c (init_display): Do not try to initialize the terminal
4784 when running as a daemon.
4785
47862008-09-22 Chong Yidong <cyd@stupidchicken.com>
4787
4788 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
4789 x_display_pixel_height.
4790
47912008-09-22 Martin Rudalics <rudalics@gmx.at>
4792
4793 * undo.c (record_point): Don't call Fundo_boundary for first
4794 change. (Bug#731)
4795
47962008-09-22 Juanma Barranquero <lekktu@gmail.com>
4797
4798 * emacs.c (Fdaemonp): Doc fix.
4799
48002008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
4801
4802 * emacs.c (main): Place #ifdef in the proper place.
4803
48042008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
4805
4806 * emacs.c (standard_args): Add --daemon.
4807 (main): Disconnect from the terminal when --daemon is passed.
4808 (is_daemon): New variable.
4809 (Fdaemonp): New function.
4810 (syms_of_emacs): Defsubr it.
4811
48122008-09-20 Chong Yidong <cyd@stupidchicken.com>
4813
4814 * xdisp.c (get_next_display_element): Handle string display
4815 correctly when checking for the end of a box run.
4816
48172008-09-20 Glenn Morris <rgm@gnu.org>
4818
4819 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
4820 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
4821 (Frename_file): Avoid copying to trash if a rename involves
4822 a delete. (Bug#964).
4823
48242008-09-20 Eli Zaretskii <eliz@gnu.org>
4825
4826 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
4827 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
4828 frames as well as termcap frames.
4829 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
4830 get_named_tty.
4831
48322008-09-19 Eli Zaretskii <eliz@gnu.org>
4833
4834 * process.c (procfs_system_process_attributes): Fix cmdline in
4835 case /proc/PID/cmdline is empty.
4836
4837 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
4838 x_display_pixel_height.
4839
48402008-09-19 Juanma Barranquero <lekktu@gmail.com>
4841
4842 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
4843
4844 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
4845 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
4846
48472008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
4848
4849 * dispextern.h (struct it): Move line_wrap away from the middle of
4850 bitfields. Move voffset in struct iterator_stack_entry after the
4851 bitfields. Move tab_width near after another short.
4852
48532008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
4854
4855 * frame.h (struct frame): Move alpha from the middle of bitfields.
4856
4857 * window.h (struct window): Move frozen_window_start_p after the
4858 rest of the bitfields to reduce padding.
4859
48602008-09-18 Chong Yidong <cyd@stupidchicken.com>
4861
4862 * xterm.h (x_display_info): Remove `height' and `width' members.
4863
4864 * nsterm.h (ns_display_info): Remove `height' and `width' members.
4865
4866 * w32term.h (w32_display_info): Remove `height', `width',
4867 `height_in', and `width_in' members.
4868
b8ff72fa
SM
4869 * xterm.c (x_display_pixel_height, x_display_pixel_width):
4870 New functions.
aac0c6e3
MR
4871 (x_calc_absolute_position): Use them.
4872 (x_term_init): Omit removed `height' and `width' members.
4873
b8ff72fa
SM
4874 * w32term.c (x_display_pixel_height, x_display_pixel_width):
4875 New functions.
aac0c6e3
MR
4876 (w32_read_socket, x_calc_absolute_position): Use them.
4877 (w32_initialize_display_info, w32_term_init): Omit removed members
4878 of w32_display_info.
4879
b8ff72fa
SM
4880 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
4881 New functions.
4882 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 4883
b8ff72fa
SM
4884 * xterm.c (x_display_pixel_height, x_display_pixel_width):
4885 New functions.
aac0c6e3
MR
4886 (x_calc_absolute_position): Use them.
4887 (x_term_init): Omit removed `height' and `width' members.
4888
4889 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
4890 (compute_tip_xy):
4891 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
4892 * xmenu.c (menu_position_func): Use x_display_pixel_height and
4893 x_display_pixel_width.
4894
48952008-09-18 Kenichi Handa <handa@m17n.org>
4896
4897 * composite.c (fill_gstring_header): Don't check FROM and TO here.
4898 (composition_compute_stop_pos): Fix handling of static composition.
4899 (Fcomposition_get_gstring): Check FROM and TO at first.
4900
49012008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
4902
46e722a9 4903 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
4904 mixup (YAILOM).
4905
49062008-09-17 Chong Yidong <cyd@stupidchicken.com>
4907
4908 * indent.c (Fvertical_motion): Use position reported by iterator
4909 instead of PT for determining screen motion (bug#943).
4910
49112008-09-17 Romain Francoise <romain@orebokech.com>
4912
4913 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
4914
49152008-09-17 Kenichi Handa <handa@m17n.org>
4916
4917 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
4918
4919 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
4920 if necessary.
4921
49222008-09-16 Kenichi Handa <handa@m17n.org>
4923
4924 * coding.c (make_conversion_work_buffer): Avoid calling
4925 Fget_buffer_create if it is not necessary.
4926
49272008-09-15 Martin Rudalics <rudalics@gmx.at>
4928
4929 * window.c (Fselect_window): Don't update window_select_count and
4930 use_time when norecord is not nil.
4931
49322008-09-14 Kenichi Handa <handa@m17n.org>
4933
4934 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
4935 specpdl_ptr.
4936
49372008-09-12 Kenichi Handa <handa@m17n.org>
4938
4939 * indent.c (scan_for_column): Don't handle automatic composition
4940 if the current buffer is not associated with a window.
4941
4942 * composite.c (composition_reseat_it): If the current buffer is
4943 not associated with a window, ignore the automatic composition.
4944 (find_automatic_composition): Likewise.
4945
49462008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
4947
4948 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
4949 (Fgpm_mouse_stop): Use it.
4950 * termhooks.h (close_gpm): Declare.
4951 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
4952 connection if Gpm_GetEvent fails.
4953
4954 * window.c (set_window_buffer): Always preserve current-buffer.
4955
49562008-09-12 Glenn Morris <rgm@gnu.org>
4957
4958 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
4959
49602008-09-11 Glenn Morris <rgm@gnu.org>
4961
4962 * charset.c (charset-map-path): Doc fix.
4963
49642008-09-10 Kenichi Handa <handa@m17n.org>
4965
4966 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
4967
4968 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
4969 compose a grapheme cluster with the preceding base glyph.
4970
4971 * composite.c (composition_compute_stop_pos): Fix previous change.
4972 Reset cmp_it->id to -1 at first.
4973
49742008-09-10 Glenn Morris <rgm@gnu.org>
4975
4976 * Makefile.in (character.o, chartab.o): Fix config.h typo.
4977
49782008-09-09 Chong Yidong <cyd@stupidchicken.com>
4979
4980 * keyboard.c (read_key_sequence): Reapply translation maps when
4981 switching keyboards.
4982
49832008-09-09 Kenichi Handa <handa@m17n.org>
4984
4985 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
4986 characters.
4987
4988 * composite.c (FORWARD_CHAR): Fix calculation
4989 of (POSITION).pos_byte.
4990 (composition_compute_stop_pos): Limit the search of composition to
4991 at most 500 characters ahead. If we reach the limit or find a
4992 newline, set cmp_it->ch to -2 and return 0.
4993 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
4994
49952008-09-08 Kenichi Handa <handa@m17n.org>
4996
4997 * indent.c (Fvertical_motion): Be sure to set
4998 it_overshoot_expected if it.cmp_it.id is non-negative.
4999
50002008-09-07 Andreas Schwab <schwab@suse.de>
5001
5002 * callproc.c (Fcall_process): Don't hold references to string data
5003 across garbage collection. Move initialisation of new_argv down
5004 to avoid compiler bug.
5005
50062008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
5007
5008 * process.c (Fsystem_process_attributes): Doc fix.
5009
50102008-09-07 Chong Yidong <cyd@stupidchicken.com>
5011
5012 * callproc.c (Fcall_process): Canonicalize current directory name.
5013
5014 * xdisp.c (move_it_to): When moving by vpos, ensure that the
5015 iterator advances to the next line if the current line ends in a
5016 continued tab.
5017
50182008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
5019
5020 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
5021 member to point to cmp_from.
5022
5023 * xdisp.c: Doc fix for references to gidx data member.
5024
50252008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
5026
5027 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
5028
50292008-09-07 Kenichi Handa <handa@m17n.org>
5030
5031 * composite.c (FORWARD_CHAR): Check STOP after
5032 incrementing (POSITION).pos.
5033
50342008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
5035
5036 * process.c (Fsystem_process_attributes): Doc fix.
5037
50382008-09-06 Chong Yidong <cyd@stupidchicken.com>
5039
5040 * keyboard.c (Ftop_level): Doc fix.
5041
50422008-09-06 Eli Zaretskii <eliz@gnu.org>
5043
5044 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
5045 minibuffer, don't let lower part of menu invade the echo area.
5046
5047 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
5048 "char *q" to access menu text and advance through it. Revert the
5049 change that displayed ">" instead of ASCII character 0x10.
5050
50512008-09-05 Eli Zaretskii <eliz@gnu.org>
5052
5053 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
5054 toggle boxes and radio buttons on MS-DOS as well.
5055
50562008-09-05 Kenichi Handa <handa@m17n.org>
5057
5058 * composite.c (autocmp_chars): Check lookback count.
5059 (composition_compute_stop_pos): Set cmp_it->lookback.
5060 (composition_reseat_it): Check lookback count.
5061 (struct position_record): New struct.
5062 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
5063 (find_automatic_composition): New function.
5064 (composition_adjust_point): Use find_automatic_composition.
5065
5066 * dispextern.h (struct composition_it): New member lookback.
5067
50682008-09-02 Chong Yidong <cyd@stupidchicken.com>
5069
5070 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
5071 if moving by a single line.
5072
50732008-09-02 Andreas Schwab <schwab@suse.de>
5074
5075 * xterm.c (x_delete_display): Fix merge error.
5076
5077 * fileio.c (Fexpand_file_name): Remove unused variables.
5078
50792008-09-02 Eli Zaretskii <eliz@gnu.org>
5080
5081 * fileio.c (Fexpand_file_name): Copy argument `name' into local
5082 storage on all platforms, not just on DOS_NT.
5083
50842008-09-02 Jason Rumney <jasonr@gnu.org>
5085
b8ff72fa
SM
5086 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
5087 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
5088
50892008-09-01 Chong Yidong <cyd@stupidchicken.com>
5090
5091 * xfaces.c (Finternal_set_alternative_font_family_alist)
5092 (Finternal_set_alternative_font_registry_alist): Properly copy
5093 entire alist structure.
5094
50952008-09-01 Kenichi Handa <handa@m17n.org>
5096
d66c0241 5097 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 5098 representative chars of the script is a vector.
d66c0241
JB
5099 (ftfont_list): Handle the case where the representative chars of
5100 the script is a vector.
aac0c6e3
MR
5101
5102 * character.c (syms_of_character): Docstring of
5103 script-representative-chars fixed.
5104
51052008-08-31 Eli Zaretskii <eliz@gnu.org>
5106
5107 * msdos.c (BUILD_CHAR_GLYPH): New macro.
5108 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
5109 the menu. Allocate larger buffer for `text', to account for
5110 possible ^C characters.
5111
51122008-08-31 Martin Rudalics <rudalics@gmx.at>
5113
5114 * xdisp.c (prepare_menu_bars): Don't call
5115 Vwindow_size_change_functions with arg Qt.
5116
51172008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
5118
5119 * font.h (font_range):
5120 * fileio.c (report_file_error):
46e722a9
SM
5121 * composite.c (composition_update_it): Yet another int/Lisp_Object
5122 mixup (YAILOM).
aac0c6e3
MR
5123
51242008-08-30 Glenn Morris <rgm@gnu.org>
5125
5126 * data.c (Fmake_variable_frame_local): Doc fix.
5127
5128 * frame.c (Fmodify_frame_parameters): Doc fix.
5129
51302008-08-30 Eli Zaretskii <eliz@gnu.org>
5131
5132 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
5133 needed by GetTokenInformation.
5134 (w32_system_process_attributes): Check return values of all system
5135 APIs.
5136
5137 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
5138 only when the state changes.
5139 (IT_update_begin, IT_update_end): Add termscript trace.
5140
5141 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
5142 clipboard is unavailable. Set dst to NULL if it doesn't point to
5143 malloc'ed data.
5144 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
5145 passing random values to xfree.
5146
5147 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 5148 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
5149
51502008-08-29 Jason Rumney <jasonr@gnu.org>
5151
5152 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
5153
51542008-08-29 Eli Zaretskii <eliz@gnu.org>
5155
5156 * composite.c (fill_gstring_body): Avoid compiler warnings.
5157
5158 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
5159 LGLYPH_SET_CODE to avoid compiler warnings.
5160
2ae37cf0 5161 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
5162
5163 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
5164
5165 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
5166 LGLYPH_SET_CODE.
5167
51682008-08-29 Kenichi Handa <handa@m17n.org>
5169
5170 * fileio.c (report_file_error): Don't downcase the first character
5171 of errstring if it is still unibyte.
5172
51732008-08-29 Kenichi Handa <handa@m17n.org>
5174
5175 These changes are to re-implement the automatic composition so
5176 that it doesn't use text properties.
5177
5178 * Makefile.in (ftfont.o): Depend on composite.h.
5179 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
5180
5181 * character.h (Vunicode_category_table): Extern it.
5182
5183 * character.c (Vunicode_category_table): New variable.
5184 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
5185
5186 * chartab.c (optimize_sub_char_table): Perform more greedy
5187 optimization.
5188
b8ff72fa
SM
5189 * composite.h (enum composition_method):
5190 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
5191 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
5192 (Vcomposition_function_table): Extern it.
5193 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
5194 (composition_gstring_put_cache, composition_gstring_from_id)
5195 (composition_gstring_p, composition_gstring_width)
5196 (composition_compute_stop_pos, composition_reseat_it)
5197 (composition_update_it, composition_adjust_point): Extern them.
5198 (Fcomposition_get_gstring): EXFUN it.
5199
d66c0241 5200 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
5201 (Vcomposition_function_table)
5202 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
5203 (gstring_hash_table, gstring_work, gstring_work_headers):
5204 New variables.
aac0c6e3
MR
5205 (gstring_lookup_cache, composition_gstring_put_cache)
5206 (composition_gstring_from_id, composition_gstring_p)
5207 (composition_gstring_width, fill_gstring_header)
5208 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
5209 (composition_reseat_it, composition_update_it)
b8ff72fa 5210 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
5211 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
5212 and gstring_work_headers. DEFVAR_LISP composition-function-table.
5213 Defsubr compostion_get_gstring.
5214
5215 * dispextern.h (struct glyph): New union u.cmp. Delete the member
5216 cmp_id.
5217 (struct glyph_string): Delete the member gidx. New members
5218 cmp_id, cmp_from, and cmp_to.
5219 (enum it_method): Delete GET_FROM_COMPOSITION.
5220 (struct composition_it): New struct.
5221 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
5222 Delete c, len, cmp_id, cmp_len in u.comp.
5223
5224 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 5225 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 5226 (enum lglyph_indices): Likewise.
b8ff72fa 5227 (font_range): Adjust extern.
aac0c6e3
MR
5228 (font_fill_lglyph_metrics): Extern it.
5229
5230 * font.c (QCf): New variable.
5231 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5232 (font_prepare_composition): Delete this function.
5233 (font_range): Type and arguments changed.
5234 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
5235 (font_fill_lglyph_metrics): New function.
b8ff72fa 5236 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 5237 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
5238 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
5239 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
5240
5241 * fontset.h (font_for_char): Extern it.
5242
5243 * fontset.c (font_for_char): New function.
5244
5245 * ftfont.c: Include composite.h.
5246 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 5247 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
5248
5249 * indent.c: Include composite.h and dispextern.h.
5250 (check_composition): Delete this function.
5251 (scan_for_column): Handle composition by
5252 composition_compute_stop_pos, composition_reseat_it, and
5253 composition_update_it.
5254 (compute_motion): Likewise.
5255 (Fvertical_motion): Fix checking of composition.
5256
5257 * keyboard.c (adjust_point_for_property): Check composition by
5258 composition_adjust_point.
5259
b8ff72fa 5260 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
5261 struct glyph_string.
5262
b8ff72fa
SM
5263 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
5264 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
5265 struct glyph.
5266 (produce_composite_glyph): Likewise.
5267
b8ff72fa
SM
5268 * w32term.c (x_draw_composite_glyph_string_foreground):
5269 Adjust for the change of struct glyph_string.
aac0c6e3
MR
5270 (x_draw_glyph_string): Likewise.
5271
5272 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
5273 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
5274
5275 * xdisp.c: Include font.h.
5276 (it_props): Delete the entry for Qauto_composed.
5277 (init_iterator): Initialize it->cmp_it.id to -1.
5278 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 5279 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
5280 (handle_auto_composed_prop): Delete it.
5281 (handle_composition_prop): Handle only static composition.
5282 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
5283 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 5284 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
5285 (pop_it): Likewise.
5286 (get_next_element): Delete next_element_from_composition.
5287 (CHAR_COMPOSED_P): New macro.
5288 (get_next_display_element): For automatic composition, get a face
5289 from the font in the glyph-string.
5290 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 5291 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
5292 (next_element_from_string): Check if the character at the current
5293 position is composed by CHAR_COMPOSED_P.
5294 (next_element_from_buffer): Likewise.
d66c0241
JB
5295 (next_element_from_composition): Adjust for the change of struct it.
5296 Update it->cmp_it.
b8ff72fa
SM
5297 (dump_glyph): Adjust for the change of struct glyph.
5298 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
5299 it and struct glyph. Don't handle automatic composition here.
5300 (fill_gstring_glyph_string): New function.
5301 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 5302 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
5303 (BUILD_GSTRING_GLYPH_STRING): New macro.
5304 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
5305 automatic composition.
b8ff72fa 5306 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 5307 struct glyph.
b8ff72fa 5308 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 5309
b8ff72fa 5310 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
5311 the change of struct glyph_string.
5312 (x_draw_glyph_string): Likewise.
5313
53142008-08-29 Glenn Morris <rgm@gnu.org>
5315
5316 * buffer.c (word-wrap): Doc fix.
5317 * xdisp.c (truncate-partial-width-windows): Doc fix.
5318 Increase default to 50.
5319
53202008-08-29 Chong Yidong <cyd@stupidchicken.com>
5321
5322 * xdisp.c (update_tool_bar_unwind): New function.
5323 (update_tool_bar): Temporarily set selected frame before building
5324 tool-bar items.
5325
53262008-08-28 Michael Albinus <michael.albinus@gmx.de>
5327
5328 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
5329 snprintf, respectively.
5330 (xd_append_arg): Convert strings with Fstring_make_unibyte.
5331
53322008-08-28 Chong Yidong <cyd@stupidchicken.com>
5333
5334 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
5335 LDFLAGS to GNUstep CC invocation.
5336
53372008-08-27 Chong Yidong <cyd@stupidchicken.com>
5338
5339 * indent.c (Fvertical_motion): Revert last change. Handle the
5340 general case where we are moving forward, and PT spans multiple
5341 screen lines.
5342
5343 * eval.c (find_handler_clause): Temporarily increase
5344 max-lisp-eval-depth while printing the backtrace buffer, to
5345 guarantee that help-mode code can run.
5346
53472008-08-27 Eli Zaretskii <eliz@gnu.org>
5348
5349 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
5350 colors under -rv.
5351 (IT_set_frame_parameters): Don't swap foreground and background
5352 colors if `(reverse . t)' is present in the frame properties.
5353 (internal_terminal_init): Call init_frame_faces only for the
5354 initial frame.
5355
53562008-08-27 Andreas Schwab <schwab@suse.de>
5357
5358 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
5359
53602008-08-27 Andreas Schwab <schwab@suse.de>
5361
5362 * search.c (search_buffer): Set char_base to zero only at the end.
5363
53642008-08-27 Kenichi Handa <handa@m17n.org>
5365
b8ff72fa 5366 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
5367
53682008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
5369
5370 * xterm.c (x_term_init): Temporarily hide the partially
5371 initialized terminal while calling vendor-specific-keysyms.
5372
53732008-08-26 Eli Zaretskii <eliz@gnu.org>
5374
5375 * msdos.c (internal_terminal_init): Most initializations done only
5376 once, especially initial_screen_colors[] and termscript open.
5377
53782008-08-26 Chong Yidong <cyd@stupidchicken.com>
5379
5380 * eval.c (Fcondition_case): Doc fix.
5381
5382 * widgetprv.h (EmacsFramePart): Change font member to the new font
5383 struct.
5384
5385 * widget.c: Include character.h and font.h for XSETFONT.
5386 (setup_frame_gcs): Compute X font id from font struct, just once.
5387
53882008-08-26 Eli Zaretskii <eliz@gnu.org>
5389
5390 * term.c (get_named_tty): Fix last change.
5391
53922008-08-26 Chong Yidong <cyd@stupidchicken.com>
5393
5394 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 5395 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
5396
53972008-08-25 Eli Zaretskii <eliz@gnu.org>
5398
5399 * frame.c (do_switch_frame): Mark previously displayed frame as
5400 obscured for FRAME_MSDOS_P frames as well.
5401
54022008-08-24 Eli Zaretskii <eliz@gnu.org>
5403
5404 * frame.c (make_terminal_frame): Initialize f->terminal,
5405 f->terminal->reference_count, and scroll bars on MS-DOS as well.
5406 Set the top frame to newly created frame.
5407 (Fmake_terminal_frame): Reuse the_only_display_info.
5408
5409 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
5410 estimating available memory.
5411
b97439ce 54122008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
5413
5414 * nsterm.m (ns_draw_window_cursor): Don't call
5415 NSDisableScreenUpdates and NSEnableScreenUpdates on
5416 non-NS_IMPL_COCOA systems.
5417
54182008-08-23 Andreas Schwab <schwab@suse.de>
5419
5420 * process.c (procfs_system_process_attributes): Fix use of
5421 uninitialized variables.
5422
54232008-08-23 Eli Zaretskii <eliz@gnu.org>
5424
5425 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
5426
5427 * dispnew.c (init_display): Remove MS-DOS specific conditions for
5428 calling tty-set-up-initial-frame-faces.
5429
b8ff72fa
SM
5430 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
5431 Allow MSDOS frames along with X frames.
aac0c6e3
MR
5432
5433 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
5434 addition to output_termcap.
5435
5436 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
5437
5438 * termchar.h (FRAME_TTY): Support output_msdos_raw.
5439 (struct tty_display_info) [MSDOS]: Add fields related to mouse
5440 highlight.
5441
5442 * process.c [!subprocesses]: Define QCname.
5443 (syms_of_process): Intern and staticpro it.
5444
5445 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
5446 Adjust for changes in encoding/decoding routines.
5447 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
5448 encode_coding and decode_coding.
5449
b8ff72fa 5450 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
5451
5452 * dosfns.c: Include frame.h before termhooks.h.
5453 (dos_cleanup): Use CURTTY ()->termscript instead of a global
5454 variable termscript.
5455
5456 * s/msdos.h (USER_FULL_NAME): Define.
5457 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
5458
5459 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
5460 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
5461 pw->pw_gecos.
5462
5463 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
5464 SELECTED_FRAME as additional (1st) argument.
5465 (tty_read_avail_input): Handle output_msdos_raw in
5466 addition to output_termcap.
5467
5468 * msdos.c: Include frame.h before termhooks.h.
5469 (mouse_on, mouse_off, mouse_moveto, mouse_init)
5470 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
5471 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
5472 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
5473 (IT_set_terminal_modes, IT_reset_terminal_modes)
5474 (IT_set_frame_parameters): Use tty->termscript instead of a global
5475 variable termscript.
5476 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
5477 global variable terminal_coding. Don't refer to
5478 Vnonascii_translation_table.
5479 (internal_terminal_init): Set Vwindow_system in current_kboard.
5480 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
5481 Announce date and time of session start, if termscript is open.
5482 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
5483 term.c:init_tty). Open termscript only of not already open.
5484 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
5485 here instead of dos_ttraw. Don't initialize display if this is an
5486 initial tty. Don't set FRAME_FONT.
5487 (Vwindow_system_version): Bump to 23.
5488 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
5489 is available, set up mouse_position_hook.
5490 (dos_ttraw, IT_set_terminal_modes): If called with initial
5491 terminal, do nothing.
5492 (IT_set_frame_parameters): Handle the Qtty_type frame
5493 parameter by calling internal_terminal_init.
5494 (dos_set_window_size, show_mouse_face)
5495 (clear_mouse_face, IT_note_mode_line_highlight)
5496 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
5497 (dos_rawgetc): Use tty_display_info instead of x_display_info.
5498 (initialize_msdos_display): New function.
5499 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
5500 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
5501 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
5502 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 5503 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
5504 (request_sigio, unrequest_sigio): Don't define, now defined on
5505 sysdep.c.
5506 (IT_write_glyphs): Rewrite to use encode_terminal_code.
5507
5508 * term.c [MSDOS]: Include msdos.h.
5509 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
5510 conditional to DOS_NT. Allow only one call to this function in a
5511 session. Don't allocate a new struct tty_display_info; instead,
5512 reuse the_only_display_info. Call get_tty_size to get screen
5513 dimensions. Call init_baud_rate to set bad_rate.
5514 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
5515 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 5516 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
5517 (get_tty_terminal, get_named_tty, Ftty_type)
5518 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
5519 output_termcap.
b8ff72fa
SM
5520 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
5521 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 5522 only when subprocesses are supported.
aac0c6e3
MR
5523
5524 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
5525 f->output_data.x.
5526 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
5527 terminal devices.
5528
5582fbc7 5529 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
5530 x_output.
5531 (FRAME_FONT): Use output_data.tty.
5532 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
5533 (struct x_display_info): Rename from display_info. Update all users in
5534 msdos.c.
aac0c6e3 5535 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 5536 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
5537 (dos_ttraw): Update prototype.
5538
5539 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
5540 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
5541
55422008-08-23 Jason Rumney <jasonr@gnu.org>
5543
5544 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
5545 (fn_TIFFSetDirectory): New library function used.
5546 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
5547 (tiff_load): Use :index to select among multiple images. Set count
5548 property when multiple images exist.
5549 (gif_format): Use :index, not :image.
5550
55512008-08-23 Chong Yidong <cyd@stupidchicken.com>
5552
5553 * xdisp.c (try_scrolling): Check INT_MAX instead of
5554 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
5555 to obtain INT_MAX.
5556
55572008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
5558
5559 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
5560
55612008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
5562
5563 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
5564 GNUstep library location.
5565
55662008-08-21 Chong Yidong <cyd@stupidchicken.com>
5567
5568 * xfaces.c (x_update_menu_appearance): Check validity of menu font
5569 before using it.
5570
5571 * puresize.h (BASE_PURESIZE): Increase to 1250000.
5572
55732008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5574
5575 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
5576 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
5577 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
5578 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
5579 (EmacsApp-cursor_blink_handler): Remove declaration.
5580 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
5581 match 01 Feb 2008 changes in xterm.c.
5582 (ns_read_socket): Add cast to avoid warning.
5583 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
5584 GNUstep.
5585
55862008-08-20 Chong Yidong <cyd@stupidchicken.com>
5587
5588 * xselect.c (x_get_foreign_selection): Return nil if desired
5589 selection could not be obtained, instead of signalling an error.
5590
55912008-08-20 David Reitter <david.reitter@gmail.com>
5592
5593 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
5594 * nsterm.m: Remove ns-specific code for cursor blinking.
5595 (ns_draw_window_cursor): Clear cursor properly rather than
5596 redrawing the area. Respect width of bar cursors.
5597 These changes enable the use of generic blink-cursor-mode and
5598 generic cursor types in NS and support smooth cursor movements (do
5599 not blink off after command).
5600 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
5601 Nextstep, too.
5602
56032008-08-19 Kenichi Handa <handa@m17n.org>
5604
5605 * font.c (Vfont_log_deferred): New variable.
5606 (font_add_log): Check Vfont_log_deferred.
5607 (font_deferred_log): New function.
5608
5609 * font.h (font_deferred_log): Extern it.
5610
5611 * fontset.c (reorder_font_vector): Use encoding charset of fonts
5612 for sorting.
5613 (face_for_char): Use deferred log.
5614
56152008-08-18 Kenichi Handa <handa@m17n.org>
5616
5617 * fontset.c (face_for_char): Add font log.
5618
5619 * font.c (font_add_log): Add the font properties :script, :lang,
5620 and :otf in the log.
5621
56222008-08-17 Chong Yidong <cyd@stupidchicken.com>
5623
5624 * xdisp.c: Remove dead code.
5625 (handle_invisible_prop, next_overlay_string): Defer call to
5626 setup_for_ellipsis.
5627 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
5628
56292008-08-15 Chong Yidong <cyd@stupidchicken.com>
5630
5631 * xfaces.c (lookup_derived_face): Properly handle possible zero
5632 return value of get_lface_attributes.
5633 (merge_faces): Don't tell lookup_derived_face to signal an error
5634 if face is not found.
5635
5636 * dired.c (Fdirectory_files): Doc fix.
5637
5638 * process.c (make_process): Initialize kill_without_query struct
5639 member.
5640
56412008-08-15 Eli Zaretskii <eliz@gnu.org>
5642
5643 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
5644 Alternative calculation of totphys for Visual Studio 6.
5645
5646 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
5647
5648 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
5649 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
5650 All users changed.
5651 (stat): Only root directory passed to GetDriveType. Allow RAM
5652 disk as well as local fixed disk when w32-get-true-file-attributes
5653 is set to `local'.
5654 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
5655 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
5656 (w32_cached_id, w32_add_to_cache): New functions.
5657 (get_name_and_id): Look account names in the cache before calling
5658 lookup_account_sid.
5659 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
5660 New initialization flags.
5661 (globals_of_w32): Initialize them to zero.
5662 (w32_system_process_attributes): Use w32_cached_id and
5663 w32_add_to_cache.
5664
56652008-08-14 Lawrence Mitchell <wence@gmx.li>
5666
5667 * lread.c (Fread_char, Fread_char_exclusive): If no character
5668 event is read before timeout is reached, return nil, rather than
5669 converting to a number.
5670
56712008-08-14 Chong Yidong <cyd@stupidchicken.com>
5672
5673 * fns.c (use_dialog_box): Doc fix.
5674
5675 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
5676 on OS X.
5677
56782008-08-13 Chong Yidong <cyd@stupidchicken.com>
5679
5680 * frame.c (Qns_parse_geometry): New var.
5681 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
5682
56832008-08-11 Chong Yidong <cyd@stupidchicken.com>
5684
5685 * xdisp.c (x_produce_glyphs): Handle the case when font has no
5686 space character in calculating tabs.
5687
56882008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
5689
5690 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
5691
56922008-08-10 Glenn Morris <rgm@gnu.org>
5693
5694 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
5695 silence gcc "limited range of data type" warnings in some
5696 make_fixnum_or_float calls.
5697
56982008-08-09 Eli Zaretskii <eliz@gnu.org>
5699
5700 * w32.c (w32_system_process_attributes): If the process does not
5701 exist, return nil.
5702
5703 * w32.c: Include thelp32.h, psapi.h and coding.h.
5704 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
5705 declarations.
5706 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
5707 (Process32Next_Proc): New typedefs.
5708 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
5709 (g_b_init_process32_next, g_b_init_open_thread_token)
5710 (g_b_init_impersonate_self, g_b_init_revert_to_self)
5711 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
5712 (g_b_init_get_process_working_set_size)
5713 (g_b_init_global_memory_status_ex): New static variables.
5714 (globals_of_w32): Initialize them.
5715 (create_toolhelp32_snapshot, process32_first, process32_next)
5716 (open_thread_token, impersonate_self, revert_to_self)
5717 (get_process_memory_info, get_process_working_set_size)
5718 (global_memory_status, global_memory_status_ex): New wrapper
5719 functions.
5720 (w32_list_system_processes, w32_system_process_attributes)
5721 (enable_privilege, restore_privilege, ltime, process_times):
5722 New functions.
5723 (convert_time_raw): New function.
5724 (convert_time): Remove conversion of FILETIME into time in 100
5725 nsec units, call convert_time_raw instead.
5726
5727 * process.h (w32_list_system_processes, w32_system_process_attributes):
5728 Add prototypes.
5729 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
5730 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
5731 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
5732 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
5733
5734 * process.c (Fsystem_process_attributes): Doc fix.
5735
57362008-08-08 Chong Yidong <cyd@stupidchicken.com>
5737
5738 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
5739 a continued multi-char glyph; if so, advance to the actual glyph.
5740
57412008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
5742
5743 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
5744
5745 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
5746 (.m.o): Use it.
5747 * config.in: Regenerate.
5748
57492008-08-07 Chong Yidong <cyd@stupidchicken.com>
5750
5751 * xdisp.c (redisplay_window): Revert last change.
5752 (try_window): Check bottom scroll margin too.
5753
57542008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
5755
5756 * config.in: Regenerate.
5757
5758 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
5759 -list-load-path-shadows'.
5760 (nsgui.h): Reduce number of things depending on it.
5761
57622008-08-06 Chong Yidong <cyd@stupidchicken.com>
5763
5764 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
5765 instead of window-end which does the wrong thing at eob.
5766 (try_cursor_movement): Minor optimization.
5767 (redisplay_window): If scroll margin is defined, don't assume
5768 window doesn't need scrolling.
5769
57702008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
5771
5772 * config.in: Regenerate.
5773
5774 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
5775 (mostlyclean): Don't delete *.d under NS.
5776
5777 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
5778
57792008-08-06 Kenichi Handa <handa@m17n.org>
5780
5781 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
5782
57832008-08-06 Andreas Schwab <schwab@suse.de>
5784
5785 * config.in: Regenerate.
5786
57872008-08-05 Chong Yidong <cyd@stupidchicken.com>
5788
5789 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
5790 forcing a window start.
5791
5792 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
5793 (auto_save_1): Update modtime when auto-save-list-file-name is on.
5794
57952008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
5796
5797 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
5798 argument.
5799
58002008-08-05 Juanma Barranquero <lekktu@gmail.com>
5801
5802 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
5803 <scroll-down-aggressively, before-change-functions>:
5804 <after-change-functions>: Reflow docstrings.
5805
58062008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
5807 Ken Raeburn <raeburn@gnu.org>
5808
5809 Dock menu customization, based on a patch by Ken Raeburn, plus some
5810 other fixes.
5811 * nsmenu.m (dockMenu): New variable.
5812 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
5813
5814 * nsterm.h (dockMenu): Declare.
5815
5816 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
5817 (ns_term_init): Initialize dockMenu.
5818 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
5819 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
5820 left.
5821
5822 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
5823
58242008-08-04 Chong Yidong <cyd@stupidchicken.com>
5825
5826 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
5827
5828 * config.in: Regenerate.
5829
58302008-08-04 Seiji Zenitani <zenitani@mac.com>
5831
5832 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
5833
58342008-08-04 Chong Yidong <cyd@stupidchicken.com>
5835
5836 * nsterm.h (find_and_call_menu_selection): Fix prototype.
5837
58382008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
5839
5840 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
5841
5842 * keyboard.h: Comment an #endif.
5843
5844 * lisp.h (have_menus_p): Adjust comment.
5845
5846 * menu.c (find_and_return_menu_selection): Fix comparison with
5847 client_data.
5848
5849 * nsmenu.m (popup_activated_flag): New variable.
5850 (popup_activated): New function.
5851 (menu-or-popup-active-p): New exported lisp definition.
5852 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
5853 when popup done.
5854 (ns_popup_dialog): Set popup_activated_flag.
5855
5856 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
5857 version for GNUstep (handled by conditional typedef in nsterm.m).
5858 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
5859 in rgb.txt).
5860
5861 * process.c (init_process): Use DARWIN_OS, not DARWIN.
5862
5863 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
5864
5865 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
5866
5867 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
5868 shortcircuit if popup_activated like GTK and X toolkit.
5869
5870 * m/inter386.h: Change DARWIN to DARWIN_OS.
5871
5872 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
5873 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
5874 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
5875 comment on NO_SOCK_SIGIO.
5876
58772008-08-03 Chong Yidong <cyd@stupidchicken.com>
5878
5879 * nsterm.m (windowDidResize): Remove stopModal call.
5880
58812008-08-03 Andreas Schwab <schwab@suse.de>
5882
5883 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
5884 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
5885
58862008-08-02 Chong Yidong <cyd@stupidchicken.com>
5887
5888 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
5889 Don't use uninitialized pointer variable when using getrlimit.
5890
58912008-08-02 Jason Rumney <jasonr@gnu.org>
5892
5893 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
5894
58952008-08-02 Eli Zaretskii <eliz@gnu.org>
5896
5897 * alloc.c (NSTATICS): Bump to 0x640.
5898
5899 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
5900
5901 * lisp.h: Add prototype for directory_files_internal.
5902
5903 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
5904 New functions.
5905 (syms_of_process): Defsubr them. Add initializations for various
5906 Q* symbols used in procfs_system_process_attributes.
5907 (procfs_list_system_processes, procfs_system_process_attributes)
5908 [HAVE_PROCFS]: New functions.
5909 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
5910 (procfs_get_total_memory): New functions.
5911
59122008-08-01 Juanma Barranquero <lekktu@gmail.com>
5913
5914 * xfaces.c (Fx_load_color_file): Fix previous change;
5915 it is #ifdef WINDOWSNT, not WINDOWS_NT.
5916
59172008-08-01 Michael Albinus <michael.albinus@gmx.de>
5918
5919 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
5920
59212008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5922
5923 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
5924
59252008-08-01 Chong Yidong <cyd@stupidchicken.com>
5926
5927 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
5928
5929 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
5930 define NSApplicationDelegateReplySuccess.
5931 (EmacsView -converstationIdentifier): Use long instead of
5932 NSInteger for GNUstep, since it doesn't have NSInteger.
5933
5934 * xmenu.c: Revert last change.
5935
5936 * keyboard.h: Fix last change.
5937
59382008-08-01 Juanma Barranquero <lekktu@gmail.com>
5939
5940 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
5941 on Windows.
5942
59432008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5944
5945 Warning clearing and clean-up in NS port.
5946 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
5947 Add prototypes.
5948 * nsgui.h (FACE_DEFAULT): Remove, unused.
5949 (XGCValues): Change colors to unsigned long.
5950 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
5951 nsterm.m.
5952 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
5953 (ns_list_fonts): Remove, unused.
5954 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
5955 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
5956 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
5957 (nsfont_draw): Compare face colors to 0, not nil.
5958 * nsmenu.m (struct widget_value): Drop unneeded declaration.
5959 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
5960 (-addSubmenuWithTitle:): Use NSMenuItem class.
5961 (ns_popup_menu): Use NO, not NULL, for enabled setting.
5962 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
5963 (ns_clip_to_row): Make gc arg a BOOL.
5964 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
5965 ns_clip_to_row() call.
5966 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
5967 used). Cast FRAME_FONT assignments.
5968 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
5969 (ns_string_to_lispmod): Change arg to const char.
5970 (ns_term_init): Use NSMenuItem class.
5971 (EmacsApp -openFile:): Move to different section of file.
5972 (EmacsApp -application:openFiles:): Don't return a value, call
5973 -replyToOpenOrPrint:.
5974 (EmacsView -keyDown:): Fix up cast.
5975 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
5976 (EmacsView -menuDown:): Cast tag in call to
5977 find_and_call_menu_selection().
5978 (ns_list_fonts): Remove, unused.
5979 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
5980 (ns_fontname_to_xlfd): Make static.
5981 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
5982 Remove prototypes (now in keyboard.h).
5983 (next_menubar_widget_id): Remove, unused.
5984 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
5985 Remove prototypes (now in keyboard.h).
5986 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
5987
59882008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
5989
5990 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
5991 (floatfns.o): Depend on syssignal.h.
5992 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
5993
5994 * systty.h: Fix previous change that removed BSD_TERMIOS.
5995 Add comments to #ifdefs.
5996
59972008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5998
5999 * w32fns.c (w32-load-color-file): Remove.
6000 (x-open-connection): Use renamed Fx_load_color_file.
6001 * xfaces.c (x-load-color-file): Add.
6002 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
6003 Emacs.clr.
6004 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
6005
60062008-07-31 Michael Albinus <michael.albinus@gmx.de>
6007
6008 * dbusbind.c (Fdbus_call_method_asynchronously)
6009 (Fdbus_method_error_internal): New defuns.
6010 (xd_read_message): Handle also reply messages.
6011 (Vdbus_registered_functions_table): Extend docstring.
6012
60132008-07-31 Juanma Barranquero <lekktu@gmail.com>
6014
6015 * keyboard.c (gobble_input): Fix previous change.
6016
60172008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
6018
6019 * bitmaps/README:
6020 * xfns.c:
6021 * termcap.c:
6022 * term.c:
6023 * syswait.h:
6024 * systty.h:
6025 * systime.h:
6026 * syssignal.h:
6027 * sysdep.c:
6028 * process.h:
6029 * process.c:
6030 * print.c:
6031 * ndir.h:
6032 * lread.c:
6033 * keyboard.c:
6034 * getpagesize.h:
6035 * floatfns.c:
6036 * fileio.c:
6037 * emacs.c:
6038 * doc.c:
6039 * dispnew.c:
6040 * dired.c:
6041 * data.c:
6042 * callproc.c:
6043 * buffer.c:
6044 * README:
6045 * Makefile.in:
6046 * s/template.h:
6047 * s/msdos.h:
6048 * m/vax.h: Remove VMS support.
6049 * s/vms.h:
6050 * vlimit.h:
6051 * uaf.h:
6052 * temacs.opt:
6053 * param.h:
6054 * ioctl.h: Remove file.
6055
60562008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
6057
6058 * s/ms-w32.h (MULTI_KBOARD): Remove.
6059 * xterm.c:
6060 * xselect.c:
6061 * xfns.c:
6062 * window.c:
6063 * w32term.c:
6064 * w32fns.c:
6065 * terminal.c:
6066 * termhooks.h:
6067 * term.c:
6068 * sysdep.c:
6069 * keyboard.h:
6070 * keyboard.c:
6071 * frame.h:
6072 * frame.c:
6073 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
6074 * config.in: Regenerate.
6075
60762008-07-30 Jason Rumney <jasonr@gnu.org>
6077
6078 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
6079
6080 * w32font.c (w32font_encode_char): Leave as unicode if in range.
6081 (w32font_open_internal): Get unicode version of textmetrics.
6082 Don't enable or disable glyph indices here.
6083 (w32font_open): Disable use of glyph indices.
6084
6085 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
6086
60872008-07-30 Chong Yidong <cyd@stupidchicken.com>
6088
6089 * minibuf.c (Vread_buffer_function): Doc fix.
6090
60912008-07-30 John Paul Wallington <jpw@pobox.com>
6092
6093 * minibuf.c (read_buffer_completion_ignore_case): New var.
6094 (Fread_buffer): Use it.
6095
60962008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
6097
6098 * systty.h (sensemode): Remove empty #if. Remove reference to
6099 BSD_TERMIOS, unused.
6100
6101 * sysdep.c: Remove reference to DGUX.
6102 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
6103
6104 * config.in: Regenerate.
6105
61062008-07-30 Jason Rumney <jasonr@gnu.org>
6107
6108 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
6109
61102008-07-29 Jason Rumney <jasonr@gnu.org>
6111
6112 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
6113 is populated.
6114 (uniscribe_encode_char): Always use uniscribe.
6115 Avoid using context if cache is populated.
6116
61172008-07-29 Jan Djärv <jan.h.d@swipnet.se>
6118
6119 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
6120 open menu.
6121
6122 * gtkutil.c (menu_nav_ended): Remove.
6123 (create_menus): Remove signal connect for menu_nav_ended.
6124
61252008-07-28 Chong Yidong <cyd@stupidchicken.com>
6126
6127 * xdisp.c (redisplay_window): Check return value of
6128 compute_window_start_on_continuation_line before forcing a window
6129 start.
6130
61312008-07-28 Jason Rumney <jasonr@gnu.org>
6132
6133 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
6134
6135 * w32term.c (w32_enable_unicode_output, cleartype_active):
6136 Remove obsolete display options.
6137 (x_draw_glyph_string_background): Don't use old cleartype_active
6138 workaround.
6139 (w32_initialize): Remove cleartype_active initialization.
6140 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
6141
61422008-07-28 Andreas Schwab <schwab@suse.de>
6143
6144 * lisp.h (init_weak_hash_tables, syms_of_font)
6145 (xd_read_queued_messages, syms_of_dbusbind): Declare.
6146 (remove_hash_entry): Don't declare.
6147 * eval.c (maybe_call_debugger): Make static and move before use.
6148 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
6149 * xdisp.c: Include "gtkutil.h" if USE_GTK.
6150 * xterm.h (x_set_frame_alpha): Declare.
6151
61522008-07-28 Jan Djärv <jan.h.d@swipnet.se>
6153
6154 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
6155 (create_menus): Connect selection-done to menu_nav_ended.
6156
61572008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6158
6159 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
6160 Set Vx_resource_name to a fallback. Replace read of 'buffered'
6161 parameter with read of 'alpha' one.
6162 (Qns_frame_parameter): Remove.
5582fbc7 6163 * nsselect.m (selection-coding-system)
aac0c6e3
MR
6164 (next-selection-coding-system, Vselection_coding_system)
6165 (Vnext_selection_coding_system): Drop.
6166
61672008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6168
6169 * nsfns.m (do-applescript, do_applescript): Rename to
6170 ns-do-applescript, ns_do_applescript, and move within file.
6171
61722008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6173
6174 Remove support for Mac Carbon.
6175 * mactoolbox.c:
6176 * macterm.h:
6177 * macterm.c:
6178 * macselect.c:
6179 * macmenu.c:
6180 * macgui.h:
6181 * macfns.c:
6182 * mac.c: Remove file.
6183 * s/darwin.h:
6184 * m/intel386.h:
6185 * xfaces.c:
6186 * xdisp.c:
6187 * window.c:
6188 * tparam.c:
6189 * termhooks.h:
6190 * termcap.c:
6191 * term.c:
6192 * syssignal.h:
6193 * sysselect.h:
6194 * sysdep.c:
6195 * process.c:
6196 * lread.c:
6197 * lisp.h:
6198 * keyboard.c:
6199 * image.c:
6200 * fringe.c:
6201 * frame.h:
6202 * frame.c:
6203 * fontset.c:
6204 * font.h:
6205 * font.c:
6206 * fns.c:
6207 * fileio.c:
6208 * emacs.c:
6209 * dispnew.c:
6210 * dispextern.h:
6211 * config.in:
6212 * atimer.c:
2ae37cf0 6213 * Makefile.in: Remove code for Carbon.
aac0c6e3 6214
f0131492 62152008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
6216
6217 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
6218
62192008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6220
6221 * macterm.h (kCGBitmapByteOrder32Host): New define for
6222 non-universal SDKs.
6223
6224 * image.c (mac_create_cg_image_from_image, image_load_image_io)
6225 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
6226
6227 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
6228 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
6229
62302008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
6231
6232 * w32inevt.c: Include dispextern.h.
6233
62342008-07-26 Andreas Schwab <schwab@suse.de>
6235
6236 * print.c (print_object): Fix off-by-one in last change.
6237
62382008-07-25 Juanma Barranquero <lekktu@gmail.com>
6239
6240 * term.c (syms_of_term): Don't initialize default_orig_pair,
6241 default_set_foreground and default_set_background on Windows.
6242
62432008-07-25 Jason Rumney <jasonr@gnu.org>
6244
6245 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
6246 ScriptItemize. Clean up return value checking. Remove unused
6247 variables.
6248 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
6249 shaping engine.
6250
6251 * w32font.c (w32font_has_char): Handle the case where we can't
6252 determine the script for a character.
6253
62542008-07-25 Chong Yidong <cyd@stupidchicken.com>
6255
6256 * term.c (syms_of_term): Initialize default_orig_pair,
6257 default_set_foreground, and default_set_background.
6258
6259 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
6260 clash (bug#86).
6261 (getloadavg): Callers changed.
6262
6263 * image.c (svg_load_image): Fix last change.
6264 (svg_load_image): Use rsvg_handle_get_dimensions to check that
6265 image size is valid. Use g_object_unref instead of deprecated
6266 rsvg_handle_free to free rsvg handle.
6267 (x_from_xcolors): Don't initialize pixmap (silence compiler).
6268
62692008-07-25 Jason Rumney <jasonr@gnu.org>
6270
6271 * w32font.c (w32font_encode_char): Encode characters outside BMP as
6272 surrogates before looking up glyph index.
6273 (w32font_text_extents): Encode as surrogates if falling back to
6274 functions that need UTF-16 wide chars.
6275
6276 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
6277 BMP as surrogates before looking up glyph index.
6278
62792008-07-25 Chong Yidong <cyd@stupidchicken.com>
6280
6281 * image.c (svg_load_image): Check for failure in return value of
6282 rsvg_handle_get_pixbuf. Free rsvg handle when done.
6283
62842008-07-25 Jason Rumney <jasonr@gnu.org>
6285
6286 * w32font.c (Fx_select_font): Reverse sense of second arg.
6287
62882008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
6289
6290 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
6291 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
6292
6293 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
6294 (PURESIZE): Use it.
6295
62962008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
6297
6298 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
6299 * m/alpha.h (TEXT_END):
6300 * m/ibmrs6000.h (TEXT_END):
6301 * m/macppc.h (TEXT_END):
6302 * s/darwin.h (TEXT_END):
6303 * s/msdos.h (TEXT_END): Remove, unused.
6304 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
6305 * s/cygwin.h: Remove comment.
6306
6307 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
6308 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
6309 * m/intel386.h (DOT_GLOBAL_START):
6310 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
6311 (USG): Remove, file not used on USG platforms.
6312
6313 * Makefile.in (HAVE_X11): Remove empty #else.
6314
63152008-07-24 Andreas Schwab <schwab@suse.de>
6316
6317 * fileio.c (Finsert_file_contents): Properly adjust undo list
6318 after format conversion.
6319
63202008-07-24 Jan Djärv <jan.h.d@swipnet.se>
6321
6322 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
6323 (menu_nav_ended): Remove.
6324 (create_menus): Remove signal connect for menu_nav_ended.
6325 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
6326 create_menus.
6327 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
6328
63292008-07-23 Jason Rumney <jasonr@gnu.org>
6330
6331 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
6332 with opened font.
6333 (w32font_open): Set font type to gdi.
6334
6335 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
6336
63372008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
6338
6339 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
6340 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
6341 defines it.
6342 * unexec.c (ADDR_CORRECT): Define unconditionally.
6343
6344 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
6345
6346 * unexec.c: Remove code depending on !COFF and USG, the file is
6347 not used for such systems.
6348
6349 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
6350 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
6351 (LD_SWITCH_SYSTEM_1): Remove, update users.
6352
6353 * s/darwin.h (DATA_END):
6354 * m/intel386.h (DATA_END):
6355 * m/ibmrs6000.h (DATA_END):
6356 * m/alpha.h (DATA_END): Remove, unused.
6357
6358 * config.in: Regenerate.
6359 * s/ms-w32.h (subprocesses): Define unconditionally.
6360 * s/template.h (subprocesses): Update comment.
6361 * s/vms.h (subprocesses):
6362 * s/usg5-4.h (subprocesses):
6363 * s/hpux10-20.h (subprocesses):
6364 * s/gnu-linux.h (subprocesses):
6365 * s/cygwin.h (subprocesses):
6366 * s/bsd-common.h (subprocesses):
6367 * s/aix4-2.h (subprocesses):
6368 * s/darwin.h (subprocesses): Do not define, defined by default now.
6369
6370 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
6371 Remove all references.
6372 (temacs): Add GNUstep specific ld flags.
6373
6374 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
6375 similarly to what X does.
6376
63772008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6378
6379 * nsfns.m (x-list-fonts): Remove.
6380 (syms_of_nsfns): Drop the x-list-fonts declaration.
6381 * nsterm.m: Get rid of remaining "//" comments.
6382
63832008-07-22 Chong Yidong <cyd@stupidchicken.com>
6384
6385 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
6386
6387 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
6388 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
6389 (Fns_own_selection_internal, Fx_disown_selection_internal)
6390 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
6391
6392 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
6393 ... */' style of docstrings. Doc fixes.
6394
63952008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
6396
6397 * terminfo.c (UP, BC, PC): Undo previous change.
6398
6399 * nsfns.m: Rename ns prefixed functions/variables to the
6400 corresponding x versions. Update references.
6401
64022008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
6403
6404 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
6405
64062008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
6407
6408 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
6409 Remove forwarding functions.
6410 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
6411 non-static.
6412 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
6413 non-static.
6414 (ns_frame_parm_handlers): Use the new names.
6415 (syms_of_nsfns): Move to the end of file.
6416
6417 * nsterm.m (syms_of_nsterm): Move to the end of file.
6418
6419 * dispnew.c (init_display): Remove code for X10.
6420
64212008-07-22 Jason Rumney <jasonr@gnu.org>
6422
6423 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
6424 bare drive.
6425
64262008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6427
6428 * nsterm.m (syms_of_nsterm): Remove debugging println.
6429
64302008-07-22 David Reitter <david.reitter@gmail.com>
6431
6432 * nsfns.m (do_applescript, F_do_applescript): NS version of the
6433 Carbon implementation of the same functionality: execute arbitrary
6434 AppleScript code.
6435
64362008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
6437
6438 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
6439 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
6440 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
6441 (Fx_display_mm_height, Fx_display_mm_width)
6442 (Fx_display_backing_store, Fx_display_visual_class)
6443 (Fx_display_save_under, Fx_open_connection)
6444 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
6445 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
6446 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
6447 (Fx_display_pixel_width, Fx_display_pixel_height)
6448 (Fx_display_usable_bounds, Fx_display_planes)
6449 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
6450 ... */' style of docstrings.
6451
64522008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
6453
6454 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
6455 on this platform.
6456 (mips):
6457 * m/iris4d.h (mips): Do not define.
6458 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
6459
6460 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
6461
6462 * image.c:
6463 * nsfns.m:
6464 * nsselect.m:
6465 * nsterm.h:
6466 * nsterm.m: Rename ns prefixed functions/variables to the
6467 corresponding x versions. Update references.
6468
6469 * m/ibms390x.h (NO_REMAP): Do not undefine.
6470
6471 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
6472
64732008-07-21 Chong Yidong <cyd@stupidchicken.com>
6474
6475 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
6476 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
6477 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
6478 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
6479 (Fns_display_mm_height, Fns_display_mm_width)
6480 (Fns_display_backing_store, Fns_display_visual_class)
6481 (Fns_display_save_under, Fns_open_connection)
6482 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
6483 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
6484 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
6485 (Fns_display_pixel_width, Fns_display_pixel_height)
6486 (Fns_display_usable_bounds, Fx_display_planes)
6487 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
6488
64892008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
6490
6491 * print.c (print_object): Check print_depth before searching for
6492 circularities.
6493
64942008-07-21 Michael Albinus <michael.albinus@gmx.de>
6495
6496 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
6497 only sprintf.
6498
64992008-07-21 Kenichi Handa <handa@m17n.org>
6500
6501 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
6502
65032008-07-20 Andreas Schwab <schwab@suse.de>
6504
6505 * syntax.c (find_start_pos, find_start_value)
6506 (find_start_value_byte, find_start_begv, find_defun_start)
6507 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
6508
65092008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
6510
6511 * s/sol2-3.h: Insert contents of s/sol2.h.
6512 (LD_SWITCH_SYSTEM): Remove redundant definition.
6513 * s/sol2.h: Remove, unused.
6514
65152008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6516
6517 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
6518
65192008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
6520
6521 * Makefile.in (ns_appdir): Fix typo in find command.
6522
65232008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
6524
6525 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
6526
6527 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
6528 added not supported anymore.
6529
6530 * s/usg5-4-2.h (LIBS_SYSTEM):
6531 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
6532
6533 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
6534 * s/lynxos.h (GETPGRP_NO_ARG):
6535 * s/hpux10-20.h (NO_SIOCTL_H):
6536 * s/gnu.h (GETPGRP_NO_ARG):
6537 * s/gnu-linux.h (NO_SIOCTL_H):
6538 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
6539 * s/cygwin.h (GETPGRP_NO_ARG):
6540 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
6541 (C_DEBUG_SWITCH): Remove duplicate definition.
6542
6543 * m/ibms390.h: Remove boilerplate comments.
6544
6545 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
6546
6547 * process.c (HAVE_SERIAL): Consolidate ifdefs.
6548 (wait_reading_process_output): Remove code for SunOS, platform not
6549 supported anymore. Use SOLARIS2 instead of sun.
6550
65512008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
6552
6553 * font.c (font_open_by_name): Under NS, default lface height to zero.
6554 (font_open_for_lface): Under NS, set size based on frame fontsize.
6555 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
6556 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
6557
65582008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
6559
6560 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
6561 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
6562 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
6563 YES/NO.
6564 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
6565 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
6566 * Makefile.in (clean): Clear out build destination dir.
6567
65682008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
6569
6570 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
6571 xterm, xselect.
6572 * lisp.h: Remove declaration of hash_remove.
6573 * nsgui.h: Remove redefinitions of hash_remove.
6574 * fns.c (hash_remove): Rename to hash_remove_from_table.
6575
65762008-07-19 Seiji Zenitani <zenitani@mac.com>
6577
6578 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
6579 strdup() the family UTF8String before modifying it.
6580
65812008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
6582
6583 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
6584 NS_FACE_BACKGROUND with 0 instead of nil.
6585 * nsfont.m (nsfont_draw): Same.
6586
65872008-07-19 Chong Yidong <cyd@stupidchicken.com>
6588
6589 * nsfns.m (ns_set_background_color): Fix crash.
6590
65912008-07-18 Chong Yidong <cyd@stupidchicken.com>
6592
6593 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
6594
65952008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
6596
6597 * puresize.h (BASE_PURESIZE): Increase to 1240000.
6598
65992008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6600
6601 * gtkutil.c: Include <config.h> instead of "config.h".
6602
6603 * lisp.h (Foverlay_buffer): Add EXFUN.
6604
6605 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
6606 child process to complete child_setup. Undo 2005-09-21 change.
6607
6608 * s/darwin.h: Mention setsid after vfork.
6609
66102008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6611
6612 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
6613 Depend on macgui.h.
6614
6615 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
6616 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
6617
6618 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
6619 and f19.
6620 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
6621
6622 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
6623 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
6624 Remove enumerators.
6625
6626 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
6627 Check if FACE_FROM_ID returns NULL.
6628
66292008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
6630
6631 * w32inevt.c (change_frame_size): Remove extern declaration.
6632 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
6633 change_frame_size.
6634
66352008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
6636
6637 * getloadavg.c: Revert last change (2008-07-15).
6638
66392008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
6640
6641 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
6642 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc) set
6643 from configure.
6644
66452008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
6646
6647 * s/sol2.h:
6648 * s/sol2-4.h: Reorganize conditionals.
6649
6650 * ecrt0.c: Remove code depending on m68000, not used anymore.
6651
6652 * fns.c (hash_remove): Make static.
6653 * lisp.h (hash_remove): Don't prototype.
6654
6655 * m/ibmrs6000.h:
6656 * m/ibms390x.h:
6657 * m/macppc.h: Remove boilerplate comments.
6658
6659 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
6660 Solaris, which does not need them.
6661
6662 * m/vax.h: Remove comments about unsupported systems.
6663
6664 * s/darwin.h: Reorganize ifdefs.
6665
66662008-07-17 Andreas Schwab <schwab@suse.de>
6667
6668 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
6669
66702008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
6671
6672 Use SDATA. Follow coding convention of placing operators at
6673 beginning of next line rather than end of previous line, and placing
6674 spaces around infix operators.
6675
6676 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
6677 in case it was defined already.
6678 USE @GNUSTEP_MAKEFILES@ rather than envvars.
6679 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
6680 ns_default.
6681 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
6682 Lisp_Objects.
6683 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
6684 (ns_defined_color, ns_color_to_lisp): Declare.
6685 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
6686 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
6687 it's accepted even with USE_LISP_UNION_TYPE.
6688 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
6689 (update_frame_tool_bar): Remove apparently obsolete tests for
6690 non-integerness of f->tool_bar_lines.
6691 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
6692 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
6693 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
6694 (nsfont_open): Don't confuse NULL for Qnil.
6695 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
6696 * menu.h (find_and_call_menu_selection):
6697 * menu.c (find_and_call_menu_selection): Use just int for vector size.
6698 (find_and_return_menu_selection): Always return something.
6699 * frame.h: Include dispextern.h for Display_Info.
6700 (display_x_get_resource): Declare.
6701
67022008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
6703
6704 * syntax.c: Remove stdio.h include accidentally introduced in
6705 Emacs.app commit.
6706 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
6707 NS_IMPL_COCOA.
6708 * keyboard.c (handle_async_input, input_available_signal): Remove
6709 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
6710
67112008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
6712
6713 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
6714 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
6715 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
6716 Use SDATA.
6717
6718 * keymap.c: Remove all NS-specific code.
6719 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
6720 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
6721 where_is_preferred_modifier, return a different value depending on how
6722 preferred is the binding.
6723 (where_is_internal): Adjust accordingly.
6724 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
6725 Adjust to new preferred_sequence_p.
6726 (syms_of_keymap): Declare `where-is-preferred-modifier'.
6727 * keyboard.c (parse_solitary_modifier): Not static any more.
6728 * keyboard.h (parse_solitary_modifier): Declare.
6729
67302008-07-16 Andreas Schwab <schwab@suse.de>
6731
6732 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
6733 of easymenu.
6734
67352008-07-16 Chong Yidong <cyd@stupidchicken.com>
6736
6737 * xdisp.c (move_it_in_display_line): Account for word wrap, so
6738 that we don't move off the line.
6739
67402008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
6741
6742 * keyboard.c (Qsuper): Remove.
6743 (parse_menu_item): Don't call where_is_internal specially for NS.
6744
67452008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
6746
6747 * s/gnu-linux.h: Remove boilerplate comments.
6748
6749 * m/alpha.h (__ELF__): Consolidate conditions.
6750
6751 * m/m68k.h (linux): Use GNU_LINUX instead.
6752 Remove boilerplate comments.
6753
6754 * m/intel386.h: Undo refactoring from previous change.
6755 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
6756 too, remove dead code.
6757 (linux): Use GNU_LINUX instead.
6758
67592008-07-16 Jason Rumney <jasonr@gnu.org>
6760
6761 * w32gui.h: Repeat 26 June changes lost by last change.
6762
67632008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
6764
6765 * systty.h: Remove code for Aix on 386, unsupported platform.
6766
6767 * s/ms-w32.h: Remove boilerplate comments.
6768 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
6769
6770 * s/gnu-linux.h (TERM): Remove support.
6771 (HAVE_SYSVIPC): Remove, unused.
6772 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
6773 for this system.
6774
6775 * process.c: Remove support for IRIS, unused.
6776 Remove support for TERM, not relevant anymore.
6777
6778 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
6779 used with the definition.
6780
6781 * s/aix4-2.h (static): Do not undef.
6782
6783 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
6784 only used on Aix.
6785 (HAVE_SYSVIPC): Remove, unused.
6786
6787 * m/hp800.h (CANNOT_DUMP): Do not undef.
6788
6789 * m/alpha.h: Fix comment.
6790
6791 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
6792 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
6793 used by this configuration.
6794 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
6795 * unexec.c: Remove code depending on HPUX and
6796 USG_SHARED_LIBRARIES, not used with this file. Remove code
6797 depending on IRIS, unused. Remove if 0-ed code.
6798
6799 * s/template.h: Remove comments about static.
6800
6801 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
6802 Remove if 0-ed code.
6803 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
6804 were the same as the default.
6805 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
6806 Remove boilerplate comments.
6807 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
6808 (HAVE_SYSVIPC): Remove, unused.
6809 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
6810
6811 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
6812 Remove boilerplate comments.
6813 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
6814 Remove boilerplate comments.
6815 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
6816 Remove boilerplate comments.
6817 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
6818
6819 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
6820 USG systems which do not use DATA_SEG_BITS.
6821 Refactor code. Remove boilerplate comments.
6822
6823 * m/ibms390.h:
6824 * m/m68k.h:
6825 * s/bsd-common.h:
6826 * s/cygwin.h:
6827 * s/darwin.h:
6828 * s/freebsd.h:
6829 * s/gnu.h:
6830 * s/msdos.h: Remove boilerplate comments.
6831
6832 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 6833 do not use this file.
aac0c6e3
MR
6834 (IRIS_4D): Remove, unused.
6835
6836 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 6837 do not use this file.
aac0c6e3
MR
6838 (SIGN_EXTEND_CHAR):
6839 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
6840 * unexmips.c: Remove file, unused.
6841
6842 * editfns.c (Fuser_full_name): Replace the only use of
6843 USER_FULL_NAME with its value.
6844 * config.in: Regenerate.
6845
68462008-07-16 David Reitter <david.reitter@gmail.com>
6847
6848 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
6849 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
6850
68512008-07-16 Glenn Morris <rgm@gnu.org>
6852
6853 * emacs.c (system-type): Doc fix.
6854
68552008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
6856
6857 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
6858 If the cache doesn't work, let's fix it, rather than work around it.
6859
68602008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
6861
6862 * Makefile.in: Correct additions for nsfont.o in last commit.
6863 * nsfont.m: New file (forgot last commit).
6864
68652008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
6866
6867 * callproc.c (set_initial_environment): Initialize
6868 Vprocess_environment under CANNOT_DUMP (fixes crash when
6869 batch-compiling for bootstrap).
6870
68712008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
6872 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6873
6874 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
6875 fix crash due to different init order.
6876
68772008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
6878
6879 Changes and additions for NeXTstep windowing system (Cocoa and
6880 GNUstep) support.
6881
6882 * Makefile.in:
6883 * config.in: Support defines and build commands for NS port.
6884 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
6885 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
6886 * dispextern.h: Include nsgui.h and add needed typedefs under NS
6887 windowing.
6888 (struct face): Add synth_ital field.
6889 * dispnew.c: Include nsterm.h when compiling under NS windowing.
6890 (init_display): Initialize Vinitial_window_system to "ns" when so
6891 compiled.
6892 * emacs.c: Include GSConfig.h when compiling under GNUstep.
6893 (display_arg): Use under NS.
6894 (main): Under NS, allocate autorelease pool and handle command line
6895 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
6896 (standard_args): Add NS-specific args.
6897 (shut_down_emacs): Shut down NS terminal if compiled under NS.
6898 * font.c (DEFAULT_ENCODING): New variable.
6899 (font_find_for_lface): Use it.
6900 (syms_of_font): Load syms_of_nsfont under NS.
6901 * font.h: Declare nsfont_driver when compiled under NS.
6902 * fontset.c: When compiling under NS, include nsterm.h.
6903 (fontset_from_font): Autoconstruct fontset under NS.
6904 * frame.c (various): Under NS, include nsterm.h, add Qns window system
6905 symbol, document and use it.
6906 (do_switch_frame): When for_deletion under Cocoa, add
6907 Fraise_frame(Qnil).
6908 (x_set_frame_parameters): Ensure font attribute changes are picked up.
6909 (x_get_arg): Allow "yes" and "no" as boolean values.
6910 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
6911 Qright under Cocoa.
6912 (focus-follows-mouse): Default to 0 under NS.
6913 * frame.h (enum output_method): Add output_ns.
6914 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
6915 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
6916 (FRAME_WINDOW_P): NS-specific definition.
6917 * fringe.c (max_used_fringe_bitmap): Make public.
6918 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
6919 (getloadavg): Use NeXT code under descendant OS's.
6920 * image.c (includes and header section, x_create_bitmap_from_data)
6921 (x_create_bitmap_from_file, free_bitmap_record, image_background)
6922 (image_background_transparent, x_clear_image_1)
6923 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
6924 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
6925 (x_to_xcolors, x_from_xcolors, x_disable_image)
6926 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
6927 other GUIs, including XPM support using code originally written for
6928 Carbon GUI.
6929 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
6930 using NS API.
6931 (image_ascent): Use font metrics macros instead of direct struct field
6932 access.
6933 * keyboard.c (includes): Add nsterm.h when compiling under NS.
6934 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
6935 Also, handle NS as GTK for menu bar purposes.
6936 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
6937 toolkit where they differ.
6938 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
6939 use cachelist, still needed under NS.
6940 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
6941 (struct widget_value): Define it here for menu.c.
6942 * keymap.c (includes): Include modifier internals.
6943 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
6944 NS.
6945 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
6946 support for preferring sequences using certain modifiers, specified by
6947 the FIRSTONLY argument.
6948 * lisp.h (hash_remove): Rename to avoid name clash when compiling
6949 under NS GNUstep implementation.
6950 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
6951 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
6952 * menu.c: Include nsterm.h under NS.
6953 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
6954 (free_menubar_widget_tree_value, update_submenu_strings)
6955 (find_and_call_menu_selection): Treat NS as X and NT.
6956 (find_and_return_menu_selection): New function, used for popup menus.
6957 * nsgui.h:
6958 * nsterm.h:
6959 * nsfns.m:
6960 * nsimage.m:
6961 * nsmenu.m:
6962 * nsselect.m:
6963 * nsterm.m: New files.
6964 * process.c (wait_reading_process_output): Under NS, call ns_select()
6965 instead of plain select().
6966 * syntax.c (char_quoted): Under NS, avoid a crash when called near
6967 beginning of buffer.
6968 * sysselect.h (init_process): Rename when compiling under Cocoa to
6969 avoid name conflict.
6970 * termhooks.h (display_info): Add ns_display_info to union.
6971 * terminal.c (Fterminal_live_p): Add ns to terminal types.
6972 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
6973 COCOA environment.
6974 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
6975 unexec() signature. (Note, this will dump, but the resulting file
6976 crashes; unexosx is used instead; keeping around for reference and
6977 possible aid in getting dump working under GNUstep.)
6978 * w32gui.h (button_type, widget_value): Remove definitions (now in
6979 keyboard.h).
6980 * window.c: Include nsterm.h when compiling under NS.
6981 * xdisp.c (includes): Include nsterm.h when compiling under NS.
6982 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
6983 other GUI windowing systems.
6984 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
6985 GTK.
6986 (x_consider_frame_title): Under NS, set icon type and frame
6987 modified-state indicator; use ns_set_name_as_filename() when using
6988 formatted title.
6989 (update_window_cursor): Make public when compiling under NS.
6990 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
6991 (hourglass_atimer, Vhourglass_delay
6992 * xfaces.c (header section, init_frame_faces, clear_font_table)
6993 (defined_color, unload_color, x_face_list_fonts)
6994 (prepare_face_for_display): Add NS support parallel to other GUIs.
6995 Emulate GCs like other non-X GUIs.
6996 (split_font_name): Don't lowercase font name under NS.
6997 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
6998 under NS.
6999 * s/darwin.h: Add support for compilation under NS.
7000
70012008-07-15 Jason Rumney <jasonr@gnu.org>
7002
7003 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
7004 (w32_show_hourglass): Rename from show_hourglass.
7005 (w32_hide_hourglass): Rename from hide_hourglass.
7006 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
7007 (Vhourglass_delay): Declare extern.
7008 (hourglass_started): Remove.
7009
7010 * xdisp.c (Vhourglass_delay): Remove static.
7011 (hourglass_started, start_hourglass, cancel_hourglass):
7012 Don't include these versions on WINDOWSNT.
7013
70142008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7015
7016 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
7017 variables (formerly in xfns.c).
7018 (show_hourglass, hide_hourglass): New prototypes (same).
7019 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
7020 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
7021 in xfns.c).
7022 (syms_of_xdisp): Declare/initialize display-hourglass,
7023 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
7024 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
7025 formerly in xfns.c.
7026 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
7027 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
7028 (start_hourglass, cancel_hourglass): Remove.
7029 (show_hourglass, hide_hourglass): Remove prototypes and static
7030 modifiers.
7031 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
7032 hourglass_atimer, hourglass_shown_p declaration/initialization.
7033 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
7034 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
7035 (start_hourglass, cancel_hourglass): Remove.
7036 (show_hourglass, hide_hourglass): Remove prototypes and static
7037 modifiers.
7038 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
7039 hourglass_atimer, hourglass_shown_p declaration/initialization.
7040 * w32fns.c (display_hourglass_p, Vhourglass_delay)
7041 (DEFAULT_HOURGLASS_DELAY): Remove.
7042 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
7043 hourglass_shown_p declaration/initialization.
7044
70452008-07-14 Jason Rumney <jasonr@gnu.org>
7046
7047 * w32fns.c (w32_get_arg): Remove wrapper function.
7048 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
7049 directly.
7050 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
7051
70522008-07-14 Kenichi Handa <handa@m17n.org>
7053
7054 * xfont.c (xfont_open): Add workaround for X's bug.
7055
70562008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
7057
7058 * fontset.c: Include <stdio.h> unconditionally.
7059
70602008-07-13 Michael Albinus <michael.albinus@gmx.de>
7061
7062 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
7063 for filtering.
7064
70652008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
7066
7067 * s/vms.h: Use __GNUC__ instead of _GNUC_.
7068
7069 * m/macppc.h:
7070 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
7071
7072 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
7073 (SPECIAL_EMACS_INT):
7074 * m/ia64.h (SPECIAL_EMACS_INT):
7075 * m/amdx86-64.h (SPECIAL_EMACS_INT):
7076 * s/gnu.h (NLIST_STRUCT):
7077 * s/aix4-2.h (X11R5_INHIBIT_I18N):
7078 * s/gnu-linux.h (LINUX):
7079 * s/msdos.h (HAVE_FACES):
7080 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
7081
7082 * systty.h:
7083 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
7084 anymore.
7085
70862008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7087
7088 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
7089 always defined as int.
7090
7091 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
7092 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
7093 * s/gnu-linux.h (HAVE_WAIT_HEADER):
7094 * s/freebsd.h (HAVE_WAIT_HEADER):
7095 * s/bsd-common.h (HAVE_UNION_WAIT):
7096 * s/aix4-2.h (HAVE_WAIT_HEADER):
7097 * m/mips.h (HAVE_UNION_WAIT):
7098 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
7099 (COFF, static): Do not define, they are undefined later in the file.
7100
7101 * process.c (update_status): Don't use a union.
7102 (status_convert):
7103 (sigchld_handler): Use int instead of WAITTYPE.
7104
71052008-07-12 Chong Yidong <cyd@stupidchicken.com>
7106
7107 * indent.c (Fvertical_motion): Restore hscroll before moving to
7108 goal column.
7109
71102008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
7111
7112 * lisp.h: Remove left over code.
7113
71142008-07-11 Andreas Schwab <schwab@suse.de>
7115
7116 * lisp.h: Fix logic in last change.
7117
7118 * menu.h: New file.
7119 * menu.c: Include it.
7120 * xmenu.c: Likewise.
7121 * Makefile.in: Update dependencies.
7122
71232008-07-11 Kenichi Handa <handa@m17n.org>
7124
7125 * fontset.c (fontset_from_font): Cancel the previous change.
7126
71272008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
7128
7129 * lisp.h:
7130 * w32heap.c:
7131 * emacs.c:
7132 * alloc.c: Replace all references of NO_UNION_TYPE with
7133 USE_LISP_UNION_TYPE.
7134
7135 * m/xtensa.h (NO_UNION_TYPE):
7136 * m/vax.h (NO_UNION_TYPE):
7137 * m/template.h (NO_UNION_TYPE):
7138 * m/sparc.h (NO_UNION_TYPE):
7139 * m/mips.h (NO_UNION_TYPE):
7140 * m/macppc.h (NO_UNION_TYPE):
7141 * m/m68k.h (NO_UNION_TYPE):
7142 * m/iris4d.h (NO_UNION_TYPE):
7143 * m/intel386.h (NO_UNION_TYPE):
7144 * m/ibms390x.h (NO_UNION_TYPE):
7145 * m/ibms390.h (NO_UNION_TYPE):
7146 * m/ibmrs6000.h (NO_UNION_TYPE):
7147 * m/ia64.h (NO_UNION_TYPE):
7148 * m/hp800.h (NO_UNION_TYPE):
7149 * m/arm.h (NO_UNION_TYPE):
7150 * m/amdx86-64.h (NO_UNION_TYPE):
7151 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
7152 defining it the same.
7153
71542008-07-10 Chong Yidong <cyd@stupidchicken.com>
7155
7156 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
7157
71582008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
7159
7160 * fileio.c:
7161 * sysdep.c
7162 * systty.h:
7163 * m/ibmrs6000.h:
7164 * m/iris4d.h:
7165 * s/aix4-2.h:
7166 * s/freebsd.h:
7167 * s/gnu-linux.h:
7168 * s/hpux10-20.h:
7169 * s/hpux11.h:
7170 * s/netbsd.h:
7171 * s/sol2-3.h:
7172 * s/sol2-4.h:
7173 * s/sol2.h:
7174 * s/usg5-4.h:
7175 * s/vms.h: Remove references to unused variables.
7176
71772008-07-10 Andreas Schwab <schwab@suse.de>
7178
7179 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
7180 pattern before matching the generic family.
7181
71822008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
7183
7184 * unexec.c:
7185 * s/vms.h:
7186 * s/usg5-4-2.h:
7187 * s/sol2-5.h:
7188 * s/freebsd.h:
7189 * s/darwin.h: Remove dead code.
7190
7191 * m/template.h:
7192 * m/sparc.h:
7193 * m/mips.h:
7194 * m/m68k.h:
7195 * m/iris4d.h:
7196 * m/intel386.h:
7197 * m/ibms390x.h:
7198 * m/ibms390.h:
7199 * m/ia64.h:
7200 * m/hp800.h:
7201 * m/arm.h:
7202 * m/amdx86-64.h: Remove dead code and references to unused
7203 and compiler defined symbols.
7204
7205 * unexmips.c:
7206 * unexelf.c: Remove references to desupported systems.
7207
7208 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
7209
7210 * m/powermac.h: Remove boilerplate comments.
7211 (NO_REMAP): Remove unused definition.
7212
7213 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
7214 define them.
7215
72162008-07-10 Kenichi Handa <handa@m17n.org>
7217
7218 * xfont.c (xfont_open): Log the reason of failure.
7219
72202008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
7221
7222 * fontset.c (fontset_get_font_group):
7223 * font.c (font_check_otf): Specify argument types.
7224
72252008-07-09 Kenichi Handa <handa@m17n.org>
7226
7227 * coding.c (detect_coding_utf_8): Set detect_info->found only when
7228 non-ASCII char is found.
7229
7230 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
7231 (reorder_font_vector): Change the arg preferred_family to font.
7232 Prefer the spec matching with font.
7233 (fontset_get_font_group): New function.
7234 (fontset_find_font): Change the format of an element of a realized
7235 fontset. Use fontset_get_font_group.
7236 (fontset_font): Try the current fontset, the default fontset, the
7237 fallbacks of the current fontset, and the fallbacks of the default
7238 fontset in this order.
7239 (face_for_char): Delete the shortcut to use the current font.
7240 (fontset_from_font): Don't set fonts for Latin in the fontset.
7241
7242 * font.h (font_make_object, font_match_p): Adjust prototypes.
7243
7244 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
7245
7246 * font.c (font_make_object): New arg entity and pixelsize.
7247 (font_check_otf_features, font_check_otf): New functions.
7248 (font_match_p): Check :lang, :script, and :otf properties.
7249
7250 * xfont.c (xfont_open): Adjust it for the change of
7251 font_make_object.
7252 (xfont_text_extents): Fix initial setting of metrics.
7253
7254 * ftfont.c (struct ftfont_info): New member index, delete member
7255 fc_charset_idx. Make the member order compatible with struct
7256 xftfont_info.
7257 (fc_charset_table): Change charset names to registry names.
7258 (ftfont_pattern_entity): Delete the args registry and
7259 fc_charset_idx. Change the value of :font-entity property
7260 to (FONTNAME . INDEX). Always set :registry property to
7261 `iso10646-1'.
7262 (struct ftfont_cache_data): New struct.
7263 (ftfont_lookup_cache): New arg for_face.
7264 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
7265 (ftfont_driver): Set the member otf_capability.
7266 (ftfont_get_charset): Adjust it for the change of
7267 fc_charset_table.
7268 (OTF_TAG_SYM): New macro.
7269 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
7270 for the change of fc_charset_table.
7271 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
7272 ftfont_pattern_entity. Add FC_INDEX to objset.
7273 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
7274 and ftfont_pattern_entity.
7275 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
7276 font_make_object, struct ftfont_info.
7277 (ftfont_has_char): Use ftfont_get_fc_charset.
7278 (ftfont_otf_features, ftfont_otf_capability): New functions.
7279 (ftfont_shape): Use ftfont_get_otf.
7280 (ftfont_text_extents): Fix initial setting of metrics.
7281
7282 * xftfont.c (struct xftfont_info): New member ft_size. Make the
7283 member order compatible with struct ftfont_info.
7284 (xftfont_open): Add FC_CHARSET to the pattern. Set
7285 xftfont_info->ft_size. Don't unlock the face. Check BDF
7286 properties if appropriate.
7287 (xftfont_close): Unlock the face.
7288 (xftfont_anchor_point, xftfont_shape): Deleted.
7289 (syms_of_xftfont): Don't set members anchor_point and shape of
7290 xftfont_driver.
7291
7292 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
7293 font_make_object.
7294
7295 * w32font.c (w32font_open): Adjust it for the change of
7296 font_make_object.
7297 (w32font_open_internal): Don't set properties of font_object here.
7298
72992008-07-08 Chong Yidong <cyd@stupidchicken.com>
7300
7301 * macfns.c (x_create_tip_frame):
7302 * w32fns.c (x_create_tip_frame):
7303 * xfns.c (x_create_tip_frame): Pass parameter argument to
7304 face-set-after-frame-default.
7305
7306 * xfaces.c (Finternal_merge_in_global_face): Save merged
7307 attributes for the default face back into the face vector.
7308
73092008-07-08 Andreas Schwab <schwab@suse.de>
7310
7311 * fontset.h: Declare fontset_from_font. Don't declare
7312 new_fontset_from_font and fontset_from_font_name.
7313 * xterm.c: Include "fontset.h".
7314 * Makefile.in (xterm.o): Update dependencies.
7315
73162008-07-08 Glenn Morris <rgm@gnu.org>
7317
7318 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
7319 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
7320
73212008-07-07 Chong Yidong <cyd@stupidchicken.com>
7322
7323 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
7324 (x_set_frame_parameters): Don't bind it.
7325
73262008-07-07 Juanma Barranquero <lekktu@gmail.com>
7327
7328 * w32fns.c (map_w32_filename): Declare extern.
7329
73302008-07-07 Jason Rumney <jasonr@gnu.org>
7331
7332 * w32term.c (WS_EX_LAYERED): Define if not already.
7333
73342008-07-06 Chong Yidong <cyd@stupidchicken.com>
7335
7336 * xfaces.c (set_font_frame_param): Don't try to set the font
7337 parameter if it is still unspecified in the lface.
7338
73392008-07-05 Chong Yidong <cyd@stupidchicken.com>
7340
7341 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
7342 face if it didn't already exist.
7343
7344 * xdisp.c (try_window_id): Give up if word-wrapping is on.
7345
73462008-07-05 Andreas Schwab <schwab@suse.de>
7347
7348 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
7349
73502008-07-05 Chong Yidong <cyd@stupidchicken.com>
7351
7352 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
7353 word-wrapping.
7354 (IT_DISPLAYING_WHITESPACE): New macro.
7355 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
7356 when word-wrapping. Simplify word-wrapping logic. Use correct
7357 pixel positions when saving copies of the iterator.
7358 (display_line): Use proper wrap point if the last character on a
7359 line was preceded by whitespace.
7360
73612008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
7362
7363 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
7364
73652008-07-04 Kenichi Handa <handa@m17n.org>
7366
7367 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
7368
7369 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
7370
73712008-07-02 Jason Rumney <jasonr@gnu.org>
7372
7373 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 7374 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
7375
7376 * xdisp.c (next_element_from_display_vector): Move assignment out
7377 of if statement.
7378
73792008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
7380
7381 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
7382
7383 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
7384 (syms_of_fileio): Initialize and export them.
7385 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
7386
7387 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
7388 (Fsystem_move_file_to_trash): New function.
7389 (syms_of_w32fns): Export it to lisp.
7390
73912008-07-01 Jason Rumney <jasonr@gnu.org>
7392
7393 * w32font.c (w32font_text_extents): Don't count overhang as part
7394 of width.
7395
73962008-06-30 Miles Bader <miles@gnu.org>
7397
7398 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
7399 Add `avoid_cursor_p' field.
7400
7401 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
7402 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
7403 (append_glyph, append_composite_glyph, produce_image_glyph)
7404 (append_stretch_glyph): Initialize avoid_cursor_p.
7405 (get_it_property): Rename from `get_line_height_property'.
7406 (x_produce_glyphs): Use get_it_property.
7407 (handle_line_prefix, push_display_prop): New functions.
7408 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
7409 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
7410 New variables.
7411 (syms_of_xdisp): Initialize them.
7412
74132008-06-30 Kenichi Handa <handa@m17n.org>
7414
7415 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
7416 XftDefaultSubstitute (they are called in XftFontMatch).
7417 (xftfont_open): Fix args to ftfont_font_format.
7418
7419 * ftfont.c (fc_charset_table): New member lang.
7420 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 7421 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
7422 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
7423 (ftfont_open): Fix args to ftfont_font_format.
7424 (ftfont_font_format): New arg filename.
7425
74262008-06-30 Chong Yidong <cyd@stupidchicken.com>
7427
7428 * xfaces.c (Finternal_merge_in_global_face): If default face was
7429 modified, realize it again. Update the font face attribute.
7430
74312008-06-29 Jason Rumney <jasonr@gnu.org>
7432
7433 * w32term.c (x_set_frame_alpha): Fix logic.
7434
74352008-06-29 Kenichi Handa <handa@m17n.org>
7436
7437 * fontset.c (Finternal_char_font): Return font-object instead of
7438 font-name.
7439
7440 * composite.c (get_composition_id): Fix the width calculation for TAB.
7441
74422008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
7443
7444 * indent.c (Fvertical_motion): Properly handle float column arg.
7445
74462008-06-28 Jason Rumney <jasonr@gnu.org>
7447
7448 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
7449 (pfnSetLayeredWindowAttributes): New function pointer.
7450 (w32_initialize): Initialize it when supported.
7451 (x_set_frame_alpha): New function.
7452
7453 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
7454 (w32_frame_parm_handlers): Set alpha handler.
7455
7456 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
7457
74582008-06-27 Jason Rumney <jasonr@gnu.org>
7459
7460 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
7461 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
7462 (w32_to_x_charset, x_to_w32_charset)
7463 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
7464 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
7465 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
7466 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
7467 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
7468 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
7469 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
7470 (Qw32_charset_unicode): Remove.
7471 (syms_of_w32fns): Update for above changes.
7472
7473 * w32font.c (w32_to_x_charset, x_to_w32_charset)
7474 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
7475 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
7476 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
7477 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
7478 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
7479 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
7480 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
7481 (syms_of_w32font): Update for above changes.
7482
74832008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
7484
7485 * s/usg5-4.h: Fix previous change: keep the correct branch of a
7486 removed #if.
7487 (USG_SHARED_LIBRARIES): Remove duplicate definition.
7488
74892008-06-26 Juanma Barranquero <lekktu@gmail.com>
7490 Eli Zaretskii <eliz@gnu.org>
7491
7492 * makefile.w32-in (LOCAL_FLAGS):
7493 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
7494
7495 * sysdep.c (_spawnlp, _getpid):
7496 Declare with explicit _cdecl instead of _CRTAPI1.
7497
7498 * editfns.c (Fget_internal_run_time):
7499 Check for WINDOWSNT with #ifdef, not #if.
7500
75012008-06-26 Jason Rumney <jasonr@gnu.org>
7502
7503 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
7504
7505 * w32term.c (x_draw_glyph_string_foreground)
7506 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
7507 Use FONT_HANDLE macro.
7508 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
7509
7510 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
7511 (uniscribe_encode_char): Use FONT_HANDLE macro.
7512
7513 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
7514 (w32font_text_extents): Use precast w32_font.
7515 (w32font_close): Free cached metrics.
7516 (w32font_open_internal): Allocate space for name on stack.
7517
75182008-06-26 Chong Yidong <cyd@stupidchicken.com>
7519
7520 * xdisp.c (extend_face_to_end_of_line): Fix last change.
7521
75222008-06-26 Jason Rumney <jasonr@gnu.org>
7523
7524 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
7525 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
7526
75272008-06-26 Juanma Barranquero <lekktu@gmail.com>
7528
7529 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
7530
75312008-06-26 Jason Rumney <jasonr@gnu.org>
7532
7533 * w32bdf.c, w32bdf.h: Remove obsolete files.
7534
7535 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
7536
7537 * w32gui.h: Don't include w32bdf.h.
7538 (XCharStruct, enum w32_char_font_type, W32FontStruct):
7539 Remove obsolete font support.
7540
7541 * w32font.h (struct w32font_info): Remove compat_w32_font.
7542 Add hfont member.
7543 (FONT_COMPAT): Remove obsolete macro.
7544
7545 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
7546 (w32font_encode_char, w32font_text_extents): Use new hfont member.
7547 (w32font_open_internal): Remove compat code. Set new hfont member.
7548 (Fx_select_font): Use new hfont member.
7549
7550 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
7551 (uniscribe_encode_char): Use new hfont member.
7552
7553 * w32term.c (x_draw_glyph_string_foreground)
7554 (x_draw_composite_glyph_string_foreground): Use new hfont member.
7555 (x_draw_glyph_string): Use metrics in w32font_info.
7556
75572008-06-26 Kenichi Handa <handa@m17n.org>
7558
7559 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
7560
75612008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
7562
7563 * unexnext.c:
7564 * m/ews4800.h:
7565 * m/hp9000s300.h:
7566 * m/ibm370aix.h:
7567 * m/mips-siemens.h:
7568 * m/ncr386.h:
7569 * m/next.h:
7570 * m/pmax.h:
7571 * m/powerpcle.h:
7572 * m/tandem-s2.h:
7573 * s/386bsd.h:
7574 * s/bsd386.h:
7575 * s/bsd4-1.h:
7576 * s/bsd4-2.h:
7577 * s/bsdos2-1.h:
7578 * s/bsdos2.h:
7579 * s/bsdos3.h:
7580 * s/bsdos4.h:
7581 * s/nextstep.h:
7582 * s/ultrix4-3.h:
7583 * s/usg5-0.h:
7584 * s/usg5-2-2.h:
7585 * s/usg5-2.h:
7586 * s/usg5-4-3.h:
7587 * s/ux4800.h:
7588 * s/uxpds.h:
7589 * s/uxpv.h: Remove support for obsolete systems.
7590 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 7591 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
7592 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
7593 Remove, insert contents in s/aix4-2.h.
7594 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
7595 * s/bsd4-3.h: Rename to ...
7596 * s/bsd-common.h: ... this.
7597 * data.c:
7598 * doc.c:
7599 * ecrt0.c:
7600 * emacs.c:
7601 * fileio.c:
7602 * floatfns.c:
7603 * keyboard.c:
7604 * mem-limits.h:
7605 * print.c:
7606 * process.c:
7607 * sysdep.c:
7608 * syssignal.h:
7609 * systty.h:
7610 * syswait.h:
7611 * term.c:
7612 * unexec.c:
7613 * unexelf.c:
7614 * unexhp9k800.c:
7615 * m/hp800.h:
7616 * m/ibmrs6000.h:
7617 * m/mips.h:
7618 * m/vax.h:
7619 * s/darwin.h:
7620 * s/freebsd.h:
7621 * s/gnu.h:
7622 * s/ms-w32.h:
7623 * s/msdos.h:
7624 * s/netbsd.h:
7625 * s/template.h: Remove references to obsolete variables.
7626
7627 * Makefile.in: Add dependencies for all unexec files.
7628 (admindir): Remove unused variable.
7629 (UNEXEC_SRC): Remove references.
7630
76312008-06-25 Chong Yidong <cyd@stupidchicken.com>
7632
7633 * xfns.c (x_default_font_parameter): If Xft is available, first
7634 try Monospace-12 for the default font.
7635
76362008-06-25 Jason Rumney <jasonr@gnu.org>
7637
7638 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
7639
76402008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
7641
7642 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
7643
7644 * buffer.c (syms_of_buffer): Remove default-word-wrap.
7645
76462008-06-25 Juanma Barranquero <lekktu@gmail.com>
7647
7648 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
7649 <scroll-conservatively>: Fix typo in docstring.
7650
7651 * xselect.c (Fx_send_client_event): Doc fix.
7652
76532008-06-25 Kenichi Handa <handa@m17n.org>
7654
7655 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
7656
7657 * font.c (font_parse_fcname): Remove unused variables.
7658 (font_sort_entites): Delete the arg SPEC. Caller changed.
7659 Fix for the case of ! best_only.
7660 (font_delete_unmatched): Check DPI and AVGWIDTH too.
7661
7662 * lisp.h (Fstring_to_unibyte): EXFUN it.
7663
7664 * character.h (str_to_unibyte): Extern it.
7665
7666 * character.c (str_to_unibyte): New function.
7667
7668 * fns.c (Fstring_to_unibyte): New function.
7669 (syms_of_fns): Defsubr it.
7670
76712008-06-24 Kenichi Handa <handa@m17n.org>
7672
7673 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
7674 DPI too.
7675 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
7676
76772008-06-24 Andreas Schwab <schwab@suse.de>
7678
7679 * Makefile.in (${lispsource}loaddefs.el): Rename from
7680 ../lisp/loaddefs.el.
7681 (bootstrap-clean): Do what distclean does but don't remove
7682 Makefile.
7683 (distclean): Depend on bootstrap-clean and remove Makefile.
7684
76852008-06-24 Chong Yidong <cyd@stupidchicken.com>
7686
7687 * buffer.h (struct buffer): New member word_wrap.
7688
7689 * buffer.c (syms_of_buffer): New variables default-word-wrap and
7690 word-wrap.
7691 (init_buffer_once): Initialize them.
7692
7693 * dispextern.h (struct it): Replace bool truncate_lines_p with a
7694 line_wrap enum possessing three possible values.
7695
7696 * termopts.h: Replace truncate_partial_width_windows with
7697 Vtruncate_partial_width_windows.
7698
7699 * dispnew.c (direct_output_for_insert): Avoid direct output when
7700 inserting a space with word wrap on.
7701
7702 * indent.c (compute_motion): Obey integer values of
7703 truncate-partial-width-windows.
7704
7705 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
7706 replacing truncate_partial_width_windows.
7707 (init_iterator): If Vtruncate_partial_width_windows is an integer,
7708 truncate only if the window width is below that integer.
7709 (start_display, resize_mini_window, produce_stretch_glyph)
7710 (display_string, move_it_in_display_line_to): Use line_wrap.
7711 (back_to_previous_visible_line_start, reseat_1): Reset
7712 string_from_display_prop_p.
7713 (display_line): Extend default face to end of line when wrapping.
7714
77152008-06-24 Kim F. Storm <storm@cua.dk>
7716
7717 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
7718 to wrap continued lines at word boundaries.
7719
77202008-06-24 Jason Rumney <jasonr@gnu.org>
7721
7722 * font.c (Ffont_face_attributes): Multiply pixel size before point
7723 conversion to avoid multiplying rounding error.
7724
77252008-06-23 Jason Rumney <jasonr@gnu.org>
7726
7727 * w32term.c (x_draw_glyph_string_background)
7728 (x_draw_glyph_string): Remove old bdf font code.
7729
7730 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
7731
77322008-06-22 Kenichi Handa <handa@m17n.org>
7733
7734 * font.c (font_find_for_lface): Try the adstyle specified in
7735 the property of LFACE_FONT of LFACE (if any).
7736
77372008-06-21 Seiji Zenitani <zenitani@mac.com>
7738 Ryo Yoshitake <ryo@shiftmode.net>
7739
7740 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
7741
77422008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
7743
7744 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
7745 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
7746 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
7747 (witness-emacs): Remove.
7748 (lisp, shortlisp): Move loaddefs.el earlier.
7749 (mostlyclean): Forget about witness-emacs.
7750
77512008-06-22 Glenn Morris <rgm@gnu.org>
7752
7753 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
7754 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
7755
77562008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
7757
7758 * Makefile.in (PRECOMP): Remove.
7759 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
7760 (witness-emacs): Run `compile-first'.
7761 (.el.elc): Use the new compile-onefile target.
7762
77632008-06-21 Kenichi Handa <handa@m17n.org>
7764
7765 * xftfont.c (xftfont_open): Handle QCembolden only when
7766 FC_EMBOLDEN is defined.
7767
77682008-06-21 Andreas Schwab <schwab@suse.de>
7769
7770 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
7771 (.el.elc): Likewise.
7772
77732008-06-21 Miles Bader <miles@gnu.org>
7774
7775 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
7776 build dir, not the lisp source dir.
7777
77782008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
7779
7780 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
7781 (bootstrapclean): Remove.
7782 (.el.elc): New rule.
7783 (PRECOMP): New var.
7784 (../lisp/subdirs.el): Remove.
7785 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
7786 (witness-emacs): New target.
7787 (mostlyclean): Remove witness-emacs as well.
7788 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
7789 Add witness-emacs dependency.
7790
77912008-06-20 Chong Yidong <cyd@stupidchicken.com>
7792
7793 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
7794 defined by the font.
7795
77962008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
7797
7798 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
7799 (bootstrap-clean): New target that keeps TAGS around.
7800 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
7801 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
7802
78032008-06-20 Jason Rumney <jasonr@gnu.org>
7804
7805 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
7806 Remove obsolete font code.
7807
7808 * w32font.c (font_matches_spec): Use csb bitfield from font signature
7809 to determine language support.
7810
78112008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
7812
7813 * sysdep.c (cfsetspeed): New fun extracted from the code.
7814 (cfmakeraw): Move before first use.
7815
78162008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
7817
7818 * sysdep.c (cfmakeraw): Provide fallback implementation.
7819 (serial_configure): Provide fallback implementation of cfsetspeed.
7820
78212008-06-20 Kenichi Handa <handa@m17n.org>
7822
7823 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
7824 the pattern.
7825
7826 * fontset.c (fontset_from_font): Copy font_spec before changing
7827 the elements.
7828
7829 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
7830
78312008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
7832
7833 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
7834 for explicit `font' parameters.
7835
7836 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
7837
78382008-06-19 Kenichi Handa <handa@m17n.org>
7839
7840 * frame.c: Include <ctype.h>.
7841 (x_set_font_backend): Allow spacing characters in the X resource
7842 for FontBackend.
7843
78442008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
7845
7846 * w32fns.c, xfns.c (Qfont_param): New var.
7847 (syms_of_w32fns): Initialize it.
7848 (x_default_font_parameter): Record explicit `font' into
7849 `font-parameter'.
7850
78512008-06-18 Kenichi Handa <handa@m17n.org>
7852
7853 * font.c (font_parse_xlfd): Fix previous change.
7854 (font_parse_fcname): Don't use :fc-unknown-spec.
7855 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
7856 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
7857 (font_add_log): Prepend the driver name to the resulting fonts.
7858
7859 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
7860 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
7861 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
7862
7863 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
7864 (QCembolden): New variables.
7865 (syms_of_xftfont): DEFSYM them.
7866 (xftfont_open): Call XftFontMatch. Don't trust the result of
7867 XftTextExtents8 if the pixel_size is less than 5.
7868
78692008-06-18 Andreas Schwab <schwab@suse.de>
7870
7871 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
7872 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
7873
78742008-06-18 Jason Rumney <jasonr@gnu.org>
7875
7876 * w32font.c (w32font_list, w32font_match): Add logging.
7877
7878 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
7879
78802008-06-17 Chong Yidong <cyd@stupidchicken.com>
7881
7882 * font.c (font_parse_fcname): Store divider characters for
7883 unknown-spec list. For known key symbols, intern using correct
7884 symbol name.
7885
78862008-06-17 Kenichi Handa <handa@m17n.org>
7887
7888 * xfaces.c (realize_default_face): If the frame is not on window
7889 system, set the fontset of face to nil.
7890
78912008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
7892
7893 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
7894
78952008-06-16 Juanma Barranquero <lekktu@gmail.com>
7896
7897 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
7898 (build_font_name_from_vector): Delete externs.
7899
7900 * xfaces.c (struct font_name): Don't declare.
7901
79022008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
7903
7904 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
7905
79062008-06-16 Chong Yidong <cyd@stupidchicken.com>
7907
7908 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
7909
79102008-06-16 Juanma Barranquero <lekktu@gmail.com>
7911
7912 * font.c (Ffont_spec): Fix usage in docstring.
7913 (Ffont_face_attributes): Doc fix.
7914
79152008-06-16 Andreas Schwab <schwab@suse.de>
7916
7917 * font.c (Ffont_face_attributes): Fix definition.
7918
79192008-06-16 Jason Rumney <jasonr@gnu.org>
7920
7921 * font.h (font_style_symbolic_from_value): Remove.
7922
7923 * font.c (font_style_symbolic_from_value): Remove.
7924 (font_style_symbolic): Revert to pre 2008-06-13 version.
7925
7926 * w32font.c (w32_to_fc_weight): New function.
7927 (w32font_full_name, logfont_to_fcname): Use it.
7928
79292008-06-16 Kenichi Handa <handa@m17n.org>
7930
7931 * font.c (font_check_object): Delete it.
7932 (font_clear_cache): Check if a font-object is alive.
7933 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
7934 font-object to nil.
7935 (font_close_object): Don't check FONT_CLOSE_OBJECT.
7936 (font_at): Don't call font_check_object.
7937 (Ffont_get): Return a symbol for :weight, :slant, and :width.
7938
79392008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
7940
7941 * puresize.h (BASE_PURESIZE): Increase to 1230000.
7942
79432008-06-16 Chong Yidong <cyd@stupidchicken.com>
7944
7945 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
7946
79472008-06-15 Chong Yidong <cyd@stupidchicken.com>
7948
7949 * font.c (font_parse_fcname): Only one decimal point.
7950 (font_unparse_fcname): Handle data in family and foundry indices
7951 as symbols, not strings.
7952 (font_unparse_gtkname, Ffont_face_attributes): New functions.
7953
7954 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
7955
7956 * font.h (font_unparse_gtkname): Add prototype.
7957
79582008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
7959
7960 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
7961
79622008-06-15 Andreas Schwab <schwab@suse.de>
7963
7964 * font.c (font_update_drivers): Fix crash when no drivers match.
7965
79662008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
7967
7968 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
7969 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
7970
79712008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
7972
7973 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
7974
79752008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
7976
7977 * process.c (Fserial_process_configure, Fprocess_send_eof):
7978 Use EQ to compare Lisp_Objects.
7979
79802008-06-13 Jason Rumney <jasonr@gnu.org>
7981
7982 * w32fns.c (Fw32_select_font): Remove old font API function.
7983
7984 * w32font.c (logfont_to_fcname): New function.
7985 (Fx_select_font): New font dialog function compatible with
7986 GTK/fontconfig version.
7987
7988 * font.c (font_style_symbolic_from_value): New function.
7989 (font_style_symbolic): Use it.
7990
7991 * font.h (font_style_symbolic_from_value): Declare new function.
7992
79932008-06-13 Juanma Barranquero <lekktu@gmail.com>
7994
7995 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
7996 <font-width-table>: Fix typos in docstrings.
7997
79982008-06-13 Daniel Engeler <engeler@gmail.com>
7999
8000 These changes add serial port access.
8001 * process.c: Add HAVE_SERIAL.
8002 (Fdelete_process, Fprocess_status, Fset_process_buffer)
8003 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
8004 (list_processes_1, select_wrapper, Fstop_process)
8005 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
8006 (status_notify): Modify to handle serial processes.
8007 [HAVE_SERIAL] (Fserial_process_configure)
8008 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
8009 New functions.
8010 * process.h (struct Lisp_Process): Add `type'.
8011 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
8012 New functions.
8013 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
8014 serial ports.
b71ac3dd 8015 (serial_open, serial_configure): New functions.
aac0c6e3
MR
8016 * w32.h: Add FILE_SERIAL.
8017 (struct _child_process): Add ovl_read, ovl_write.
8018
80192008-06-13 Kenichi Handa <handa@m17n.org>
8020
8021 * dispextern.h (enum lface_attribute_index): New member
8022 LFACE_FOUNDRY_INDEX.
8023
8024 * font.c (font_score): Delete arg alternate_families. Check only
8025 weight, slant, width, and size. Ignore the difference of alias
8026 style symbols.
8027 (font_sort_entites): Adjust for the above change. Reflect the
8028 order of font-driver to scores.
8029 (font_list_entities): Don't check alternate_familes here.
8030 (font_clear_prop): Handle foundry.
8031 (font_update_lface): Don't parse "foundry-family" form here.
8032 Handle FONT_FOUNDRY_INDEX.
8033 (font_find_for_lface): Likewise. Handle alternate families here.
8034 If registry is nil, try iso8859-1 and ascii-0.
8035 (font_open_for_lface): Pay attention to size in ENTITY.
8036 (font_open_by_name): Simplify by calling font_load_for_lface.
8037 (free_font_driver_list): Delete it.
8038 (font_update_drivers): Preserve the order of backends.
8039 (syms_of_font): Setting of sort_shift_bits adjusted for the change
8040 of font_score and font_sort_entites.
8041 (font_update_sort_order): Likewise.
8042
8043 * xfaces.c (LFACE_FOUNDRY): New macro.
8044 (check_lface_attrs): Check foundry.
8045 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
8046 (merge_face_vectors): Check foundry.
8047 (merge_face_ref): Likewise.
8048 (Finternal_set_lisp_face_attribute): Likewise.
8049 (x_update_menu_appearance): Likewise.
8050 (Finternal_get_lisp_face_attribute): Likewise.
8051 (lface_hash): Likewise.
8052 (lface_same_font_attributes_p): Likewise.
8053 (x_supports_face_attributes_p): Likewise.
8054 (tty_supports_face_attributes_p): Likewise.
8055 (Finternal_set_alternative_font_family_alist): Intern strings.
8056 (Finternal_set_alternative_font_registry_alist): Downcase strings.
8057 (realize_default_face): Set LFACE_FOUNDRY (lface).
8058
8059 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
8060 font-driver at first.
8061
8062 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
8063
80642008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8065
8066 * lread.c (Fload): Use xfree, not free on saved_doc_string.
8067
80682008-06-12 Jim Meyering <meyering@redhat.com>
8069
8070 Make unexec_free handle NULL the same way free does.
8071 * unexmacosx.c (unexec_free): Ignore a NULL argument.
8072
80732008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
8074
8075 * character.h (CHAR_TO_BYTE_SAFE): New macro.
8076 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
8077 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
8078 (WEAK_ALIAS): Simplify.
8079 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
8080 when searching a unibyte buffer.
8081
80822008-06-12 Chong Yidong <cyd@stupidchicken.com>
8083
8084 * xfns.c (Fx_select_font): Rename from x-font-dialog.
8085
80862008-06-12 Juanma Barranquero <lekktu@gmail.com>
8087
8088 * w32font.c: Include ctype.h.
8089
80902008-06-11 Jason Rumney <jasonr@gnu.org>
8091
8092 * w32font.c (w32font_encode_char): Detect missing glyphs that are
8093 misreported as space.
8094 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
8095 as aliases for registry iso10646-1.
8096
80972008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
8098
8099 * buffer.c (clone_per_buffer_values): Skip `name'.
8100
81012008-06-11 Chong Yidong <cyd@stupidchicken.com>
8102
8103 * font.c (font_parse_fcname): Fix last change; accept decimal
8104 points in font size.
8105
81062008-06-10 Jason Rumney <jasonr@gnu.org>
8107
8108 * w32uniscribe.c (add_opentype_font_name_to_list):
8109 Skip non unicode fonts.
8110
81112008-06-10 Chong Yidong <cyd@stupidchicken.com>
8112
8113 * xfns.c (Fx_font_dialog): New function.
8114
8115 * gtkutil.c (xg_dialog_response_cb): Rename from
8116 xg_file_response_callback.
8117 (pop_down_dialog): Rename from pop_down_file_dialog.
8118 (xg_get_file_name): Callers changed.
8119 (xg_get_font_name): New function.
8120
8121 * gtkutil.h (xg_get_font_name): Insert prototype.
8122
81232008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
8124
8125 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
8126 x_underline_minimum_display_offset.
8127 (syms_of_xdisp): Declare it here rather than in xterm.c.
8128 * dispextern.h (underline_minimum_offset): Declare it.
8129 * w32term.c (x_draw_glyph_string): Use it.
8130 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
8131 (syms_of_xterm): Don't declare it any more.
8132 (x_draw_glyph_string): Adjust to the new name.
8133
81342008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
8135
8136 * xterm.c (x_underline_minimum_display_offset): New var.
8137 (x_draw_glyph_string): Use it.
8138 (syms_of_xterm): Declare it.
8139
81402008-06-10 Chong Yidong <cyd@stupidchicken.com>
8141
8142 * font.c (font_parse_fcname): Accept GTK-style font names too.
8143
81442008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
8145
8146 * dired.c (file_name_completion): Don't return t if the match is exact
8147 but with different capitalization.
8148 * minibuf.c (Ftry_completion): Simplify.
8149
8150 * window.c (Vwindow_point_insertion_type): New var.
8151 (set_window_buffer): Use it.
8152 (syms_of_window): Init and export it to Lisp.
8153
81542008-06-10 Kenichi Handa <handa@m17n.org>
8155
8156 * font.h (font_intern_prop): Prototype adjusted.
8157
8158 * font.c (font_intern_prop): New arg force_symbol.
8159 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
8160 Adjust for the change of font_intern_prop.
8161
8162 * ftfont.c (ftfont_pattern_entity):
8163 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
8164 (w32_registry):
8165 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
8166 the change of font_intern_prop.
8167
81682008-06-09 Juanma Barranquero <lekktu@gmail.com>
8169
8170 * w32menu.c (digest_single_submenu): Declare extern.
8171
81722008-06-09 Jason Rumney <jasonr@gnu.org>
8173
8174 * w32term.c (x_make_frame_visible): Use alternate restore flags.
8175
8176 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
8177 (parse_single_submenu): Remove.
8178 (digest_single_submenu): Remove.
8179 (syms_of_w32menu): Don't initialise variables that have moved
8180 to menu.c.
8181 (set_frame_menubar): Sync with version in xmenu.c.
8182 (w32_menu_show): Sync with xmenu_show in xmenu.c.
8183
8184 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
8185 Make static again.
8186
81872008-06-09 Jason Rumney <jasonr@gnu.org>
8188
8189 Changes to w32 files related to the move of common menu code
8190 to menu.c on 2008-06-08 by Chong Yidong.
8191
8192 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
8193 defs to w32gui.h.
8194 (single_keymap_panes, push_menu_item, push_menu_pane):
8195 Make globally visible.
8196
8197 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
8198 (local_free, malloc_widget_value, free_widget_value)
8199 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
8200 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
8201 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
8202 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
8203 (menu_items, menu_items_allocated, menu_items_used)
8204 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
8205 (init_menu_items, finish_menu_items, discard_menu_items)
8206 (grow_menu_items, push_submenu_start, push_submenu_end)
8207 (push_left_right_boundary, push_menu_pane, push_menu_item)
8208 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
8209 (free_menubar_widget_tree_value, parse_single_submenu)
8210 (update_submenu_strings): Remove functions.
8211 (xmalloc_widget_value): Remove and declare extern.
8212
8213 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
8214 (OBJ1): Build it.
8215
8216 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
8217 (local_heap, local_alloc, local_free, malloc_widget_value)
8218 (free_widget_value): Define here.
8219
82202008-06-09 Kenichi Handa <handa@m17n.org>
8221
8222 * font.h (Qascii_0): Extern it.
8223
8224 * font.c (Qascii_0): New variable.
8225 (syms_of_font): DEFSYM it.
8226 (font_open_by_name): If the registry "iso8859-1" fails, try also
8227 "ascii-0".
8228
8229 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
8230
82312008-06-08 Kenichi Handa <handa@m17n.org>
8232
8233 * .gdbinit (xfont): New command.
8234
82352008-06-08 Andreas Schwab <schwab@suse.de>
8236
8237 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
8238 * Makefile.in (menu.o): Update dependencies.
8239
8240 * Makefile.in (obj): Always add menu.o.
8241 * emacs.c (main): Always call syms_of_menu.
8242 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
8243
82442008-06-08 Chong Yidong <cyd@stupidchicken.com>
8245
8246 * Makefile.in: Compile menu.c.
8247
8248 * lisp.h: Declare syms_of_menu.
8249
8250 * emacs.c (main): Call syms_of_menu.
8251
8252 * keyboard.h: Relocate platform-independent menu definitions from
8253 xmenu.c.
8254
8255 * menu.c: New file. Relocate platform-independent menu
8256 definitions from xmenu.c. Suggested by Adrian Robert.
8257
8258 * xmenu.c: Remove platform-independent menu definitions.
8259 (menu_items menu_items_inuse, menu_items_allocated)
8260 (menu_items_used, menu_items_n_panes)
8261 (menu_items_submenu_depth): Move to keyboard.h.
8262 (init_menu_items, finish_menu_items, unuse_menu_items)
8263 (discard_menu_items, restore_menu_items, save_menu_items)
8264 (grow_menu_items, push_submenu_start, push_submenu_end)
8265 (push_left_right_boundary, push_menu_pane, push_menu_item)
8266 (keymap_panes, single_keymap_panes, single_menu_item)
8267 (list_of_panes, list_of_items, find_and_call_menu_selection)
8268 (xmalloc_widget_value, free_menubar_widget_value_tree)
8269 (parse_single_submenu, digest_single_submenu)
8270 (update_submenu_strings): Move to menu.c.
8271
82722008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
8273
8274 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
8275
82762008-06-06 Miles Bader <miles@gnu.org>
8277
8278 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
8279 face, not frame default.
8280
82812008-06-05 Martin Rudalics <rudalics@gmx.at>
8282
8283 * window.c (pop_up_windows, pop_up_frames)
8284 (display_buffer_reuse_frames, Vpop_up_frame_function)
8285 (Vdisplay_buffer_function, Veven_window_heights)
8286 (Vspecial_display_buffer_names, Vspecial_display_regexps)
8287 (Vspecial_display_function, Vsame_window_buffer_names)
8288 (Vsame_window_regexps, split_height_threshold)
8289 (Vsplit_window_preferred_function): Move those vars to window.el.
8290 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
8291 (Fdisplay_buffer): Move those functions to window.el.
8292 (syms_of_window): Remove corresponding declarations.
8293 (display_buffer): New function.
8294 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
8295 * dispnew.c (Flast_nonminibuf_frame): New function.
8296 * buffer.c (Fpop_to_buffer): Move to window.el.
8297
82982008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8299
8300 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
8301
83022008-06-05 Kenichi Handa <handa@m17n.org>
8303
8304 * coding.c (detect_coding): Fix previous change.
8305 (detect_coding_system): Likewise.
8306
83072008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8308
8309 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
8310
8311 * keymap.c (Vminibuffer_local_filename_must_match_map):
8312 Rename from Vminibuffer_local_must_match_filename_map.
8313 (syms_of_keymap):
8314 * minibuf.c (Fcompleting_read): Adjust accordingly.
8315 * commands.h: Rename declaration as well.
8316
83172008-06-05 Kenichi Handa <handa@m17n.org>
8318
8319 * font.c (Ffont_spec): Don't use font_parse_family_registry for
8320 family name.
8321 (Ffont_put): Likewise.
8322
8323 * fontset.c (fontset_find_font): Call font_open_for_lface with the
8324 current font-spec.
8325
8326 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
8327 is unspecified.
8328
8329 * xfaces.c (realize_x_face): If the font-related face attributes
8330 are the same as those of default face, realize a new fontset from
8331 default->fontset.
8332 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
8333
83342008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
8335
8336 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
8337 (move_it_in_display_line): New wrapper.
8338
8339 * window.c (window_scroll_pixel_based_preserve_x)
8340 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
8341 (window_scroll_pixel_based, window_scroll_line_based):
8342 Use them to preserve column positions.
8343 (syms_of_window): Initialize them.
8344
8345 * indent.c (Fvertical_motion): Extend first arg to allow passing an
8346 (HPOS . VPOS) pair.
8347
8348 * dispextern.h (move_it_in_display_line): Declare.
8349
83502008-06-05 Juanma Barranquero <lekktu@gmail.com>
8351
8352 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
8353 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
8354 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
8355
83562008-06-04 Juanma Barranquero <lekktu@gmail.com>
8357
8358 * window.c (Fset_window_parameter): Doc fix.
8359 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
8360
83612008-06-04 Joakim Verona <joakim@verona.se>
8362
8363 * window.h (struct window): Add new member window_parameters.
8364
8365 * window.c (Fwindow_parameters, Fwindow_parameter)
8366 (Fset_window_parameter): New defuns.
8367 (syms_of_window): Defsubr the new defuns.
8368 (make_window): Initialize window_parameters to nil.
8369
83702008-06-04 John Paul Wallington <jpw@pobox.com>
8371
8372 * eval.c (Fdefmacro): Doc fix.
8373
83742008-06-04 Kenichi Handa <handa@m17n.org>
8375
8376 * coding.c (detect_coding): Fix handling of coding->head_ascii.
8377 Be sure to call setup_coding_system when we find a proper coding system.
8378 (detect_coding_system): Fix handling of coding->head_ascii.
8379
83802008-06-03 Andreas Schwab <schwab@suse.de>
8381
8382 * font.c (font_prop_validate_spacing): Fix last change.
8383
83842008-06-03 Kenichi Handa <handa@m17n.org>
8385
8386 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
8387 (font_parse_fcname): Fix handling of unknown key.
8388
8389 * xfont.c (xfont_list): Try an alias.
8390
8391 * charset.c (char_charset): Return NULL if the arg charset_list is
8392 specified and C doesn't belong to any of them.
8393
83942008-06-02 Chip Coldwell <coldwell@redhat.com>
8395
8396 * font.c (font_pixel_size): Don't take cdr of an integer.
8397
83982008-06-02 Jim Meyering <meyering@redhat.com>
8399
8400 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
8401 * alloc.c (xfree): Return right away for a NULL arg.
8402 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
8403 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
8404 * mac.c (create_apple_event_from_event_ref): Likewise.
8405 (create_apple_event_from_drag_ref, cfstring_create_normalized):
8406 Likewise.
8407 * doprnt.c (doprnt1): Likewise.
8408 * frame.c (frame): Likewise.
8409 * keyboard.c (wipe_kboard): Likewise.
8410 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
8411 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
8412 * term.c (tty_default_color_capabilities, maybe_fatal)
8413 (delete_tty): Likewise.
8414 * w16select.c (string): Likewise.
8415 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
8416 * w32bdf.c (w32_free_bdf_font): Likewise.
8417 * w32fns.c (w32_unload_font): Likewise.
8418 * w32font.c (w32font_close): Likewise.
8419 * window.c (size_window): Likewise.
8420 * xselect.c (receive_incremental_selection): Likewise.
8421 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
8422 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
8423 * w32.c (stat): Likewise.
8424
8425 Remove useless if-before-free tests.
8426 * editfns.c (Fset_time_zone_rule): Likewise.
8427 * lread.c (nosuffix): Likewise.
8428 * ralloc.c (get_bloc): Likewise.
8429 * regex.c (reg_free): Likewise.
8430 * xftfont.c (xftfont_open, xftfont_close): Likewise.
8431 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
8432 * xsmfns.c (smc_save_yourself_CB): Likewise.
8433
84342008-06-02 Kenichi Handa <handa@m17n.org>
8435
8436 * font.c (font_find_for_lface): Handle float font size.
8437 (font_open_for_lface): Likewise.
8438
8439 * xfaces.c (x_supports_face_attributes_p): Check face->font before
8440 comparing the properties.
8441
84422008-06-01 Jason Rumney <jasonr@gnu.org>
8443
8444 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
8445 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
8446 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
8447 Don't add empty script list.
8448 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
8449
84502008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
8451
8452 * Makefile.in (dot, dotdot): Remove, update users.
8453 ".." has been used elsewhere in the file for a long time.
8454 (LIBXT_STATIC): Remove conditional based on unused variable.
8455
84562008-06-01 Miles Bader <miles@gnu.org>
8457
8458 * xfaces.c (Vface_remapping_alist): New variable.
8459 (syms_of_xfaces): Initialize it.
8460 (enum named_merge_point_kind): New type.
8461 (struct named_merge_point): Add `named_merge_point_kind' field.
8462 (push_named_merge_point): Make cycle detection respect different
8463 named-merge-point kinds.
8464 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
8465 Remove face-name alias resolution.
8466 (lface_from_face_name): New definition using
8467 `lface_from_face_name_no_resolve'.
8468 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
8469 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
8470 (get_lface_attributes): New definition that layers face-remapping on
8471 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
8472 (lookup_basic_face): New function.
8473 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
8474 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
8475 `get_lface_attributes'.
8476 (face_at_buffer_position): Use `lookup_basic_face' to lookup
8477 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
8478 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
8479
8480 * xdisp.c (init_iterator): Pass base_face_id through
8481 `lookup_basic_face' when we actually use it as a face-id.
8482 (handle_single_display_prop): Use `lookup_basic_face' to lookup
8483 DEFAULT_FACE_ID.
8484
8485 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
8486 lookup the initial face-id.
8487
8488 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
8489
84902008-06-01 Juanma Barranquero <lekktu@gmail.com>
8491
8492 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
8493 (Fremove_text_properties): Fix typos in docstrings.
8494
84952008-05-31 Kenichi Handa <handa@m17n.org>
8496
8497 * font.c (font_list_entities): Fix the car part of data to be
8498 stored in the cache.
8499
8500 * ftfont.c (ftfont_font_format): Don't use strcasestr.
8501
85022008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
8503
8504 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
8505 Add a `test' argument so another predicate than `equal' can be used.
8506 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
8507 (map_char_table): Remove unused vars `c' and `i'.
8508 * lisp.h (Foptimize_char_table): Adjust declaration.
8509 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
8510
85112008-05-30 Kenichi Handa <handa@m17n.org>
8512
8513 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
8514 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
8515 defined.
8516
85172008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
8518
8519 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
8520 (Fmake_variable_frame_local): Disallow mixing buffer-local and
8521 frame-local settings for the same variable.
8522
85232008-05-30 Kenichi Handa <handa@m17n.org>
8524
8525 * fontset.c (Ffont_info): Move to font.c.
8526 (syms_of_fontset): Delete defsubr of Sfont_info.
8527
8528 * font.c (font_style_to_value, font_score): Delete casting of the
8529 args to xstcasecmp.
8530 (register_font_driver): Increment num_font_drivers only when
8531 registering the driver globally.
8532 (Ffont_info): Move from fontset.c. Handle a font object too.
8533 (syms_of_font): Defsubr Sfont_info.
8534
85352008-05-29 Kenichi Handa <handa@m17n.org>
8536
8537 * coding.h (enum define_coding_utf8_arg_index): New enum.
8538 (enum coding_attr_index): Change coding_attr_utf_16_bom to
8539 coding_attr_utf_bom.
8540 (enum utf_bom_type): Rename from utf_16_bom_type.
8541 (struct utf_16_spec): Adjust for the above change.
8542 (struct coding_system): Add utf_8_bom in `spec' union.
8543
8544 * coding.c (CODING_UTF_8_BOM): New macro.
8545 (enum coding_category): Delete coding_category_utf_8, add
8546 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
8547 coding_category_utf_8_sig.
8548 (CATEGORY_MASK_UTF_8): Delete it.
8549 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
8550 (CATEGORY_MASK_UTF_8_SIG): New macros.
8551 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
8552 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
8553 CATEGORY_MASK_UTF_8_SIG.
8554 (CATEGORY_MASK_UTF_8): New macro.
8555 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
8556 (detect_coding_utf_8): Check BOM.
8557 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
8558 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
8559 (encode_coding_utf_16): Likewise.
8560 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
8561 (detect_coding, detect_coding_system): Handle utf-8-auto.
8562 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
8563 (syms_of_coding): Fix setting up of Vcoding_category_table.
8564
85652008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
8566
8567 * process.c (Faccept_process_output): If `millisec' is non-nil,
8568 `seconds' default to 0.
8569 (wait_reading_process_output): Also return non-nil if we read output
8570 from a non-running process.
8571
85722008-05-29 Jason Rumney <jasonr@gnu.org>
8573
8574 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
8575 `raster' specified.
8576 (add_font_entity_to_list): Allow non-opentype truetype fonts back
8577 in the uniscribe backend, but disallow any font that has no
8578 unicode subrange support.
8579
85802008-05-29 Juanma Barranquero <lekktu@gmail.com>
8581
8582 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
8583 Fix typos in docstrings.
8584
85852008-05-29 Kenichi Handa <handa@m17n.org>
8586
8587 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
8588 (Fx_family_fonts): Set frame correctly.
8589
85902008-05-28 Jason Rumney <jasonr@gnu.org>
8591
8592 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
8593
85942008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
8595
8596 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
8597 calling build_annotations.
8598
85992008-05-28 Juanma Barranquero <lekktu@gmail.com>
8600
8601 * coding.c (Fdecode_coding_region, Fencode_coding_region)
8602 (Fencode_coding_string):
8603 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
8604 <latin-extra-code-table>: Fix typos in docstrings.
8605 (syms_of_coding) <coding-system-alist>: Doc fix.
8606 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
8607
86082008-05-28 Kenichi Handa <handa@m17n.org>
8609
8610 * fontset.c (Ffont_info): Don't call font_close_object.
8611
8612 * font.c (font_parse_family_registry): Use Ffont_put to validate
8613 foundry and family.
8614 (font_delete_unmatched): Don't check spacing.
8615 (font_list_entities): Add spacing to the spec to list fonts.
8616
8617 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
8618 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
8619
8620 * coding.c (encode_coding_raw_text): Fix previous change.
8621 (encode_coding_object): When the dst_object is a buffer and is
8622 different from src_object, move gap to PT.
8623
86242008-05-27 Chong Yidong <cyd@stupidchicken.com>
8625
8626 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
8627
86282008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
8629
8630 * coding.c (encode_coding_raw_text): Set coding->produced_char for
8631 all branches. Compute it differently.
8632
8633 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
8634
86352008-05-27 Juanma Barranquero <lekktu@gmail.com>
8636
8637 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
8638 into "else if () ... else ...".
8639
86402008-05-27 Jason Rumney <jasonr@gnu.org>
8641
8642 * w32font.c (w32font_open_internal): Determine if glyph indices
8643 are likely to work here.
8644
86452008-05-27 Chong Yidong <cyd@stupidchicken.com>
8646
8647 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
8648 draw overlap glyphs with appropriate highlighting.
8649
86502008-05-27 Kenichi Handa <handa@m17n.org>
8651
8652 * xfont.c (xfont_open): Fix calculation of font->average_width.
8653
86542008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
8655
8656 * casefiddle.c (casify_object): Try to guess better whether the
8657 argument is a byte or a char.
8658
86592008-05-26 Andreas Schwab <schwab@suse.de>
8660
8661 * xselect.c (x_reply_selection_request): Properly handle format == 32.
8662 Always send multiples of format size.
8663
8664 * xterm.c (x_set_frame_alpha): Fix type mismatch.
8665
86662008-05-26 Jason Rumney <jasonr@gnu.org>
8667
8668 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
8669 (compute_metrics): Don't set failure if we just cleared the cache.
8670 (w32_weight_table): Remove unused variable.
8671 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
8672 backwards compatibility.
8673
86742008-05-25 Kenichi Handa <handa@m17n.org>
8675
8676 * w32term.c (x_draw_glyph_string):
8677 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
8678
8679 * xfaces.c: Delete unused function prototypes.
8680 (xstrlwr, font_frame): Delete them.
8681 (clear_face_cache): Delete unused variable.
8682
8683 * xftfont.c (xftfont_open): Delete unused variable.
8684 If underline_thickness is not 1, adjust underline_position.
8685
8686 * ftxfont.c (ftxfont_open): Delete unused variable.
8687
8688 * fontset.c (face_for_char): Optimize for the case of no charset
8689 property.
8690
8691 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
8692 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
8693 (otf_open, font_otf_capability, generate_otf_features)
8694 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
8695 Comment out by surrounding "#if 0" and "#endif" for the moment.
8696 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
8697 (syms_of_font): Codes for accessing above commented out.
8698
86992008-05-24 Eli Zaretskii <eliz@gnu.org>
8700
8701 * w32proc.c: Include dispextern.h.
8702
8703 * w32.c: Include dispextern.h.
8704
87052008-05-23 Juanma Barranquero <lekktu@gmail.com>
8706
8707 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
8708 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
8709 Fix typos in docstrings.
8710
87112008-05-23 Jason Rumney <jasonr@gnu.org>
8712
8713 * xsmfns.c: Remove includes that are already included by config.h.
8714
87152008-05-23 Kenichi Handa <handa@m17n.org>
8716
8717 * charset.c (Qemacs, charset_emacs): New variables.
8718 (char_charset): Fix for non-Unicode characters.
8719 (syms_of_charset): Define charset_emacs.
8720
8721 * w32term.c (x_draw_glyph_string): Be sure to update
8722 s->underline_thickness and s->underline_position. Be sure to draw
8723 underline within the current line area.
8724
8725 * xterm.c (x_draw_glyph_string): Be sure to update
8726 s->underline_thickness and s->underline_position. Be sure to draw
8727 underline within the current line area.
8728
8729 * fontset.c: Delete unused variables and add casting for char *
8730 throughout the file.
8731 (fontset_font): Try the fallback fonts of the current fontset
8732 before consulting the default fontset.
8733
8734 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
8735
8736 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
8737
87382008-05-22 Jason Rumney <jasonr@gnu.org>
8739
8740 * font.c: Don't include strings.h.
8741
8742 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
8743
8744 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
8745 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
8746 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
8747 to call xstrcasecmp.
8748
8749 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
8750
8751 * fontset.c (fs_query_fontset): Use xstrcasecmp.
8752
8753 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
8754
8755 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
8756
87572008-05-22 Kenichi Handa <handa@m17n.org>
8758
8759 * puresize.h (BASE_PURESIZE): Increase to 1220000.
8760
8761 * font.c (font_prop_validate_style): Adjust for the format
8762 change of font_style_table.
8763
8764 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
8765 two args.
8766
8767 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
8768 two args.
8769
87702008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
8771
8772 * minibuf.c (keys_of_minibuf): Delete.
8773 * lisp.h (keys_of_minibuf): Delete.
8774 * emacs.c (main): Don't call keys_of_minibuf.
8775
87762008-05-22 Kenichi Handa <handa@m17n.org>
8777
8778 * ftfont.c (ftfont_resolve_generic_family): Rename from
8779 ftfont_list_generic_family. Return a single family for each
8780 generic family.
8781 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
8782 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
8783 Call font_add_log.
8784 (ftfont_match): Call font_add_log.
8785
8786 * font.h (Ffont_xlfd_name): EXFUN adjusted.
8787 (FONT_DEBUG): Define it.
8788 (font_add_log): Extern it.
8789 (font_assert): Rename from xassert.
8790
8791 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
8792 (xfont_list_family): Call font_add_log.
8793 (xfont_match): Likewise.
8794 (memq_no_quit): Delete.
8795
8796 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
8797 call of Ffont_xlfd_name.
8798
8799 * xfaces.c (struct table_entry, slant_table, weight_table)
8800 (swidth_table): Move to font.c.
8801
8802 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
8803 xassert are changed to font_assert. Delete many unused variables.
8804 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
8805 New variables.
8806 (struct table_entry): Move from xfaces.c and modified.
8807 (weight_table, slant_table, width_table): Move from xfaces.c and
8808 contents adjusted for the change of struct table_entry.
8809 (font_style_to_value, font_style_symbolic): Adjust for the
8810 format change of font_style_table.
8811 (font_parse_family_registry): Don't overwrite existing foundry and
8812 family of font_spec.
8813 (font_score): Fix calculation of diff for sizes.
8814 (font_sort_entites): Call font_add_log.
8815 (font_delete_unmatched): Return a newly created list.
8816 (font_list_entities): Fix previous change. Call font_add_log.
8817 (font_matching_entity, font_open_entity, font_close_entity):
8818 Call font_add_log.
8819 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
8820 (Finternal_set_font_style_table): Delete.
8821 (BUILD_STYLE_TABLE): New macro.
8822 (build_style_table): New function.
8823 (Vfont_log, font_log_env_checked): New variables.
8824 (font_add_log): New function.
8825 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
8826 Declare Lisp variables "font-weight-table", "font-slant-table",
8827 "font-width-table", and "font-log". Initialize font_style_table.
8828
88292008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
8830
8831 * xterm.c (x_set_frame_alpha): Move declarations before statements.
8832
88332008-05-21 Seiji Zenitani <zenitani@mac.com>
8834 Ryo Yoshitake <ryo@shiftmode.net>
8835
8836 * frame.c (Qalpha): Add a new frame parameter `alpha'.
8837 (Vframe_alpha_lower_limit): New variable.
8838 (x_set_alpha): New function.
8839
8840 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
8841
8842 * xfns.c (x-create-frame, Qalpha):
8843 Initialize the frame parameter `alpha'.
8844 * xterm.c (OPAQUE, OPACITY): New.
8845 (x_set_frame_alpha): New function.
8846 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
8847
8848 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
8849 * w32fns.c (w32_frame_parm_handlers): Likewise.
8850
88512008-05-20 Jason Rumney <jasonr@gnu.org>
8852
8853 * w32font.c (add_font_entity_to_list): Don't add non-opentype
8854 truetype fonts to opentype list.
8855
88562008-05-20 Juanma Barranquero <lekktu@gmail.com>
8857
8858 * fontset.c (Ffontset_info): Doc fix.
8859 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
8860 <ignore-relative-composition>: Fix typos in docstrings.
8861
8862 * font.c (syms-of-font) <font-encoding-alist>:
8863 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
8864 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
8865 (Ffont_otf_alternates): Doc fixes.
8866
88672008-05-20 Kenichi Handa <handa@m17n.org>
8868
8869 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
8870 font.h through out the file.
8871 (FONT_DRIVERS): Rename from FONTOBJ.
8872 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
8873 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
8874
8875 * emacs.c (main): Call syms_of_font unconditionally.
8876
8877 * font.h (find_font_encoding): Extern it.
8878
8879 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
8880 fontset.c.
8881 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
8882 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
8883 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
8884 only when HAVE_WINDOW_SYSTEM is defined.
8885 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
8886 when HAVE_WINDOW_SYSTEM is defined.
8887
8888 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
8889 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
8890
8891 * xfaces.c: Include font.h unconditionally.
8892 (merge_face_ref, merge_face_vectors)
8893 (Finternal_set_lisp_face_attribute): Cancel the previous change.
8894
88952008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
8896
8897 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
8898 indirect_variable.
8899 * eval.c (lisp_indirect_variable): New fun.
8900 (Fuser_variable_p): Use it.
8901
89022008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
8903
8904 * lisp.h (indirect_variable):
8905 * data.c (indirect_variable, let_shadows_buffer_binding_p):
8906 Use Lisp_Symbol pointers rather than Lisp_Object.
8907 Adjust callers.
8908 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
8909 To this end, change calling-convention.
8910
8911 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
8912 if some non-hidden buffers are selected by string&pred.
8913
89142008-05-19 Chong Yidong <cyd@stupidchicken.com>
8915
8916 * process.c (wait_reading_process_output): Always check status
8917 when in batch mode.
8918
89192008-05-19 Kenichi Handa <handa@m17n.org>
8920
8921 * font.c (font_list_entities): Fix handling of cache.
8922 (font_matching_entity): Likewise.
8923
8924 * ftfont.c (cs_iso8859_1): Delete.
8925 (ft_face_cache): New variable.
8926 (struct ftfont_info): New member fc_charset_idx.
8927 (ftfont_build_basic_charsets): Delete.
8928 (fc_charset_table): New variable.
8929 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
8930 . FC_CHARSET_IDX) as :font-entity property in the font entity.
8931 Callers changed.
8932 (ftfont_lookup_cache, ftfont_get_charset): New functions.
8933 (ftfont_spec_pattern): New argument fc_charset_idx.
8934 Check registry more rigidly. Change callers.
8935 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
8936 change of :font-entity property of the font.
8937
8938 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
8939 property of the font.
8940
89412008-05-18 Juanma Barranquero <lekktu@gmail.com>
8942
8943 * coding.c (Fcoding_system_p): Rename argument to match docstring.
8944 (Funencodable_char_position, Fcheck_coding_systems_region)
8945 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
8946 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
8947 (Ffind_operation_coding_system, Fset_coding_system_priority)
8948 (Fcoding_system_eol_type): Doc fixes.
8949
89502008-05-17 Glenn Morris <rgm@gnu.org>
8951
8952 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
8953
89542008-05-16 Eli Zaretskii <eliz@gnu.org>
8955
8956 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
8957 and st_gid.
8958
8959 * frame.c (Fdelete_frame): Don't call font_update_drivers if
8960 HAVE_WINDOW_SYSTEM is not defined.
8961
8962 * xfaces.c (merge_face_ref, merge_face_vectors)
8963 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
8964 HAVE_WINDOW_SYSTEM is defined.
8965 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
8966
89672008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
8968
8969 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
8970
89712008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8972
8973 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
8974
89752008-05-15 Kenichi Handa <handa@m17n.org>
8976
8977 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
8978 preference.
8979
89802008-05-15 Glenn Morris <rgm@gnu.org>
8981
8982 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
8983
89842008-05-15 Chong Yidong <cyd@stupidchicken.com>
8985
8986 * fns.c (init_fns): Don't initialize weak_hash_tables here.
8987 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
8988
8989 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
8990
89912008-05-15 Kenichi Handa <handa@m17n.org>
8992
8993 * ftfont.c (ftfont_list): Downcase family name to check generic
8994 families.
8995
8996 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
8997 font-spec for QCfont value.
8998
8999 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
9000 buffer. Check the return value of it.
9001
90022008-05-14 Jason Rumney <jasonr@gnu.org>
9003
9004 * w32term.c (w32_get_glyph_overhangs): Remove.
9005 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
9006
90072008-05-14 Kenichi Handa <handa@m17n.org>
9008
9009 * font.c (font_prop_validate): Make nil a valid value.
9010 (font_clear_cache): Check if the cached vector of entities is nil
9011 or not.
9012
90132008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9014
9015 * emacs.c (main_thread): Conditionalize on
9016 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
9017 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
9018
9019 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
9020 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
9021 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
9022
90232008-05-14 Kenichi Handa <handa@m17n.org>
9024
9025 * coding.c (detect_coding_iso_2022): Ignore a coding category that
9026 has no corresponding coding system.
9027
90282008-05-14 Jason Rumney <jasonr@gnu.org>
9029
9030 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
9031
9032 * w32font.h (w32font_open_internal): Update declaration.
9033
9034 * w32font.c (w32font_open_internal): Change last argument from
9035 w32font_info struct to font object. Fill in font object from
9036 font_entity. Get Outline metrics if possible. Use them to
9037 calculate underline position and thickness. Use xlfd name as name
9038 property. Don't set codepage.
9039 (w32font_open): Pass font_object to w32font_open_internal. Don't
9040 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
9041 (w32font_draw): Use s->font.
9042 (clear_cached_metrics): Don't clear non-existent blocks.
9043
9044 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
9045 font was not found.
9046 (x_draw_glyph_string): Use underline position and thickness from font.
9047
9048 * w32uniscribe.c (uniscribe_open): Pass font_object to
9049 w32font_open_internal.
9050
90512008-05-14 Kenichi Handa <handa@m17n.org>
9052
9053 These changes are to delete all legacy font-handling codes, and
9054 make Emacs use only font-backends.
9055
9056 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
9057 (frame.o, image.o, print.o): Depend on $(FONTSRC).
9058
9059 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
9060
9061 * charset.h (Vcharset_non_preferred_head)
9062 (Vcurrent_iso639_language): Extern them.
9063
9064 * charset.c (Vcharset_non_preferred_head): New variable.
9065 (Vcurrent_iso639_language): New variable.
9066 (syms_of_charset): Declare it as a Lisp variable.
9067 (char_charset): Don't check non preferred charsets. As a last
9068 resort, return charset_unicode.
9069 (Fset_charset_priority): Update Vcharset_non_preferred_head.
9070
9071 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
9072 conditionals. Don't check enable_font_backend. Delete all codes
9073 used only when USE_FONT_BACKEND is not defined.
9074
9075 * dispextern.h (struct glyph_string): Change type of `font' to
9076 `struct font *'.
9077 (struct glyph_string): New member underline_position and
9078 underline_thickness.
9079 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
9080 (struct face): Change type of `font' to `struct font *'. Remove
9081 members `font_name', `font_info_id'.
9082 (per_char_metric, encode_char): Delete externs.
9083 (calc_pixel_width_or_height): Adjust the prototype.
9084
9085 * emacs.c (enable_font_backend): Delete extern.
9086 (main): Don't set enable_font_backend. Don't check the command
9087 line argument "-disable-font-backend".
9088
9089 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
9090 (enum font_property_index): New members FONT_DPI_INDEX,
9091 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
9092 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
9093 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
9094 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
9095 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
9096 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
9097 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
9098 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
9099 (struct font_spec, struct font_entity): New structs.
9100 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
9101 (struct font): Many members from old "struct font_info" moved to
9102 here. Members font and entity deleted.
9103 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
9104 the new font-related objects.
9105 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
9106 (CHECK_FONT_GET_OBJECT): Likewise.
9107 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
9108 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
9109 (struct font_driver): New members case_sensitive anc check. Type
9110 of the member list and open changed.
9111 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
9112 (font_symbolic_width, font_find_object, font_get_spec)
9113 (font_set_lface_from_name): Delete extern.
9114 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
9115
9116 * font.c: Include <strings.h>.
9117 (enable_font_backend): Delete it.
9118 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
9119 (CHECK_VALIDATE_FONT_SPEC): Delete it.
9120 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
9121 (null_string): Delete it.
9122 (null_vector): Make it static.
9123 (font_family_alist): Delete it.
9124 (Qnormal): Extern it.
9125 (QCextra, QClanguage): Delete it.
9126 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
9127 (font_make_spec, font_make_entity, font_make_object)
9128 (font_intern_prop): Renamed from intern_downcase. Don't downcase
9129 the string. Callers changed.
9130 (font_pixel_size): Adjusted for the format change of font-related
9131 objects.
9132 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
9133 (font_style_to_value, font_style_symbolic): New function.
9134 (build_font_family_alist): Delete it.
9135 (font_registry_charsets): Use Fassoc_string instead of
9136 assq_no_quit.
9137 (font_prop_validate_symbol): Don't return null_string.
9138 (font_prop_validate_style): Adjusted for the change of
9139 style-related values in a font vector.
9140 (font_property_table): Delete entries for QClanguage and
9141 QCantialias, add entries for QCavgwidth.
9142 (get_font_prop_index): Delete the 2nd argument FROM.
9143 (font_prop_validate): Arguments changed.
9144 (font_put_extra): Adjusted for the change of font-related objects.
9145 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
9146 (font_parse_fcname, font_unparse_fcname)
9147 (font_prepare_composition): Likewise.
9148 (font_parse_family_registry): Renamed from font_merge_old_spec.
9149 (otf_open): Delete the 1st arg entity.
9150 (font_otf_capability): Adjusted for the above change.
9151 (font_score): New arg alternate_families. Adjusted for the change
9152 of font-related objects.
9153 (font_sort_entites): New arg best_only.
9154 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
9155 Delete them.
9156 (font_match_p): Check alternate families.
9157 (font_find_object): Delete it.
9158 (font_check_object): New function.
9159 (font_clear_cache): Adjusted for the change of font-related objects.
9160 (font_delete_unmatched): New arg.
9161 (font_list_entities): Call font_driver->list with a spec that
9162 doesn't specify style-related properties.
9163 (font_matching_entity): Arguments changed. Caller changed.
9164 (font_open_entity): Adjusted for the change of font-related objects.
9165 (font_close_object, font_has_char, font_encode_char)
9166 (font_get_name, font_get_spec): Likewise.
9167 (font_spec_from_name, font_clear_prop, font_update_lface):
9168 New functions.
9169 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
9170 (font_prepare_for_face, font_done_for_face, font_open_by_name)
9171 (font_at): Adjusted for the change of font-related objects.
9172 (font_range): New function.
9173 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
9174 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
9175 (Fcopy_font_spec, Fmerge_font_spec): New function.
9176 (Ffont_family_list): Renamed from list-families.
9177 (Finternal_set_font_style_table): Arguments changed.
9178 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
9179 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
9180 change of font-related objects.
9181 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
9182
9183 * fontset.h (struct font_info): Delete it. Most members go to
9184 struct font.
9185 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
9186 (enum FONT_SPEC_INDEX): Delete it.
9187 (font_info, list_fonts_func, load_font_func, query_font_func)
9188 (set_frame_fontset_func, find_ccl_program_func)
9189 (get_font_repertory_func, new_fontset_from_font_name): Delete
9190 externs.
9191 (fontset_from_font_name): Extern it.
9192 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
9193 (FONT_INFO_FROM_FACE): Deleted.
9194 (face_for_font): Adjust prototype.
9195
9196 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
9197 conditionals. Don't check enable_font_backend. Delete all codes
9198 used only when USE_FONT_BACKEND is not defined.
9199 (get_font_info_func, list_font_func, load_font_func)
9200 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
9201 (get_font_repertory_func): Delete them.
9202 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
9203 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
9204 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
9205 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
9206 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
9207 (fontset_compare_rfontdef): New function.
9208 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
9209 rfont-defs by qsort. Adjusted for the change of font-group vector.
9210 (load_font_get_repertory): Deleted.
9211 (fontset_find_font): Use new macros to ref/set elements of
9212 font-def and rfont-def.
9213 (fontset_font): Fix the timing of remembering that no font for C.
9214 (free_face_fontset): Do nothing if the face has no fontset.
9215 (face_suitable_for_char_p): Use new macros to ref/set elements of
9216 rfont-def.
9217 (face_for_char): Likewise. Call face_for_char with font_object.
9218 (fs_load_font): Delete. Delete #pragma surrounding it.
9219 (fs_query_fontset): Use strcasecmp instead of strcmp.
9220 (generate_ascii_font_name): Adjusted for the format change of
9221 font-spec.
9222 (Fset_fontset_font): Likewise. Use new macros to set elements of
9223 font-def.
9224 (Fnew_fontset): Use font_unparse_xlfd to generate
9225 FONTSET_ASCII (fontset).
9226 (new_fontset_from_font_name): Deleted.
9227 (fontset_from_font): Renamed from new_fontset_from_font. Check if
9228 a fontset is already created for the font. FIx updating of
9229 Vfontset_alias_alist.
9230 (fontset_ascii_font): Deleted.
9231 (Ffont_info): Adjusted for the format change of font-spec.
9232 (Finternal_char_font): Likewise.
9233 (Ffontset_info): Likewise.
9234 (syms_of_fontset): Don't check load_font_func.
9235
9236 * fns.c (internal_equal): Handle PREV_FONT.
9237
9238 * frame.h: Delete USE_FONT_BACKEND conditional.
9239
9240 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
9241 conditionals. Don't check enable_font_backend. Delete all codes
9242 used only when USE_FONT_BACKEND is not defined.
9243 (x_set_font): Call x_new_font, not x_new_fontset2.
9244 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
9245 already set for the frame.
9246
9247 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
9248 a font-entity by font_make_entity. Use font_intern_prop instead
9249 of intern_downcase. Use FONT_SET_STYLE to set a style-related
9250 font property. If a font is scalable, set avgwidth property to 0.
9251 Set font-entity property by font_put_extra.
9252 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
9253 (ffont_driver): Adjusted for the change of struct font_driver.
9254 (ftfont_spec_pattern): New function.
9255 (ftfont_list): Return a list, not vector.
9256 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
9257 (ftfont_list_family): Don't downcase names.
9258 (ftfont_free_entity): Deleted.
9259 (ftfont_open): Return a font-object. Adjusted for the change of
9260 struct font. Get underline_thickness and underline_position from
9261 font property. Don't update dpyinfo->smallest_font_height and
9262 dpyinfo->smallest_char_width.
9263 (ftfont_close): Don't free `struct font'.
9264 (ftfont_has_char): Adjusted for the format change of font-entity.
9265 (ftfont_encode_char, ftfont_text_extents): Likewise.
9266
9267 * ftxfont.c (ftxfont_list): Return a list, not vector.
9268 (ftxfont_open): Return a font-object. Adjusted for the change of
9269 struct font. Get underline_thickness and underline_position from
9270 font property. Don't update dpyinfo->smallest_font_height and
9271 dpyinfo->smallest_char_width.
9272 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
9273 (ftxfont_draw): Adjusted for the change of struct font.
9274
9275 * image.c (image_ascent): Don't include "charset.h". Include
9276 "character.h" and "font.h".
9277
9278 * lisp.h (enum pvec_type): New member PREV_FONT.
9279 (Fassoc_string): EXFUN it.
9280
9281 * print.c: Include font.h.
9282 (print_object): Handle font-related objects.
9283
9284 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
9285 conditionals. Don't check enable_font_backend. Delete all codes
9286 used only when USE_FONT_BACKEND is not defined.
9287 (handle_auto_composed_prop): Do nothing if it->f is not on a
9288 window system. Check how many following characters can be
9289 displayed by the same font.
9290 (calc_pixel_width_or_height): Type of the 4th arg is changed to
9291 'struct font *'.
9292 (get_char_face_and_encoding): Assign the whole encoding task to
9293 the `encode-char' method of a font driver.
9294 (fill_composite_glyph_string): Adjusted for the change of `struct
9295 face' and `struct glyph_string'.
9296 (fill_glyph_string): Likewise.
9297 (get_per_char_metric): Arguments changed.
9298 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
9299 and `struct glyph_string'.
9300 (produce_stretch_glyph, calc_line_height_property)
9301 (x_produce_glyphs): Likewise.
9302
9303 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
9304 conditionals. Don't check enable_font_backend. Delete all codes
9305 used only when USE_FONT_BACKEND is not defined. Use
9306 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
9307 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
9308 (Qp): Extern them.
9309 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
9310 Deleted.
9311 (struct font_name): Deleted.
9312 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
9313 (compare_fonts_by_sort_order): New function.
9314 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
9315 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
9316 Deleted.
9317 (Fx_family_fonts): Use font_list_entities, and sort fonts by
9318 compare_fonts_by_sort_order.
9319 (Fx_font_family_list): Call Ffont_family_list.
9320 (face_numeric_value, face_numeric_weight, face_numeric_slant)
9321 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
9322 (face_symbolic_slant, face_symbolic_swidth)
9323 (split_font_name_into_vector, build_font_name_from_vector)
9324 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
9325 (font_rescale_ratio, split_font_name, build_font_name)
9326 (free_font_names, sort_fonts, x_face_list_fonts)
9327 (face_font_available_p, sorted_font_list, cmp_font_names)
9328 (font_list_1, concat_font_list, font_list, remove_duplicates):
9329 Deleted.
9330 (Fx_list_fonts): Use Ffont_list.
9331 (LFACE_AVGWIDTH): Deleted.
9332 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
9333 by FONTP.
9334 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
9335 (set_lface_from_font_name): Delete it.
9336 (set_lface_from_font): Renamed from
9337 set_lface_from_font_and_fontset. Caller changed. Don't set
9338 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
9339 for face.
9340 (merge_face_vectors): Copy font-spec if necessary.
9341 Clear properties of the font-spec if necessary.
9342 (merge_face_ref): Clear properties of the font-spec if necessary.
9343 (Finternal_set_lisp_face_attribute): Likewise.
9344 (set_font_frame_param): Use font_load_for_lface to load a
9345 font-object, and call Fmodify_frame_parameters with it.
9346 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
9347 font name by Ffont_xlfd_name.
9348 (Finternal_lisp_face_attribute_values): Don't check QCweight,
9349 QCslant, and QCwidth.
9350 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
9351 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
9352 Compare fonts by EQ.
9353 (lookup_non_ascii_face): Deleted.
9354 (face_for_font): The 2nd argument changed.
9355 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
9356 Check atomic font properties by case insensitive.
9357 (realize_non_ascii_face): Set face->overstrike correctly.
9358 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
9359 (dump_realized_face): Get font name from
9360 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
9361
9362 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
9363 conditionals. Don't check enable_font_backend. Delete all codes
9364 used only when USE_FONT_BACKEND is not defined.
9365 (xic_create_xfontset): Original code deleted and renamed from
9366 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
9367 (x_make_gc): Don't set GCFont in GCs.
9368 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
9369 opened by "fixed".
9370 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
9371 find_ccl_program_func, query_font_func, set_frame_fontset_func,
9372 get_font_repertory_func.
9373
9374 * xfont.c: Include <stdlib.h> and "ccl.h".
9375 (struct xfont_info): New structure.
9376 (xfont_query_font): Deleted.
9377 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
9378 moved from xterm.c.
9379 (xfont_driver): Adjusted for the change of struct font_driver.
9380 (compare_font_names): New function.
9381 (xfont_list_pattern): Sort font names case insensitively. Make
9382 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
9383 (xfont_list): Return a list, not vector.
9384 (xfont_match): If the font doesn't have QCname property, generate
9385 a name from the other font properties.
9386 (xfont_open): Return a font-object. Adjusted for the change of
9387 struct font. Get underline_thickness and underline_position from
9388 font property. Don't update dpyinfo->smallest_font_height and
9389 dpyinfo->smallest_char_width.
9390 (xfont_close): Don't free struct font.
9391 (xfont_prepare_face): Adjusted for the change of struct font.
9392 (xfont_done_face): Deleted.
9393 (xfont_has_char): Adjusted for the change of struct font.
9394 (xfont_encode_char, xfont_draw): Likewise.
9395 (xfont_check): New function.
9396
9397 * xftfont.c (xftfont_list): Adjusted for the change of `list'
9398 callback function.
9399 (xftfont_match): Adjusted for the format change of font-entity.
9400 (xftfont_open): Adjusted for the format change of font-entity and
9401 font-object. Adjusted for the change of struct font. Return a
9402 font-object. Don't update dpyinfo->smallest_font_height and
9403 dpyinfo->smallest_char_width.
9404 (xftfont_close): Block input while calling XftFontClose.
9405 (xftfont_prepare_face): Don't block input while calling
9406 xftfont_get_colors. Adjusted for the change of struct font.
9407 (xftfont_shape): Return value of error case fixed.
9408
9409 * xrdb.c (x_load_resources): Don't setup a fontset resource.
9410
9411 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
9412 conditionals.
9413 (FONT_WIDTH): Return (f)->max_width.
9414 (struct x_display_info): Delete member `font'.
9415 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
9416 (x_find_ccl_program, x_get_font_repertory): Delete externs.
9417 (struct x_output): Change type of `font' to `struct font *'.
9418
9419 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
9420 conditionals. Don't check enable_font_backend. Delete all codes
9421 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
9422 (x_per_char_metric, x_encode_char): Deleted.
9423 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
9424 (x_compute_glyph_string_overhangs): Adjusted for the change of
9425 `struct face'.
9426 (x_draw_glyph_string_foreground)
9427 (x_draw_composite_glyph_string_foreground): Likewise.
9428 (x_draw_glyph_string): Likewise. Use font->underline_position and
9429 font->underline_thickness.
9430 (x_new_font): Renamed from x_new_fontset2.
9431 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
9432 (x_check_font): Call `check' method of a font driver.
9433 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
9434 (x_query_font, x_get_font_repertory): Deleted.
9435 (x_find_ccl_program): Renamed and moved to xfont.c.
9436 (x_redisplay_interface): Adjusted for the change of `struct
9437 redisplay_interface'.
9438
9439 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
9440 conditionals. Don't check enable_font_backend. Delete all codes
9441 used only when USE_FONT_BACKEND is not defined. Surround non-used
9442 code by "#ifdef OLD_FONT" and "endif".
9443 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
9444
9445 * w32font.h (struct w32font_info): New member.
9446 (FONT_COMPAT): New macro.
9447 (w32font_open_internal): Prototype adjusted.
9448
9449 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
9450 OLD_FONT" and "endif".
9451
9452 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
9453 conditionals. Don't check enable_font_backend. Delete all codes
9454 used only when USE_FONT_BACKEND is not defined.
9455 (w32font_open): Return a font-object. Make a font-object by
9456 font_make_object. Adjusted for the change of struct w32font_info.
9457 (w32font_close): Don't free struct font. Adjusted for the change
9458 of struct w32font_info.
9459 (w32font_encode_char, w32font_text_extents, w32font_draw):
9460 Adjusted for the change of struct w32font_info.
9461 (w32font_draw): Likewise.
9462 (w32font_list_internal): Return a list, not vector.
9463 (w32font_open_internal): Change the 4th arg to font-object.
9464 Adjusted for the change of struct w32font_info and font-object format.
9465 (add_font_name_to_list): Don't downcase names.
9466 (w32_enumfont_pattern_entity): Make a font-entity by
9467 font_make_entity. Adjusted for the format change of font-entity.
9468 Use FONT_SET_STYLE to set a style-related font property. If a
9469 font is scalable, set avgwidth property to 0. Set font-entity
9470 property by font_put_extra.
9471 (font_matches_spec): Adjusted for the format change of font-entity.
9472 (w32_weight_table, w32_decode_weight): New variables.
9473 (w32_encode_weight): New function.
9474 (fill_in_logfont): Adjusted for the format change of font-spec.
9475 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
9476 weight value.
9477 (w32font_driver): Adjusted for the change of struct font_driver.
9478
9479 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
9480 conditionals. Don't check enable_font_backend. Surround non-used
9481 code by "#ifdef OLD_FONT" and "endif".
9482 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
9483 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
9484
9485 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
9486 conditionals. Don't check enable_font_backend. Delete all codes
9487 used only when USE_FONT_BACKEND is not defined. Surround non-used
9488 code by "#ifdef OLD_FONT" and "endif".
9489
9490 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
9491 (uniscribe_open): Return value changed to font-object.
9492 Adjusted for the format change of font-object.
9493 (uniscribe_otf_capability): Adjusted for the change of struct font.
9494 (add_opentype_font_name_to_list): Don't downcase names.
9495 (uniscribe_font_driver): Adjusted for the change of struct
9496 font_driver.
9497
94982008-05-13 Chong Yidong <cyd@stupidchicken.com>
9499
9500 * dispnew.c (update_frame_1): Check if tty output is still valid
9501 before flushing it.
9502
95032008-05-13 Jan Djärv <jan.h.d@swipnet.se>
9504
9505 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
9506 to Gtk+ menus.
9507
95082008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
9509
9510 * dired.c (file_name_completion): Tweak the code so as to always do it
9511 in a single pass. Tighten the scope of some variables.
9512
9513 * dired.c (Qdefault_directory): New var.
9514 (file_name_completion): Use it instead of Fexpand_file_name.
9515 (syms_of_dired): Initialize it.
9516
95172008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
9518
9519 * fileio.c (double_dollars): Remove dead code.
9520
95212008-05-10 Eli Zaretskii <eliz@gnu.org>
9522
9523 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
9524 Mention w32-get-true-file-attributes in doc string.
9525
9526 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
9527
95282008-05-09 Glenn Morris <rgm@gnu.org>
9529
9530 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
9531 2008-04-23.
9532
95332008-05-09 Eli Zaretskii <eliz@gnu.org>
9534
9535 Support for reporting owner and group of each file on MS-Windows:
9536 * dired.c (stat_uname, stat_gname): New functions, with special
9537 implementation for w32.
9538 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
9539
9540 * w32.c: Rename the_passwd_* to dflt_passwd_*.
9541 (dflt_group_name): New static variable.
9542 (dflt_group): Rename from the_group.
9543 (init_user_info): Init dflt_group fields. Get user's group name
9544 from LookupAccountSid.
9545 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
9546 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
9547 New initialization states.
9548 (globals_of_w32): Initialize them to zero. Initialize the default
9549 group name to "None".
9550 (GetFileSecurity_Name): New global var, the name of the function
9551 to call for GetFileSecurity.
9552 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
9553 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
9554 (get_file_security, get_security_descriptor_owner)
9555 (get_security_descriptor_group, is_valid_sid)
9556 (get_file_security_desc, get_rid, get_name_and_id)
9557 (get_file_owner_and_group): New functions.
9558 (stat): Use get_file_security_desc and get_file_owner_and_group to
9559 report the owner and primary group of each file. Don't ignore the
9560 high 32 bits of file's size, now that st_size is 64-bit wide.
9561 Fix test when to get true file attributes.
9562 (init_user_info): Use get_rid instead of equivalent inline code.
9563 (fstat): Don't ignore the high 32 bits of file's size.
9564
95652008-05-09 Chong Yidong <cyd@stupidchicken.com>
9566
9567 * image.c (png_load): Use correct bit-depth for setting background
9568 color.
9569
95702008-05-08 Eli Zaretskii <eliz@gnu.org>
9571
9572 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
9573 epa-hook.elc.
9574
95752008-05-08 Juanma Barranquero <lekktu@gmail.com>
9576
9577 * font.c (Ffont_match_p): Don't use `iff' in docstring.
9578
95792008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
9580
9581 * macfns.c (Fx_create_frame): Make a copy of frame parameters
9582 because the original parameters are in pure storage now.
9583 (mac_window): Remove unused params. Update callers.
9584
95852008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
9586
9587 * lread.c (substitute_object_recurse): Use lower-level primitives.
9588 Don't signal errors when traversing sub-char-tables.
9589 Don't loop over all the possible characters when traversing char-tables.
9590
9591 * print.c (print_preprocess): Add sub-char-tables to the print-table,
9592 just like we do in print.c.
9593
95942008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
9595
9596 * minibuf.c (Ftry_completion): Remove code left over from when we used
9597 scmp instead of Fcompare_strings.
9598
95992008-05-04 Juanma Barranquero <lekktu@gmail.com>
9600
9601 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
9602
96032008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9604
9605 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
9606 Create bitmap context in native byte order.
9607
9608 * macterm.c (XDrawLine)
9609 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
9610 context in native byte order.
9611
96122008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9613
9614 * config.in: Regenerate.
9615
9616 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
9617 New definitions for Image I/O support.
9618 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
9619 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
9620 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
9621 (mac_data_provider_release_data, image_load_image_io)
9622 [USE_MAC_IMAGE_IO]: New functions.
9623 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
9624 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
9625 (init_image_func_pointer) [MAC_OSX]: Remove function.
9626 (image_load_quartz2d) [MAC_OSX]: Check availability of
9627 CGImageCreateWithPNGDataProvider at compile time.
9628 Use lowercase `false' for boolean constant.
9629 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
9630 Use image_load_image_io.
9631 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
9632 Don't check MyCGImageCreateWithPNGDataProvider.
9633 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
9634 Don't call init_image_func_pointer.
9635
9636 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
9637
9638 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
9639 Make variable non-static.
9640 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
9641 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
9642
9643 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
9644 (RED_FROM_ULONG): Mask off higher bits.
9645 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
9646
9647 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
9648 Include AvailabilityMacros.h.
9649 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
9650 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
9651
96522008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
9653
9654 * chartab.c (Fset_char_table_range): If range is t, really set all
9655 chars to that value.
9656
96572008-05-03 Eli Zaretskii <eliz@gnu.org>
9658
9659 * dired.c (Ffile_attributes): Don't allow the device number become
9660 negative.
9661
96622008-05-02 Daiki Ueno <ueno@unixuser.org>
9663
9664 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
9665
96662008-05-02 Juri Linkov <juri@jurta.org>
9667
9668 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
9669 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
9670 DEFAULT argument as a list of default values in docstrings.
9671
96722008-05-01 Chong Yidong <cyd@stupidchicken.com>
9673
9674 * puresize.h (BASE_PURESIZE): Increase to 1210000.
9675
96762008-05-01 Martin Rudalics <rudalics@gmx.at>
9677
9678 * dispnew.c (change_frame_size_1): Preserve small windows when
9679 shrinking frames by calling set_window_height|width with third
9680 arg 2.
9681
9682 * window.h (struct window): Replace field too_small_ok by field
9683 resize_proportionally.
9684
9685 * window.c (make_window): Initialize resize_proportionally.
9686 (enlarge_window): Temporarily set resize_proportionally to make
9687 sure that shrink_windows does scale the window proportionally.
9688 (shrink_windows): When window has resize_proportionally set try
9689 to shrink it proportionally by stealing from other windows.
9690 (struct saved_window, Fset_window_configuration)
9691 (compare_window_configurations): Handle resize_proportionally.
9692 (WINDOW_TOTAL_SIZE): New macro.
9693 (window_min_size, shrink_windows, size_window): Use it.
9694 (check_min_window_sizes): Remove. Invalid values of
9695 window-min-height|width are handled by window_min_size_2 now.
9696 (size_window, Fsplit_window, enlarge_window)
9697 (adjust_window_trailing_edge, grow_mini_window): Don't call
9698 check_min_window_sizes.
9699 (window_min_size_2, window_min_size_1, window_min_size):
9700 New argument safe_p for retrieving "safe" minimum sizes.
9701 (Fdisplay_buffer, Fsplit_window, enlarge_window)
9702 (adjust_window_trailing_edge, grow_mini_window):
9703 Adjust arguments of window_min_size... functions.
9704 (shrink_windows): Argument min_size removed. New argument
9705 safe_p allows shrinking windows to their safe minimum sizes.
9706 Calculate minimum size and decide whether a window shall be
9707 deleted for each window individually.
9708 (size_window): When nodelete_p equals 2, tell shrink_windows to
9709 delete windows only if their new minimum size is no more safe.
9710 (shrink_window_lowest_first): Call window_min_size_1 to make
9711 sure to preserve modeline of bottom-most window when resizing
9712 the minibuffer.
9713 (Fset_window_configuration, Fcurrent_window_configuration)
9714 (compare_window_configurations): Do not handle
9715 window-min-height|width any more.
9716 (syms_of_window): Clarify window-min-height|width doc-strings.
9717
97182008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
9719
9720 * dired.c (file_name_completion): Fix up the encoding/decoding issue
9721 some more. Copy some of the code from Ftry_completions.
9722 Remove special case code that dates back to initial revision when the
9723 slash was only added when necessary and that can't trigger nowadays.
9724
97252008-04-27 Kenichi Handa <handa@m17n.org>
9726
9727 * font.c (font_prop_validate): Signal `error' instead of `font'.
9728
97292008-04-29 Jason Rumney <jasonr@gnu.org>
9730
9731 * w32fns.c (Fw32_battery_status): New defun.
9732 (syms_of_w32fns): Defsubr it.
9733
97342008-04-28 Andreas Schwab <schwab@suse.de>
9735
9736 * dired.c (file_name_completion): Fix another mixing of encoded
9737 and decoded names.
9738
97392008-04-28 Juanma Barranquero <lekktu@gmail.com>
9740
9741 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
9742
97432008-04-27 Juanma Barranquero <lekktu@gmail.com>
9744
9745 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
9746
97472008-04-27 Andreas Schwab <schwab@suse.de>
9748
9749 * dired.c (file_name_completion): Fix inappropriate mixing of
9750 encoded and decoded names.
9751
9752 * xterm.c (XTread_socket): Fix use of uninitialized variable.
9753
9754 * puresize.h (BASE_PURESIZE): Increase to 1200000.
9755
97562008-04-26 Eli Zaretskii <eliz@gnu.org>
9757
9758 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
9759 2008-03-31, it's not needed anymore with `struct stat' definition
9760 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
9761 for the same reasons.
9762
97632008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
9764
9765 * m/sparc.h: Additional redefinitions for GNU/Linux.
9766
97672008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9768
9769 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
9770 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
9771 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
9772 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
9773 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
9774 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
9775 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
9776 Likewise.
9777
9778 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
9779 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
9780 (mac_ax_number_of_characters): Add externs.
9781 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
9782 [USE_MAC_TSM]: Likewise.
9783 (mac_handle_text_input_event) [MAC_OSX]:
9784 Handle kEventTextInputOffsetToPos for no active input area case.
9785 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
9786 (mac_handle_document_access_event)
9787 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
9788 (install_application_handler) [MAC_OSX]: Register handlers for
9789 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
9790 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
9791 Register mac_handle_document_access_event.
9792
9793 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
9794 Make functions non-static.
9795
97962008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
9797
9798 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
9799 (read_file_name_completion_ignore_case, insert_default_directory)
9800 (Qdefault_directory): Move to minibuffer.el.
9801 (Fread_file_name): Call the new `read-file-name' instead.
9802
98032008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9804
9805 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
9806 Make function non-static.
9807 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
9808 Remove function.
9809 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
9810 Move to mactoolbox.c.
9811 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
9812
9813 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
9814 (mac_rect_make): New macro.
9815
9816 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
9817 instead of float.
9818 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
9819 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
9820 (XSetBackground) [USE_CG_DRAWING]: Likewise.
9821 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
9822 CGRectMake.
9823 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
9824 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
9825 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
9826 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
9827 instead of WindowRef in argument type.
9828 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
9829 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
9830 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
9831 instead of DISPLAY. All uses changed.
9832 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
9833 (x_calc_absolute_position): Simplify so as not to use
9834 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
9835
9836 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
9837 instead of WindowRef in argument type.
9838 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
9839 [TARGET_API_MAC_CARBON]: Remove externs.
9840 (create_apple_event, mac_event_parameters_to_lisp)
9841 [TARGET_API_MAC_CARBON]: Add externs.
9842
9843 * mactoolbox.c (Vmac_ts_script_language_on_focus)
9844 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
9845 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
9846 is clicked.
9847 (x_activate_menubar): Remove extern for saved_menu_event_location.
9848 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
9849 Move from mac.c.
9850
98512008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9852
9853 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
9854 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
9855
98562008-04-23 Jason Rumney <jasonr@gnu.org>
9857
9858 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
9859 attributes only for local files.
9860
9861 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
9862 default to Qlocal.
9863
98642008-04-22 Juri Linkov <juri@jurta.org>
9865
9866 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
9867 read-buffer-to-switch instead of using the letter "B".
9868
98692008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
9870
9871 * fileio.c (Qdefault_directory): New variable.
9872 (Fread_file_name): Use it to pass `dir' to the completion functions.
9873
98742008-04-20 Chong Yidong <cyd@stupidchicken.com>
9875
9876 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
9877
98782008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
9879
9880 * keyboard.c (Vpre_help_message): Remove.
9881 (show_help_echo): Remove default C code.
9882
9883 * dired.c (directory_files_internal, file_name_completion):
9884 Only call ENCODE_FILE if the string is indeed decoded.
9885
98862008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
9887
9888 * Makefile.in (TOOLKIT_DEFINES): Remove.
9889 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
9890
98912008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9892
9893 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
9894 (mactoolbox.o): New target.
9895
9896 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
9897 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
9898
9899 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
9900 Use mac_set_frame_window_background instead of XSetWindowBackground.
9901 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
9902 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
9903 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
9904 instead of SetWindowTitleWithCFString.
9905 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
9906 Move function to mactoolbox.c.
9907 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
9908 Use mac_set_window_modified instead of SetWindowModified.
9909 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
9910 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
9911 (Fx_focus_frame): Use mac_front_non_floating_window instead of
9912 FrontNonFloatingWindow. Use mac_activate_window instead of
9913 ActivateWindow. Use mac_active_non_floating_window instead of
9914 ActiveNonFloatingWindow.
9915 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
9916 Use mac_show_hourglass and mac_hide_hourglass.
9917 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
9918 instead of GetGlobalMouse.
9919 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
9920 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
9921 Use mac_bring_window_to_front instead of BringToFront.
9922 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
9923 mactoolbox.c.
9924 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
9925 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
9926 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
9927 mactoolbox.c.
9928
9929 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
9930 (XtPointer): Move typedef from macmenu.c.
9931 (enum button_type): Move enum from macmenu.c.
9932 (widget_value): Move typedef from macmenu.c.
9933 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
9934 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
9935 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
9936 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
9937 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
9938 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
9939 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
9940 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
9941 (Selection): Move typedef from macselect.c.
9942 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
9943 macterm.c.
9944 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
9945 (mac_is_window_collapsed, mac_bring_window_to_front)
9946 (mac_send_window_behind, mac_hide_window, mac_show_window)
9947 (mac_collapse_window, mac_front_non_floating_window)
9948 (mac_active_non_floating_window, mac_activate_window)
9949 (mac_move_window_structure, mac_move_window, mac_size_window)
9950 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
9951
9952 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
9953 (enum mac_menu_kind): Move enum to mactoolbox.c.
9954 (min_menu_id): Move variable to mactoolbox.c.
9955 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
9956 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
9957 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
9958 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
9959 [TARGET_API_MAC_CARBON]: Likewise.
9960 (XtPointer): Move typedef to macgui.h.
9961 (enum button_type): Move enum to macgui.h.
9962 (widget_value): Move typedef to macgui.h.
9963 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
9964 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
9965 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
9966 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
9967 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
9968 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
9969 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
9970 (popup_activated_flag): Make variable non-static.
9971 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
9972 (add_menu_item, fill_menu, dispose_menus):
9973 Move functions to mactoolbox.c.
9974 (restore_show_help_function, menu_target_item_handler)
9975 (install_menu_target_item_handler, mac_handle_dialog_event)
9976 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
9977 [TARGET_API_MAC_CARBON]: Likewise.
9978 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
9979 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
9980 (find_and_call_menu_selection, name_is_separator): Make function
9981 non-static.
9982 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
9983 to mactoolbox.c.
9984 (set_frame_menubar): Don't call install_menu_quit_handler.
9985 (menu_item_selection): New variable.
9986 (mac_menu_show): Use create_and_show_popup_menu.
9987 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
9988 selection but set variable menu_item_selection. All uses changed.
9989 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
9990 Call install_menu_quit_handler. Move to mactoolbox.c.
9991
9992 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
9993 (Selection): Move typedef to macgui.h.
9994 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
9995 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
9996 Make variables non-static.
9997 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
9998 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
9999 Make functions non-static.
10000 (Vmac_service_selection) [MAC_OSX]: Likewise.
10001 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
10002 (mac_valid_selection_target_p, mac_clear_selection)
10003 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10004 (mac_put_selection_value, mac_selection_has_target_p)
10005 (mac_get_selection_value, mac_get_selection_target_list)
10006 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
10007 Move functions to mactoolbox.c.
10008 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
10009 Likewise.
10010 (copy_scrap_flavor_data, mac_handle_service_event)
10011 (install_service_handler) [MAC_OSX]: Likewise.
10012 (syms_of_macselect) <Vmac_dnd_known_types>:
10013 Use mac_dnd_default_known_types.
10014
10015 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
10016 Move to mactoolbox.c.
10017 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
10018 (Fx_selection_owner_p): Add EXFUN.
10019 (install_window_handler, remove_window_handler, XSetWindowBackground):
10020 Remove externs.
10021 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
10022 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
10023 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
10024 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
10025 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
10026 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
10027 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
10028 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
10029 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
10030 (create_and_show_popup_menu, mac_get_selection_from_symbol)
10031 (mac_valid_selection_target_p, mac_clear_selection)
10032 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
10033 (mac_put_selection_value, mac_selection_has_target_p)
10034 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
10035 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
10036 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
10037 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
10038 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
10039 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
10040 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
10041 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
10042 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
10043
10044 * mactoolbox.c: New file.
10045
100462008-04-18 Jason Rumney <jasonr@gnu.org>
10047
10048 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
10049
100502008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
10051
10052 * character.c (Fmultibyte_char_to_unibyte):
10053 Return latin1 chars unchanged.
10054
10055 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
10056 relocated if it points to `name'.
10057
100582008-04-17 Kenichi Handa <handa@m17n.org>
10059
10060 * data.c (Faset): Allow setting a multibyte character in an
10061 ASCII-only unibyte string.
10062
10063 * lisp.h (STRING_SET_MULTIBYTE): New macro.
10064
100652008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
10066
10067 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
10068 done in config.h.
10069
100702008-04-16 Juanma Barranquero <lekktu@gmail.com>
10071
10072 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
10073 (Fchar_direction): Add usage in the docstring.
10074
100752008-04-15 Chong Yidong <cyd@stupidchicken.com>
10076
10077 * keyboard.c (read_key_sequence): Remove always-true checks.
10078
100792008-04-14 Jason Rumney <jasonr@gnu.org>
10080
10081 * w32font.c (w32font_open_internal): Set max_bounds.descent in
10082 compatibility struct, for better underline positioning.
10083
100842008-04-13 David Hansen <david.hansen@gmx.net>
10085
10086 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
10087 string.
10088
100892008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
10090
10091 * m/hp800.h (XUINT, XSET): Remove.
10092
100932008-04-12 Juanma Barranquero <lekktu@gmail.com>
10094
10095 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
10096 previous change.
10097
100982008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
10099
10100 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
10101 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
10102
101032008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10104
10105 * keymap.h (map_keymap_canonical): Declare.
10106 * xmenu.c (single_keymap_panes): Use it.
10107
101082008-04-11 Glenn Morris <rgm@gnu.org>
10109
10110 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
10111 set the target's value to that of the alias.
10112
101132008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10114
10115 * term.c (set_tty_color_mode): Left over typo.
10116
101172008-04-10 Michael Albinus <michael.albinus@gmx.de>
10118
10119 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
10120 only after check for file name handler functions. Signal, when
10121 native functionality is not supported.
10122 (syms_of_fileio): Declare it unconditionally.
10123
101242008-04-10 Jason Rumney <jasonr@gnu.org>
10125
10126 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
10127 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
10128
10129 * w32.c (logon_network_drive): Also logon to remote drives that
10130 are mapped to drive letters.
10131
101322008-04-10 Glenn Morris <rgm@gnu.org>
10133
10134 * xdisp.c (truncate-partial-width-windows): Doc fix.
10135
101362008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
10137
10138 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
10139 Move functions to minibuffer.el.
10140 (syms_of_fileio): Don't declare them.
10141
101422008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
10143
10144 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
10145 (syms_of_minibuf): Remove its initialization.
10146
10147 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
10148
101492008-04-09 Juanma Barranquero <lekktu@gmail.com>
10150
10151 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
10152
101532008-04-09 Jason Rumney <jasonr@gnu.org>
10154
10155 * makefile.w32-in (distclean): Delete makefile too.
10156 (maintainer-clean): New target.
10157
10158 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
10159
10160 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
10161 for new font backend and composite cases.
10162
101632008-04-09 Jan Djärv <jan.h.d@swipnet.se>
10164
10165 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
10166 Most of the code moved to run_timers.
10167 (do_pending_atimers): Call run_timers.
10168 (run_timers): New function.
10169
10170 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
10171 run atimers.
10172
10173 * process.c (wait_reading_process_output): The same as above.
10174
101752008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
10176
10177 * minibuf.c (last_exact_completion): Remove variable.
10178 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
10179 (complete_and_exit_1, complete_and_exit_2)
10180 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
10181 (Fdisplay_completion_list, display_completion_list_1)
10182 (Fminibuffer_completion_help, Fself_insert_and_exit)
10183 (Fexit_minibuffer, Fminibuffer_message): Move functions to
10184 minibuffer.el.
10185 (syms_of_minibuf): Remove corresponding initializations.
10186
10187 * keyboard.c (Qdeactivate_mark): New var.
10188 (command_loop_1): Use it to call `deactivate-mark'.
10189 (syms_of_keyboard): Initialize it.
10190
10191 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
10192 to another frame.
10193 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
10194 Don't call set_tty_color_mode.
10195 (store_frame_param): Reset previous_frame rather than call
10196 set_tty_color_mode.
10197 * term.c (set_tty_color_mode): Rewrite.
10198 * dispextern.h (set_tty_color_mode): New type.
10199 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
10200
102012008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
10202
10203 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
10204 for generic chars, which do not exist any more in emacs-unicode.
10205
102062008-04-08 Michael Albinus <michael.albinus@gmx.de>
10207
10208 * coding.c (detect_coding_emacs_mule)
10209 (Ffind_operation_coding_system): Fix typo.
10210
102112008-04-08 Jason Rumney <jasonr@gnu.org>
10212
10213 * w32uniscribe.c (SNAME): Extract only symbol name.
10214
10215 * w32font.h (struct w32_metric_cache): New struct.
10216 (w32font_info): Use it.
10217 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
10218 (CACHE_BLOCKSIZE): New constants.
10219
10220 * w32font.c (Qja, Qko, Qzh): New symbols.
10221 (syms_of_w32font): Initialise them.
10222 (font_matches_spec): Use them to filter by language.
10223 (recompute_cached_metrics): Remove function.
10224 (compute_metrics, clear_cached_metrics): New functions.
10225 (w32font_encode_char): Use them to manage metric cache.
10226 (w32font_text_extents): Cache metrics for all glyphs on demand.
10227 Delay converting glyph indices to WORD until needed.
10228 (w32font_open_internal): Initialize metric cache to empty.
10229 (registry_to_w32_charset): Charset should always be a symbol.
10230 (fill_in_logfont, list_all_matching_fonts): Family should
10231 always be a symbol.
10232
102332008-04-06 Jason Rumney <jasonr@gnu.org>
10234
10235 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
10236 Give up if glyph indices not supported. Use uniscribe obtained
10237 ABC widths for individual metrics. Map glyph clusters back to
10238 characters using fClusterStart flag. Return number of glyphs
10239 produced, not chars processed.
10240 (uniscribe_shape): Map char at FROM to current glyph.
10241
102422008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10243
10244 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
10245 Use SetMenuItemHierarchicalMenu.
10246
102472008-04-05 Jason Rumney <jasonr@gnu.org>
10248
10249 * image.c (pbm_load): Allow color values up to 65535.
10250 Throw an error if max_color_idx is outside the supported range.
10251 Report an error when image size is invalid.
10252 Read two bytes at a time when raw images have max_color_idx above 255.
10253
102542008-04-05 Eli Zaretskii <eliz@gnu.org>
10255
10256 * w32.c (readdir): If FindFirstFile/FindNextFile return in
10257 cFileName a file name that includes `?' characters, use the 8+3
10258 alias in cAlternateFileName instead.
10259
102602008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
10261
10262 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
10263 append "CCL: Quitted" when the CCL program is quitted.
10264 (setup_ccl_program): Initialize ccl->quit_silently to zero.
10265
10266 * ccl.h (struct ccl_program): New member quit_silently.
10267
102682008-04-05 Chong Yidong <cyd@stupidchicken.com>
10269
10270 * search.c (compile_pattern_1): Treat non-nil and non-string of
10271 search-spaces-regexp as nil.
10272
10273 * minibuf.c (Fassoc_string): Tweak docstring.
10274
102752008-04-05 Eli Zaretskii <eliz@gnu.org>
10276
10277 * dired.c (Ffile_attributes): Support inode numbers wider than 32
10278 bits. Remove ugly WINDOWSNT-specific kludge introduced on
10279 2008-03-14 to force inode be positive.
10280
10281 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
10282 _S_* ones, since we now use our own sys/stat.h.
10283 (stat, fstat): Don't mangle the inode number.
10284 (init_user_info): Don't restrict UID and GID to 0-60000 range.
10285
102862008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
10287
10288 * frame.h (struct frame): Give one more bit to `visible' since we use
10289 values larger than 1 to indicate obscured frames on ttys.
10290
10291 * keymap.c (Qkeymap_canonicalize): New var.
10292 (Fmap_keymap_internal): New fun.
10293 (describe_map): Use keymap-canonicalize.
10294
10295 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
10296 (Fundo_boundary): Set them.
10297 (syms_of_undo): Initialize them.
10298 (record_point): Use them instead of last_point_position*.
10299 (last_undo_buffer): Change type.
10300
103012008-04-04 Jason Rumney <jasonr@gnu.org>
10302
10303 * w32font.c (w32font_text_extents): Use font's ascent and descent.
10304 (recompute_cached_metrics): Don't set ascent and descent per char.
10305
10306 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
10307 (uniscribe_check_otf): Add GC protection before consing.
10308 Rearrange loop for counting features.
10309
103102008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
10311
10312 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
10313 buffer with byte-size of source buffer.
10314
103152008-04-03 Chong Yidong <cyd@stupidchicken.com>
10316
10317 * callint.c (Fcall_interactively): Handle temporary region even
10318 when shift-select-mode is off.
10319
103202008-04-03 Jason Rumney <jasonr@gnu.org>
10321
10322 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
10323
103242008-04-03 Kenichi Handa <handa@m17n.org>
10325
10326 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
10327 (CATEGORY_MASK_UTF_16): Likewise.
10328 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
10329 binary file.
10330 (detect_coding): Add null-byte detection for a binary file.
10331 (detect_coding_system): Likewise.
10332
103332008-04-03 Jason Rumney <jasonr@gnu.org>
10334
10335 * w32uniscribe.c: New file.
10336
10337 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
10338
10339 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
10340
10341 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
10342 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
10343 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
10344 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
10345 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
10346 (Qphonetic): New symbols.
10347 (syms_of_w32font): Initialize them.
10348 (font_supported_scripts): Use them.
10349 (w32font_list_family): List all charsets.
10350 (w32font_text_extents, recompute_cached_metrics): Fix metric
10351 calculations.
10352 (w32_enumfont_pattern_entity): Make full_type a DWORD.
10353 Give opentype fonts their own format.
10354 (font_matches_spec): New arguments backend and logfont.
10355 Handle :otf spec for uniscribe backend.
10356 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
10357 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
10358
10359 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
10360 font backend.
10361 (globals_of_w32fns): Initialize uniscribe font backend.
10362
10363 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
10364 dependencies.
10365 (w32uniscribe.$(O)): New file to build.
10366 (FONT_OBJ): Include w32uniscribe.$(O).
10367 (LIBS): Add uniscribe libraries.
10368
10369 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
10370
103712008-04-02 Chong Yidong <cyd@stupidchicken.com>
10372
10373 * callint.c (Vshift_select_mode): New var.
10374 (Finteractive): Document new ^ spec.
10375 (Fcall_interactively): Call handle-shift-selection if the ^ spec
10376 is present.
10377
10378 * keyboard.c (Vthis_command_keys_shift_translated): New var.
10379 (command_loop_1): Avoid running the direct display versions of
10380 forward-char and backward-char if shift-selection may occur.
10381 (read_key_sequence): Set Vthis_command_keys_shift_translated if
10382 shift-translation takes place.
10383
10384 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
10385 avoid clobbering by define-minor-mode.
10386
10387 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
10388 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
10389
10390 * syntax.c (Fforward_word): Add ^ interactive spec.
10391
10392 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
10393 (Fscroll_right): Add ^ interactive spec.
10394
103952008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
10396
10397 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
10398
10399 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
10400
10401 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
10402
104032008-03-31 Juri Linkov <juri@jurta.org>
10404
10405 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
10406
104072008-03-30 Jan Djärv <jan.h.d@swipnet.se>
10408
10409 * gtkutil.c (xg_set_geometry): Fix indentation.
10410 (xg_resize_outer_widget): Remove.
10411 (x_wm_size_hint_off): Fix indentation.
10412 (xg_frame_set_char_size): Call flush_and_sync after
10413 gtk_window_resize.
10414 (x_wm_set_size_hint): Pass NULL as geometry window to
10415 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
10416 Add menu bar and tool bar height to base height.
10417 (xg_update_frame_menubar, free_frame_menubar)
10418 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
10419 (update_frame_tool_bar, free_frame_tool_bar):
10420 Change xg_resize_outer_widget to xg_frame_set_char_size.
10421
104222008-03-30 Michael Albinus <michael.albinus@gmx.de>
10423
10424 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
10425 (Fdbus_call_method): New parameter TIMEOUT.
10426 (dbus-send-signal): Optimize UNGCPRO call.
10427
104282008-03-29 Juri Linkov <juri@jurta.org>
10429
10430 * window.c (Fdisplay_buffer): Move call to
10431 Vsplit_window_preferred_function out of conditions that check
10432 if window is eligible for vertical splitting.
10433 When Vsplit_window_preferred_function is non-nil, call it and use
10434 its non-nil return value as window. Otherwise, continue doing
10435 vertical splitting using Fsplit_window with arg horflag=nil.
10436 (syms_of_window) <Vsplit_window_preferred_function>: Change the
10437 default value from `split-window' to nil.
10438
104392008-03-29 Juri Linkov <juri@jurta.org>
10440
10441 * callint.c (Fcall_interactively): Revert 2008-03-16 change
10442 for interactive code letters 'b' and 'B'.
10443
104442008-03-29 Eli Zaretskii <eliz@gnu.org>
10445
10446 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
10447 multibyte string.
10448
104492008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
10450
10451 * keyboard.c (pending_funcalls): New var.
10452 (timer_check): Run it.
10453 (syms_of_keyboard): Initialize it.
10454 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
10455 (Vdelete_terminal_functions): New vars.
10456 (syms_of_terminal): Initialize them.
10457 (Fdelete_terminal): Run delete-terminal-functions.
10458 * xdisp.c (safe_eval): Rewrite.
10459 (safe_call2): New fun.
10460 * frame.c (Qdelete_frame_functions): New var.
10461 (syms_of_frame): Initialize it.
10462 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
10463 * lisp.h (safe_call2, pending_funcalls): Declare.
10464
104652008-03-28 Andreas Schwab <schwab@suse.de>
10466
10467 * indent.c (Fmove_to_column): Move declaration before statements.
10468
104692008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
10470
10471 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
10472 (struct frame): Use bit fields for boolean vars.
10473
10474 * process.c (server_accept_connection): Simplify naming.
10475 (emacs_get_tty_pgrp): Use SDATA.
10476
10477 * coding.c (decode_coding_object): Fix last change.
10478
104792008-03-27 Jason Rumney <jasonr@gnu.org>
10480
10481 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
10482
104832008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
10484
10485 * charset.c (Fdefine_charset_internal): Change the way of
10486 registering charsets in Vcharset_order_list.
10487 (syms_of_charset): Make the charset `eight-bit' supplementary.
10488
104892008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
10490
10491 * regex.c (EXTEND_BUFFER): Change order of pointer addition
10492 operations, to avoid having the difference between pointers
10493 overflow.
10494
104952008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
10496
10497 * indent.c (check_display_width): New fun.
10498 (scan_for_column): Use it.
10499
10500 * data.c (syms_of_data): Mark most-positive-fixnum and
10501 most-negative-fixnum as constants.
10502
10503 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
10504
10505 * indent.c (scan_for_column): Extract from current_column_1.
10506 Merge with the same code from Fmove_to_column.
10507 (current_column_1, Fmove_to_column): Use it.
10508
105092008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
10510
10511 * keymap.c (map_keymap_internal): New fun.
10512 (map_keymap): Use it.
10513 (Fmap_keymap_internal): New fun.
10514 (Fmap_keymap): Remove left-out test from before make_save_value.
10515
10516 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
10517
10518 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
10519 Use XCAR/XCDR.
10520
10521 * process.h (struct Lisp_Process): Remove filter_multibyte.
10522 * process.c (QCfilter_multibyte): Remove.
10523 (setup_process_coding_systems): Don't use filter_multibyte.
10524 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
10525 (read_process_output): Don't adjust multibyteness to filter_multibyte.
10526 (Fset_process_filter_multibyte): Change the coding-system to
10527 approximate the previous behavior.
10528 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
10529 coding-system.
10530
10531 * coding.c (decode_coding_object): When not decoding into a buffer,
10532 obey the coding system's preference of (uni|multi)byte.
10533
105342008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
10535
10536 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
10537 every char is changed and has a different byte-length.
10538 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
10539 Fix int -> EMACS_INT.
10540
105412008-03-23 David Hansen <david.hansen@gmx.net>
10542
10543 * dbusbind.c (xd_read_message): Remove extra copying of message
10544 strings. Check for NULL `interface' or `member'.
10545
105462008-03-22 Eli Zaretskii <eliz@gnu.org>
10547
10548 * w32.c (readdir): If FindFirstFile/FindNextFile return in
10549 cFileName a file name that includes `?' characters, use the 8+3
10550 alias in cAlternateFileName instead.
10551
105522008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
10553
10554 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
10555
105562008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
10557
10558 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
10559 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
10560 work on current_buffer only instead (that was already the case
10561 for some of the code anyway).
10562 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
10563 (temp_set_point, temp_set_point_both): Use EMACS_INT.
10564 (SET_PT, SET_PT_BOTH): Adjust.
10565 * intervals.h (set_point, temp_set_point, set_point_both)
10566 (temp_set_point_both): Remove redundant declarations.
10567
105682008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
10569
10570 * fileio.c (Finsert_file_contents):
10571 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
10572 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
10573 when buffer != current_buffer anyway.
10574
105752008-03-20 Andreas Schwab <schwab@suse.de>
10576
10577 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
10578 as default.
10579
105802008-03-19 Jason Rumney <jasonr@gnu.org>
10581
10582 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
10583 (syms_of_w32fns): Initialize them.
10584 (HOURGLASS_ID): New constant.
10585 (x_window_to_frame): Don't check hourglass_window.
10586 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
10587 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
10588 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
10589 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
10590 Only change the cursor if hourglass is not active.
10591 (Fx_create_frame): Initialize frame's current_cursor.
10592 (hourglass_atimer): Remove.
10593 (hourglass_started): New function.
10594 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
10595 (show_hourglass): Adapt to w32, changing argument to frame.
10596
10597 * w32term.h (struct w32_output): Remove hourglass_window.
10598 Add current_cursor.
10599
10600 * eval.c (call_debugger, Fsignal):
10601 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
10602 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
10603 (Fexecute_extended_command, cancel_hourglass_unwind):
10604 * minibuf.c (read_minibuf):
10605 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
10606
106072008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
10608
10609 * window.c (run_funs): New fun.
10610 (run_window_configuration_change_hook): Use it to run the buffer-local
10611 and the global part of the hook.
10612
10613 * xdisp.c (format_mode_line_unwind_data): Add window argument.
10614 (unwind_format_mode_line): Restore selected window.
10615 (x_consider_frame_title, Fformat_mode_line): Set selected window.
10616
106172008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
10618
10619 * editfns.c (Fchar_equal): Check they are valid characters.
10620
10621 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
10622
106232008-03-17 Andreas Schwab <schwab@suse.de>
10624
10625 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
10626 against a charset.
10627
10628 * lisp.h (Fbuffer_list): Declare.
10629
106302008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 10631
aac0c6e3
MR
10632 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
10633 handlebox_widget is != 0.
10634
106352008-03-16 Juri Linkov <juri@jurta.org>
10636
10637 * callint.c (Fcall_interactively): For interactive code letters
10638 'b' and 'B' put the buffer list into the list of default "future"
10639 values of the minibuffer.
10640
106412008-03-16 Andreas Schwab <schwab@suse.de>
10642
10643 * keyboard.c (read_key_sequence): Fix downcasing of letters with
10644 modifiers.
10645
10646 * regex.c (re_match_2_internal): Correct matching of a charset
10647 against latin-1 characters.
10648
106492008-03-16 Kenichi Handa <handa@m17n.org>
10650
10651 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
10652 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
10653 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
10654 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
10655 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
10656 CHAR_STRING_ADVANCE.
10657 (produce_chars): Fix for the case that the source and the
10658 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
10659 instead of CHAR_STRING_ADVANCE.
10660 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
10661 STRING_CHAR_ADVANCE.
10662
106632008-03-15 Andreas Schwab <schwab@suse.de>
10664
10665 * regex.c (re_match_2_internal): Correct matching of eight bit
10666 characters in unibyte strings.
10667
106682008-03-15 Martin Rudalics <rudalics@gmx.at>
10669
10670 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
10671 at end of range when it coincides with the end of the buffer.
10672
106732008-03-14 Eli Zaretskii <eliz@gnu.org>
10674
10675 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
10676
10677 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
10678
106792008-03-14 Jason Rumney <jasonr@gnu.org>
10680
10681 * editfns.c (initial_tz): New variable.
10682 (syms_of_editfns): Initialize it.
10683 (Fset_time_zone_rule): Set it when first called.
10684 Use it when TZSTRING is nil.
10685
10686 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
10687 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
10688 (monitor_from_point_fn, get_monitor_info_fn): New globals.
10689 (globals_of_w32fns): Initialize them.
10690 (compute_tip_xy): Use them to position tooltips.
10691
106922008-03-14 Glenn Morris <rgm@gnu.org>
10693
10694 * emacs.c (main): Revert previous change.
10695 (standard_args): Revert -internal-script back to -scriptload,
10696 and remove the long-option form.
10697
106982008-03-13 Glenn Morris <rgm@gnu.org>
10699
10700 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
10701 Remove option -enable-font-backend.
10702
107032008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
10704
10705 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
10706
107072008-03-11 Jan Djärv <jan.h.d@swipnet.se>
10708
10709 * xterm.c (x_connection_closed): For GTK: If this is the last
10710 terminal just exit without closing the display.
10711
107122008-03-11 Jason Rumney <jasonr@gnu.org>
10713
10714 * w32font.c (w32font_full_name): Use floor to round.
10715
f0131492 107162008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
10717
10718 * sound.c (alsa_configure): Declare vol at beginning of block.
10719
10720 * fontset.c (Ffontset_info): Remove extra semicolon.
10721
107222008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
10723
10724 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
10725 size of resulting string.
10726
107272008-03-10 Jason Rumney <jasonr@gnu.org>
10728
10729 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
10730
107312008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10732
10733 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
10734 Don't pretend as if characters with display property haven't been
10735 consumed for string-replacing-string case.
10736
107372008-03-08 Kim F. Storm <storm@cua.dk>
10738
10739 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
10740 (get_next_display_element, next_element_from_string)
10741 (next_element_from_ellipsis, next_element_from_buffer): Use it.
10742
107432008-03-08 Andreas Schwab <schwab@suse.de>
10744
10745 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
10746
107472008-03-06 Jason Rumney <jasonr@gnu.org>
10748
10749 * w32font.c (w32_registry): Take font_type argument. Use ANSI
10750 when charset not specified. Only translate ANSI to unicode when
10751 font_type is truetype.
10752 (w32font_coverage_ok): New function.
10753 (add_font_entity_to_list): Use it to filter unsuitable fonts.
10754
107552008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
10756
10757 * lread.c (Fread_char): Resolve modifiers.
10758 (Fread_char_exclusive): Likewise.
10759
10760 * character.c (char_resolve_modifier_mask): New function.
10761 (char_string): Use char_resolve_modifier_mask.
10762 (Fchar_resolve_modifiers): New function.
10763 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
10764 function.
10765
107662008-03-04 Jason Rumney <jasonr@gnu.org>
10767
10768 * makefile.w32-in: Always include w32font.c in the build.
10769 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
10770
107712008-03-04 Andreas Schwab <schwab@suse.de>
10772
10773 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
10774 (versionclean): Likewise.
10775
107762008-03-04 Juanma Barranquero <lekktu@gmail.com>
10777
10778 * .cvsignore: Add oo.
10779
107802008-03-03 Andreas Schwab <schwab@suse.de>
10781
10782 * coding.c (decode_coding_object): Inhibit gap shrinking while
10783 decoding in place.
10784
107852008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
10786
10787 * w32term.c: Remove unused include "gnu.h".
10788 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
10789
10790 * gnu.h: Rename to ...
10791 * emacs-icon.h: ... this.
10792 * xterm.c: Use emacs-icon.h instead of gnu.h.
10793 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
10794
107952008-03-03 Juanma Barranquero <lekktu@gmail.com>
10796
10797 * w32font.c: Include math.h.
10798
107992008-03-03 Jason Rumney <jasonr@gnu.org>
10800
10801 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
10802 Compute options separately.
10803 (w32font_open_internal): Set glyph_idx before caching metrics.
10804
10805 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
10806 Define if system headers don't.
10807 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
10808 (w32font_encode_char): Don't declare here.
10809
10810 * w32font.c (Quniscribe, QCformat): New symbols.
10811 (syms_of_w32font): Define them.
10812 (w32font_has_char): Indicate uncertainty.
10813 (w32font_encode_char): Encode as glyph point. Make static.
10814 (recompute_cached_metrics): New function.
10815 (w32font_open_internal): Use it. Set font to use glyph points
10816 initially. Set format based on type of font.
10817 (w32font_text_extents, w32font_draw): Optionally use glyph points.
10818 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
10819 on it. Set format based on information available here.
10820 (add_font_entity_to_list): Identify backend based on opentype_only.
10821
108222008-03-02 Andreas Schwab <schwab@suse.de>
10823
10824 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
10825
10826 * coding.c (decode_coding_big5, produce_chars):
10827 Fix typos in last change.
10828
108292008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
10830
10831 * gnu.h: New icon.
10832
108332008-03-02 Kenichi Handa <handa@m17n.org>
10834
10835 * coding.c (decode_coding_utf_8): When eol-type of CODING is
10836 `dos', don't decode '\r' if that is the last in the source.
10837 (decode_coding_utf_16, decode_coding_emacs_mule)
10838 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
10839 (decode_coding_raw_text, decode_coding_charset): Likewise.
10840 (produce_chars): Don't decode EOL here. Use EMACS_INT.
10841
108422008-03-01 Jason Rumney <jasonr@gnu.org>
10843
10844 * w32font.c (w32font_full_name): Report point size for scalable fonts.
10845
108462008-03-01 Kim F. Storm <storm@cua.dk>
10847
10848 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
10849
108502008-03-01 Jason Rumney <jasonr@gnu.org>
10851
10852 * w32font.c (w32font_full_name): New function.
10853 (w32font_open_internal): Use it.
10854
108552008-03-01 Kim F. Storm <storm@cua.dk>
10856
10857 * dispnew.c (line_draw_cost): Fix invalid glyph check.
10858
108592008-03-01 Jason Rumney <jasonr@gnu.org>
10860
10861 * font.c (font_unparse_fcname): Increase len when style is a symbol.
10862
108632008-03-01 Jan Djärv <jan.h.d@swipnet.se>
10864
10865 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
10866 xg_frame_resized when the event is for the edit widget.
10867
10868 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
10869
10870 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
10871 set_char_size.
10872 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
10873 operations on widgets here. Just set frame size if needed.
10874 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
10875 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
10876 (x_wm_set_size_hint): Set size hints on the edit widget only, not
10877 the whole frame.
10878 (xg_create_tool_bar): Move attachment of the tool bar to
10879 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
10880 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
10881
108822008-03-01 Jason Rumney <jasonr@gnu.org>
10883
10884 * w32fns.c (w32_msg_pump): Disable debug code.
10885
108862008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10887
10888 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
10889
108902008-02-29 Chong Yidong <cyd@stupidchicken.com>
10891
10892 * xdisp.c (next_overlay_string): Don't set
10893 overlay_strings_at_end_processed_p if we're currently reading from
10894 a display string.
10895
108962008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
10897
10898 * xdisp.c (get_overlay_strings_1): Fix typo.
10899
109002008-02-29 Chong Yidong <cyd@stupidchicken.com>
10901
10902 * xdisp.c (get_overlay_strings_1): Add missing argument type.
10903
109042008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
10905
10906 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
10907
10908 * xdisp.c (display_mode_element): Cancel the previous change.
10909 (decode_mode_spec): Likewise.
10910 (handle_auto_composed_prop): Don't make composition if it->string
10911 is a string.
10912
109132008-02-27 Kim F. Storm <storm@cua.dk>
10914
10915 * lisp.h (GLYPH): Change type from int to struct with separate char
10916 and face_id members.
10917 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
10918 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
10919 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
10920 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
10921 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
10922 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
10923 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
10924 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
10925 handle new Lisp glyph code encoding, either an integer or a cons.
10926
10927 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
10928 (GLYPH_ALIAS): Delete.
10929 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
10930 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
10931 (GLYPH_FROM_CHAR): Replace macro by ...
10932 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
10933
10934 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
10935 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
10936 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
10937 (GLYPH_INVALID_P): New macro.
10938 (spec_glyph_lookup_face): Update prototype.
10939
10940 * dispnew.c (line_draw_cost): Adapt to new glyph type.
10941 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
10942 new glyph code encoding.
10943 (spec_glyph_lookup_face): No return value; update passed glyph instead.
10944 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
10945
10946 * xdisp.c (get_next_display_element, next_element_from_display_vector):
10947 Adapt to new glyph type and new glyph code encoding.
10948
10949 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
10950
10951 * indent.c (current_column, current_column_1, Fmove_to_column)
10952 (compute_motion): Adapt to new glyph code encoding.
10953
10954 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
10955
109562008-02-27 Chong Yidong <cyd@stupidchicken.com>
10957
10958 * process.c (wait_reading_process_output): Check for window
10959 changes caused by timers.
10960 Suggested by Johan Bockgård.
10961
109622008-02-27 Glenn Morris <rgm@gnu.org>
10963
10964 * emacs.c (USAGE1): Add `--disable-font-backend'.
10965
109662008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
10967
10968 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
10969 is made to the buffer.
10970
109712008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
10972
10973 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
10974 (face_at_string_position):
10975 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
10976 (face_at_string_position):
10977 * xdisp.c (display_string, next_overlay_change):
10978 * buffer.h (overlays_at):
10979 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
10980 Update callers.
10981
109822008-02-26 Chong Yidong <cyd@stupidchicken.com>
10983
10984 * editfns.c (Fformat): Doc fix.
10985
109862008-02-26 Juanma Barranquero <lekktu@gmail.com>
10987
10988 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
10989 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
10990 (Ffont_otf_alternates, Fquery_font): Doc fixes.
10991
109922008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
10993
10994 * buffer.c (Fbuffer_swap_text): New function.
10995 (syms_of_buffer): Defsubr it.
10996
109972008-02-25 Chong Yidong <cyd@stupidchicken.com>
10998
10999 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
11000
110012008-02-25 Jason Rumney <jasonr@gnu.org>
11002
11003 * w32font.c (w32font_draw): Draw one character at a time when padding.
11004
110052008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
11006
11007 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
11008 Handle a nil arg. Use run_window_configuration_change_hook.
11009 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
11010 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
11011 Use run_window_configuration_change_hook.
11012
110132008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
11014
11015 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
11016 1-pixel width.
11017
110182008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
11019
11020 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
11021 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
11022 if the glyph in the font is zero pixel with.
11023
11024 * dispextern.h (struct glyph_string): New member padding_p.
11025
11026 * w32font.c (w32font_draw): Pay attention to s->padding_p.
11027
11028 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
11029
11030 * xfont.c (xfont_draw): Pay attention to s->padding_p.
11031
11032 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
11033
11034 * font.c: If the font driver doesn't have `shape' function, return Qnil.
11035
110362008-02-25 Jason Rumney <jasonr@gnu.org>
11037
11038 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
11039
110402008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
11041
11042 Allow fine-grained image-cache flushing.
11043 * dispextern.h (struct image): Add `dependencies' field.
11044 (clear_image_caches): Change arg to Lisp_Object.
11045 * image.c (make_image): Initialize `dependencies' field.
11046 (clear_image_cache): Change arg to allow fine-grained flushing.
11047 Perform the flush even if image-cache-eviction-delay is nil.
11048 (clear_image_caches): Change arg to Lisp_Object.
11049 (Fclear_image_cache): Expand meaning of the argument.
11050 (mark_image): Mark `dependencies' field.
11051 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
11052 (lface_hash): Use XHASH rather than XFASTINT.
11053 (face_at_buffer_position): Fix int -> EMACS_INT position.
11054 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
11055 (select_frame_for_redisplay): Remove code duplication.
11056 (redisplay_internal): Adapt arg to call to clear_image_caches.
11057
110582008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
11059
11060 * s/vms4-0.h:
11061 * s/vms4-2.h:
11062 * s/vms4-4.h:
11063 * s/vms5-5.h: Remove, unused.
11064
11065 * s/irix5-2.h:
11066 * s/irix6-0.h:
11067 * s/riscos5.h:
11068 * s/mach-bsd4-3.h:
11069 * m/mips4.h: Remove files for obsolete systems.
11070
11071 * Makefile.in:
11072 * filelock.c:
11073 * unexmips.c:
11074 * m/hp9000s300.h:
11075 * m/iris4d.h:
11076 * s/aix3-1.h:
11077 * s/hpux.h:
11078 * s/msdos.h:
11079 * s/usg5-0.h:
11080 * s/usg5-2-2.h:
11081 * s/usg5-2.h:
11082 * s/usg5-3.h: Remove references to obsolete variables.
11083
11084 * s/irix5-0.h: Remove, move all the contents ...
11085 * s/irix6-5.h: ... here. Simplify.
11086 * config.in: Regenerate.
11087
110882008-02-24 Jason Rumney <jasonr@gnu.org>
11089
11090 * w32term.c (x_draw_glyph_string_background): Clear the background
11091 manually when cleartype is in use.
11092 (x_draw_glyph_string_foreground): Draw text transparently when
11093 cleartype is in use.
11094
11095 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
11096 a font into it unless we have to.
11097
110982008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11099
11100 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
11101 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 11102
aac0c6e3
MR
111032008-02-18 Jason Rumney <jasonr@gnu.org>
11104
11105 * w32fns.c (Fw32_shell_execute): Encode parameters.
11106
111072008-02-09 Eli Zaretskii <eliz@gnu.org>
11108
11109 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
11110
111112008-02-05 Juanma Barranquero <lekktu@gmail.com>
11112
11113 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
11114
111152008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
11116
11117 * xterm.c (x_set_offset): Don't change the gravity if
11118 CHANGE_GRAVITY is -1.
11119
111202008-02-23 Chong Yidong <cyd@stupidchicken.com>
11121
11122 * fileio.c (auto_save_error_occurred): New var.
11123 (auto_save_error): Set it.
11124 (Fdo_auto_save): Don't overwrite the error message if an auto-save
11125 error occurred.
11126
111272008-02-23 Eli Zaretskii <eliz@gnu.org>
11128
11129 * w32.c (globals_of_w32): Add initializations for
11130 g_b_init_get_sid_sub_authority and
11131 g_b_init_get_sid_sub_authority_count.
11132
111332008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
11134
11135 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
11136 (font_parse_xlfd): Use them for sanity check.
11137 (Finternal_set_font_style_table): Make sure the table is bijective.
11138
11139 Consolidate the image_cache to the terminal struct.
11140 * termhooks.h (P_): Remove redundant def.
11141 (struct terminal): New field `image_cache'.
11142 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
11143 of FRAME_X_IMAGE_CACHE.
11144 * xterm.h (struct x_display_info): Remove image_cache field.
11145 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11146 * w32term.h (struct w32_display_info): Remove image_cache field.
11147 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11148 * macterm.h (struct mac_display_info): Remove image_cache field.
11149 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
11150 * xterm.c (x_term_init):
11151 * w32term.c (w32_term_init):
11152 * macterm.c (mac_term_init): Set the image_cache in the terminal.
11153 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
11154 Remove declarations.
11155 (clear_image_caches, mark_image_cache): New declarations.
11156 * xfaces.c (clear_face_cache):
11157 * xdisp.c (redisplay_internal): Use clear_image_caches.
11158 * image.c (clear_image_cache): Don't check that a frame is on
11159 a window-system before checking if it shares the same cache.
11160 (clear_image_caches): New function.
11161 (Fclear_image_cache): Use it.
11162 (mark_image): Move from allo.c.
11163 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
11164 * alloc.c (mark_image, mark_image_cache): Move to image.c.
11165 (mark_object): Don't call mark_image_cache for frames.
11166 (mark_terminals): Call mark_image_cache.
11167
11168 * lisp.h (Fdelete_terminal): Declare.
11169
11170 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
11171 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
11172 wrong_type_argument.
11173
111742008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
11175
11176 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
11177 malayalam.el, and tamil.el. Add sinhala.el.
11178
111792008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
11180
11181 * xterm.c (x_connection_closed): Consolidate identical tests.
11182 (x_delete_terminal): Don't crash if called via x_connection_closed.
11183
111842008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
11185
11186 * xdisp.c (decode_mode_spec): New arg string.
11187 (display_mode_element): Adjust for the above change.
11188
111892008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
11190
11191 * callint.c (Fcall_interactively): Use AREF.
11192
111932008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
11194
11195 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
11196
111972008-02-18 Jan Djärv <jan.h.d@swipnet.se>
11198
11199 * xfns.c (Fx_show_tip): Set string to " " if empty.
11200
112012008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
11202
11203 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
11204 with Qt.
11205
112062008-02-17 Kenichi Handa <handa@m17n.org>
11207
11208 * ftfont.c (ftfont_shape): Return Lispy number.
11209
11210 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
11211 for GCs.
11212 (Finternal_set_font_selection_order): Call font_update_sort_order
11213 only when enable_font_backend is set.
11214 (realize_x_face): Set face->font_info to that of default face only
11215 when enable_font_backend is set.
11216
11217 * xdisp.c (handle_composition_prop): Set it->c to the fist
11218 character of the composed region.
11219 (fill_composite_glyph_string): Set base_face->font_info to
11220 s->font_info. Get a face for ascii from base_face->ascii_face.
11221 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
11222 with a face already decided.
11223 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
11224 non-negative.
11225 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
11226 call font_prepare_composition unconditionally.
11227
11228 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
11229
11230 * xterm.h (struct x_display_info): New member font.
11231
11232 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
11233 (x_set_mouse_face_gc, x_new_font): Likewise.
11234 (x_term_init): Setup display_info->font.
11235 (x_delete_terminal): Free display_info->font.
11236
11237 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
11238
11239 * ftxfont.c (ftxfont_default_fid): Delete it.
11240 (ftxfont_open): Set xfont->fid to 0.
11241 (ftxfont_end_for_frame): Clear data specific to the frame and the
11242 font-driver.
11243
11244 * xftfont.c (xftfont_default_fid): Delete it.
11245 (xftfont_open): Set xfont->fid to 0.
11246
11247 * fontset.c (FONTSET_OBJLIST): New macro.
11248 (fontset_find_font): Update font-object list of the fontset.
11249 (free_realized_fontset): New function.
11250 (free_face_fontset): Call free_realized_fontset.
11251 (Ffont_info): Call font_close_object only when enable_font_backend
11252 is set.
11253
11254 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
11255 [HAVE_NTGUI]: Include w32term.h.
11256 [MAC_OS]: Include macterm.ch.
11257 (font_otf_ValueRecord): Use make_number.
11258 (font_finish_cache): Fix handling of reference count.
11259 (font_clear_cache): Update num_fonts.
11260 (font_open_entity): Update smallest_char_width and
11261 smallest_font_height of the frame.
11262 (font_close_object): Update num_fonts.
11263 (Fclear_font_cache): Fix finding the target cache data.
11264
112652008-02-16 Glenn Morris <rgm@gnu.org>
11266
11267 * fontset.c (Finternal_char_font): Fix compilation warning.
11268
112692008-02-16 Eli Zaretskii <eliz@gnu.org>
11270
11271 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
11272 instead of char arrays. Enlarge the size of array passed to
11273 get_token_information.
11274
11275 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
11276 warnings.
11277
112782008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
11279
11280 * .gdbinit: Don't set `args', it breaks gdb --args.
11281
112822008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
11283
11284 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
11285 within a narrowed buffer.
11286
112872008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
11288
11289 * coding.c (decode_coding_object, encode_coding_object):
11290 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
11291
112922008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
11293
11294 * coding.c (coding_set_destination): Use BEG_BYTE rather than
11295 hardcoding 1.
11296 (detect_coding_system):
11297 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
11298 (string_char_to_byte, string_byte_to_char, insert_from_gap):
11299 * insdel.c (insert_from_gap):
11300 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
11301 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
11302 (string_to_multibyte):
11303 * character.c (chars_in_text, multibyte_chars_in_text):
11304 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
11305
11306 * character.h (FETCH_STRING_CHAR_ADVANCE)
11307 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
11308 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
11309 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
11310
11311 * casefiddle.c (casify_region): Only call after-change and composition
11312 functions on the part of the region that was changed.
11313
11314 * keyboard.c (read_avail_input):
11315 * frame.c (Fdelete_frame): Call Fdelete_terminal.
11316
113172008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
11318
11319 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
11320 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
11321
113222008-02-11 Juanma Barranquero <lekktu@gmail.com>
11323
11324 * w32menu.c (push_submenu_start, push_submenu_end)
11325 (push_left_right_boundary, push_menu_pane, push_menu_item):
11326 * keyboard.c (read_key_sequence): Don't pass args with side effects
11327 to AREF, it fails when compiling with -DENABLE_CHECKING.
11328
113292008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
11330
11331 * Makefile.in (${lispsource}international/charprop.el):
11332 Delete this target.
11333
11334 * search.c (boyer_moore): Fix incorrect synching of the trunk and
11335 emacs-unicode-2.
11336
113372008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
11338
11339 * terminal.c (Fdelete_terminal): Clean up the `force' path.
11340
113412008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
11342
11343 * frame.c (Qnoelisp): New symbol.
11344 (syms_of_frame): Initialize it.
11345 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
11346 harmless Elisp code, from a strong `force' from x_connection_closed.
11347 * frame.h (Qnoelisp): Declare.
11348 * xterm.c (x_connection_closed): Pass `noelisp'.
11349
11350 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
11351 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
11352 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
11353 rather than `int' for the type of `type'.
11354
113552008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
11356
11357 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
11358
11359 * Makefile.in (GNUC): Remove support for gcc-1.x.
11360
113612008-02-10 Richard Stallman <rms@gnu.org>
11362
11363 * lisp.h (ASET): Use AREF, not ASLOT.
11364
113652008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
11366
11367 * lisp.h (ASET): Check bounds.
11368
113692008-02-10 Glenn Morris <rgm@gnu.org>
11370
11371 * buffer.c (mode-name): Doc fix.
11372
113732008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
11374
11375 * Makefile.in:
11376 * emacs.c:
11377 * gmalloc.c:
11378 * keyboard.c:
11379 * lisp.h:
11380 * m/ibm370aix.h:
11381 * process.c:
11382 * regex.c:
11383 * s/hpux.h:
11384 * sysdep.c:
11385 * sysselect.h:
11386 * systty.h:
11387 * unexec.c:
11388 * w32term.c:
11389 * xsmfns.c:
11390 * xterm.c: Remove code that deals with obsolete variables.
11391
11392 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
11393
11394 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
11395 nothing else needs it anymore.
11396
113972008-02-09 Eli Zaretskii <eliz@gnu.org>
11398
11399 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
11400 instead of unibyte_char_to_multibyte.
11401
114022008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
11403
11404 * s/gnu-linux.h: Remove commented out code.
11405
11406 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
11407
11408 * Makefile.in: Update what RMS says about using autoconf.
11409 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
11410 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
11411 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
11412 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
11413
114142008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
11415
11416 * keymap.c (Fkey_description): Move side effect outside of macro call.
11417
11418 * xfaces.c (Finternal_make_lisp_face):
11419 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
11420
11421 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
11422 (syms_of_fontset): Use ASET.
11423
11424 * fns.c (concat): Move side effect outside of macro call.
11425 (hash_clear): Use ASET.
11426
114272008-02-08 Richard Stallman <rms@gnu.org>
11428
11429 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
11430 If FORCE, and frame has a surrogate minibuffer for another frame,
11431 delete the other frame first.
11432
114332008-02-07 Timo Savola <timo.savola@iki.fi>
11434
11435 * xterm.c (x_detect_focus_change): Handle embed client message.
11436 (handle_one_xevent): Ditto.
11437 (handle_one_xevent): If embedded and we get a button press/release,
11438 request focus.
11439 (xembed_set_info, xembed_send_message): New functions.
11440 (x_make_frame_visible): Call xembed_set_info if embedded.
11441 (x_make_frame_invisible): Call xembed_set_info if embedded.
11442 (x_term_init): Initialize Xatom_XEMBED.
11443 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
11444 (x_iconify_frame): Ditto.
11445
11446 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
11447 (enum xembed_info, enum xembed_message, enum xembed_focus)
11448 (enum xembed_modifier, enum xembed_accelerator): New.
11449 (xembed_set_info, xembed_send_message): Declare.
11450 (FRAME_X_EMBEDDED_P): New.
11451
11452 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
11453 gtk_plug_new.
11454
11455 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
11456 window ID of a frame.
11457 (x_window): Reparent frame if embedded.
11458 (Fx_create_frame): Don't set border width if embedded.
11459
11460 * emacs.c (USAGE3): Add --parent-id.
11461 (standard_args): Ditto.
11462
114632008-02-07 Jan Djärv <jan.h.d@swipnet.se>
11464
11465 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
11466
114672008-02-07 Jim Meyering <meyering@redhat.com>
11468
11469 Use "do...while (0)", not "if (1)...else" in macro definitions.
11470 The latter provokes a warning from gcc about the empty else, when
11471 followed by ";". Also, without that trailing semicolon, it would
11472 silently swallow up any following statement.
11473 * syntax.h (SETUP_SYNTAX_TABLE)
11474 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
11475 * buffer.h (DECODE_POSITION): Likewise.
11476 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
11477 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
11478 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
11479 (FETCH_CHAR_ADVANCE): Likewise.
11480 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
11481
114822008-02-07 Jim Meyering <meyering@redhat.com>
11483
11484 * lread.c [lint]: Don't include <sys/inode.h>.
11485
114862008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
11487
11488 * xselect.c (x_handle_dnd_message):
11489 * xmenu.c (digest_single_submenu, xmenu_show):
11490 * xdisp.c (with_echo_area_buffer_unwind_data)
11491 (format_mode_line_unwind_data, unwind_format_mode_line)
11492 (display_menu_bar):
11493 * eval.c (Ffetch_bytecode):
11494 * doc.c (store_function_docstring):
11495 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
11496 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
11497 * buffer.c (add_overlay_mod_hooklist): Use ASET.
11498
114992008-02-07 Kenichi Handa <handa@m17n.org>
11500
11501 * ftxfont.c (ftxfont_open): Don't set
11502 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
11503
11504 * ftfont.c (ftfont_open): Fix previous change.
11505
115062008-02-06 Jason Rumney <jasonr@gnu.org>
11507
11508 * w32font.c (w32font_text_extents): Fill in lbearing metric.
11509 Use cached metrics for ASCII characters.
11510 (w32font_open_internal): Don't set font's owning_frame.
11511 Cache metrics for ASCII characters.
11512
11513 * w32font.h (struct w32font_info): Add ascii_metrics.
11514 Remove owning_frame.
11515
115162008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
11517
11518 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
11519 to negative value.
11520
11521 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
11522
11523 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
11524
11525 * charset.c (syms_of_charset): Set QCtest and Qeq.
11526
115272008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
11528
11529 * process.c (Fstart_process):
11530 * callproc.c (Fcall_process): Handle the case where
11531 Funhandled_file_name_directory returns nil.
11532
11533 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
11534 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
11535 * font.c (check_gstring): Use them and AREF to access the vector before
11536 we know it's really a gstring.
11537 (Ffont_shape_text): Fix typo.
46e722a9 11538 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
11539
11540 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
11541 Declare.
11542
11543 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
11544
115452008-02-05 Jason Rumney <jasonr@gnu.org>
11546
11547 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
11548 Set smallest_font_height and smallest_char_width in display info.
11549
115502008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
11551
11552 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
11553
115542008-02-05 Miles Bader <miles@gnu.org>
11555
11556 * xfaces.c (get_lface_attributes, merge_named_face)
11557 (lookup_named_face, lookup_derived_face, realize_named_face):
11558 Revert 2008-02-01 change by cyd@stupidchicken.com.
11559
115602008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
11561
11562 * fontset.c (Ffontset_info): Handle the case of inhibitting the
11563 fallback fonts.
11564 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
11565
115662008-02-04 Jason Rumney <jasonr@gnu.org>
11567
11568 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
11569 set full_name.
11570 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
11571
115722008-02-03 Jason Rumney <jasonr@gnu.org>
11573
11574 * makefile.w32-in (OBJ1): Include font.o here.
11575 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
11576
115772008-02-02 Jason Rumney <jasonr@gnu.org>
11578
11579 * makefile.w32-in (temacs): Bump EMHEAP to 21.
11580
115812008-02-01 Jason Rumney <jasonr@gnu.org>
11582
11583 * s/cygwin.h: Define VIRT_ADDR_VARIES.
11584
11585 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
11586
115872008-02-01 Andreas Schwab <schwab@suse.de>
11588
11589 * Makefile.in (shortlisp, lisp): Update for rename of
11590 ../lisp/language/myanmar.el.
11591
115922008-02-01 Chong Yidong <cyd@stupidchicken.com>
11593
11594 * xfaces.c (get_lface_attributes): Delete function.
11595 (merge_named_face, lookup_named_face, lookup_derived_face)
11596 (realize_named_face): Call lface_from_face_name directly, and use
11597 the fact that merge_face_vectors does not alter its FROM argument.
11598
115992008-02-01 Jason Rumney <jasonr@gnu.org>
11600
11601 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
11602 input in the default locale. Handle non-Unicode multibyte input.
11603
116042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11605
11606 * fontset.c (reorder_font_vector): Exclude nil elements from the
11607 font group. Don't try multiple fonts.
11608 (fontset_font): Adjust for the above change.
11609 (Finternal_char_font): Return nil if the found font doesn't
11610 contain the character ch.
11611
11612 * Makefile.in (lisp, shortlisp): Add cham.el.
11613
116142008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11615
11616 * font.h (FONTP): Make it return 1 also for a font-object.
11617
11618 * .gdbinit (xfontset): New function.
11619
11620 * font.c (font_find_for_lface): Check if the character C is
11621 supported or not only for the first font.
11622
11623 * fontset.c (reorder_font_vector): Fix typo.
11624 (fontset_find_font): Don't add a font-spec specifying a script.
11625 Use 0 (not Qt) for the indication of empty font-group. Change the
11626 format of RFONT-DEF. Return Qt if no font in the font-group
11627 support the character.
11628 (fontset_font): Adjust for the above change. If no font was
11629 found the character, remember that.
11630 (face_for_char): Adjust for the change of RFONT-DEF.
11631 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
11632 no font for the target.
11633 (Finternal_char_font): Adjust for the change of RFONT-DEF.
11634
116352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11636
11637 * font.c (font_load_for_face): Handle the case that the font in
11638 face->lface is a string.
11639
116402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11641
11642 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
11643
116442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11645
11646 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
11647 Fix previous change. If the frame is not on a window system,
11648 signal an error.
11649
116502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11651
11652 * coding.c (decode_coding_object, encode_coding_object): Adjust
11653 marker positions after conversion.
11654
11655 * lisp.h (struct Lisp_Marker): New member need_adjustment.
11656
116572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11658
11659 * font.c (font_find_for_lface): Fix the handling of the return
11660 value of font_has_char.
11661 (Ffont_shape_text): Fix previous change.
11662
11663 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
11664 (fontset_ref_and_range): Delete it.
11665 (fontset_find_font): Call char_table_ref_and_range instead of
11666 FONTSET_REF_AND_RANGE.
11667 (make_fontset): Don't setup font groups of Latin here.
11668 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
11669 (new_fontset_from_font): Make the specified font the default for
11670 all Latin characters.
11671
116722008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11673
11674 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
11675 is on a window system before accessing the fontset of the frame.
11676
116772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11678
11679 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
11680
11681 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
11682 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
11683
11684 * font.c (Ffont_shape_text): If the font driver doesn't have a
11685 shaper function, make zero-width glyphs to have at least one-pixel
11686 width. Fix setting of `to' field of glyphs.
11687
116882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11689
11690 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
11691 glyphs.
11692
11693 * font.h (struct font_driver): Improve docstring of member `shape'.
11694
116952008-02-01 Kenichi Handa <handa@m17n.org>
11696
11697 * composite.c (syms_of_composite): Fix docstring of
11698 auto-composition-function.
11699
11700 * font.h (LGLYPH_SIZE): New macro.
11701
11702 * font.c (Ffont_fill_gstring): Stop filling when a character not
11703 supported by the font is found.
11704 (Ffont_shape_text): When a shape callback function returns nil,
11705 try at most two more times with larger gstring.
11706 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
11707
11708 * xdisp.c (handle_auto_composed_prop): Change the argument to
11709 auto-composition-function.
11710
11711 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
11712 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
11713 Lispy glyph and store it in the lgstring.
11714
11715 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
11716
11717 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
11718
117192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11720
11721 * font.c (Ffont_shape_text): Avoid unnecessary composition.
11722
11723 * fontset.c (Vfont_encoding_charset_alist): New variable.
11724 (syms_of_fontset): DEFVAR it.
11725 (reorder_font_vector, fontset_find_font): Optimize for the case of
11726 no need of reordering.
11727 (face_for_char): Map the charset property by
11728 Vfont_encoding_charset_alist.
11729
117302008-02-01 Jason Rumney <jasonr@gnu.org>
11731
11732 * w32font.c (logfonts_match): Don't check adstyle here.
11733 (font_matches_spec): Check here against physical font instead.
11734 (add_font_entity_to_list): Avoid some substitutions.
11735
11736 * font.c (font_parse_fcname): Default weight and slant to normal.
11737 (font_score): Prefer normal fonts if weight or slant unspecified.
11738 (font_score) [WINDOWSNT]: Scale weight difference down to closer
11739 match freetype scores.
11740
117412008-02-01 Jason Rumney <jasonr@gnu.org>
11742
11743 * w32font.c (w32font_text_extents): Don't use the frame stored in the
11744 font, as it may have been deleted.
11745 (w32_enumfont_pattern_entity): Map generic family to adstyle using
11746 most common hyphenless variation.
11747 (logfonts_match): Check generic family.
11748 (font_matches_spec): Don't check generic family here.
11749 (fill_in_logfont): Set generic family based on adstyle.
11750
11751 * w32font.h (w32font_get_cache): Update declaration.
11752
117532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11754
11755 * ftfont.c (ftfont_get_cache): Adjust the argument type.
11756
11757 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
11758 If none of the new drivers are available, call font_update_drivers
11759 with the old drivers.
11760
11761 * w32font.c (w32font_get_cache): Adjust the argument type.
11762
11763 * xfont.c (xfont_get_cache): Adjust the argument type.
11764
11765 * font.h (struct font_driver): Change argument type of get_cache.
11766
11767 * xftfont.c (xftfont_start_for_frame): Delete prototype.
11768
11769 * font.c (Ffont_get): Fix arguments to Fassoc.
11770 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
11771 (font_clear_cache): New function.
11772 (font_list_entities, font_matching_entity): Use font_get_cache.
11773 (font_update_drivers): Call font_clear_cache when finishing a driver.
11774
11775 * fontset.c (fontset_find_font): Fix previous change.
11776
117772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11778
11779 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
11780 dpyinfo->font_table.
11781 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
11782 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
11783
11784 * font.c (font_at): Handle the case that the arg C is negative.
11785 Handle the unibyte case.
11786 (Ffont_at): Call font_at with the arg C -1.
11787
11788 * xdisp.c (handle_auto_composed_prop): Don't get a character at
11789 the position here, and call font_at with the arg C -1.
11790 Don't check the range of the existing composition at the point.
11791
117922008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11793
11794 * fontset.c (fontset_add): New args charset_id and family.
11795 Change caller.
11796 (load_font_get_repertory, fontset_find_font): Assume that
11797 font_spec is always a font-spec object.
11798 (Fset_fontset_font): Always store a font-spec object in a fontset.
11799
11800 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
11801 instead of get_property_and_range.
11802
118032008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11804
11805 * xftfont.c (struct xftfont_info): Delete the member ft_face.
11806 (xftfont_open): Don't keep locking face.
11807 (xftfont_close): Don't unlock face.
11808 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
11809
11810 * fontset.c (fontset_find_font): Don't prefer a font of
11811 supplementary charset.
11812
118132008-02-01 Kenichi Handa <handa@m17n.org>
11814
11815 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
11816 script, langsys_tag to langsys, new member script.
11817 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 11818 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
11819 listing to the script specified in that property. Fix arg to
11820 OTF_check_features.
11821
118222008-02-01 Jason Rumney <jasonr@gnu.org>
11823
11824 * w32font.h: New file.
11825
11826 * w32font.c: Include it.
11827 (struct w32font_info): Add owning_frame field. Move to w32font.h.
11828 (w32font_open): Set owning_frame.
11829 (w32font_text_extents): Use owning_frame.
11830 (struct font_callback_data): Add opentype_only field.
11831 (add_font_entity_to_list): Use it to filter fonts.
11832 Don't check against full name.
11833 (w32font_list_internal): New function.
11834 (w32font_list): Use it.
11835 (w32font_match_internal): New function.
11836 (w32font_match): Use it.
11837 (w32font_open_internal): New function.
11838 (w32font_open): Use it.
11839 (w32font_get_cache, w32font_close, w32font_has_char)
11840 (w32font_encode_char, w32font_text_extents, w32font_draw):
11841 Make non-static.
11842
11843 * makefile.w32-in (w32font.o): Depend on w32font.h.
11844
118452008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11846
11847 * charset.c (Fdefine_charset_internal): Record a supplementary
11848 charset at the tail of Vcharset_order_list.
11849
11850 * font.c (Ffont_shape_text): Fix the return value.
11851
11852 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
11853
11854 * xdisp.c (handle_auto_composed_prop): Fix previous change.
11855
118562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11857
11858 * ftfont.c (struct OpenTypeSpec): New struct.
11859 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
11860 (ftfont_get_open_type_spec): New function.
11861 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
11862
11863 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
11864
118652008-02-01 Jason Rumney <jasonr@gnu.org>
11866
11867 * w32font.c (add_font_entity_to_list): Compare only the beginning
11868 of full name.
11869
118702008-02-01 Kenichi Handa <handa@m17n.org>
11871
11872 * xdisp.c (handle_auto_composed_prop): Simplify the code.
11873 Never return HANDLED_RECOMPUTE_PROPS.
11874
118752008-02-01 Kenichi Handa <handa@m17n.org>
11876
11877 * font.c (font_gstring_produce): Delete it.
11878
11879 * composite.h (COMPOSITION_METHOD):
11880 Handle COMPOSITION_WITH_GLYPH_STRING.
11881
118822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11883
11884 * xfont.c (Qx): Delete.
11885 (syms_of_xfont): Don't initialize Qx.
11886
11887 * composite.h (enum composition_method):
11888 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
11889
118902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11891
11892 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
11893 (choose_face_font): Accept new form of font-spec.
11894
11895 * frame.h (font_driver_list): Declare it unconditionally.
11896 (struct frame): Define members font_driver_list and font_data_list
11897 unconditionally.
11898
11899 * fontset.c: Include "font.h" unconditionally.
11900 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
11901 (Fset_fontset_font): Accept a font-spec object.
11902
11903 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
11904 PIXEL_SIZE part a wild card.
11905
11906 * dispextern.h (struct glyph_string): Define members clip and
11907 num_clips unconditionally.
11908 (struct face): Define members font_info and extra unconditionally.
11909
11910 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
11911 ftfont_info only when HAVE_LIBOTF is defined.
11912
119132008-02-01 Andreas Schwab <schwab@suse.de>
11914
11915 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
11916 and end.
11917
119182008-02-01 Jason Rumney <jasonr@gnu.org>
11919
11920 * w32font.c (w32font_driver): Add new fields.
11921
119222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
11923
11924 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
11925 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
11926 (LIBES): Add @M17N_FLT_CFLAGS@.
11927
11928 * composite.c (compose_text): Don't treat the new style
11929 composition specially.
11930
11931 * emacs.c (main): Call syms_of_font unconditionally.
11932
11933 * font.h (FONT_ENTITY_NOT_LOADABLE)
11934 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
11935 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
11936 (struct font_driver): New member shape.
11937 (font_registry_charsets): Extern it.
11938 (font_find_for_lface, font_prepare_composition): Adjust prototype.
11939 (font_otf_capability, font_drive_otf): Delete their externs.
11940
11941 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
11942 (font_charset_alist, font_registry_charsets): Move from xfont.c
11943 and rename.
11944 (font_prop_validate_otf): New function.
11945 (font_property_table): Register it for QCotf.
11946 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
11947 (font_drive_otf): Delete.
11948 (font_prepare_composition): New arg F. Adjust for the change of
11949 lispy gstring.
11950 (font_find_for_lface): New arg C.
11951 (font_load_for_face): Adjust for the change of font_find_for_lface.
11952 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
11953 lispy gstring.
11954 (Ffont_shape_text): New function.
11955 (Fopen_font): If the font size is not given, use 12-pixel.
11956 (Ffont_at): New arg STRING.
11957 (syms_of_font): Initalize font_charset_alist.
11958 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
11959 conditionally.
11960
11961 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
11962 fonts of the same font-spec. Change the format of RFONT-DEF.
11963 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
11964 Adjust for the change of RFONT-DEF.
11965 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
11966
11967 * ftfont.h: New file.
11968
11969 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
11970 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
11971 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
11972 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
11973 font_otf_capability and font_drive_otf, set ftfont_shape.
11974 (ftfont_list): Adjust for the change of :otf property value.
11975 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
11976 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
11977 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
11978 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
11979 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
11980 (otf_gstring, gstring, m17n_flt_initialized): New variables.
11981
11982 * w32term.c (x_draw_composite_glyph_string_foreground):
11983 Adjust for the change of lispy gstring.
11984
11985 * xdisp.c (handle_composition_prop): Adjust for the change of
11986 lispy gstring. Call a function for auto-composition with the
11987 third arg it->window.
11988 (fill_composite_glyph_string): Adjust for the change of lispy string.
11989 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
11990
11991 * xfaces.c (set_font_frame_param): Adjust for the change of
11992 font_find_for_lface.
11993
11994 * xfont.c (x_font_charset_alist): Move to font.c and rename.
11995 (xfont_registry_charsets): Likewise. Change caller.
11996 (syms_of_xfont): Don't handle x_font_charset_alist.
11997
11998 * xftfont.c: Include "ftfont.h".
11999 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
12000 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
12001 (xftfont_close) [HAVE_LIBOTF]: Close otf.
12002 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
12003 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
12004 Set xftfont_driver.shape to xftfont_shape.
12005
12006 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
12007 the change of lispy gstring.
12008
120092008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12010
12011 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
12012
120132008-02-01 Jason Rumney <jasonr@gnu.org>
12014
12015 * w32font.c (w32font_draw): Fill background manually.
12016
120172008-02-01 Jason Rumney <jasonr@gnu.org>
12018
12019 * font.c (Qfontp): Remove unused symbol.
12020 (QCantialias): New symbol.
12021 (syms_of_font): Define it.
12022 (font_property_table): Set a validator for QCantialias.
12023
12024 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
12025 Define if not already.
12026 (QCfamily): Share with xfaces.c.
12027 (Qstandard, Qsubpixel, Qnatural): New symbols.
12028 (syms_of_w32font): Define them. Don't define QCfamily here.
12029 (w32_antialias_type, lispy_antialias_type): New functions.
12030 (w32_enumfont_pattern_entity): New arg requested_font.
12031 Set antialias parameter if non-default was requested.
12032 (fill_in_logfont): Fill in lfQuality if :antialias specified.
12033
120342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12035
12036 * lread.c (read1): Undo the previous change.
12037
120382008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
12039
12040 * frame.c (Fdelete_frame): Call font_update_drivers only when
12041 USE_FONT_BACKEND is defined.
12042
120432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12044
12045 * font.h (struct font_bitmap): New member bits_per_pixel.
12046 (struct font_driver): New members start_for_frame and end_for_frame.
12047 (struct font_data_list): New struct.
12048 (font_put_frame_data, font_get_frame_data): Extern them.
12049
12050 * frame.h (struct frame): New member font_data_list.
12051
12052 * font.c (font_update_drivers): Call driver->start_for_frame and
12053 driver->end_for_frame at proper timings.
12054 (font_put_frame_data, font_get_frame_data): New functions.
12055 (Ffont_spec): Add usage in the docstring.
12056
12057 * frame.c (make_frame): Initialize f->font_data_list to NULL.
12058 (Fdelete_frame): Call font_update_drivers.
12059
12060 * xftfont.c (struct xftface_info): Delete the member xft_draw.
12061 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
12062 (xftfont_get_xft_draw): New function.
12063 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
12064 (xftfont_end_for_frame): New function.
12065 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
12066
12067 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
12068 Change argument. Cache GCs in the per-frame data.
12069 (struct ftxfont_frame_data): New struct.
12070 (ftxfont_draw_bitmap): New arg gc_fore and flush.
12071 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
12072 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
12073 (ftxfont_end_for_frame): New function.
12074 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
12075
12076 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
12077
120782008-02-01 Kenichi Handa <handa@m17n.org>
12079
12080 * xselect.c (Vselection_coding_system)
12081 (Vnext_selection_coding_system): Delete them.
12082 (syms_of_xselect): Don't declare selection-coding-system and
12083 next-selection-coding-system. They are declared in select.el.
12084
120852008-02-01 Jason Rumney <jasonr@gnu.org>
12086
12087 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
12088
12089 * w32fns.c: Include imm.h.
12090 (get_composition_string_fn, get_ime_context_fn): New optional
12091 system functions.
12092 (globals_of_w32fns): Load them from imm32.dll.
12093 (ignore_ime_char): New flag.
12094 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
12095 WM_IME_ENDCOMPOSITION messages.
12096
12097 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
12098 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
12099
121002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12101
12102 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
12103 (READCHAR_REPORT_MULTIBYTE): New macro.
12104 (readchar): New 2nd arg MULTIBYTE.
12105 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
12106 Make symbol's name multibyte according to the multibyteness of the
12107 source.
12108
121092008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12110
12111 * xfaces.c (face_for_overlay_string): Call lookup_face with
12112 correct arguments (fix of synching with the trunk).
12113
121142008-02-01 Kenichi Handa <handa@m17n.org>
12115
12116 * font.c (font_prop_validate_symbol, font_prop_validate_style)
12117 (font_prop_validate_non_neg, font_prop_validate_spacing):
12118 Delete argument prop_index.
12119 (font_property_table): Change arguments to validater. Change Callers.
12120 (font_lispy_object): Delete.
12121 (font_at): Use font_find_object instead fo font_lispy_object.
12122
121232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
12124
12125 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
12126 and file names.
12127
121282008-02-01 Jason Rumney <jasonr@gnu.org>
12129
12130 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
12131 (font_matches_spec): Remove debug output.
12132 (add_font_entity_to_list): Avoid using substituted fonts.
12133
121342008-02-01 Jason Rumney <jasonr@gnu.org>
12135
12136 * doc.c (Fsnarf_documentation):
12137 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
12138
121392008-02-01 Miles Bader <miles@gnu.org>
12140
12141 * dispextern.h (struct glyph_row): Only define "clip" field if
12142 HAVE_WINDOW_SYSTEM is defined.
12143
121442008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
12145
12146 Fix up multi-tty merge.
12147
12148 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
12149 and indentation.
12150
12151 * xfaces.c (free_realized_face, clear_face_gcs):
12152 Include font_done_for_face in the input_blocked section, just in case.
12153
12154 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
12155 (get_char_face_and_encoding): Undo last change and remove the *other*
12156 duplicate definition (i.e. keep the one that's better scoped and that
12157 includes code for the font-backend).
12158
12159 * terminal.c (create_terminal): Default keyboard_coding to
12160 `no-conversion' and terminal_coding to `undecided'.
12161
12162 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
12163
12164 * fontset.c (free_realized_fontsets): Check that the table entry does
12165 contain a fontset before trying to compare it to `base'.
12166
12167 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
12168 syms_of_charset, and syms_of_coding earlier because init_window_once
12169 now needs Vcoding_system_hash_table to be setup.
12170
12171 * coding.h (default_buffer_file_coding): Remove.
12172
12173 * coding.c (default_buffer_file_coding): Remove.
12174 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
12175 than ->symbol, and use the terminal-local coding system.
12176 (syms_of_coding): Don't setup the coding-systems that are not
12177 terminal-local.
12178 (Fdefine_coding_system_internal): Use XCAR/XCDR.
12179
12180 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
12181 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
12182
12183 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
12184 in chartab.c and were re-added here by mistake.
12185 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
12186
12187 * doc.c (Fsnarf_documentation):
12188 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
12189 src to etc.
12190
12191 * ChangeLog.10: Add mistakenly removed entry.
12192
121932008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
12194
12195 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
12196
121972008-02-01 Miles Bader <miles@gnu.org>
12198
12199 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
12200 Add extra args to FACE_FOR_CHAR.
12201
122022008-02-01 Kenichi Handa <handa@m17n.org>
12203
12204 * keymap.c (where_is_internal_1): If key is a cons, store the copy
12205 in sequence.
12206
12207 * chartab.c (map_sub_char_table, map_char_table): If the range
12208 contains just one character, call the function with that character
12209 even if the depth is not 3.
12210
122112008-02-01 Jason Rumney <jasonr@gnu.org>
12212
12213 * w32font.c (w32font_text_extents): Calculate metrics for the
12214 whole string.
12215
122162008-02-01 Jason Rumney <jasonr@gnu.org>
12217
12218 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
12219
122202008-02-01 Jason Rumney <jasonr@gnu.org>
12221
12222 * w32term.c (x_set_glyph_string_clipping): Use
12223 get_glyph_string_clip_rects.
12224 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
12225 Adjust for the change of struct glyph_string.
12226
12227 * w32font.c (w32font_draw): Do clipping here.
12228
122292008-02-01 Kenichi Handa <handa@m17n.org>
12230
12231 * xftfont.c (xftfont_draw): Adjust for the change of struct
12232 glyph_string.
12233
12234 * xterm.c (x_set_glyph_string_clipping): Use
12235 get_glyph_string_clip_rects.
12236 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
12237 Adjust for the change of struct glyph_string.
12238
12239 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
12240 the resulting clip(s}.
12241 (expose_overlaps): Add arg r. Change callers. Set it to
12242 row->clip temporarily.
12243 (expose_window): Redraw rows overlapping the exposed area.
12244
12245 * dispextern.h (struct glyph_row): New member clip.
12246 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
12247 clip_height, new member clip, and num_clips.
12248
122492008-02-01 Kenichi Handa <handa@m17n.org>
12250
12251 * data.c (Fchar_or_string_p): Fix docstring.
12252
122532008-02-01 Kenichi Handa <handa@m17n.org>
12254
12255 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
12256 create a temporary XftDraw object.
12257
122582008-02-01 Kenichi Handa <handa@m17n.org>
12259
12260 * font.c (Ffontp): Fix docstring.
12261
12262 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
12263 strong evidence of ISO-2022.
12264
122652008-02-01 Kenichi Handa <handa@m17n.org>
12266
12267 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
12268 SYNTAX_ENTRY_FOLLOW_PARENT.
12269
122702008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
12271
12272 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
12273 its type.
12274 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
12275 Update to the new type of weak_hash_tables and next_weak.
12276
12277 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
12278 a plain C pointer to Lisp_Hash_Table.
12279
12280 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
12281 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
12282 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
12283 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
12284 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
12285 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
12286 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
12287 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
12288 (GC_EQ): Remove since they've been identical to their non-GC_
12289 alter-egos ever since the markbit was eradicated.
12290
12291 * alloc.c:
12292 * buffer.c:
12293 * buffer.h:
12294 * data.c:
12295 * fileio.c:
12296 * filelock.c:
12297 * fns.c:
12298 * frame.h:
12299 * lisp.h:
12300 * macterm.c:
12301 * print.c:
12302 * process.c:
12303 * w32fns.c:
12304 * w32menu.c:
12305 * w32term.c:
12306 * xfns.c:
12307 * xmenu.c:
12308 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
12309
123102008-02-01 Kenichi Handa <handa@m17n.org>
12311
12312 * chartab.c (map_sub_char_table): Make it work for the top-level
12313 char-table. Fix handling of parent char-table.
12314 (map_char_table): Adjust for the above change.
12315
123162008-02-01 Jason Rumney <jasonr@gnu.org>
12317
12318 * w32font.c (Qgdi): Rename from Qw32.
12319
123202008-02-01 Jason Rumney <jasonr@gnu.org>
12321
12322 * w32bdf.c (get_quoted_string): Make function static.
12323
123242008-02-01 Kenichi Handa <handa@m17n.org>
12325
12326 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
12327 bigger ascent and descent than those of the font, use them as
12328 font's ascent and descent.
12329
123302008-02-01 Kenichi Handa <handa@m17n.org>
12331
12332 * Makefile.in (${lispsource}international/charprop.el): Move this
12333 target within "#ifdef HAVE_UNIDATA" and "#endif".
12334
123352008-02-01 Kenichi Handa <handa@m17n.org>
12336
12337 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
12338 (shortlisp): Add ../lisp/language/tai-viet.el.
12339
123402008-02-01 Ulrich Mueller <ulm@gentoo.org>
12341
12342 * Makefile.in (${lispsource}international/charprop.el): Depend on
12343 temacs${EXEEXT}.
12344
123452008-02-01 Jason Rumney <jasonr@gnu.org>
12346
12347 * w32font.c (w32font_close): Delete the GDI font object.
12348
12349 * w32menu.c: Include character.h.
12350
12351 * w32proc.c: Likewise.
12352
12353 * w32select.c: Likewise.
12354
12355 * makefile.w32-in (w32proc.o): Depend on character.h.
12356
123572008-02-01 Jason Rumney <jasonr@gnu.org>
12358
12359 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
12360
12361 * w32menu.c (syms_of_w32menu): Likewise.
12362
12363 * w32proc.c (syms_of_ntproc): Likewise.
12364
12365 * w32select.c (syms_of_w32select): Likewise.
12366
12367 * w32term.c (syms_of_w32term): Likewise.
12368
123692008-02-01 Jason Rumney <jasonr@gnu.org>
12370
12371 * w32font.c (w32font_draw): Delete brush after using it.
12372
123732008-02-01 Jason Rumney <jasonr@gnu.org>
12374
12375 * w32font.c (w32font_open): Don't set font_idx.
12376 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
12377 to font settings.
12378 (w32font_draw): Fill background explicitly.
12379
123802008-02-01 Jason Rumney <jasonr@gnu.org>
12381
12382 * w32term.c (w32_initialize): Don't call w32font_initialize.
12383
12384 * w32font.c (w32font_info): Remove subranges.
12385 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
12386 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
12387 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
12388 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
12389 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
12390 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
12391 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
12392 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
12393 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
12394 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
12395 New symbols.
12396 (font_callback_data): New struct.
12397 (w32font_list, w32font_match): Use it.
12398 (w32font_open): Don't populate subranges.
12399 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
12400 (w32font_encode_char): Always return unicode code-point as-is.
12401 (w32font_text_extents): Supply a transformation matrix to
12402 GetGlyphOutline. Never look up by glyph index. Avoid looping
12403 twice. Use unicode version of GetTexExtentPoint32 instead of
12404 glyph index version.
12405 (set_fonts_frame): Remove.
12406 (w32_enumfont_pattern_entity): Add frame parameter, use it to
12407 set frame parameter. Use backward compatible fake foundries.
12408 Save generic family in extra slot under QCfamily. Make width slot
12409 constant. Save QCspacing value. Save list of scripts instead of
12410 binary subranges.
12411 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
12412 (add_font_entity_to_list): Use font_callback_data struct. Filter
12413 unwanted fonts.
12414 (add_one_font_entity_to_list): Use font_callback_data struct.
12415 (w32_registry): Default to iso10646_1.
12416 (fill_in_logfont): Use dpi from extra slot. Don't bother with
12417 string font registries. Don't fill in font name if it is a generic
12418 family name, fill family instead. Use spacing, family and script
12419 extra info to fill pitch, family and charset fields.
12420 (list_all_matching_fonts): Use font_callback_data struct.
12421 (unicode_range_for_char): Remove.
12422 (font_supported_scripts): New function.
12423 (w32font_initialize): Remove.
12424 (syms_of_w32font): Update which symbols are defined.
12425
124262008-02-01 Jason Rumney <jasonr@gnu.org>
12427
12428 * font.c (font_pixel_size): Reverse assq_no_quit args.
12429
12430 * w32term.h (FONT_WIDTH): Report max width, not average.
12431 (FONT_MAX_WIDTH): Remove.
12432 (FONT_AVG_WIDTH): New macro.
12433
12434 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
12435 redefinition of FONT_WIDTH.
12436
12437 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
12438 (w32_cache_char_metrics): Use FONT_WIDTH.
12439
12440 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
12441
124422008-02-01 Jason Rumney <jasonr@gnu.org>
12443
12444 * w32font.c (w32font_open): Make lfHeight negative.
12445
12446 * w32fns.c (x_default_font_parameter): Use new style font name.
12447 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
12448
124492008-02-01 Jason Rumney <jasonr@gnu.org>
12450
12451 * w32font.c (QCsubranges): New symbol.
12452 (w32font_open, w32font_has_char): Get subranges from subproperty
12453 of extra.
12454 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
12455 (syms_of_w32font): Define :subranges symbol.
12456
12457 * font.c (font_put_extra): Expose externally.
12458
12459 * font.h (font_put_extra): Move declaration from font.c.
12460
12461 * font.c (Ffont_get): Use font driver to determine otf capability.
12462 (adjust_anchor): Check if driver defines anchor_point before using.
12463
12464 * w32font.c (w32font_open): Handle size, height and pixel_size better.
12465 (w32font_draw): Use options.
12466 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
12467 Fix detection of truetype fonts.
12468 (registry_to_w32_charset): Handle charsets other than iso8859-1
12469 expressed as lisp symbols.
12470 (w32_registry): Express charset as lisp symbol.
12471 (fill_in_logfont): Reverse pixel and point height logic.
12472 Don't set width here. Set quality to default.
12473
12474 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
12475 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
12476
12477 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
12478 Remove redundant loop and allocation.
12479
12480 * makefile.w32-in (font.o, w32font.o): New objects.
12481 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
12482 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
12483
12484 * xdisp.c (fill_composite_glyph_string): Make the first arg to
12485 STORE_XCHARB a valid l-value.
12486
12487 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
12488 calculations for non-Truetype fonts.
12489 (x_draw_glyph_string): Sync with xterm.c.
12490 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
12491 Remove redundant code.
12492 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
12493
12494 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
12495 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
12496
12497 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
12498 (x_to_w32_charset, w32_to_x_charset): Expose externally.
12499
12500 * w32font.c: New file for w32 font backend.
12501
125022008-02-01 Kenichi Handa <handa@m17n.org>
12503
12504 * term.c: Don't include "buffer.h" twice.
12505
125062008-02-01 Kenichi Handa <handa@m17n.org>
12507
12508 * character.c (Funibyte_string): New function.
12509 (syms_of_character): Defsubr it.
12510
125112008-02-01 Jason Rumney <jasonr@gnu.org>
12512
12513 * w32term.c [USE_FONT_BACKEND]:
12514 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
12515 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
12516 (x_draw_glyph_string, x_draw_glyph_string_foreground)
12517 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
12518 (x_free_frame_resources): Sync with xterm.c.
12519
125202008-02-01 Andreas Schwab <schwab@suse.de>
12521
12522 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
12523 char-table size.
12524
125252008-02-01 Kenichi Handa <handa@m17n.org>
12526
12527 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
12528
125292008-02-01 Kenichi Handa <handa@m17n.org>
12530
12531 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
12532 font_otf_gpos, add font_drive_otf.
12533
12534 * fontset.c (fontset_find_font): Pay attention to font size
12535 specified for a font.
12536 (reorder_font_vector): Check contents of font_def.
12537
12538 * font.c (struct otf_list): Delete it.
12539 (otf_list): Make it a lisp variable.
12540 (otf_open): Use lispy otf_list.
12541 (generate_otf_features): Rename from parse_gsub_gpos_spec.
12542 (check_otf_features): New function.
12543 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
12544 New functions.
12545 (font_drive_otf): New function merging font_otf_gsub and
12546 font_otf_gpos.
12547 (font_open_for_lface): New arg spec. Change argument order.
12548 (font_load_for_face): Adjust for the change of font_open_for_lface.
12549 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
12550 Ffont_otf_gpos.
12551 (syms_of_font): Staticpro otf_list. Delete defsubr of
12552 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
12553
12554 * xfaces.c (set_font_frame_param): Adjust for the change of
12555 font_open_for_lface.
12556
12557 * font.h (font_open_for_lface): Adjust prototype.
12558 (struct font_driver): Delete members otf_gsub and otf_gpos, add
12559 member otf_drive.
12560 (font_otf_gsub, font_otf_gpos): Delete externs.
12561 (font_drive_otf): Extern it.
12562
125632008-02-01 Kenichi Handa <handa@m17n.org>
12564
12565 * font.c (font_at): If the window W is not on a window system,
12566 return Qnil.
12567
12568 * coding.c (produce_chars, encode_coding): Don't call
12569 insert_from_gap if no characters to produce.
12570
125712008-02-01 Kenichi Handa <handa@m17n.org>
12572
12573 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
12574 Fclear_face_cache.
12575
12576 * xfaces.c (face_for_font): Check also face->font==font->font.font.
12577
125782008-02-01 Miles Bader <miles@gnu.org>
12579
12580 * emacs.c (main): Change default value of `enable_font_backend' to 1.
12581 Parse "--disable-font-backend" option.
12582 (standard_args): Add "--disable-font-backend" option.
12583
125842008-02-01 Kenichi Handa <handa@m17n.org>
12585
12586 * fontset.c (fontset_find_font): New function.
12587 (fontset_font): Use fontset_find_font.
12588 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
12589 Register the specified font for all Latin characters.
12590 (new_fontset_from_font): Register the specified font for all Latin
12591 characters.
12592 (dump_fontset): For a realized fontset, include the base fontset
12593 name in the returned vector.
12594
125952008-02-01 Kenichi Handa <handa@m17n.org>
12596
12597 * character.h (CHAR_STRING): Cast C to unsigned on calling
12598 char_string.
12599
12600 * character.c (char_string): Type of arg C changed to unsigned.
12601 Signal an error if C is an invalid character code.
12602
12603 * editfns.c (general_insert_function, Fchar_to_string):
12604 Use CHARACTERP, not INTEGERP.
12605
126062008-02-01 Kenichi Handa <handa@m17n.org>
12607
12608 * character.h (MIN_MULTIBYTE_LEADING_CODE)
12609 (MAX_MULTIBYTE_LEADING_CODE): New macros.
12610
12611 * regex.c (analyse_first): Fix for multibyte characters in "case
12612 charset:" and "case categoryspec:".
12613
126142008-02-01 Andreas Schwab <schwab@suse.de>
12615
12616 * Makefile.in (LIBES): Move standard libraries to the end.
12617
126182008-02-01 Kenichi Handa <handa@m17n.org>
12619
12620 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
12621 nonzero, don't shrink the buffer nextb.
12622
12623 * buffer.h (struct buffer_text): New member inhibit_shrinking.
12624
12625 * coding.c (coding_alloc_by_making_gap): New arg offset.
12626 (alloc_destination): Call coding_alloc_by_making_gap with the arg
12627 offset.
12628 (decode_coding_iso_2022): Update coding->safe_charsets.
12629 (decode_coding_gap): Temporarily set
12630 current_buffer->text->inhibit_shrinking to 1.
12631
126322008-02-01 Kenichi Handa <handa@m17n.org>
12633
12634 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
12635 indexing into elements of s->cmp and s->char2b.
12636
126372008-02-01 Juanma Barranquero <lekktu@gmail.com>
12638
12639 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
12640
126412008-02-01 Kenichi Handa <handa@m17n.org>
12642
12643 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
12644 target_multibyte instead of multibyte.
12645 (re_match_2_internal): Call bcmp_translate with target_multibyte.
12646 (bcmp_translate): Change the argument name from multibyte to
12647 target_multibyte.
12648
126492008-02-01 Kenichi Handa <handa@m17n.org>
12650
12651 These changes are to compile a regexp into a pattern that can be
12652 used both for multibyte and unibyte targets.
12653
12654 * Makefile.in (search.o): Depend on charset.h.
12655
12656 * character.c (multibyte_char_to_unibyte_safe): New function.
12657
12658 * search.c: Include "charset.h".
12659 (compile_pattern_1): Delete argument multibyte. Don't set
12660 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
12661 (compile_pattern): Don't compare cp->buf.target_multibyte.
12662 Compare cp->buf.charset_unibyte.
12663 (compile_pattern): Set cp->buf.target_multibyte.
12664
12665 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
12666
12667 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
12668
12669 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
12670 multibyte. Change callers.
12671 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
12672 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
12673 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
12674 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
12675 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
12676 (regex_compile): Make the compiled pattern usable both for
12677 multibyte and unibyte targets.
12678 (analyse_first): Make the fastmap usable both for multibyte and
12679 unibyte targets.
12680 (TRANSLATE_VIA_MULTIBYTE): Delete.
12681 (re_match_2_internal): Pay attention to the case that the
12682 multibyteness of bufp and target may be different.
12683
126842008-02-01 Kenichi Handa <handa@m17n.org>
12685
12686 * xdisp.c (x_produce_glyphs): When a font is not found, make the
12687 empty box occupy at least one column width.
12688
126892008-02-01 Miles Bader <miles@gnu.org>
12690
12691 * Makefile.in: Remove redundant HAVE_XFT clause.
12692
126932008-02-01 Kenichi Handa <handa@m17n.org>
12694
12695 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
12696
126972008-02-01 Kenichi Handa <handa@m17n.org>
12698
12699 * fontset.c (Finternal_char_font): Fix for the case of POSITION
12700 being nil.
12701
127022008-02-01 Kenichi Handa <handa@m17n.org>
12703
12704 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
12705
127062008-02-01 Kenichi Handa <handa@m17n.org>
12707
12708 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
12709
127102008-02-01 Kenichi Handa <handa@m17n.org>
12711
12712 * search.c (simple_search): Fix previous change.
12713
127142008-02-01 Kenichi Handa <handa@m17n.org>
12715
12716 * xftfont.c (ftfont_font_format): Extern declaration.
12717
12718 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
12719
12720 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
12721 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
12722
12723 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
12724 (ftfont_font_format): Fix previous change.
12725
12726 * font.h (Ffont_xlfd_name): EXFUN it.
12727
12728 * font.c (font_parse_xlfd): Fix the array size of `f'.
12729 (register_font_driver): Use EQ to compare driver->type.
12730
12731 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
12732 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
12733 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
12734
127352008-02-01 Kenichi Handa <handa@m17n.org>
12736
12737 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
12738 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
12739
127402008-02-01 Kenichi Handa <handa@m17n.org>
12741
12742 * xfont.c (xfont_open): Set font->format.
12743
12744 * xftfont.c (xftfont_open): Set font->format.
12745
12746 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
12747 (ftfont_list): Include FC_FONTFORMAT in FcObject.
12748 (ftfont_open): Set font->format.
12749 (ftfont_font_format): New function.
12750
12751 * font.h (struct font): New member format.
12752
12753 * font.c (Qopentype): New variable.
12754 (syms_of_font): Defsym it.
12755 (Fquery_font): Change the format of the last element of the return
12756 value.
12757
127582008-02-01 Kenichi Handa <handa@m17n.org>
12759
12760 * xfns.c (xic_create_xfontset): Try the default fontset name as a
12761 last resort.
12762
127632008-02-01 Kenichi Handa <handa@m17n.org>
12764
12765 * coding.c (detect_coding_charset): Fix detection of multi-byte
12766 charset.
12767
127682008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
12769
12770 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
12771
127722008-02-01 Kenichi Handa <handa@m17n.org>
12773
12774 * xdisp.c (get_next_display_element): Set it->face_id for the
12775 first component of a composition.
12776 (x_produce_glyphs): Check if the font is changed or not for composition.
12777
127782008-02-01 Kenichi Handa <handa@m17n.org>
12779
12780 * fontset.c (Qlatin): New variable.
12781 (syms_of_fontset): Define it as a lisp symbol.
12782 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
12783
127842008-02-01 Kenichi Handa <handa@m17n.org>
12785
12786 * font.c (font_unparse_fcname): Pay attention to the case that
12787 some of font property is a null string.
12788
127892008-02-01 Kenichi Handa <handa@m17n.org>
12790
12791 * term.c: Include "composite.h".
12792 (encode_terminal_code): Output all components of composition.
12793 Check the size of encode_terminal_src.
12794 (produce_glyphs): For composition, call produce_composite_glyph.
12795 (append_composite_glyph, produce_composite_glyph): New functions.
12796
12797 * xdisp.c (x_produce_glyphs): In handling composition, if a font
12798 is not found, get font_info from the current ascii face.
12799
128002008-02-01 Kenichi Handa <handa@m17n.org>
12801
12802 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
12803 buffer-file-name to Qnil before calling insert_from_buffer.
12804
12805 * font.c (font_unparse_fcname): Pay attention to the case that
12806 foundry is a null string.
12807
128082008-02-01 Kenichi Handa <handa@m17n.org>
12809
12810 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
12811
12812 * font.c (Qunicode_sip): New variable.
12813 (syms_of_font): Declare it as a Lisp symbol.
12814
12815 * font.h (Qunicode_sip): Extern it.
12816
128172008-02-01 Kenichi Handa <handa@m17n.org>
12818
12819 * composite.c (get_composition_id): Pay attention to TAB component.
12820
12821 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
12822 TAB. Adjust for the change of s->char2b which always points to
12823 the first element of allocated memory.
12824
12825 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
12826
12827 * xdisp.c (handle_composition_prop): Set it->c to the first
12828 non-TAB component.
12829 (fill_composite_glyph_string): Change argument.
12830 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
12831 (x_produce_glyphs): Fix handling of left/right padding.
12832
128332008-02-01 Kenichi Handa <handa@m17n.org>
12834
12835 * coding.c (detect_coding_system): Fix for handling off
12836 inhibit_iso_escape_detection. Fix for the case that no coding
12837 system is defined for a specific coding category.
12838
128392008-02-01 Kenichi Handa <handa@m17n.org>
12840
12841 * font.c (font_matching_entity): Delete unused local var.
12842
12843 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
12844 opening a font.
12845
12846 * fileio.c (Finsert_file_contents): On recovering a file, assume
12847 Unix-like eol.
12848 (choose_write_coding_system): On auto-saving a file, force
12849 Unix-like eol.
12850
12851 * coding.c (setup_coding_system): Fix setting of
12852 coding->common_flags based on eol_type.
12853 (coding_inherit_eol_type): If PARENT is not nil, be sure to
12854 inherit from it.
12855
128562008-02-01 Kenichi Handa <handa@m17n.org>
12857
12858 * alloc.c (NSTATICS): Increas to 0x600.
12859
128602008-02-01 Kenichi Handa <handa@m17n.org>
12861
12862 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
12863 (ftfont_list): Don't check :name property.
12864 (ftfont_match): New function.
12865 (ftfont_pattern_entity): If the pattern doesn't contain
12866 FC_SPACING, don't assume FC_MONO.
12867
12868 * font.h (struct font_driver): New member `match'.
12869 (font_update_drivers): Adjust prototype.
12870
12871 * font.c (font_parse_fcname, font_parse_name): Don't change :name
12872 property of FONT.
12873 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
12874 them unconditionally.
12875 (font_matching_entity): New function.
12876 (font_open_by_name): Try font_matching_entity if exact match is
12877 not found.
12878 (font_update_drivers): Delete the arg FONT. Return a list of
12879 actually used backends. Don't free faces, font caches here.
12880 Don't store data in frame parameters. Don't call x_set_font.
12881 (Ffont_spec): Store :name property as is.
12882 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
12883 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
12884 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
12885 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
12886 Call font->driver->otf_gsub instead of font_otf_gsub.
12887
12888 * frame.c (x_set_font_backend): Do more works that were done in
12889 font_update_drivers before.
12890
12891 * xfont.c (xfont_match): New function.
12892 (xfont_driver): Set xfont_driver.match to xfont_match.
12893 (xfont_draw): Set font in GC if necessary.
12894
12895 * ftxfont.c (ftxfont_match): New function.
12896 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
12897
12898 * xftfont.c (xftfont_match): New function.
12899 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
12900
129012008-02-01 Kenichi Handa <handa@m17n.org>
12902
12903 * font.h (struct font): New member scalable.
12904 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
12905 (font_otf_gsub): Adjust prototype.
12906
12907 * font.c (font_otf_capability): Fix handling of the default langsys.
12908 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
12909 Check the contents of SPEC.
12910 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
12911 (check_gstring): New function.
12912 (REPLACEMENT_CHARACTER): New macro.
12913 (font_otf_gsub): New arg alternate_subst. Be sure to set all
12914 glyph codes of GSTRING.
12915 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
12916 (font_prepare_composition): Set cmp->glyph_len.
12917 (font_open_entity): Set font->scalable.
12918 (Ffont_get): Handle :otf property.
12919 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
12920 functions.
12921 (Fquery_font): Use font->font.full_name.
12922 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
12923 Sfont_otf_alternates.
12924
12925 * ftfont.c (ftfont_open): Set font->font.full_name and
12926 font->font.name properly. Fix calculation of font->font.height
12927 and font->min_width.
12928
12929 * ftxfont.c (ftxfont_create_gcs): New function.
12930 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
12931 (ftxfont_draw_backgrond): Fix filling region.
12932 (ftxfont_default_fid): New function.
12933 (ftxfont_open): Set xfont->fid to the return value of
12934 ftxfont_default_fid.
12935 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
12936 (ftxfont_done_face): Free only GCs that are created by
12937 ftxfont_create_gcs.
12938 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
12939
12940 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
12941 Clip to src->width, etc (not src->clip_XXX).
12942
12943 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
12944 FontBackend frame parameter.
12945
129462008-02-01 Kenichi Handa <handa@m17n.org>
12947
12948 * font.h (struct font_driver_list): New member `on'.
12949 (Fclear_font_cache): EXFUN it.
12950 (font_update_drivers): Extern it.
12951
12952 * font.c (font_unparse_fcname): Fix typo (swidth->width).
12953 (font_list_entities): Check driver_list->on.
12954 (register_font_driver): Initalize `on' member to 0.
12955 (font_update_drivers): New function.
12956 (Fclear_font_cache): Check driver_list->on.
12957
12958 * frame.h (Qfont_backend): Extern it.
12959 (x_set_font_backend): Extern it.
12960
12961 * frame.c (Qfont_backend): New variable.
12962 (frame_parms): New element for font-backend.
12963 (x_set_font_backend): New function.
12964
12965 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
12966 FontBackend frame parameter.
12967 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
12968 x_set_font_backend.
12969
12970 * xfont.c (xfont_list): Don't try listing by :name property if the
12971 name is not for XLFD.
12972
129732008-02-01 Kenichi Handa <handa@m17n.org>
12974
12975 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
12976 (LGLYPH_SET_TO): New macros.
12977 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
12978 element of G is vector or not.
12979 (font_at): Extern it.
12980
12981 * font.c: Include window.h.
12982 (font_lispy_object): New function.
12983 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
12984 end of valid glyph.
12985 (font_close_object): Fix getting (struct font *).
12986 (font_at): New function.
12987 (Ffont_get): If FONT is a font-object, get entity from it.
12988 (Ffont_make_gstring): Initialize elements of glyphs with nil.
12989 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
12990 range check.
12991 (Ffont_at): New function.
12992 (syms_of_font): Defsubr Sfont_at.
12993
12994 * xdisp.c (it_props): Move the entry for Qauto_composed to just
12995 before the entry for Qcomposition.
12996 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
12997 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
12998 the font in gstring.
12999 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
13000 LGLYPH_FORM (g) to detect the end of valid glyph.
13001 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
13002 we are composing with gstring.
13003
13004 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
13005 Check if adjustment is vector or not.
13006
13007 * Makefile.in (font.o): Make it depends on window.h.
13008
130092008-02-01 Kenichi Handa <handa@m17n.org>
13010
13011 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
13012 adjustment is vector or not.
13013
130142008-02-01 Miles Bader <miles@gnu.org>
13015
13016 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
13017
130182008-02-01 Kenichi Handa <handa@m17n.org>
13019
13020 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
13021 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
13022 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
13023
13024 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
13025 (DEVICE_DELTA): Fix typo.
13026 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
13027 LGLYPH format.
13028
13029 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13030 the change of LGLYPH format.
13031
130322008-02-01 Kenichi Handa <handa@m17n.org>
13033
13034 * ftfont.c (ftfont_list): Fix typo.
13035 (ftfont_build_basic_charsets): Don't include letters with diacritics.
13036
130372008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13038
13039 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
13040
13041 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
13042 xftface_info is non-NULL.
13043
130442008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13045
13046 * ftfont.c (ftfont_list): Move misplaced #endif.
13047
130482008-02-01 Kenichi Handa <handa@m17n.org>
13049
13050 * ftfont.c (ftfont_list): Pay attention to the case that
13051 FC_CAPABILITY is not defined.
13052
130532008-02-01 Kenichi Handa <handa@m17n.org>
13054
13055 * xftfont.c (xftfont_open): Set charset related members to -1.
13056
13057 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
13058 QCname.
13059 (ftfont_open): Set charset related members to -1.
13060
13061 * fontset.c (Votf_script_alist): New variable.
13062 (syms_of_fontset): Initialize it.
13063 (fontset_font): Delete unused variable.
13064
13065 * fontset.h (Votf_script_alist): Extern it.
13066
13067 * font.c (font_find_for_lface): Optimize code.
13068
13069 * font.h (font_close_object, font_merge_old_spec): Extern them.
13070
130712008-02-01 Kenichi Handa <handa@m17n.org>
13072
13073 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
13074 (syms_of_font): Initialize them.
13075 (font_pixel_size): Allow float value in dpi.
13076 (font_prop_validate_type): Delete.
13077 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
13078 Change caller.
13079 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
13080 (font_prop_validate_extra): Delete.
13081 (font_prop_validate_spacing): New function.
13082 (font_property_table): Add elements for all known properties.
13083 (get_font_prop_index): Rename from check_font_prop_name. New
13084 argument FROM. Change caller.
13085 (font_prop_validate): Validate all known properties.
13086 (font_put_extra): Delete argument force. Change caller.
13087 (font_expand_wildcards): Make it static. Fix the way of shrinking
13088 the possible range.
13089 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
13090 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
13091 Change caller.
13092 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
13093 (font_parse_fcname): Delete argument merge. Fix parsing of point
13094 size. Don't validate properties values here. Change caller.
13095 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
13096 (font_open_by_name): Delete unused variable.
13097 (Ffont_spec): Likewise. Validate property values.
13098 (Ffont_match_p): New function.
13099
13100 * font.h (QCscalable): Extern it.
13101 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
13102
13103 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
13104
13105 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
13106 (xfont_list_pattern): New function.
13107 (xfont_list): Use xfont_list_pattern.
13108
131092008-02-01 Kenichi Handa <handa@m17n.org>
13110
13111 * font.h (Flist_fonts): EXFUN it.
13112
131132008-02-01 Jason Rumney <jasonr@gnu.org>
13114
13115 * w32term.c (w32_initialize): Add back smoothing_type and
13116 smoothing_enabled definitions.
13117
131182008-02-01 Kenichi Handa <handa@m17n.org>
13119
13120 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
13121 s->face->font on determining underline position.
13122
131232008-02-01 Kenichi Handa <handa@m17n.org>
13124
13125 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
13126 (font_has_char): Accept font-object too.
13127 (font_find_for_lface): Try at first with a size specified in face.
13128
131292008-02-01 Kenichi Handa <handa@m17n.org>
13130
13131 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
13132 font_open_by_name.
13133
131342008-02-01 Kenichi Handa <handa@m17n.org>
13135
13136 * font.h (QCspacing, QCdpi): Extern them.
13137 (enum font_spacing): New enum.
13138 (FONT_PIXEL_SIZE_QUANTUM): New macro.
13139
13140 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
13141 (QCspacing, QCdpi): New variables.
13142 (syms_of_font): Initialize them.
13143 (font_pixel_size): New function.
13144 (font_put_extra): New function.
13145 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
13146 in FONT_EXTRA.
13147 (font_parse_fcname): Handle enumerated values (e.g. bold).
13148 Fix handling font size. Add QCname property that contains only
13149 unknown properties.
13150 (font_score): Change argument. Change caller. Pay attention to
13151 FONT_PIXEL_SIZE_QUANTUM.
13152 (font_sort_entites, font_list_entities, font_find_for_lface)
13153 (font_open_for_lface, font_open_by_name): Fix handling of font size.
13154 (Ffont_spec): Add QCname property that contains only unknown properties.
13155
13156 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
13157 include weight in listing pattern, instead check weight of each
13158 listed font. Don't include scalable in pattern. Pay attention to
13159 FONT_PIXEL_SIZE_QUANTUM.
13160
131612008-02-01 Kenichi Handa <handa@m17n.org>
13162
13163 * font.c (font_parse_fcname): Fix parsing of point-size.
13164 (font_unparse_fcname): Produce symbolic names for style properties.
13165 (font_list_entities): Handle float size correctly.
13166 (font_open_by_name): Prefer `normal' property values if the name
13167 doesn't specify them.
13168
13169 * fontset.c (Finternal_char_font): Use font_get_name, not
13170 Ffont_xlfd_name.
13171
13172 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
13173 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
13174 pattern. Don't force scalable.
13175
13176 * xftfont.c (xftfont_open): For generating a name, start from
13177 96-byte buffer.
13178
131792008-02-01 Jan Djärv <jan.h.d@swipnet.se>
13180
13181 * frame.h (x_new_fontset2): Fix prototype.
13182
131832008-02-01 Kenichi Handa <handa@m17n.org>
13184
13185 * font.h (struct font_driver): Delete member parse_name.
13186 (font_match_p, font_get_spec, font_parse_fcname)
13187 (font_unparse_fcname): Extern them.
13188 (font_get_name): Adjust prototype.
13189
13190 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
13191 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
13192 (font_expand_wildcards): Fix handling ENCODING field. Avoid
13193 unnecessary checks for weight, slant, and swidth.
13194 (font_parse_fcname): New function.
13195 (font_unparse_fcname): New function.
13196 (font_parse_name): New function.
13197 (font_match_p): New function.
13198 (font_get_name): Change return value to Lisp string.
13199 (font_get_spec): New function.
13200 (Qunspecified, Qignore_defface): Don't extern them.
13201 (font_find_for_lface): Assume that LFACE is fully specified.
13202 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
13203 object, use it for FACE.
13204 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
13205 driver->parse_name.
13206 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
13207
13208 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
13209 prototype.
13210
13211 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
13212 argument F. Don't call Fnew_fontset. Instead, directly call
13213 make_fontset.
13214
13215 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
13216
13217 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
13218 of x_new_fontset2.
13219
13220 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
13221 (Qsans__serif): New variables.
13222 (ftfont_generic_family_list): New variable.
13223 (syms_of_ftfont): Initialize the above variables.
13224 (ftfont_pattern_entity): Delete argument NAME.
13225 (ftfont_list_generic_family): New function.
13226 (ftfont_parse_name): Delete this function.
13227 (ftfont_list): Try generic family only when FcFontList found no font.
13228 (ftfont_list_family): Fix args to FcObjectSetBuild.
13229
13230 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
13231 object in attrs[LFACE_FONT_INDEX].
13232 (set_lface_from_font_name): Cancel all changes for font-backend.
13233 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
13234 function.
13235 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
13236 font object in QCfont attribute.
13237 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
13238 (realize_default_face) [USE_FONT_BACKEND]: Call
13239 set_lface_from_font_and_fontset.
13240
13241 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
13242 "fixed", and signal error here if no suitable font was found.
13243
13244 * xfont.c (xfont_parse_name): Delete this function.
13245
13246 * xftfont.c (xftfont_open): Change coding style of error
13247 handling. Generate fontconfig's fontname pattern.
13248
13249 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
13250 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
13251
13252 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
13253 Both args FONTSET and FONT_OBJECT must be existing ones.
13254
132552008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13256
13257 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
13258
132592008-02-01 Kenichi Handa <handa@m17n.org>
13260
13261 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
13262
13263 * font.h (struct font): Fix typo.
13264
13265 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
13266 XLFD_XXX_INDEX.
13267 (enum xlfd_field_mask): New enum.
13268 (intern_font_field): Changed argument. Change caller. If digits
13269 are followed by non-digits, return a symbol.
13270 (font_expand_wildcards): New function.
13271 (font_parse_xlfd): Fix wildcard handling.
13272 (Ffont_spec): If :name is specified, reflect the info in the other
13273 properties.
13274
13275 * ftfont.c (ftfont_pattern_entity): Fix typo.
13276 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
13277 locale.
13278
132792008-02-01 Kenichi Handa <handa@m17n.org>
13280
13281 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
13282
13283 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
13284 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
13285 registry doesn't specify encoding part.
13286 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
13287 (font_open_by_name): At first try parsing the name.
13288 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
13289 as Lisp symbols.
13290
13291 * fontset.c (reorder_font_vector): Pay attention to the case that
13292 the 3rd element of font_def is nil.
13293 (fontset_font): For the default fontset, append one more fontset
13294 elements for a script-based font specification. Don't add script
13295 attribute on finding a font.
13296 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
13297 font name.
13298 (fontset_ascii_font): If a font can't be opened, return nil.
13299
13300 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
13301 (ftfont_pattern_entity): New function.
13302 (ftfont_get_cache): Assume that freetype_font_cache is already
13303 initialized.
13304 (ftfont_list): Handle the case that a file is specified in font
13305 name. Use ftfont_pattern_entity to generate entities.
13306 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
13307 (syms_of_ftfont): Initialize freetype_font_cache.
13308
13309 * xftfont.c (xftfont_open): Make the font name fontconfig's
13310 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
13311 (xftfont_close): Free font->font.name if not NULL.
13312
13313 * xfont.c (xfont_list): If script is specified for a font, return
13314 null_vector.
13315 (xfont_list_family): Declare argument type.
13316
13317 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
13318 name, set LFACE_FONT (lface) to nil.
13319
13320 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
13321 return Qnil.
13322
133232008-02-01 Kenichi Handa <handa@m17n.org>
13324
13325 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
13326 (standard_args): Add "-enable-font-backend".
13327
133282008-02-01 Kenichi Handa <handa@m17n.org>
13329
13330 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
13331 (struct xftdraw_list, xftdraw_list): Delete them.
13332 (register_xftdraw, check_xftdraw): Delete them.
13333 (xftfont_prepare_face): Don't call register_xftdraw.
13334 (xftfont_done_face): Don't call check_xftdraw.
13335 (xftfont_draw): Get background color only when with_background is
13336 nonzero.
13337
13338 * xfont.c (xfont_encode_char): Fix calculation of char2b.
13339
133402008-02-01 Kenichi Handa <handa@m17n.org>
13341
13342 These changes are for the new font handling codes.
13343
13344 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
13345 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
13346 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
13347 (FONTSRC, FONTOBJ): New variables.
13348 (obj): Add $(FONTOBJ).
13349 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
13350 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
13351 @LIBOTF_LIBS@.
13352 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
13353 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
13354
13355 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
13356
13357 * character.h (Vscript_representative_chars): Extern it.
13358
13359 * character.c (Vscript_representative_chars): New variable.
13360 (syms_of_character): Declare it as a Lisp variable.
13361
13362 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
13363 enable_font_backend is nonzero, accept the composition method
13364 COMPOSITION_WITH_GLYPH_STRING.
13365
13366 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
13367 enumeration COMPOSITION_WITH_GLYPH_STRING.
13368
13369 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
13370 members clip_x, clip_y, clip_width, and clip_height.
13371 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
13372
13373 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
13374 --enable-font-backend. Call syms_of_font.
13375
13376 * fns.c (assoc_no_quit): New function.
13377
13378 * fontset.h (FONT_INFO_FROM_FACE): New macro.
13379 (face_for_font, new_fontset_from_font)
13380 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
13381
13382 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
13383 (fontset_font, fontset_ascii, face_for_char)
13384 (make_fontset_for_ascii_face, Ffont_info)
13385 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
13386 is nonzero, use font-backend mechanism.
13387 (find_font_encoding): Make it non-static.
13388 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
13389 New functions.
13390
13391 * frame.h (struct frame): New members resx and resy.
13392 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
13393 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
13394
13395 * frame.c [USE_FONT_BACKEND]: Include "font.h".
13396 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
13397
13398 * lisp.h (assoc_no_quit): Extern it.
13399
13400 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
13401 Through out the file, use FONT_INFO_FROM_FACE instead of
13402 FONT_INFO_FROM_ID, use get_per_char_metric instead of
13403 rif->per_char_metric.
13404 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
13405 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
13406 (get_glyph_face_and_encoding, fill_composite_glyph_string)
13407 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
13408 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
13409 nonzero, use font-backend mechanism.
13410 (get_per_char_metric): New function.
13411
13412 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
13413 (set_lface_from_font_name)
13414 (set_font_frame_param, free_realized_face)
13415 (prepare_face_for_display, clear_face_gcs)
13416 (Finternal_set_font_selection_order, realize_x_face)
13417 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
13418 font-backend mechanism.
13419 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
13420 (load_face_font) [USE_FONT_BACKEND]: Abort.
13421 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
13422 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
13423
13424 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
13425 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
13426 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
13427 nonzero, register all available font drivers. Call
13428 x_default_font_parameter for deciding a font.
13429 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
13430
13431 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
13432 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
13433 (x_set_glyph_string_clipping_exactly)
13434 (x_compute_glyph_string_overhangs)
13435 (x_draw_glyph_string_foreground)
13436 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
13437 (x_free_frame_resources) [USE_FONT_BACKEND]: If
13438 enable_font_backend is nonzero, use font-backend mechanism.
13439 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
13440
134412008-02-01 Kenichi Handa <handa@m17n.org>
13442
13443 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
13444 system_eol_type.
13445 (syms_of_coding): Initialize system_eol_type.
13446
13447 * process.c (Fset_process_coding_system): Inherit system's eol
13448 format if necessary.
13449
134502008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13451
13452 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
13453
134542008-02-01 Kenichi Handa <handa@m17n.org>
13455
13456 * coding.c (decode_eol): Pay attention to buffer relocation in
13457 del_range_2.
13458 (decode_coding): Call decode_eol before restoring undo_list.
13459
134602008-02-01 Kenichi Handa <handa@m17n.org>
13461
13462 * charset.c (Fdefine_charset_internal): Fix setting of
13463 emacs_mule_bytes.
13464
134652008-02-01 Kenichi Handa <handa@m17n.org>
13466
13467 * keyboard.c (read_char): Check if C is a character or not before
13468 looking up Vkeyboard_translate_table.
13469
134702008-02-01 Kenichi Handa <handa@m17n.org>
13471
13472 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
13473 condition to terminate the loop.
13474
134752008-02-01 Kenichi Handa <handa@m17n.org>
13476
13477 * coding.c (produce_composition): Compare charbuf[i] instead of
13478 args[i] against 0.
13479 (Fterminal_coding_system): Use EQ to compare Lisp objects.
13480
134812008-02-01 Kenichi Handa <handa@m17n.org>
13482
13483 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
13484 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
13485 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
13486 detect_coding.
13487 (emacs_mule_char): Handle old style (Emacs 20) component character
13488 of a composition.
13489 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
13490 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
13491 composition rule.
13492 (decode_coding_emacs_mule): Handle invalid bytes correctly.
13493
134942008-02-01 Kenichi Handa <handa@m17n.org>
13495
13496 * coding.c (encode_coding_ccl): Allocate destination dynamically
13497 when necessary.
13498
134992008-02-01 Kenichi Handa <handa@m17n.org>
13500
13501 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
13502 the loop. When quitted, show a proper error message.
13503
135042008-02-01 Kenichi Handa <handa@m17n.org>
13505
13506 * xterm.c (x_set_glyph_string_clipping_exactly): Set
13507 src->clip_head and src->clip_tail temporarily instead of src->hl.
13508
13509 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
13510 character sequence.
13511 (Fccl_execute_on_string): Use ASET, not XSET.
13512
135132008-02-01 Kenichi Handa <handa@m17n.org>
13514
13515 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
13516
135172008-02-01 Kenichi Handa <handa@m17n.org>
13518
13519 * coding.c (decode_coding): Fix the condition of terminating the
13520 decoding loop.
13521
135222008-02-01 Kenichi Handa <handa@m17n.org>
13523
13524 * data.c (Faset): On setting a character bigger than 255 in a
13525 unibyte string, signal an error instead of make the string multibyte.
13526
135272008-02-01 Kenichi Handa <handa@m17n.org>
13528
13529 * charset.c (map_charset_chars): Fix for ascii-compatible charset
13530 made by a mapping table.
13531
135322008-02-01 Kenichi Handa <handa@m17n.org>
13533
13534 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
13535 not.
13536 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
13537 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
13538
13539 * xterm.c (x_draw_composite_glyph_string_foreground): Check
13540 s->face is NULL or not.
13541
135422008-02-01 Kenichi Handa <handa@m17n.org>
13543
13544 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
13545 (x_draw_glyph_string): Fix drawing of right_overhang and
13546 left_overhang around/on cursor.
13547
13548 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
13549
135502008-02-01 Kenichi Handa <handa@m17n.org>
13551
13552 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
13553
135542008-02-01 Kenichi Handa <handa@m17n.org>
13555
13556 * coding.c (Fdefine_coding_system_internal)
13557 (Fdefine_coding_system_alias): Avoid a duplicated element in
13558 Vcoding_system_alist.
13559
135602008-02-01 Kenichi Handa <handa@m17n.org>
13561
13562 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
13563
13564 * coding.c (Qcoding_system_define_form): New variable.
13565 (syms_of_coding): Intern and staticpro it.
13566 (Fcoding_system_p): Check Qcoding_system_define_form.
13567 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
13568
13569 * coding.h (CODING_SYSTEM_P): If ID is not available, call
13570 Fcoding_system_p.
13571 (CHECK_CODING_SYSTEM): If ID is not available, call
13572 Fcheck_coding_system.
13573 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
13574 Try also Fcheck_coding_system.
13575
135762008-02-01 Kenichi Handa <handa@m17n.org>
13577
13578 * coding.c (code_conversion_restore): GCPRO arg.
13579
135802008-02-01 Kenichi Handa <handa@m17n.org>
13581
13582 * character.c (lisp_string_width): Check multibyteness of STRING.
13583
135842008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13585
13586 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
13587 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
13588 (decode_mac_font_name): Use decode_coding_c_string instead of
13589 decode_coding.
13590 (x_load_font): Initialize fontp->fontset to -1. Set
13591 fontp->encoding_type.
13592
135932008-02-01 Kenichi Handa <handa@m17n.org>
13594
13595 * search.c (search_buffer): Give up BM search on case-fold-search
13596 if one of a target character has a case-equivalence of different
13597 byte length even if that target charcter is an ASCII.
13598 (simple_search): Fix calculation of byte length of matched text.
13599 (boyer_moore): Fix handling of case-equivalent multibyte characters.
13600
136012008-02-01 Kenichi Handa <handa@m17n.org>
13602
13603 * coding.c (decode_coding): Fix handling of invalid bytes.
13604
136052008-02-01 Kenichi Handa <handa@m17n.org>
13606
13607 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
13608 Unicode characters.
13609
136102008-02-01 Kenichi Handa <handa@m17n.org>
13611
13612 * coding.c (encode_coding_object): If a pre-write-conversion
13613 function makes a new buffer, kill it.
13614
136152008-02-01 Kenichi Handa <handa@m17n.org>
13616
13617 * coding.c (QCascii_compatible_p): New variable.
13618 (syms_of_coding): Initialize it.
13619 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
13620 calling string_char.
13621 (record_conversion_result): Add `default:' case.
13622 (coding_charset_list): Delete unused variable `coding_type'.
13623 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
13624 property in the plist of the coding system.
13625 (Fcoding_system_put): Check QCascii_compatible_p.
13626
136272008-02-01 Miles Bader <miles@gnu.org>
13628
13629 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
13630 removed calculation of frame `f', as it's now used.
13631
136322008-02-01 Kenichi Handa <handa@m17n.org>
13633
13634 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
13635 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
13636 (UNIDATA): New variable.
13637 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
13638 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
13639 $(RUN_TEMACS) unconditionally.
13640
136412008-02-01 Kenichi Handa <handa@m17n.org>
13642
13643 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
13644 (admindir): New variable.
13645 ($(lispsource)international/charprop.el): New target.
13646
136472008-02-01 Miles Bader <miles@gnu.org>
13648
13649 * character.c (chars-in-region): Remove obsolete function.
13650 (syms_of_character): Remove its initialization.
13651
136522008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
13653
13654 * w32select.c (validate_coding_system)
13655 (setup_windows_coding_system): New functions.
13656 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
13657 setup_windows_coding_system.
13658 (setup_config, Fw32_get_clipboard_data): Use
13659 validate_coding_system.
13660 (Fx_selection_exists): Move call to setup_config to a place
13661 where signals are allowed.
13662
13663 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
13664 (Fcheck_coding_system): Add declarations.
13665
136662008-02-01 Kenichi Handa <handa@m17n.org>
13667
13668 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
13669
136702008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13671
13672 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
13673 string as the second argument for x_new_fontset.
13674
136752008-02-01 Kenichi Handa <handa@m17n.org>
13676
13677 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
13678 (encode_coding_object): Use safe_call instead of call2.
13679
136802008-02-01 Kenichi Handa <handa@m17n.org>
13681
13682 * fontset.c (Fset_fontset_font): Check family element of a given vector.
13683
13684 * Makefile.in (lisp): Include charprop.el.
13685
136862008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13687
13688 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
13689 Not sure if it's unnecessary.
13690
136912008-02-01 Steven Tamm <steventamm@mac.com>
13692
13693 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
13694 some possibly unnecessary fontset checking code that crashed
13695 when creating a new frame.
13696
136972008-02-01 Kenichi Handa <handa@m17n.org>
13698
13699 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
13700 lookup_face.
13701
13702 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
13703
13704 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
13705
137062008-02-01 Kenichi Handa <handa@m17n.org>
13707
13708 * coding.c: Cancel the change done in HEAD on 2008-02-01.
13709 (coding_charset_list): New function.
13710
13711 * coding.h (coding_charset_list): Extern it.
13712
137132008-02-01 Kenichi Handa <handa@m17n.org>
13714
13715 * fontset.c (Fset_fontset_font): Call find_font_encoding with
13716 concatenation of family and registry.
13717
137182008-02-01 Kenichi Handa <handa@m17n.org>
13719
13720 * character.h (BYTE8_STRING): Fix typo.
13721
13722 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
13723 string to multibyte (sync to HEAD).
13724
13725 * casefiddle.c (casify_region): Handle changes in byte-length
13726 using replace_range_2 (sync to HEAD).
13727
137282008-02-01 Andreas Schwab <schwab@suse.de>
13729
13730 * chartab.c (map_char_table): GCPRO table and arg.
13731
137322008-02-01 Kenichi Handa <handa@m17n.org>
13733
13734 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
13735 already at limit.
13736
137372008-02-01 Kenichi Handa <handa@m17n.org>
13738
13739 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
13740 instead of fast_c_string_match_ignore_case.
13741 (find_font_encoding): Change argument to Lisp_Object. Use
13742 fast_string_match_ignore_case instead of
13743 fast_c_string_match_ignore_case. Change caller.
13744
137452008-02-01 Kenichi Handa <handa@m17n.org>
13746
13747 * xdisp.c (get_next_display_element): In unibyte case, decide to
13748 display in octal form by checking a character by
13749 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
13750
13751 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
13752
13753 * character.c (unibyte_has_multibyte_table): New variable.
13754
13755 * character.h (unibyte_has_multibyte_table): Extern it.
13756 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
13757
137582008-02-01 Kenichi Handa <handa@m17n.org>
13759
13760 * coding.c (encode_coding_iso_2022): Fix handling of charset
13761 annotation.
13762
137632008-02-01 Kenichi Handa <handa@m17n.org>
13764
13765 * coding.c (setup_coding_system): If coding_system is nil, use
13766 Qundecided.
13767 (Fterminal_coding_system): Return nil if terminal coding system is
13768 `undecided'.
13769 (syms_of_coding): Define coding-system `undecided' here. Setup
13770 terminal_coding as `undecided'.
13771
137722008-02-01 Kenichi Handa <handa@m17n.org>
13773
13774 * xdisp.c (message_dolog, set_message_1): Call
13775 unibyte_char_to_multibyte with arg type int.
13776
13777 * lread.c (read1): Fix reading of a char-table.
13778
13779 * print.c (print_object): Include sub char-table in circularities
13780 detection.
13781
137822008-02-01 Kenichi Handa <handa@m17n.org>
13783
13784 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
13785 Append the found sequences in car of ARGS instead of prepending.
13786
137872008-02-01 Kenichi Handa <handa@m17n.org>
13788
13789 * fileio.c (report_file_error): Make a unibyte string from
13790 strerror (errorno).
13791 (Fsubstitute_in_file_name): Fix the arg to
13792 unibyte_char_to_multibyte. It is evaluated twice.
13793
137942008-02-01 Kenichi Handa <handa@m17n.org>
13795
13796 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
13797
137982008-02-01 Kenichi Handa <handa@m17n.org>
13799
13800 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
13801 BOM is not found.
13802 (detect_coding, detect_coding_system): Optimization for ISO-2022
13803 when no 8-bit data is found.
13804
138052008-02-01 Jason Rumney <jasonr@gnu.org>
13806
13807 * w32fns.c (x_to_w32_font): Update to use new coding struct.
13808
138092008-02-01 Kenichi Handa <handa@m17n.org>
13810
13811 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
13812 CHARS.
13813
138142008-02-01 Steven Tamm <steventamm@mac.com>
13815
13816 * macterm.c (mac_encode_char): Add charset argument and update
13817 to use encoding_type.
13818 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
13819 switch to pure fontset.
13820 (decode_mac_font_name): Temporarily remove decoding.
13821 (x_font_name_to_mac_font_name): Temporarily remove encoding.
13822 (x_load_font): Temporarily remove encoding.
13823
138242008-02-01 Kenichi Handa <handa@m17n.org>
13825
13826 * xfaces.c (Fface_font): If frame is not on a window system,
13827 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
13828 refer to face->font.
13829 (split_font_name_into_vector, build_font_name_from_vector)
13830 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
13831 when HAVE_WINDOW_SYSTEM is defined.
13832
138332008-02-01 Kenichi Handa <handa@m17n.org>
13834
13835 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
13836 (x_produce_glyphs): Fix setting of members of cmp in case
13837 cmp->glyph_len is zero.
13838
13839 * fontset.c (Fset_fontset_font): Fix docstring.
13840 (Ffontset_info): Make it backward compatible. New arg ALL.
13841
138422008-02-01 Kim F. Storm <storm@cua.dk>
13843
13844 * process.c (read_process_output): Grow decoding_buf when needed;
13845 this could cause a crash in allocate_string and compact_small_strings.
13846
138472008-02-01 Kenichi Handa <handa@m17n.org>
13848
13849 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
13850
138512008-02-01 Kenichi Handa <handa@m17n.org>
13852
13853 * coding.c (setup_coding_system): Set coding->common_flags
13854 correctly for raw-text.
13855 (consume_chars): On encoding unibyte text by raw-text, don't check
13856 multibyte form.
13857 (encode_coding): On encoding by raw-text, never use translation tables.
13858
13859 * fileio.c (e_write): Short cut for the case of no encoding.
13860
138612008-02-01 Kenichi Handa <handa@m17n.org>
13862
13863 * coding.c (detect_coding, detect_coding_system): Delete unused
13864 variables.
13865
138662008-02-01 Kenichi Handa <handa@m17n.org>
13867
13868 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
13869 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
13870
138712008-02-01 Kenichi Handa <handa@m17n.org>
13872
13873 * coding.c (Ffind_coding_systems_region_internal): Include
13874 raw-text and no-conversion in the result.
13875
138762008-02-01 Kenichi Handa <handa@m17n.org>
13877
13878 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
13879 (load_font_get_repertory): Delete unnecessary check of ENCODING of
13880 FONT_DEF.
13881 (font_def_arg, add_arg, from_arg, to_arg): New args.
13882 (set_fontset_font): Change argument.
13883 (Fset_fontset_font): Fix for the case that TARGET is a script
13884 name and charset name.
13885 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
13886
138872008-02-01 Kenichi Handa <handa@m17n.org>
13888
13889 * fontset.c (fontset_font): Rename from fontset_face. Change return
13890 value.
13891 (face_suitable_for_char_p, face_for_char): Adjust for the change
13892 of fontset_font.
13893 (make_fontset_for_ascii_face): Fix setting of the fontset element
13894 for ASCII.
13895 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
13896 to get a font name.
13897 (Ffontset_info): Adjust for the change of fontset_font.
13898
13899 * coding.c (emacs_mule_char): Check invalid code more rigidly.
13900
13901 * character.h (LEADING_CODE_LATIN_1_MIN)
13902 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
13903
139042008-02-01 Kenichi Handa <handa@m17n.org>
13905
13906 * editfns.c (check_translation): New function.
13907 (Ftranslate_region_internal): Handle M:N mapping.
13908
139092008-02-01 Kenichi Handa <handa@m17n.org>
13910
13911 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
13912
139132008-02-01 Kenichi Handa <handa@m17n.org>
13914
13915 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
13916 goto invalid_code.
13917 (decode_coding_iso_2022): Fix handling of invalid designation.
13918
13919 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
13920 after calling code_conversion_save.
13921
139222008-02-01 Kenichi Handa <handa@m17n.org>
13923
13924 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
13925
13926 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
13927
13928 * fontset.c: Include "intervals.h".
13929 (fontset_face): Fix comparing of Lisp_Objects.
13930 (free_face_fontset, new_fontset_from_font_name): Fix
13931 Lisp_Object/int mixup.
13932
13933 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
13934
13935 * coding.c: Add many prototypes for static functions.
13936 (get_translation_table): Allow max_lookup to be NULL.
13937 (decode_coding, Ffind_coding_systems_region_internal)
13938 (Funencodable_char_position, Fcheck_coding_systems_region): Call
13939 get_translation_table with max_lookup NULL.
13940
139412008-02-01 Kenichi Handa <handa@m17n.org>
13942
13943 * coding.c (get_translation_table): Declare it as Lisp_Object.
13944 (LOOKUP_TRANSLATION_TABLE): New macro.
13945 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
13946 instead of CHAR_TABLE_REF.
13947
139482008-02-01 Kenichi Handa <handa@m17n.org>
13949
13950 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
13951 annotation data format.
13952 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
13953 Change arguments FROM and TO to single argument NCHARS. Change caller.
13954 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
13955 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13956 (decode_coding_ccl, decode_coding_charset): Pay attention to
13957 coding->charbuf_used.
13958 (get_translation): New function.
13959 (produce_chars): New arguments translation_table and last_block.
13960 Translate characters here. Return number of carryover chars.
13961 Change caller.
13962 (produce_composition): New argument pos. Change caller.
13963 Adjust for the change of annotation data format.
13964 (produce_charset, produce_annotation): Likewise.
13965 (decode_coding, encode_coding): Don't call translate_chars.
13966 (consume_chars): New arg translation_table. Change caller.
13967 (translate_chars): Delete.
13968 (syms_of_coding): Make translation-table's number of extra slots 2.
13969
139702008-02-01 Kenichi Handa <handa@m17n.org>
13971
13972 * search.c (simple_search): Fix setting this_pos_byte in backward
13973 search.
13974
13975 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
13976 byte sequence.
13977 (detect_coding_ccl): Fix setting of the variable valids.
13978
139792008-02-01 Kenichi Handa <handa@m17n.org>
13980
13981 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
13982
13983 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
13984
13985 * editfns.c (Ftranslate_region_internal): Rename from
13986 Ftranslate_region. Accept a char-table in TABLE.
13987 (syms_of_editfns): Defsubr Stranslate_region_internal.
13988
13989 * xfaces.c (set_lface_from_font_name): If a font is specified for
13990 a frame, generate a fontset from the font.
13991 (build_scalable_font_name): If the scalable font is requested for
13992 a specific size, don't change that size.
13993 (try_font_list): Try a scalable font also in the case that a
13994 pattern string is specified.
13995
139962008-02-01 Kenichi Handa <handa@m17n.org>
13997
13998 * xfaces.c (Fface_font): New optional arg CHARACTER.
13999
140002008-02-01 Kenichi Handa <handa@m17n.org>
14001
14002 * charset.h (CHARSET_OFFSET): New macro.
14003
140042008-02-01 Kenichi Handa <handa@m17n.org>
14005
14006 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
14007
14008 * fontset.c (fontset_face): Handle the case that repertory is a
14009 char-table.
14010 (find_font_encoding): Return nil for unknown encoding.
14011 (Fset_fontset_font): Ignore a font of unknown encoding.
14012
140132008-02-01 Kenichi Handa <handa@m17n.org>
14014
14015 * keymap.c (describe_vector): Handle default value of a char table.
14016
14017 * fontset.c (fontset_face): Handle fallback fonts correctly.
14018 (Ffontset_info): Return infomation about fallback fonts.
14019
140202008-02-01 Kenichi Handa <handa@m17n.org>
14021
14022 * fontset.c (FONTSET_DEFAULT): New macro.
14023 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
14024 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
14025 the case that it is nil.
14026 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
14027 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
14028
14029 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
14030 subset or superset.
14031
140322008-02-01 Kenichi Handa <handa@m17n.org>
14033
14034 * emacs.c (main): Call init_charset after syms_of_XXX.
14035
14036 * charset.c (Vcharset_map_directory): Delete.
14037 (Vcharset_map_path): New variable.
14038 (load_charset_map_from_file): Use Vcharset_map_path instead.
14039 (init_charset): Initialize Vcharset_map_path.
14040 (syms_of_charset): Delete declaration of "charset-map-directory",
14041 add declaration of "charset-map-path".
14042
140432008-02-01 Kenichi Handa <handa@m17n.org>
14044
14045 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
14046 ASCII only string.
14047
14048 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
14049
14050 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
14051 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
14052
140532008-02-01 Kenichi Handa <handa@m17n.org>
14054
14055 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
14056
14057 * coding.c (QCmnemonic, QCdefalut_char)
14058 (QCdecode_translation_table, QCencode_translation_table)
14059 (QCpost_read_conversion, QCpre_write_conversion): New variables.
14060 (get_translation_table): Return a list of translation tables if
14061 necessary.
14062 (decode_coding): Call get_translation_table with ENCODEP 0.
14063 (char_encodable_p): If translation_table is non-nil, always call
14064 translate_char.
14065 (Fdefine_coding_system_internal): Accept list of translation
14066 tables as :encode-translation-table and :decode-translation-table.
14067 (Fcoding_system_put): New function.
14068 (syms_of_coding): Declare new symbols. Defsubr
14069 Scoding_system_put.
14070 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
14071 typically JISX0212.
14072
14073 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
14074 when the charset is superset type.
14075
14076 * character.c (translate_char): Accept list of translation tables.
14077
140782008-02-01 Kenichi Handa <handa@m17n.org>
14079
14080 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
14081 (CODING_ATTR_TRANS_TBL): New macro.
14082
14083 * coding.c (get_translation_table): New function.
14084 (translate_chars): Fix the bug of skipping annotation data.
14085 (decode_coding, encode_coding): Utilize get_translation_table.
14086 (char_encodable_p, Funencodable_char_position): Translate char if
14087 necessary.
14088 (Ffind_coding_systems_region_internal)
14089 (Fcheck_coding_systems_region): Setup translation table for encode
14090 in a coding system attribute vector in advance.
14091 (Fdefine_coding_system_internal): Allow a symbol as translation
14092 table. For shift-jis type coding system, allow 4th charset.
14093
140942008-02-01 Kenichi Handa <handa@m17n.org>
14095
14096 * coding.c (decode_coding_sjis): Check the first byte rigidly.
14097
14098 * xdisp.c (get_next_display_element): Pass -1 as POS to
14099 FACE_FOR_CHAR if displaying a C-string.
14100
141012008-02-01 Kenichi Handa <handa@m17n.org>
14102
14103 * composite.c (get_composition_id): Handle xoff and yoff in a
14104 composition rule.
14105
14106 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
14107 (struct composition): New member lbearing and rbearing.
14108
14109 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
14110 (x_get_glyph_overhangs): Handle a composition glyph.
14111 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
14112
14113 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
14114 composition glyph.
14115
141162008-02-01 Kenichi Handa <handa@m17n.org>
14117
14118 * print.c: Include charset.h.
14119 (Vprint_charset_text_property): New variable.
14120 (Qdefault): Extern it.
14121 (PRINT_STRING_NON_CHARSET_FOUND)
14122 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
14123 (print_check_string_result): New variable.
14124 (print_check_string_charset_prop): New function.
14125 (print_prune_charset_plist): New variable.
14126 (print_prune_string_charset): New function.
14127 (print_object): Call print_prune_string_charset if
14128 Vprint_charset_text_property is not t.
14129 (print_interval): Print nothing if interval->plist is nil.
14130 (syms_of_print): Declare Vprint_charset_text_property as a lisp
14131 variable. Init and staticpro print_prune_charset_plist.
14132
141332008-02-01 Kenichi Handa <handa@m17n.org>
14134
14135 * fontset.c (new_fontset_from_font_name): Use the specified font
14136 for all characters in the new fontset.
14137
14138 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
14139 OBJECT args.
14140
14141 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
14142 OBJECT args for composition too.
14143
14144 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
14145 OBJECT args.
14146
141472008-02-01 Kenichi Handa <handa@m17n.org>
14148
14149 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
14150
14151 * fontset.c (reorder_font_vector): Adjust for the change of
14152 FONT_DEF format.
14153 (fontset_face): New arg id. Change caller.
14154 (face_for_char): New args pos and object.
14155 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
14156 (fs_query_fontset): Check NAME by Fassoc too.
14157 (Fset_fontset_font): Allow non-XLFD font name.
14158 (Ffontset_info): Adjust for the change of FONT_DEF format.
14159
14160 * fontset.h (face_for_char): Adjust prototype.
14161
14162 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
14163 (append_space, extend_face_to_end_of_line)
14164 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
14165 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
14166
14167 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
14168 POS and OBJECT args.
14169
14170 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
14171 POS and OBJECT args.
14172
141732008-02-01 Jason Rumney <jasonr@gnu.org>
14174
14175 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
14176 of GlobalAlloc'ed memory.
14177
141782008-02-01 Kenichi Handa <handa@m17n.org>
14179
14180 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
14181
14182 * charset.h (charset_table_used): Delete extern.
14183
14184 * charset.c (charset_table_used): Make it static.
14185 (map_charset_chars): Fix args to c_function with.
14186
14187 * chartab.c (map_sub_char_table_for_charset): Fix args to
14188 c_function with.
14189
14190 * coding.h (enum coding_result_code): Delete
14191 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
14192
14193 * coding.c (Qinsufficient_source, Qinconsistent_eol)
14194 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
14195 (Vlast_code_conversion_error): New variables.
14196 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
14197 (ONE_MORE_BYTE): Record error if any instead of signaling an
14198 error. If non-ASCII multibyte char is found, return the negative
14199 value of the code. All callers changed to check it.
14200 (ONE_MORE_BYTE_NO_CHECK): Likewise.
14201 (record_conversion_result): New function. Change all codes setting
14202 coding->result to call this function.
14203 (detect_coding_utf_8, decode_coding_utf_8)
14204 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
14205 Don't use the local variable incomplete.
14206 (emacs_mule_char): Change the second arg to `const'.
14207 (decode_coding): Fix of flushing out unprocessed data.
14208 (make_conversion_work_buffer): Fix making of a work buffer.
14209 (decode_coding_object): Return coding->dst_object.
14210
14211 * fontset.c (set_fontset_font): Fix args.
14212
14213 * lisp.h (CHARACTERBITS): Define as 22.
14214
14215 * process.c (send_process): Be sure to set coding->src_multibyte.
14216
14217 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
14218
142192008-02-01 Kenichi Handa <handa@m17n.org>
14220
14221 * xdisp.c (handle_auto_composed_prop): Give limit to
14222 Fnext_single_char_property_change.
14223
142242008-02-01 Kenichi Handa <handa@m17n.org>
14225
14226 * composite.c (syms_of_composite): Don't make the composition hash
14227 table weak.
14228
14229 * fontset.c (Fset_fontset_font): Fix docstring.
14230
14231 * lisp.h (detect_coding_system): Adjust prototype.
14232
14233 * fileio.c (kill_workbuf_unwind): Delete this function.
14234 (Finsert_file_contents): Adjust the call of detect_coding_system.
14235 Get conversion_buffer by code_conversion_save. Use the macro
14236 CODING_MAY_REQUIRE_DECODING. After decoding, update
14237 coding_system.
14238
14239 * coding.h (make_conversion_work_buffer): Delete extern.
14240 (code_conversion_save): Extern it.
14241
14242 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
14243 (CODING_GET_INFO): Delete argument eol_type. Change callers.
14244 (decode_coding_utf_8): Don't do eol converion.
14245 (detect_coding_utf_16): Check coding->src_chars, not
14246 coding->src_bytes. Add heuristics for those that have no signature.
14247 (decode_coding_emacs_mule, decode_coding_iso_2022)
14248 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
14249 Don't do eol converion.
14250 (adjust_coding_eol_type): Return a new coding system.
14251 (detect_coding): Don't detect eol. Fix for utf-16 detection.
14252 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
14253 each change.
14254 (decode_coding): Pay attention to undo_list. Do eol conversion for
14255 all types of coding-systems (if necessary).
14256 (Vcode_conversion_work_buf_list): Delete it.
14257 (Vcode_conversion_reused_workbuf): Rename from
14258 Vcode_conversion_reused_work_buf.
14259 (Vcode_conversion_workbuf_name): New variable.
14260 (reused_workbuf_in_use): New variable.
14261 (make_conversion_work_buffer): Delete the arg DEPTH.
14262 (code_conversion_restore): Change argument to cons.
14263 (code_conversion_save): Delete the argument BUFFER. Change callers.
14264 (detect_coding_system): New argument src_chars. Change callers.
14265 Fix for utf-16 detection.
14266 (init_coding_once): Don't use ISO_carriage_return.
14267 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
14268 reused_workbuf_in_use.
14269
142702008-02-01 Kenichi Handa <handa@m17n.org>
14271
14272 * keymap.c (store_in_keymap): Pay attention to the case that idx
14273 is a cons specifying a character range.
14274
142752008-02-01 Kenichi Handa <handa@m17n.org>
14276
14277 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
14278 HANDLED_RECOMPUTE_PROPS.
14279
14280 * coding.c (Fdefine_coding_system_internal): Fix checking of
14281 ascii compatibility.
14282
142832008-02-01 Kenichi Handa <handa@m17n.org>
14284
14285 * charset.c (find_charsets_in_text): Delete unused locale variable.
14286 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
14287
14288 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
14289 Resync charset_list to Vemacs_mule_charset_list.
14290
14291 * keymap.c (store_in_keymap): Pay attention to the case that idx
14292 is a cons specifying a character range.
14293
142942008-02-01 Kenichi Handa <handa@m17n.org>
14295
14296 * composite.c (update_compositions): Bind inhibit-read-only, etc
14297 to t before calling remove-list-of-text-properties.
14298
14299 * print.c (print_object): Always print ASCII chars as is.
14300
143012008-02-01 Kenichi Handa <handa@m17n.org>
14302
14303 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
14304
14305 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
14306 is a char table.
14307
143082008-02-01 Kenichi Handa <handa@m17n.org>
14309
14310 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
14311
143122008-02-01 Kenichi Handa <handa@m17n.org>
14313
14314 * xfaces.c (set_lface_from_font_name): Fix for the case that
14315 FONTNAME is not fontset name.
14316
143172008-02-01 Kenichi Handa <handa@m17n.org>
14318
14319 * fns.c (base64_encode_1): Fix previous change.
14320
143212008-02-01 Kenichi Handa <handa@m17n.org>
14322
14323 * fontset.c (set_fontset_font): New function.
14324 (Fset_fontset_font): If a font is specified for a charset, use
14325 map_charset_chars to store the font spec in a fontset.
14326
143272008-02-01 Kenichi Handa <handa@m17n.org>
14328
14329 * fontset.c (fontset_face): Create a fallback fontset on demand.
14330 (make_fontset): Don't create a fallback fontset here.
14331 (free_face_fontset): Free a fallback fontset (if any) too.
14332 (n_auto_fontsets): Delete this variable.
14333 (auto_fontset_alist): New variable.
14334 (new_fontset_from_font_name): Check auto_fontset_alist.
14335 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
14336 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
14337 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
14338 Defsubr Sfontset_list_all.
14339
143402008-02-01 Kenichi Handa <handa@m17n.org>
14341
14342 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
14343
143442008-02-01 Kenichi Handa <handa@m17n.org>
14345
14346 * fontset.c (Fnew_fontset): Check NAME more rigidly.
14347
143482008-02-01 Kenichi Handa <handa@m17n.org>
14349
14350 * editfns.c (Fgoto_char): Fix docstring.
14351
143522008-02-01 Kenichi Handa <handa@m17n.org>
14353
14354 * insdel.c (insert_from_gap): Adjust intervals correctly.
14355
143562008-02-01 Jason Rumney <jasonr@gnu.org>
14357
14358 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
14359 (pfnGetFontUnicodeRanges): New dynamically loaded function.
14360 (w32_initialize): Try to load it.
14361 (x_get_font_repertory): Use it if available.
14362 (w32_encode_char): Add shortcut for unicode output.
14363
14364 * w32fns.c (w32_load_system_font): Default charset to -1.
14365 (x_to_w32_charset): Match all fonts for unicode.
14366 (w32_to_x_charset): New parameter matching. Don't return partial
14367 or wildcard charsets.
14368 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
14369 (w32_codepage_for_font): Return CP_UNICODE for unicode.
14370 (w32_to_x_font): Match charset to real charset.
14371 (enum_font_cb2): Always list unicode versions.
14372
14373 * makefile.w32-in (temacs): Increase EMHEAP.
14374
143752008-02-01 Jason Rumney <jasonr@gnu.org>
14376
14377 * w32term.c (w32_encode_char): New charset parameter.
14378 font_info.encoding becomes encoding_type.
14379 (x_get_font_repertory): New function. Warning: stub only!
14380 (x_new_font): Return quickly if font already set.
14381 (x_new_fontset): fontsetname parameter is Lisp_Object.
14382 Use new fs_query_fontset. Try new_fontset_from_font_name.
14383 Use fontset_name for return value.
14384
14385 * w32term.h: Declare x_get_font_repertory.
14386
14387 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
14388 place of find_charset_in_text. Use encode_coding_object in place
14389 of encode_coding.
14390 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
14391 decode_coding.
14392
14393 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
14394 of x_new_fontset.
14395 (w32_load_system_font): Initialize charset as unicode.
14396 font_info.encoding becomes encoding_type.
14397 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
14398 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
14399 (syms_of_w32fns): Set get_font_repertory_func.
14400
14401 * w32console.c: Include character.h. Use terminal_encode_buffer
14402 from term.c.
14403 (write_glyphs): Use new version of encode_terminal_code. Use
14404 encode_coding_object in place of encode_coding.
14405
14406 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
14407 encoding becomes encoding_type.
14408
14409 * term.c (terminal_encode_buffer): Make externally visible.
14410
14411 * makefile.w32-in: Add character.h dependancies.
14412 (character.o, chartab.o): New targets.
14413
144142008-02-01 Kenichi Handa <handa@m17n.org>
14415
14416 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
14417 CODING_ID_EOL_TYPE.
14418
144192008-02-01 Andreas Schwab <schwab@suse.de>
14420
14421 * coding.c (produce_chars): Revert last change.
14422
144232008-02-01 Kenichi Handa <handa@m17n.org>
14424
14425 * charset.h (charset_unicode): Extern it.
14426
14427 * charset.c (string_xstring_p): Check by (C >= 0x100).
14428 (find_charsets_in_text): Change format of the arc CHARSETS. New
14429 arg MULTIBYTE.
14430 (Ffind_charset_region, Ffind_charset_string): Adjust for the
14431 change of find_charsets_in_text.
14432 (Fsplit_char): Fix doc. Never return unknown.
14433
14434 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
14435
14436 * coding.c (Fdefine_coding_system_alias): Update
14437 Vcoding_system_list.
14438
14439 * fontset.c (load_font_get_repertory): Pay attention to the case
14440 that ENCODING of a font is specified by a char-table.
14441
14442 * xterm.c (x_get_font_repertory): Handle the case that the
14443 encoding of font is other than Unicode.
14444
144452008-02-01 Kenichi Handa <handa@m17n.org>
14446
14447 * term.c (encode_terminal_code): Don't handle glyph-table. Check
14448 if a character is encodable by the terminal coding system. If
14449 not, produces proper number of `?'s. Update
14450 terminal_encode_buffer and terminal_encode_buf_size if necessary.
14451 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
14452
144532008-02-01 Kenichi Handa <handa@m17n.org>
14454
14455 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
14456 variables.
14457 (encode_terminal_code): Change argument. Encode multiple
14458 characters at once. Store the result of encoding in
14459 terminal_encode_buffer.
14460 (write_glyphs, insert_glyphs): Adjust for the change of
14461 encode_terminal_code.
14462 (term_init): Initialize terminal_encode_buffer and
14463 terminal_encode_buf_size.
14464
14465 * coding.c (consume_chars): If coding->src_object is nil, don't
14466 check annotation.
14467
144682008-02-01 Kenichi Handa <handa@m17n.org>
14469
14470 * character.c (char_string): Use ASCII_CHAR_P instead of
14471 SINGLE_BYTE_CHAR_P.
14472
144732008-02-01 Kenichi Handa <handa@m17n.org>
14474
14475 * xdisp.c (handle_auto_composed_prop): Check if the last
14476 characters of auto-composed region is newly composed with the
14477 following characters.
14478 (handle_composition_prop): Fix checking of point being inside
14479 composition.
14480
144812008-02-01 Kenichi Handa <handa@m17n.org>
14482
14483 * fns.c (concat): Don't change multibyteness of the result by
14484 concatenating an 8-bit character.
14485
14486 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
14487 multibyteness of the result when newelt is an 8-bit character.
14488
144892008-02-01 Dave Love <fx@gnu.org>
14490
14491 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
14492 EMACS_INT.
14493
14494 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
14495
14496 * xfaces.c (face_numeric_value): Declare dim size_t.
14497 (Finternal_lisp_face_equal_p): Remove unused f.
14498
14499 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
14500 (MATRIX_ROW): Remove unused vars.
14501 (draw_glyphs, x_insert_glyphs, fast_find_position)
14502 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
14503 byte/char counts.
14504
14505 * regex.c (regex_compile): Remove unused var.
14506
14507 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
14508
14509 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
14510 (Faccessible_keymaps, where_is_internal): Remove unused vars.
14511
14512 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
14513
14514 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
14515
14516 * fileio.c (Fwrite_region): Remove unused var.
14517
14518 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
14519 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
14520
14521 * composite.c (Fremove_list_of_text_properties): Declare.
14522
14523 * coding.c (inhibit_pre_post_conversion): Remove (unused).
14524 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
14525 (coding_inherit_eol_type): Remove unused attrs.
14526 (detect_coding): Cast arg of detect_eol.
14527
14528 * charset.c (syms_of_charset): Remove unused var p.
14529 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
14530 byte/char counts.
14531
14532 * casetab.c (set_case_table): Remove unused var.
14533
14534 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
14535 unused vars.
14536
145372008-02-01 Dave Love <fx@gnu.org>
14538
14539 * xterm.c (x_bitmap_mask): Declare.
14540
145412008-02-01 Dave Love <fx@gnu.org>
14542
14543 * xterm.c (x_term_init): Fix type error.
14544
14545 * lisp.h: Add Funibyte_char_to_multibyte.
14546
14547 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
14548 (Fset_coding_system_priority): Doc fix.
14549
14550 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
14551
14552 * indent.c (check_composition): Make start and end EMACS_INT.
14553
14554 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
14555
14556 * xdisp.c (handle_composition_prop, check_point_in_composition):
14557 Make buffer positions EMACS_INT.
14558
14559 * composite.c (find_composition, run_composition_function)
14560 (update_compositions, Ffind_composition_internal): Make buffer
14561 positions EMACS_INT.
14562
14563 * composite.h (find_composition, update_compositions): Make
14564 position args EMACS_INT.
14565
14566 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
14567
14568 * intervals.c (get_property_and_range):
14569 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
14570
14571 * unexalpha.c: Don't include varargs.h.
14572
145732008-02-01 Dave Love <fx@gnu.org>
14574
14575 * coding.h (ENCODE_UTF_8): New.
14576
14577 * Makefile.in (gtkutil.o): Depend on coding.h.
14578
14579 * coding.c (Fset_coding_system_priority): Doc fix.
14580
145812008-02-01 Kenichi Handa <handa@m17n.org>
14582
14583 * fileio.c (Finsert_file_contents): Call setup_coding_system in
14584 the case of auto saving.
14585
145862008-02-01 Andreas Schwab <schwab@suse.de>
14587
14588 * chartab.c (map_char_table, map_char_table_for_charset): Protect
14589 `range' from GC.
14590
145912008-02-01 Kenichi Handa <handa@m17n.org>
14592
14593 * coding.c (decode_coding_sjis): Check bytes more rigidly.
14594
145952008-02-01 Kenichi Handa <handa@m17n.org>
14596
14597 * fileio.c (choose_write_coding_system): Return a decided coding system.
14598 (Fwrite_region): Set Vlast_coding_system_used to the return value
14599 of choose_write_coding_system.
14600
146012008-02-01 Kenichi Handa <handa@m17n.org>
14602
14603 * charset.c (Fset_charset_priority): Pay attention to duplicated
14604 arguments.
14605
14606 * coding.c (QCcategory): New variable.
14607 (syms_of_coding): Defsym it. Set all elements of
14608 Vcoding_category_table and their symbol values.
14609 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
14610 coding-category-XXX, and coding-category-list.
14611 (Fdefine_coding_system_internal): Add category in the plist.
14612
146132008-02-01 Kenichi Handa <handa@m17n.org>
14614
14615 * callproc.c (Fcall_process): Handle carryover correctly.
14616
14617 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
14618 (raw_text_coding_system): Check NILP (coding_system).
14619 (coding_inherit_eol_type): Check NILP (coding_system) and
14620 NILP (parent).
14621 (consume_chars): Fix for the case of raw-text.
14622
14623 * process.c (read_process_output): Handle carryover correctly.
14624
146252008-02-01 Dave Love <fx@gnu.org>
14626
14627 * regex.c (re_search_2): Fix last change.
14628
146292008-02-01 Kenichi Handa <handa@m17n.org>
14630
14631 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
14632 target_multibyte. Even in a unibyte case, return a converted
14633 multibyte char.
14634 (GET_CHAR_AFTER): New macro.
14635 (PATFETCH): Translate via multibyte char.
14636 (HANDLE_UNIBYTE_RANGE): Delete this macro.
14637 (SETUP_MULTIBYTE_RANGE): New macro.
14638 (regex_compile): Setup compiled code so that its multibyteness
14639 matches that of a target. Fix the handling of "[X-YZ]" using
14640 SETUP_MULTIBYTE_RANGE.
14641 (analyse_first) <charset>: For filling fastmap for all multibyte
14642 characters, don't check by BASE_LEADING_CODE_P.
14643 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
14644 the same as RE_MULTIBYTE_P (bufp) now.
14645 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
14646 (TARGET_CHAR_AND_LENGTH): Delete this macro.
14647 (TRANSLATE_VIA_MULTIBYTE): New macro.
14648 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
14649 It is the same as RE_MULTIBYTE_P (bufp) now.
14650 <exactn>: Translate via multibyte.
14651 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
14652 translate it.
14653 <charset, charset_not>: Fetch a character by
14654 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
14655 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
14656 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
14657 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
14658 by GET_CHAR_AFTER.
14659 (bcmp_translate): Likewise.
14660
14661 * search.c (compile_pattern): Check the member target_multibyte,
14662 not the member multibyte of buf.
14663
14664 * lread.c (read1): While reading a string, set force_singlebyte
14665 and force_multibyte correctly.
14666
14667 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
14668 up of unibyte_to_multibyte_table.
14669
146702008-02-01 Kenichi Handa <handa@m17n.org>
14671
14672 * coding.c (setup_coding_system): If coding has
14673 post-read-conversion or pre-write-conversion, set
14674 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
14675 respectively.
14676 (decode_coding_gap): Run post-read-conversion if any.
14677
14678 * fileio.c (Finsert_file_contents): Even if we read into a
14679 unibyte buffer, check if we must decode the result or not.
14680
146812008-02-01 Kenichi Handa <handa@m17n.org>
14682
14683 * coding.c (make_conversion_work_buffer): Change the work buffer
14684 name to the same one as that of Emacs 21.
14685
146862008-02-01 Kenichi Handa <handa@m17n.org>
14687
14688 * coding.h (make_conversion_work_buffer): Adjust prototype.
14689 (code_conversion_restore): Don't extern it.
14690
14691 * coding.c (detected_mask): Delete unused variable.
14692 (decode_coding_iso_2022): Pay attention to the byte sequence of
14693 CTEXT extended segment, and retain those bytes as is.
14694 (decode_coding_ccl): Delete unused variable `valids'.
14695 (setup_coding_system): Delete unused variable `category'.
14696 (consume_chars): Delete unused variable `category'. Make it work
14697 for non-multibyte case.
14698 (make_conversion_work_buffer): Change argument.
14699 (saved_coding): Delete unused variable.
14700 (code_conversion_restore): Don't check saved_coding->destination.
14701 (code_conversion_save): New function.
14702 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
14703 instead of record_unwind_protect.
14704 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
14705 (detect_coding_system): Delete unused variable `mask'.
14706 (Fdefine_coding_system_internal): Delete unused variable id.
14707
14708 * fileio.c (kill_workbuf_unwind): New function.
14709 (Finsert_file_contents): On replacing, call
14710 make_conversion_work_buffer with correct args, and call
14711 record_unwind_protect with the first arg kill_workbuf_unwind.
14712
14713 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
14714
147152008-02-01 Kenichi Handa <handa@m17n.org>
14716
14717 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
14718 (fontset_add): Fix for the case that TO is less than TO1.
14719 (Ffontset_info): Don't use fallback fontset on checking the
14720 default fontset.
14721 (dump_fontset): New function for debugging.
14722
14723 * coding.c (Fdefine_coding_system_internal): Fix for the case that
14724 coding_type is Qcharset.
14725
147262008-02-01 Kenichi Handa <handa@m17n.org>
14727
14728 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
14729 (map_char_table): Don't inherit the value from the parent on
14730 initializing VAL. Adjust for the above change.
14731
147322008-02-01 Kenichi Handa <handa@m17n.org>
14733
14734 * coding.c (Qsignature, Qendian): Delete these variables.
14735 (syms_of_coding): Don't initialize them.
14736 (CATEGORY_MASK_UTF_16_AUTO): New macro.
14737 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
14738 detect_info->found.
14739 (decode_coding_utf_16): Don't detect BOM here.
14740 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
14741 is NOT utf_16_without_bom.
14742 (setup_coding_system): For a coding system of type utf-16, check
14743 if the attribute :endian is Qbig or not (not nil or not), and set
14744 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
14745 (detect_coding): If coding type is utf-16 and BOM detection is
14746 required, detect it.
14747 (Fdefine_coding_system_internal): For a coding system of type
14748 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
14749
147502008-02-01 Kenichi Handa <handa@m17n.org>
14751
14752 * coding.c (coding_set_source): Fix for the case that the current
14753 buffer is different from coding->src_object.
14754 (decode_coding_object): Don't use the conversion work buffer if
14755 DST_OBJECT is a buffer.
14756
147572008-02-01 Dave Love <fx@gnu.org>
14758
14759 * lread.c (read_emacs_mule_char) [len==2]: Index
14760 emacs_mule_charset correctly.
14761
147622008-02-01 Dave Love <fx@gnu.org>
14763
14764 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
14765 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
14766 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
14767 treated specially.)
14768 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
14769 (detected_mask): Remove Big5 bits.
14770
147712008-02-01 Kenichi Handa <handa@m17n.org>
14772
14773 The following changes are to make the font rescaling facility
14774 compatible with Emacs 21.
14775
14776 * xfaces.c (Vface_font_rescale_alist): Rename from
14777 Vface_resizing_fonts.
14778 (struct font_name): Rename member resizing_ratio to rescale_ratio.
14779 (font_rescale_ratio): Rename from font_resizing_ratio.
14780 (split_font_name): Set font->rescale_ratio.
14781 (better_font_p): Pay attention to font->rescale_ratio.
14782 (build_scalable_font_name): Likewise. Change RESX, and RESY
14783 fields.
14784 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
14785
147862008-02-01 Kenichi Handa <handa@m17n.org>
14787
14788 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
14789 (Qutf_16_le): Remove these variables.
14790 (syms_of_coding): Don't DEFSYM them.
14791 (decode_coding_utf_16): Fix handling of BOM.
14792 (encode_coding_utf_16): Fix handling of BOM.
14793
147942008-02-01 Kenichi Handa <handa@m17n.org>
14795
14796 * fileio.c (Finsert_file_contents): On replacing, before decoding
14797 the file into the work buffer, set point of the work buffer to the end.
14798
147992008-02-01 Dave Love <fx@gnu.org>
14800
14801 * coding.c (Fcheck_coding_systems_region): Fix type errors.
14802
148032008-02-01 Dave Love <fx@gnu.org>
14804
14805 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
14806 and fix C types.
14807
148082008-02-01 Kenichi Handa <handa@m17n.org>
14809
14810 * xdisp.c (SKIP_GLYPHS): New macro.
14811 (set_cursor_from_row): Pay attention to string display properties.
14812
14813 * category.c (copy_category_entry): Fix for the case that RANGE
14814 is an integer.
14815
14816 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
14817
14818 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
14819
148202008-02-01 Kenichi Handa <handa@m17n.org>
14821
14822 * charset.c (Fcharset_id_internal): New function.
14823 (syms_of_charset): Defsubr it.
14824
14825 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
14826 with the last arg charset_list acquired from coding.
14827 (Fdefine_coding_system_internal): For ccl-based coding system, fix
14828 the attribute coding_attr_ccl_valids.
14829
14830 * coding.h (enum define_coding_ccl_arg_index): Set the first
14831 member coding_arg_ccl_decoder to coding_arg_max.
14832
14833 * ccl.h (ccl_driver): Adjust prototype.
14834
14835 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
14836 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 14837 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
14838 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
14839 last arg Qnil.
14840
148412008-02-01 Kenichi Handa <handa@m17n.org>
14842
14843 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
14844 call encode_char.
14845
14846 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
14847
148482008-02-01 Dave Love <fx@gnu.org>
14849
14850 * composite.c (syms_of_composite): Make composition_hash_table weak.
14851
148522008-02-01 Kenichi Handa <handa@m17n.org>
14853
14854 * dispextern.h (check_face_attributes, generate_ascii_font_name)
14855 (font_name_registry): Don't extern them.
14856 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
14857
14858 * fontset.h (Qfontset): Don't extern it.
14859 (new_fontset_from_font_name): Extern it.
14860
14861 * fontset.c: Give 8 extra slots to fontset objects.
14862 (Qfontset_info): New variable.
14863 (syms_of_fontset): Defsym it.
14864 (FONTSET_FALLBACK): New macro.
14865 (fontset_face): Try also the default fontset.
14866 (make_fontset): Realize a fallback fontset from the default fontset.
14867 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
14868 using split_font_name_into_vector and build_font_name_from_vector.
14869 (Fset_fontset_font): Access the elements of font_spec by enum
14870 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
14871 name by using split_font_name_into_vector.
14872 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
14873 generate a proper font name from the fontset name. Update
14874 Vfontset_alias_alist.
14875 (n_auto_fontsets): New variable.
14876 (new_fontset_from_font_name): New function.
14877 (Ffont_info): Store the information about fonts generated from the
14878 default fontset in the first extra slot of the returned char-table.
14879
14880 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
14881 (font_name_registry): Delete function.
14882 (split_font_name_into_vector): New function.
14883 (build_font_name_from_vector): New function.
14884 (font_list): The argument REGISTRY is now a list of registry names.
14885 (choose_face_font): If we are choosing an ASCII font, and ATTRS
14886 specifies an explicit font name, return the name as is. Make a
14887 list of registy names.
14888
14889 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
14890 of x_new_fontset.
14891 (Fx_create_frame): Don't call x_new_fontset here. Just use
14892 x_list_fonts to check the existence of fonts.
14893
14894 * xterm.h (x_new_fontset): Adjust prototype.
14895
14896 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
14897 string. Use new_fontset_from_font_name to create a fontset from a
14898 font name.
14899
149002008-02-01 Kenichi Handa <handa@m17n.org>
14901
14902 * syntax.c (Vfind_word_boundary_function_table): New name for
14903 Vnext_word_boundary_function_table.
14904 (find-word-boundary-function-table): New name for
14905 next-word-boundary-function-table.
14906
149072008-02-01 Dave Love <fx@gnu.org>
14908
14909 * Makefile.in: Fix some dependencies.
14910
14911 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
14912 set it to nil before returning.
14913
14914 * composite.c (update_compositions): Fix type error.
14915
14916 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
14917
149182008-02-01 Kenichi Handa <handa@m17n.org>
14919
14920 * xterm.c (x_new_font): Optimize for the case that the font is
14921 already set for the frame.
14922
149232008-02-01 Kenichi Handa <handa@m17n.org>
14924
14925 * chartab.c (char_table_ascii): Check if the char table contents
14926 is sub-char-table or not.
14927 (char_table_set, char_table_set_range): Fix argument to
14928 char_table_ascii.
14929
14930 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
14931 (detect_coding_utf_8, detect_coding_utf_16)
14932 (detect_coding_emacs_mule, detect_coding_iso_2022)
14933 (detect_coding_sjis, detect_coding_big5)
14934 (detect_coding_ccl, detect_coding_charset): Change argument MASK
14935 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
14936 sequence is valid in this coding system. Change callers.
14937 (MAX_ANNOTATION_LENGTH): New macro.
14938 (ADD_ANNOTATION_DATA): New macro.
14939 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
14940 ADD_ANNOTATION_DATA. Change the format of annotation data.
14941 (ADD_CHARSET_DATA): New macro.
14942 (emacs_mule_char): New argument ID. Change callers.
14943 (decode_coding_emacs_mule, decode_coding_iso_2022)
14944 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
14945 Produce charset annotation data in coding->charbuf.
14946 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
14947 to charset annotation data in coding->charbuf.
14948 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
14949 coding->common_flags if the coding system is iso-2022 based and
14950 uses designation.
14951 (produce_composition): Adjust for the new annotation data format.
14952 (produce_charset): New function.
14953 (produce_annotation): Handle charset annotation.
14954 (handle_composition_annotation, handle_charset_annotation): New
14955 functions.
14956 (consume_chars): Handle charset annotation. Utilize the above two
14957 functions.
14958 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
14959 buffer, get the deleted text as a string and set
14960 coding->src_object to that string.
14961 (detect_coding, detect_coding_system): Use the new struct
14962 coding_detection_info.
14963
14964 * coding.h (struct coding_detection_info): New structure.
14965 (struct coding_system): Adjust prototype of the member `detector'.
14966 (CODING_ANNOTATE_CHARSET_MASK): New macro.
14967
149682008-02-01 Kenichi Handa <handa@m17n.org>
14969
14970 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
14971
149722008-02-01 Dave Love <fx@gnu.org>
14973
14974 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
14975 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
14976 to new local and nullify apropos_accumulate before returning.
14977 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
14978
149792008-02-01 Kenichi Handa <handa@m17n.org>
14980
14981 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
14982 correctly.
e3eea1fc 14983
aac0c6e3
MR
149842008-02-01 Dave Love <fx@gnu.org>
14985
14986 * fns.c (Flanginfo): Call synchronize_system_time_locale.
14987
149882008-02-01 Kenichi Handa <handa@m17n.org>
14989
14990 The following changes are to make character composition happen
14991 automatically on displaying.
14992
14993 * Makefile.in (lisp, shortlisp): Add composite.elc.
14994
14995 * composite.h (Qauto_composed, Vauto_composition_function)
14996 (Qauto_composition_function): Extern them.
14997
14998 * composite.c (Vcomposition_function_table)
14999 (Qcomposition_function_table): Delete variables.
15000 (Qauto_composed, Vauto_composition_function)
15001 (Qauto_composition_function): New variables.
15002 (run_composition_function): Don't call
15003 compose-chars-after-function.
15004 (update_compositions): Clear `auto-composed' text property.
15005 (compose_chars_in_text): Delete this function.
15006 (syms_of_composite): Staticpro Qauto_composed and
15007 Qauto_composition_function. Declare Vauto_composition_function as
15008 a Lisp variable.
15009
15010 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
15011
15012 * xdisp.c (it_props): Add an entry for Qauto_composed.
15013 (handle_auto_composed_prop): New function.
15014
15015 * xselect.c (selection_data_to_lisp_data): Don't call
15016 compose_chars_in_text.
15017
150182008-02-01 Dave Love <fx@gnu.org>
15019
15020 * keyboard.c (read_char): Modify checking around use of
15021 Vkeyboard_translate_table.
15022
15023 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15024 and fix C types.
15025
150262008-02-01 Kenichi Handa <handa@m17n.org>
15027
15028 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
15029 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15030 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
15031 the case that the last byte is '\r' correctly.
15032 (decode_coding): Flush out the unprocessed data correctly.
15033 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
15034
150352008-02-01 Dave Love <fx@gnu.org>
15036
15037 * xterm.c (XTread_socket): Fix changes for defined keysyms.
15038 Add XK_ISO... case.
15039 (xaw_scroll_callback): Revert last change.
15040
150412008-02-01 Kenichi Handa <handa@m17n.org>
15042
15043 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
15044
150452008-02-01 Kenichi Handa <handa@m17n.org>
15046
15047 * xfaces.c (Vface_resizing_fonts): New variable.
15048 (struct font_name): New member `resizing_ratio'.
15049 (font_resizing_ratio): New function.
15050 (split_font_name): Set font->resizing_ratio.
15051 (better_font_p): Pay attention to font->resizing_ratio.
15052 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
15053 RESX, and RESY fields.
15054 (try_alternative_families): Try scalable fonts if
15055 Vscalable_fonts_allowed is not Qt.
15056 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
15057
150582008-02-01 Dave Love <fx@gnu.org>
15059
15060 * xterm.c (xaw_scroll_callback): Cast correctly.
15061
150622008-02-01 Dave Love <fx@gnu.org>
15063
15064 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
15065 (lispy_kana_keys): Comment out.
15066 (make_lispy_event) [XK_kana_A]: Comment out.
15067
15068 * xterm.c (xaw_scroll_callback): Cast call_data.
15069 (XTread_socket): Deal with ASCII keysyms.
15070 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
15071
150722008-02-01 Dave Love <fx@gnu.org>
15073
15074 * xterm.c (Vx_keysym_table): New.
15075 (syms_of_xterm): Initialize it.
15076 (XTread_socket): Use it.
15077 From head: Eliminate incorrect optimization that tried to avoid
15078 decoding the output of X*LookupString.
15079 (x_get_font_repertory): Delete charset declaration.
15080
150812008-02-01 Kenichi Handa <handa@m17n.org>
15082
15083 * coding.c (detect_coding_charset): If only ASCII bytes are found,
15084 return 0.
15085 (Fdefine_coding_system_internal): Setup
15086 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
15087
150882008-02-01 Dave Love <fx@gnu.org>
15089
15090 * coding.c (Fcheck_coding_system): Doc fix.
15091
15092 * editfns.c (Finsert_byte): Return a proper value.
15093
150942008-02-01 Kenichi Handa <handa@m17n.org>
15095
15096 * coding.c (decode_coding): Fix args to translate_chars. Pay
15097 attention to Vstandard_translation_table_for_decode.
15098 (encode_coding): Fix args to translate_chars. Pay attention to
15099 Vstandard_translation_table_for_encode.
15100
15101 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
15102 SINGLE_BYTE_CHAR_P.
15103
15104 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
15105 not by SINGLE_BYTE_CHAR_P.
15106
15107 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
15108 SINGLE_BYTE_CHAR_P.
15109
15110 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
15111 SINGLE_BYTE_CHAR_P.
15112
15113 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
15114 by SINGLE_BYTE_CHAR_P.
15115
15116 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
15117 SINGLE_BYTE_CHAR_P.
15118
151192008-02-01 Dave Love <fx@gnu.org>
15120
15121 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
15122
151232008-02-01 Dave Love <fx@gnu.org>
15124
15125 * fns.c (Flanginfo): Fix typo.
15126
15127 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
15128
151292008-02-01 Kenichi Handa <handa@m17n.org>
15130
15131 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
15132 (detect_coding_emacs_mule, detect_coding_iso_2022)
15133 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
15134 incomplete byte sequence. Don't update *mask when correctly detected.
15135 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
15136 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
15137 (detect_coding, detect_coding_system): Adjust for the changes above.
15138
151392008-02-01 Kenichi Handa <handa@m17n.org>
15140
15141 * character.c (char_string): Rename from
15142 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
15143 (string_char): Rename from string_char.
15144
15145 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
15146 if C is greater than MAX_3_BYTE_CHAR.
15147 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
15148 string_char instead of string_char_with_unification.
15149
151502008-02-01 Dave Love <fx@gnu.org>
15151
15152 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
15153
151542008-02-01 Kenichi Handa <handa@m17n.org>
15155
15156 * keymap.c (push_key_description): Pay attention to force_multibyte.
15157
15158 * regex.c (re_search_2): Fix for the case of unibyte buffer.
15159
151602008-02-01 Dave Love <fx@gnu.org>
15161
15162 * charset.c (define_charset_internal): Rename `supprementary'.
15163
15164 * Makefile.in (lisp, shortlisp): Remove latin-N.
15165
151662008-02-01 Dave Love <fx@gnu.org>
15167
15168 * xfns.c (x_window, x_window): Use use_xim.
15169
15170 * xterm.c (use_xim): Initialize.
15171 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
15172 (x_term_init): Maybe set use_xim.
15173
15174 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
15175
151762008-02-01 Kenichi Handa <handa@m17n.org>
15177
15178 * search.c (search_buffer): Fix case-fold-search of multibyte
15179 characters.
15180 (boyer_moore): Rename the last argument to char_high_bits.
15181
151822008-02-01 Kenichi Handa <handa@m17n.org>
15183
15184 * xdisp.c (display_string): Fix for the case of zero width glyph.
15185
15186 * xfns.c (x_set_font): Change the error message of the case that
15187 x_new_fontset returns Qt.
15188
15189 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
15190 (Finternal_set_lisp_face_attribute): Use signal_error for the
15191 error of invalid fontset.
15192
15193 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
15194 fontset, return Qt.
15195
151962008-02-01 Dave Love <fx@gnu.org>
15197
15198 * unexelf.c (unexec): Make .got handling not SGI-specific.
15199
15200 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
15201
15202 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
15203
15204 * keyboard.c (read_key_sequence): Fix type error.
15205
15206 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
15207 type error.
15208
15209 * fontset.c (fontset_add): Return Lisp_Object.
15210
152112008-02-01 Dave Love <fx@gnu.org>
15212
15213 * charset.h (charset_ordered_list_tick): Declare extern.
15214
152152008-02-01 Kenichi Handa <handa@m17n.org>
15216
15217 The following changes (and some of 2008-02-01 changes of mine) are
15218 for handling syntax, category, and case conversion for unibyte
15219 characters by converting them to multibyte on the fly. With these
15220 changes, we don't have to setup syntax and case tables for unibyte
15221 characters in each language environment.
15222
15223 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
15224 multibyte if necessary.
15225
15226 * bytecode.c (Fbyte_code): Likewise.
15227
15228 * character.h (LEADING_CODE_LATIN_1_MIN)
15229 (LEADING_CODE_LATIN_1_MAX): New macros.
15230 (unibyte_to_multibyte_table): Extern it.
15231 (unibyte_char_to_multibyte): New macro.
15232 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
15233 (CHAR_LEADING_CODE): New macro.
15234 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
15235
15236 * character.c (unibyte_to_multibyte_table): New variable.
15237 (unibyte_char_to_multibyte): Move to character.h and define as macro.
15238 (multibyte_char_to_unibyte): If C is an eight-bit character,
15239 convert it to the corresponding byte value.
15240
15241 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
15242 not 1, signals an error. Update the elements of
15243 unibyte_to_multibyte_table.
15244 (init_charset_once): Initialize unibyte_to_multibyte_table.
15245 (syms_of_charset): Define the charset `iso-8859-1'.
15246
15247 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
15248 as is without converting it to unibyte. In a unibyte buffer,
15249 convert C to multibyte before checking the syntax.
15250
15251 * lisp.h (unibyte_char_to_multibyte): Delete extern.
15252
15253 * minibuf.c (Fminibuffer_complete_word): Use the macro
15254 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
15255
15256 * regex.h (struct re_pattern_buffer): New member target_multibyte.
15257
15258 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
15259 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
15260 that is zero, convert an eight-bit char to multibyte.
15261 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
15262 non-emacs case.
15263 (PATFETCH): Convert an eight-bit char to multibyte.
15264 (HANDLE_UNIBYTE_RANGE): New macro.
15265 (regex_compile): Setup the compiled pattern for multibyte chars
15266 even if the given regex string is unibyte. Use PATFETCH_RAW
15267 instead of PATFETCH in many places. To handle `charset'
15268 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
15269 only for ASCII chars.
15270 (analyse_first) <exactn>: Simplify because the compiled pattern
15271 is multibyte.
15272 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
15273 <charset>: Use CHAR_LEADING_CODE to get leading codes.
15274 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
15275 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
15276 multibyte always 1.
15277 (re_search_2): In emacs, set the locale variable multibyte to 1,
15278 otherwise to 0. New local variable target_multibyte. Check it
15279 to decide the multibyteness of STR1 and STR2. If
15280 target_multibyte is zero, convert unibyte chars to multibyte
15281 before translating and checking fastmap.
15282 (TARGET_CHAR_AND_LENGTH): New macro.
15283 (re_match_2_internal): In emacs, set the locale variable multibyte
15284 to 1, otherwise to 0. New local variable target_multibyte. Check
15285 it to decide the multibyteness of STR1 and STR2. Use
15286 TARGET_CHAR_AND_LENGTH to fetch a character from D.
15287 <charset, charset_not>: If multibyte is nonzero, check fastmap
15288 only for ASCII chars. Call bcmp_translate with
15289 target_multibyte, not with multibyte.
15290 <begline>: Declare the local variable C as `unsigned'.
15291 (bcmp_translate): Change the last arg name to target_multibyte.
15292
15293 * search.c (compile_pattern_1): Don't adjust the multibyteness of
15294 the regexp pattern and the matching target. Set cp->buf.multibyte
15295 to the multibyteness of the regexp pattern. Set
15296 cp->but.target_multibyte to the multibyteness of the matching target.
15297 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
15298 FETCH_STRING_CHAR_ADVANCE.
15299 (Freplace_match): Convert unibyte chars to multibyte.
15300
15301 * syntax.c (char_quoted, back_comment, scan_words)
15302 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
15303 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
15304 unibyte chars to multibyte.
15305 (skip_chars): Delete the arg syntaxp, and move the code for
15306 handling syntaxes to skip_syntaxes. Change callers.
15307 Fix the case that the multibyteness of STRING and the current
15308 buffer doesn't match.
15309 (skip_syntaxes): New function.
15310 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
15311 SINGLE_BYTE_CHAR_P.
15312
153132008-02-01 Kenichi Handa <handa@m17n.org>
15314
15315 * xfaces.c (QCfontset): New variable.
15316 (LFACE_FONTSET): New macro.
15317 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
15318 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
15319 (Finternal_set_lisp_face_attribute)
15320 (Finternal_get_lisp_face_attribute): Handle QCfontset.
15321 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
15322 check also LFACE_FONTSET_INDEX.
15323 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
15324 attrs[LFACE_FONT_INDEX].
15325 (syms_of_xfaces): Intern and staticpro QCfontset.
15326
15327 * dispextern.h (enum lface_attribute_index): New member
15328 LFACE_FONTSET_INDEX.
15329
15330 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
15331
153322008-02-01 Kenichi Handa <handa@m17n.org>
15333
15334 * coding.c (coding_set_destination): Fix coding->destination for
15335 the case converting a region.
15336 (encode_coding_utf_8): Encode eight-bit chars as single byte.
15337 (encode_coding_object): Fix coding->dst_pos and
15338 coding->dst_pos_byte for the case converting a region.
15339
15340 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
15341
15342 * character.h (BYTE8_STRING): New macro.
15343
15344 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
15345
153462008-02-01 Kenichi Handa <handa@m17n.org>
15347
15348 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
15349 characters by octal form.
15350
15351 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
15352
15353 * buffer.h (_fetch_multibyte_char_len): Delete extern.
15354 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
15355 _fetch_multibyte_char_len.
15356 (FETCH_CHAR_AS_MULTIBYTE): New macro.
15357
15358 * casetab.c (set_canon, set_identity, shuffle): Simplify.
15359
15360 * casefiddle.c (casify_object): Simplify. Handle the case that
15361 the case conversion change the byte length.
15362 (casify_region): Likewise.
15363
15364 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
15365
15366 * character.c (_fetch_multibyte_char_len): Delete this variable.
15367 (syms_of_character): Setup Vprintable_chars.
15368
15369 * editfns.c (Fchar_equal): Fix for the unibyte case.
15370 (Finsert_byte): New function.
15371 (syms_of_editfns): Defsubr it.
15372
15373 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
15374 of direct code 0x3ffff.
15375
15376 * search.c (Freplace_match): Fix for the unibyte case.
15377
153782008-02-01 Kenichi Handa <handa@m17n.org>
15379
15380 * lread.c (safe_to_load_p): Fix the logic.
15381
15382 * syntax.c (scan_words): Don't treat characters belonging to
15383 different scripts as constituting a word.
15384
15385 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
15386
15387 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
15388
15389 * emacs.c (main): In the case of --unibyte, instead of aborting on
15390 finding non-empty buffer, make it unibyte.
15391
153922008-02-01 Kenichi Handa <handa@m17n.org>
15393
15394 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
15395 to create a fontset.
15396
153972008-02-01 Dave Love <fx@gnu.org>
15398
15399 * character.c (Funibyte_char_to_multibyte): Doc fix.
15400
15401 * xfns.c [HAVE_STDLIB_H]: Fix last change.
15402
154032008-02-01 Kenichi Handa <handa@m17n.org>
15404
15405 * fontset.c (fontset_add): Make the type `int'.
15406 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
15407
15408 * character.c (unibyte_char_to_multibyte)
15409 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
15410 charset_unibyte, not charset_primary.
15411
15412 * charset.h (charset_unibyte): Extern it instead of charset_primary.
15413
15414 * charset.c (charset_unibyte): Rename from charset_primary.
15415 (Funibyte_charset): Rename from Fprimary_charset.
15416 (Fset_unibyte_charset): Rename from Fset_primary_charset.
15417 (syms_of_charset): Adjust for the above changes.
15418
15419 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
15420 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
15421 it->multibyte_p is zero.
15422
15423 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
15424 Delete extern.
15425
154262008-02-01 Kenichi Handa <handa@m17n.org>
15427
15428 * coding.c (Fdefine_coding_system_internal): Fix category setting
15429 for a coding system of type iso-2022.
15430
154312008-02-01 Kenichi Handa <handa@m17n.org>
15432
15433 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
15434
154352008-02-01 Kenichi Handa <handa@m17n.org>
15436
15437 * syntax.c (Vnext_word_boundary_function_table): New variable.
15438 (next-word-boundary-function-table): Declare it as a Lisp variable
15439 in syms_of_syntax.
15440 (scan_words): Call functions in Vnext_word_boundary_function_table
15441 if any.
15442
15443 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
15444
15445 * fontset.c (fs_load_font): If fontp->charset is not negative,
15446 return fontp without setting its members.
15447
154482008-02-01 Dave Love <fx@gnu.org>
15449
15450 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
15451
15452 * m/sparc.h (HAVE_ALLOCA): Delete.
15453
15454 * s/irix6-5.h: Don't include strings.h.
15455 (bcopy, bzero, bcmp): Don't undef.
15456
15457 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
15458
15459 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
15460 (TIOCSIGSEND): Don't test IRIX6.
15461 (bcopy, bzero, bcmp): Define conditionally.
15462
154632008-02-01 Kenichi Handa <handa@m17n.org>
15464
15465 * buffer.c (Qas, Qmake, Qto): New variables.
15466 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
15467 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
15468
15469 * callproc.c (Fcall_process): Don't call insert_1_both directly if
15470 we are inserting a process output into a multibyte buffer.
15471
15472 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
15473 multibyte_char_to_unibyte.
15474
15475 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
15476 by the primary charset, make it eight-bit char.
15477 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
15478
15479 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
15480 (charset_8_bit__control, charset_8_bit_graphic)
15481 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
15482 (define_charset_internal): New function.
15483 (syms_of_charset): Call define_charset_internal for pre-defined
15484 charsets.
15485
15486 * charset.h (charset_8_bit): Extern it.
15487
15488 * coding.c (make_conversion_work_buffer): Adjust for the change
15489 of Fset_buffer_multibyte.
15490 (encode_coding_raw_text): Increment p0 in the loop.
15491
15492 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
15493
15494 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
15495 for the change of Fset_buffer_multibyte.
15496
15497 * fns.c (Fstring_to_multibyte): New function.
15498 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
15499
155002008-02-01 Dave Love <fx@gnu.org>
15501
15502 * xfns.c (x_put_x_image): Declare args.
15503
15504 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
15505 (try_font_list): Declare an arg.
15506
15507 * xdisp.c (message2_nolog, set_message): Declare an arg.
15508
15509 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
15510
15511 * syntax.c (scan_sexps_forward): Declare an arg.
15512
15513 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
15514 Declare an arg.
15515
15516 * lisp.h (Fnew_fontset): Declare.
15517
15518 * keymap.c (push_key_description): Call CHARACTERP correctly.
15519
15520 * fontset.c (fontset_add): Declare args. Call make_number correctly.
15521 (face_for_char): Delete unused vars.
15522 (Fset_fontset_font): Doc fix. Delete unused vars.
15523
15524 * doc.c (Fsubstitute_command_keys): Delete unused vars.
15525
15526 * composite.c (update_compositions): Declare arg.
15527
15528 * cm.c (calccost, cmgoto): Declare args.
15529
15530 * charset.c: Remove `emacs' conditional. Doc fixes.
15531 (map_char_table_for_charset): Declare.
15532
15533 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
15534
15535 * ccl.c: Remove `emacs' conditional.
15536
155372008-02-01 Kenichi Handa <handa@m17n.org>
15538
15539 The following changes are to allow specifying multiple font
15540 patterns for a character range (specified by script or charset).
15541
15542 * Makefile.in (abbrev.o): Depend on syntax.h.
15543 (xfaces.o): Depend on charset.h.
15544
15545 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
15546 SINGLE_BYTE_CHAR_P.
15547
15548 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
15549
15550 * character.h (Vchar_script_table): Extern it.
15551
15552 * character.c (Vscript_alist): Delete.
15553 (Vchar_script_table, Qchar_script_table): New variable.
15554 (syms_of_character): Declare Vchar_script_table as a lisp variable
15555 and initialize it.
15556
15557 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
15558 have property char-table-extra-slots, make no extra slot.
15559
15560 * dispextern.h (struct face): Delete member `charset'.
15561 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
15562 SINGLE_BYTE_CHAR_P.
15563 (choose_face_font, lookup_non_ascii_face, font_name_registry):
15564 Add prototypes.
15565 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
15566 (generate_ascii_font_name): Rename from generate_ascii_font.
15567
15568 * fontset.h (get_font_repertory_func): New prototype.
15569 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
15570 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
15571
15572 * fontset.c (Qprepend, Qappend): New variables.
15573 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
15574 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
15575 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
15576 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
15577 (fontset_ref_and_range, fontset_add, reorder_font_vector)
15578 (load_font_get_repertory): New functions.
15579 (fontset_set): Delete.
15580 (fontset_face): New arg FACE. Return face ID, not face.
15581 Complete re-write to handle new fontset structure. Change caller.
15582 (free_face_fontset): Use ASET istead of AREF (X) = Y.
15583 (face_for_char): Don't call lookup_face.
15584 (make_fontset_for_ascii_face): New arg FACE.
15585 (fs_load_font): New arg CHARSET_ID. Don't check
15586 Vfont_encoding_alist here.
15587 (find_font_encoding): New function.
15588 (list_fontsets): Use STRINGP, not ! NILP.
15589 (accumulate_script_ranges): New function.
15590 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
15591 re-written to handle new fontset structure.
15592 (Ffontset_font): Return a copy of element.
15593 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
15594 docstring of font-encoding-alist.
15595
15596 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
15597 (Fset_fotset_font): Fix arguments to 5.
15598
15599 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
15600
15601 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
15602 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
15603 (highlight_trailing_whitespace): Adjust for the change of
15604 lookup_named_face.
15605
15606 * xfaces.c: Include charset.h.
15607 (load_face_font): Delete argument C. Change caller.
15608 (generate_ascii_font_name): Rename from generate_ascii_font.
15609 (font_name_registry): New function.
15610 (cache_face): Store ascii faces before non-ascii faces in buckets.
15611 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
15612 Lookup only ascii faces.
15613 (lookup_non_ascii_face): New function.
15614 (lookup_named_face): Delete argument C. Change caller.
15615 (lookup_derived_face): Delete argument C. Change caller.
15616 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
15617 a string, just call font_list with it.
15618 (choose_face_font): Delete arguments FACE and C. New arg
15619 FONT_SPEC. Change caller.
15620 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
15621 Change caller.
15622 (realize_non_ascii_face): New function.
15623 (realize_x_face): Call load_face_font here.
15624 (realize_tty_face): Delete argument C. Change caller.
15625 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
15626 get a face ID.
15627 (dump_realized_face): Don't print charset of FACE.
15628
15629 * xfns.c (x_set_font): Always call x_new_fontset and
15630 store_frame_parameter.
15631 (Fx_create_frame): Call x_new_fontset, not x_new_font.
15632 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
15633
15634 * xterm.h (x_get_font_repertory): Extern it.
15635
15636 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
15637 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
15638 it->multibyte_p is zero.
15639 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
15640 (x_new_fontset): If FONTSETNAME doesn't match any existing
15641 fontsets, create a new one.
15642 (x_get_font_repertory): New function.
15643
156442008-02-01 Kenichi Handa <handa@m17n.org>
15645
15646 * coding.c (Ffind_coding_systems_region_internal): Detect an
15647 ASCII only string correctly.
15648
15649 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
15650 version is 0.
15651
156522008-02-01 Kenichi Handa <handa@m17n.org>
15653
15654 * lread.c: Include "coding.h".
15655 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
15656 (load_each_byte, unread_char): New variables.
15657 (readchar_backlog): Delete.
15658 (readchar): Return a character unless load_each_byte is nonzero.
15659 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
15660 cons. If unread_char is not -1, simply return it.
15661 (unreadchar): Handle the case that readcharfun is
15662 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
15663 (read_multibyte): Delete.
15664 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
15665 (read_emacs_mule_char): New functions.
15666 (Fload): Even if the file doesn't have the extension ".elc", if
15667 safe_to_load_p returns a positive version number, assume that the
15668 file contains bytecompiled code. If the version is less than 22,
15669 load the file while decoding multibyte sequences by emacs-mule.
15670 (readevalloop): Don't use readchar_backlog.
15671 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
15672 (Fread_from_string): Pay attention to the case that STREAM is a cons.
15673 (read_escape): Delete the arg BYTEREP.
15674 (read1): Set load_each_byte to 1 temporarily while handling
15675 #@NUMBER. Don't call read_multibyte.
15676 (read_vector): Call Fread with a cons. If readcharfun is
15677 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
15678 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
15679 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
15680 and Qload_force_doc_strings.
15681
156822008-02-01 Kenichi Handa <handa@m17n.org>
15683
15684 * xdisp.c (face_before_or_after_it_pos): Call
15685 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
15686
156872008-02-01 Kenichi Handa <handa@m17n.org>
15688
15689 * character.h (TRAILING_CODE_P): New macro.
15690 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
15691 (string_char_with_unification): Fix prototype.
15692 (Vscript_alist): Extern it.
15693
15694 * character.c (Vscript_alist): New variable.
15695 (string_char_with_unification, str_as_unibyte)
15696 (string_escape_byte8): Add `const' to local variables.
15697 (syms_of_character): Declare script-alist as a Lisp variable.
15698
15699 * charset.h (Vcharset_ordered_list): Extern it.
15700 (charset_ordered_list_tick): Extern it.
15701 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
15702 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
15703 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
15704 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
15705 (Funify_charset): Adjust for the change of Funify_charset.
15706
15707 * charset.c (charset_ordered_list_tick): New variable.
15708 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
15709 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
15710 deunify intead of unify a charset.
15711 (string_xstring_p): Add `const' to local variables.
15712 (find_charsets_in_text): Add `const' to arguments and local variables.
15713 (encode_char): Adjust for the change of Funify_charset. Fix
15714 detecting of invalid code.
15715 (Fset_charset_priority): Increment charset_ordered_list_tick.
15716 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
15717 and TO_CODE.
15718
15719 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
15720 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
15721 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
15722 (decode_coding_ccl, consume_chars)
15723 (Ffind_coding_systems_region_internal)
15724 (Fcheck_coding_systems_region): Add `const' to local variables.
15725
15726 * print.c (print_object): Use octal form for printing the
15727 contents of a bool vector.
15728
157292008-02-01 Dave Love <fx@gnu.org>
15730
15731 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
15732 <version == 20>: Refuse to load.
15733
157342008-02-01 Dave Love <fx@gnu.org>
15735
15736 * fns.c: Move coding.h.
15737 (Qcodeset, Qdays, Qmonths): New.
15738 (concat): Use CHARACTERP instead of INTEGERP.
15739 (Flocale_codeset): Delete.
15740 (Flanginfo): New function.
15741 (syms_of_fns): Change accordingly.
15742
15743 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
15744
157452008-02-01 Dave Love <fx@gnu.org>
15746
15747 * casetab.c (init_casetab_once, init_casetab_once): Fix
15748 CHAR_TABLE_SET call.
15749
15750 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
15751
15752 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
15753
15754 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
15755 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
15756 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
15757
15758 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
15759
15760 * coding.c (ENCODE_DESIGNATION, decode_eol)
15761 (make_conversion_work_buffer, code_conversion_restore)
15762 (Fdefine_coding_system_internal): Convert Lisp types.
15763 (code_conversion_restore): Use EQ, not ==.
15764 (Fencode_coding_string): Fix code_convert_string call.
15765
15766 * coding.h (code_convert_region): Fix prototype.
15767
15768 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
15769
15770 * fontset.c (fontset_ref, fontset_set, fs_load_font)
15771 (Ffontset_info): Convert Lisp types.
15772
15773 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
15774
15775 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
15776
15777 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
15778
15779 * chartab.c: Include "...h", not <...h> in some cases.
15780
15781 * callproc.c (Fcall_process): Remove unused variables.
15782
157832008-02-01 Dave Love <fx@gnu.org>
15784
15785 * coding.c (Fset_coding_system_priority): Allow null arg list.
15786
157872008-02-01 Dave Love <fx@gnu.org>
15788
15789 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
15790 (Fself_insert_and_exit): Use CHARACTERP.
15791
15792 * callproc.c (Fcall_process): Remove unused vars.
15793
15794 * xterm.c (XTread_socket): Add extra dead keysyms.
15795
15796 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
15797
15798 * dispextern.h: Remove prototypes for redraw_frame,
15799 redraw_garbaged_frames.
15800
15801 * cmds.c (Fself_insert_command): Use CHARACTERP.
15802
15803 * chartab.c (make_sub_char_table): Remove unused var.
15804 (Fset_char_table_default, Fmap_char_table): Doc fix.
15805
15806 * keymap.c (access_keymap): Remove generic char code.
15807 (push_key_description): Use CHARACTERP.
15808
158092008-02-01 Dave Love <fx@gnu.org>
15810
15811 * charset.c: Doc fixes.
15812 (Funify_charset): Extra checking.
15813
158142008-02-01 Dave Love <fx@gnu.org>
15815
15816 * lread.c: Remove some unused variables.
15817 (safe_to_load_p): If safe, return the magic number version byte.
15818 (Fload): Maybe use load-with-code-conversion.
15819
158202008-02-01 Kenichi Handa <handa@m17n.org>
15821
15822 * category.c (Fmodify_category_entry): Don't modify the contents
15823 of category_set for characters out of the range. Avoid
15824 unnecessary modification.
15825
15826 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
15827 Vchar_unify_table. The default value of the table is now nil.
15828
15829 * character.c (syms_of_character): Setup Vchar_width_table for
15830 eight-bit-control and raw-byte chars.
15831
15832 * charset.h (enum define_charset_arg_index): Delete
15833 charset_arg_parents and add charset_arg_subset and
15834 charset_arg_superset.
15835 (enum charset_attr_index): Delete charset_parents and add
15836 charset_subset and charset_superset.
15837 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
15838 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
15839 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
15840 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
15841 (CHARSET_SUPERSET): New macros.
15842 (charset_work): Extern it.
15843 (ENCODE_CHAR): Use charset_work.
15844 (CHAR_CHARSET_P): Adjust for the change of encoder format.
15845 (map_charset_chars): Extern it.
15846
15847 * charset.c (load_charset_map): Set the default value of encoder
15848 and deunifier char-tables to nil.
15849 (map_charset_chars): Change argument. Change callers. Use
15850 map_char_table_for_charset instead of map_char_table.
15851 (Fmap_charset_chars): New optional args from_code and to_code.
15852 (Fdefine_charset_internal): Adjust for the change of
15853 `define-charset' (:parents -> :subset or :superset).
15854 (charset_work): New variable.
15855 (encode_char, syms_of_charset): Adjust for the change of
15856 Fdefine_charset_internal.
15857 (Ffind_charset_string): Setup the vector `charsets' correctly.
15858
15859 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
15860 the previous change.
15861 (char_table_ref_and_range): Adjust for the above change.
15862 (map_sub_char_table_for_charset): New function.
15863 (map_char_table_for_charset): New function.
15864
15865 * keymap.c (describe_vector): Handle a char-table directly here.
15866 (describe_char_table): Delete.
15867
15868 * lisp.h (map_charset_chars): Delete.
15869
158702008-02-01 Dave Love <fx@gnu.org>
15871
15872 * fns.c (count_combining): Comment out (unused).
15873 (Flocale_codeset): New.
15874 (syms_of_fns): Defsubr it.
15875
15876 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
15877 (size_t): Remove.
15878
158792008-02-01 Dave Love <fx@gnu.org>
15880
15881 * Makefile.in (chartab.o): Depend on charset.h.
15882
158832008-02-01 Kenichi Handa <handa@m17n.org>
15884
15885 * character.c (syms_of_character): Set the default value of
15886 Vprintable_chars to Qnil.
15887
158882008-02-01 Dave Love <fx@gnu.org>
15889
15890 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
15891
158922008-02-01 Kenichi Handa <handa@m17n.org>
15893
15894 * charset.c (load_charset_map): Handle the case that from < to
15895 correctly.
15896
15897 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
15898 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
15899 Pay attention to raw-8-bit chars.
15900
159012008-02-01 Kenichi Handa <handa@m17n.org>
15902
15903 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
15904 It is not bytecompiled now.
15905
15906 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
15907 (charset_jisx0208): New variables.
15908 (Fdefine_charset_internal): Setup them if appropriate.
15909 (init_charset_once): Initialize them to -1.
15910
15911 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
15912 (charset_jisx0208): Extern them.
15913
15914 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
15915 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
15916 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
15917 (setup_iso_safe_charsets): Fix arguments to Fassq.
15918 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
15919 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
15920 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
15921 (encode_coding_iso_2022): Change the 1st arg to
15922 ENCODE_ISO_CHARACTER to a variable.
15923
159242008-02-01 Kenichi Handa <handa@m17n.org>
15925
15926 * charset.h (enum define_charset_arg_index): New enums
15927 charset_arg_min_code and charset_arg_max_code.
15928 (struct charset): New member char_index_offset.
15929
15930 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
15931 Take charset->char_index_offset into account.
15932 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
15933 args[charset_arg_max_code]. Setup charset.char_index_offset.
15934 (syms_of_charset): Fix args to Fdefine_charset_internal.
15935
159362008-02-01 Dave Love <fx@gnu.org>
15937
15938 * coding.c (decode_coding_utf_8): Reject overlong sequences.
15939
159402008-02-01 Dave Love <fx@gnu.org>
15941
15942 * coding.c: Doc fixes.
15943 (Fcoding_system_aliases): Fix return value.
15944 (Qmac): Remove (duplicated) definition.
15945
159462008-02-01 Dave Love <fx@gnu.org>
15947
15948 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
15949 functions.
15950
15951 * character.c (Fstring): Doc fix.
15952
15953 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
15954
15955 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
15956 ids.
15957 (font-encoding-alist): Doc fix.
15958
159592008-02-01 Dave Love <fx@gnu.org>
15960
15961 * term.c (costs_set): Declare static, non-initialized for pcc.
15962 (encode_terminal_code): Remove unused var.
15963
15964 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
15965 for K&R.
15966
15967 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
15968
15969 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
15970 (suffixes): Move out of make_subsidiaries for K&R.
15971
15972 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
15973
15974 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
15975
159762008-02-01 Dave Love <fx@gnu.org>
15977
15978 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
15979
15980 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
15981
159822008-02-01 Yong Lu <lyongu@asia-infonet.com>
15983
15984 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
15985
15986 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
15987
159882008-02-01 Kenichi Handa <handa@m17n.org>
15989
15990 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
15991 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
15992
159932008-02-01 Kenichi Handa <handa@m17n.org>
15994
15995 * coding.c (decode_coding_charset): Adjust for the change of
15996 Fdefine_coding_system_internal.
15997 (Fdefine_coding_system_internal): For a coding system of
15998 `charset' type, store a list of charset IDs in
15999 `charset_attr_charset_valids' element of coding attributes.
16000
160012008-02-01 Kenichi Handa <handa@m17n.org>
16002
16003 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
16004 (emacs_mule_char): New arg src. Delete arg `composition'. Change
16005 caller. Handle 2-byte and 3-byte charsets correctly.
16006 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
16007 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
16008 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
16009 (DECODE_EMACS_MULE_21_COMPOSITION): Call
16010 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
16011 sequence.
16012 (decode_coding_emacs_mule): Handle composition correctly. Rewind
16013 `src' and `consumed_chars' correctly before calling emacs_mule_char.
16014 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
16015 and alt&rule composition.
16016 (decode_coding_iso_2022): Handle composition correctly.
16017 (init_coding_once): Setup emacs_mule_bytes for private charsets.
16018
16019 * charset.c (Fdefine_charset_internal): Fix bug for the case of
16020 re-defining a charset. If the charset has :emacs-mule-id, setup
16021 emacs_mule_bytes.
16022 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
16023
160242008-02-01 Kenichi Handa <handa@m17n.org>
16025
16026 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
16027 (encode_coding_big5, encode_coding_charset): If coding requires safe
16028 encoding, produce a character specified by
16029 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
16030
160312008-02-01 Dave Love <fx@gnu.org>
16032
16033 * xterm.c (XSetIMValues): Declare.
16034
16035 * process.c: Conditionally include sys/wait.h, pty.h.
16036
16037 * print.c (print_object): Fix print format for 64-bit systems.
16038
16039 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
16040
16041 * buffer.c (emacs_strerror): Declare.
16042
16043 * fontset.c (Fclear_face_cache): Declare.
16044 (accumulate_font_info): Comment-out (unused).
16045 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
16046 variables.
16047
16048 * character.h (string_escape_byte8): Declare.
16049
16050 * charset.c (load_charset_map, load_charset_map_from_file): Remove
16051 unused vars.
16052 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
16053 (Fmap_charset_chars): Doc fix.
16054
16055 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
16056 (Fset_coding_system_priority, Fset_coding_system_priority)
16057 (Fdefine_coding_system_internal): Doc fix.
16058
160592008-02-01 Dave Love <fx@gnu.org>
16060
16061 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
16062
160632008-02-01 Kenichi Handa <handa@m17n.org>
16064
16065 * character.c (string_escape_byte8): Make multibyte string with
16066 correct size.
16067
16068 * charset.c (Fmake_char): Delete unnecessary code.
16069
160702008-02-01 Kenichi Handa <handa@m17n.org>
16071
16072 * xfns.c (x_encode_text): Allocate coding.destination here, and
16073 call encode_coding_object with dst_object Qnil.
16074
16075 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
16076 multibyte form correctly.
16077
16078 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
16079 against Vfont_encoding_alist.
16080
16081 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
16082 handling of charset list.
16083 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
16084 (decode_coding_object): Move point to coding->dst_pos before
16085 calling post-read-conversion function.
16086 (encode_coding_object): Give correct arguments to
16087 pre-write-conversion. Ignore the return value of
16088 pre-write-conversion function. Pay attention to the case that
16089 pre-write-conversion changes the current buffer. If dst_object is
16090 Qt, even if coding->src_bytes is zero, allocate at least one byte
16091 to coding->destination.
16092
16093 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
16094
16095 * charset.c (Fmake_char): Make it more backward compatible.
16096 (Fmap_charset_chars): Fix docstring.
16097
160982008-02-01 Dave Love <fx@gnu.org>
16099
16100 * coding.c: Doc fixes.
16101 (Fdefine_coding_system_alias): Use names, not symbols, in
16102 coding-system-alist.
16103
161042008-02-01 Kenichi Handa <handa@m17n.org>
16105
16106 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
16107 of calling free_realized_face.
16108
161092008-02-01 Yong Lu <lyongu@asia-infonet.com>
16110
16111 * charset.c (read_hex): Don't treat SPC as a comment starter.
16112 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
16113 (Fdecode_char): Fix typo.
16114
161152008-02-01 Kenichi Handa <handa@m17n.org>
16116
16117 * charset.h (struct charset): New member `code_space_mask'.
16118
16119 * coding.c (coding_set_source): Delete the local variable beg_byte.
16120 (encode_coding_charset, Fdefine_coding_system_internal):
16121 Delete the local variable charset.
16122 (Fdefine_coding_system_internal): Setup
16123 attrs[coding_attr_charset_valids] correctly.
16124
16125 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
16126 member to check if CODE is valid or not.
16127 (Fdefine_charset_internal): Initialize `code_space_mask' member.
16128 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
16129 is within the range of charset->min_code and carset->max_code.
16130
161312008-02-01 Dave Love <fx@gnu.org>
16132
16133 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
16134
16135 * dispextern.h (generate_ascii_font): Fix return type.
16136
16137 * xfaces.c (generate_ascii_font): Fix arg declaration.
16138
16139 * coding.c (coding_inherit_eol_type)
16140 (Fset_terminal_coding_system_internal)
16141 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
16142
161432008-02-01 Kenichi Handa <handa@m17n.org>
16144
16145 * coding.c (decode_coding_charset, encode_coding_charset): Handle
16146 multiple charsets correctly.
16147
161482008-02-01 Kenichi Handa <handa@m17n.org>
16149
16150 * search.c (boyer_moore): Fix handling of multibyte character
16151 translation.
16152
16153 * xdisp.c (display_mode_element): When the variable `elt' is
16154 changed, update `this' and `lisp_string'.
16155
161562008-02-01 Kenichi Handa <handa@m17n.org>
16157
16158 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
16159
16160 * callproc.c (Fcall_process): Be sure to give the current buffer
16161 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
16162
16163 * charset.c (struct charset_map_entries): New struct.
16164 (load_charset_map): Rename from parse_charset_map. New args
16165 entries and n_entries. Change caller.
16166 (load_charset_map_from_file): Rename from load_charset_map.
16167 Change caller. New arg control_flag. Call load_charset_map at
16168 the tail.
16169 (load_charset_map_from_vector): New function.
16170 (Fdefine_charset_internal): Setup charset.compact_codes_p.
16171 (encode_char): If the charset is compact, change a character index
16172 to a code point.
16173
16174 * coding.c (coding_alloc_by_making_gap): Check the case that the
16175 source and destination are the same correctly.
16176 (decode_coding_raw_text): Set coding->consumed_char and
16177 coding->consumed to 0.
16178 (produce_chars): If coding->chars_at_source is nonzero, update
16179 coding->consumed_char and coding->consumed before calling
16180 alloc_destination.
16181 (Fdefine_coding_system_alias): Register ALIAS in
16182 Vcoding_system_alist.
16183 (syms_of_coding): Define `no-conversion' coding system at the tail.
16184
16185 * fileio.c (Finsert_file_contents): Set coding_system instead of
16186 val. If the current buffer is multibyte, always call
16187 decode_coding_gap.
16188
16189 * xfaces.c (try_font_list): Give higher priority to fontset's
16190 family than face's family.
16191
161922008-02-01 Kenichi Handa <handa@m17n.org>
16193
16194 * callproc.c (Fcall_process): Be sure to give the current buffer
16195 to decode_coding_c_string.
16196
16197 * xfaces.c (try_font_list): Give a family specified in a fontset
16198 higher priority than a family specified in a face.
16199
162002008-02-01 Kenichi Handa <handa@m17n.org>
16201
16202 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
16203 Fix arguments to insert_from_buffer.
16204
16205 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
16206
162072008-02-01 Kenichi Handa <handa@m17n.org>
16208
16209 * coding.c (produce_chars): Set the variable `multibytep' correctly.
16210 (decode_coding_gap): Set coding->dst_multibyte correctly.
16211
162122008-02-01 Kenichi Handa <handa@m17n.org>
16213
16214 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
16215 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
16216 (encode_coding_utf_16): Substitute coding->default_char for
16217 non-Unicode characters.
16218 (decode_coding): Don't call record_insert here.
16219 (setup_coding_system): Initialize `surrogate' of
16220 coding->spec.utf_16 to 0.
16221 (EMIT_ONE_BYTE): Fix for multibyte case.
16222
16223 * insdel.c (insert_from_gap): Call record_insert.
16224
162252008-02-01 Kenichi Handa <handa@m17n.org>
16226
16227 * casefiddle.c (casify_region): Fix multibyte case.
16228
16229 * character.c (c_string_width): Add return type `int'.
16230 (char_string_with_unification): Delete arg ADVANCED.
16231
16232 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
16233 (CHAR_STRING): Adjust for the change of char_string_with_unification.
16234 (CHAR_STRING_ADVANCE): Make it do-while statement.
16235
16236 * chartab.c (sub_char_table_set_range): Optimize for the case
16237 DEPTH == 3. Add workaround code for a GCC optimization bug.
16238
16239 * charset.c (parse_charset_map): Remove an unused variable.
16240
16241 * coding.c: Delete unused variables.
16242
16243 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
16244 earlier. If inserted is zero and the coding system doesn't
16245 require flushing, don't call decode_coding_gap.
16246
16247 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
16248
162492008-02-01 Kenichi Handa <handa@m17n.org>
16250
16251 The following changes are for using Unicode as an internal
16252 character model, and use UTF-8 format for buffer/string
16253 representation.
16254
16255 * .gdbinit (xchartable): Adjust for the change of char table structure.
16256 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
16257
16258 * Makefile.in (obj): Add character.o and chartab.o.
16259 (lisp, shortlisp): Remove utf-8.elc.
16260 (*.o): For many files, change dependency on charset.h to
16261 character.h, and add dependency on character.h.
16262 (character.o, chartab.o): New targets.
16263
16264 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
16265 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
16266 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
16267 of "charset.h".
16268
16269 * dired.c, filelock.c: Include "character.h".
16270
16271 * alloc.c: Include "character.h" instead of "charset.h".
16272 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
16273 (syms_of_alloc): Remove defsubr for Smake_char_table.
16274
16275 * buffer.c: Include "character.h" instead of "charset.h", don't
16276 include "coding.h".
16277 (Fset_buffer_multibyte): Adjust for UTF-8.
16278
16279 * buffer.h: EXFUN Fbuffer_live_p.
16280
16281 * callproc.c: Include "character.h" instead of "charset.h".
16282 (Fcall_process): Big change for the new code-conversion APIs.
16283
16284 * casetab.c: Include "character.h" instead of "charset.h".
16285 (set_canon, set_identity, shuffle): Adjust for the new
16286 map_char_table spec.
16287 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
16288 accessing the char table structure.
16289
16290 * chartab.c: New file that implements char table.
16291
16292 * category.c: Include "character.h".
16293 (copy_category_entry): New function.
16294 (copy_category_table): Call map_char_table and copy_category_entry.
16295 (Fmake_category_table): Initialize all top-level slots.
16296 (char_category_set): New function.
16297 (modify_lower_category_set): Delete.
16298 (Fmodify_category_entry): Call char_table_ref_and_range.
16299
16300 * category.h (CATEGORY_SET): Just call char_category_set.
16301
16302 * ccl.c: Include "character.h".
16303 (Qccl, Qcclp): New variables.
16304 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
16305 it's less than 256.
16306 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
16307 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
16308 and DST type.
16309 (ccl_driver): Change types of argument, adjust code accordingly.
16310 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
16311 ccl_driver.
16312 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
16313
16314 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
16315 New members src_multibyte, dst_multibyte, consumed, and produced.
16316 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
16317 (CODING_SPEC_CCL_PROGRAM): New macro.
16318 (ccl_driver): Update prototype.
16319 (Qccl, Qcclp, Fccl_program_p): Extern them.
16320 (CHECK_CCL_PROGRAM): New macro.
16321
16322 * character.c, character.h, chartab.c: New files.
16323
16324 * charset.c: Mostly re-written. Move character and multibyte sequence
16325 handling codes to character.c.
16326
16327 * charset.h: Mostly re-written. Move character and multibyte sequence
16328 handling codes to character.h.
16329
16330 * coding.c, coding.h: Mostly re-written.
16331
16332 * composite.c: Include "character.h" instead of "charset.h".
16333 (CHAR_WIDTH): Move to character.h.
16334 (HASH_KEY, HASH_VALUE): Delete.
16335
16336 * composite.h (enum composition_method): Change order of enumeration
16337 symbols.
16338
16339 * data.c: Include "character.h" instead of "charset.h".
16340 (Faref): Call CHAR_TABLE_REF for a char table.
16341 (Faset): Call CHAR_TABLE_SET for a char table.
16342
16343 * dispextern.h (free_realized_face, check_face_attribytes)
16344 (generate_ascii_font): Extern them.
16345 (free_realized_multibyte_face): Delete extern.
16346
16347 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
16348 table structure.
16349
16350 * editfns.c: Include "character.h" instead of "charset.h".
16351 (Fchar_to_string): Always call CHAR_STRING.
16352
16353 * emacs.c (main): Call init_charset_once, init_charset,
16354 syms_of_chartab, and syms_of_character.
16355
16356 * fileio.c: Include "character.h" instead of "charset.h".
16357 (Finsert_file_contents): Big change for the new code-conversion API.
16358 (choose_write_coding_system, Fwrite_region): Likewise.
16359 (build_annotations_2): Delete.
16360 (e_write): Big change for the new code-conversion API.
16361
16362 * fns.c: Include "character.h" instead of "charset.h".
16363 (copy_sub_char_table): Move to chartab.c.
16364 (Fcopy_sequence): Call copy_char_table for a char table.
16365 (concat): Delete codes calling count_multibyte.
16366 (string_char_to_byte, string_byte_to_char): Adjust for the new
16367 multibyte form.
16368 (internal_equal): Adjust for the change of char table structure.
16369 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
16370 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
16371 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
16372 (char_table_translate, optimize_sub_char_table)
16373 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
16374 chartab.c.
16375 (char_table_ref_and_index): Delete.
16376 (HASH_KEY, HASH_VALUE): Move to lisp.h.
16377 (Fmd5): Call preferred_coding_system instead of accessing
16378 Vcoding_category_list. Adjust for the new code-conversion API.
16379 (syms_of_fns): Move defsubr for char table related functions to
16380 chartab.c.
16381
16382 * fontset.c: Mostly re-written.
16383
16384 * fontset.h (struct font_info): Change type of the member encoding_type.
16385 (enum FONT_SPEC_INDEX): New enum.
16386 (fontset_font_pattern, fs_load_font): Update prototype.
16387 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
16388
16389 * indent.c: Include "character.h" instead of "charset.h".
16390 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
16391
16392 * insdel.c: Include "character.h" instead of "charset.h".
16393 (copy_text): Don't refer to Vnonascii_translation_table.
16394 (insert_from_gap): New function.
16395
16396 * keyboard.c: Include "character.h" instead of "charset.h".
16397 (command_loop_1): Never call direct_output_forward_char before
16398 a non-ASCII character.
16399 (read_char): If Vkeyboard_translate_table is a char table, always
16400 translate a character.
16401
16402 * keymap.c: Include "character.h".
16403 (store_in_keymap): Handle the case that IDX is a cons.
16404 (Fdefine_key): Handle the case that KEY is a cons and the car part
16405 is also a cons (range).
16406 (push_key_description): Adjust for the new character code.
16407 (describe_vector): Call describe_char_table for a char table.
16408 (describe_char_table): New function.
16409
16410 * keymap.h (describe_char_table): Extern it.
16411
16412 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
16413 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
16414 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
16415 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
16416 Delete.
16417 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
16418 structure.
16419 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
16420 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
16421 (CHARTAB_SIZE_BITS_3): New macros.
16422 (chartab_size): Extern it.
16423 (struct Lisp_Char_Table): Re-design.
16424 (struct Lisp_Sub_Char_Table): New structure.
16425 (HASH_KEY, HASH_VALUE): Move from fns.c.
16426 (CHARACTERBITS): Define as 22.
16427 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
16428 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
16429 (GC_SUB_CHAR_TABLE_P): New macro.
16430 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
16431 (code_convert_string_norecord): Deleted extern.
16432 (init_character_once, syms_of_character, init_charset)
16433 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
16434
16435 * lread.c: Include "character.h".
16436 (read_multibyte): New arg NBYTES.
16437 (read_escape): Change the meaning of returned *BYTEREP.
16438 (to_multibyte): Delete.
16439 (read1): Adjust the handling of char table and string.
16440
16441 * print.c: Include "character.h" instead of "charset.h".
16442 (print_string): Convert 8-bit raw bytes to octal form by
16443 string_escape_byte8.
16444 (print_object): Adjust for the new multibyte form. Print 8-bit
16445 raw bytes always in octal form. Handle sub char table correctly.
16446
16447 * process.c: Include "character.h" instead of "charset.h".
16448 (read_process_output, send_process): Adjust for the new
16449 code-conversion API.
16450
16451 * puresize.h (BASE_PURESIZE): Increase.
16452
16453 * regex.c: Include "character.h" instead of "charset.h".
16454 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
16455 (regex_compile): Accept a range whose starting and ending
16456 character have different leading bytes.
16457 (analyse_first): Adjust for the above change.
16458
16459 * search.c: Include "character.h" instead of "charset.h".
16460 (search_buffer, boyer_moore): Adjust for the new multibyte form.
16461 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
16462
16463 * syntax.c: Include "character.h" instead of "charset.h".
16464 (syntax_parent_lookup): Delete.
16465 (Fmodify_syntax_entry): Accept a cons as CHAR.
16466 (skip_chars): Adjust for the new multibyte form.
16467 (init_syntax_once): Call char_table_set_range instead of directly
16468 accessing the structure of a char table.
16469
16470 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
16471 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
16472 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
16473 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
16474
16475 * term.c: Include "buffer.h" and "character.h".
16476 (encode_terminal_code, write_glyphs): Adjust for the new
16477 code-conversion API.
16478 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
16479
16480 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
16481
16482 * xdisp.c: Include "character.h".
16483 (get_next_display_element): Adjust for the new multibyte form.
16484 (disp_char_vector): Adjust for the new char table structure.
16485 (decode_mode_spec_coding): Adjust for the new structure of
16486 coding system.
16487 (decode_mode_spec): Adjust for the new code-conversion API.
16488
16489 * xfaces.c: Include "character.h" instead of "charset.h".
16490 (load_face_font): Adjust for the change of choose_face_font and
16491 FS_LOAD_FONT.
16492 (generate_ascii_font): New function.
16493 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
16494 (set_font_frame_param): Adjust for the change of choose_face_font.
16495 (free_realized_face): Make it public.
16496 (free_realized_faces_for_fontset): Rename from
16497 free_realized_multibyte_face. Free also faces realized for ASCII.
16498 (choose_face_font): Change arguments. Adjust for the change of
16499 fontset_font_pattern and FS_LOAD_FONT.
16500
16501 * xfns.c: Include "character.h".
16502 (x_encode_text): Adjust for the new code-conversion API.
16503
16504 * xselect.c: Don't include "charset.h".
16505 (selection_data_to_lisp_data): Adjust for the new code conversion API.
16506
16507 * xterm.c: Include "character.h".
16508 (x_encode_char): New argument CHARSET. Change caller.
16509 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
16510 Call ENCODE_CHAR instead of SPLIT_CHAR.
16511 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
16512 CHAR_WIDTH instead of CHARSET_WIDTH.
16513 (XTread_socket): Adjust for the new code-conversion API.
16514 (x_new_font): Adjust for the change of FS_LOAD_FONT.
16515 (x_load_font): Adjust for the change of struct font.
16516
165172008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
16518
16519 * xfaces.c (face_at_buffer_position): Remove unused vars.
16520
165212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16522
16523 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
16524 Fix overflow checking.
16525
165262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
16527
16528 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
16529 Cancel previous change.
16530
165312008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
16532
16533 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
16534 ccl->eight_bit_control. Fix check for buffer overflow.
16535 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
16536 (ccl_driver): Initialize extra_bytes to 0.
16537
165382008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
16539
16540 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
16541 return it ORed with ctrl_modifier.
16542
165432008-01-29 Miles Bader <miles@gnu.org>
16544
16545 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
16546
165472008-01-28 Jason Rumney <jasonr@gnu.org>
16548
16549 * w32.c (stat): Don't double check for networked drive.
16550
165512008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
16552
16553 * window.c (run_window_configuration_change_hook): New function.
16554 Code extracted from set_window_buffer. Set the selected frame.
16555 (set_window_buffer): Use it.
16556 * window.h (run_window_configuration_change_hook): Declare.
16557 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
16558
16559 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
16560
165612008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
16562
16563 * Makefile.in: Remove references to unused macros.
16564
165652008-01-26 Eli Zaretskii <eliz@gnu.org>
16566
16567 * w32.c (g_b_init_get_sid_sub_authority)
16568 (g_b_init_get_sid_sub_authority_count): New static variables.
16569 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
16570 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
16571 (init_user_info): Use them to retrieve uid and gid.
16572 Use 500/513, the Windows defaults, as Administrator's uid/gid.
16573 (fstat): Use pw_uid and pw_gid from the_passwd structure for
16574 st_uid and st_gid of the file.
16575
165762008-01-26 Jason Rumney <jasonr@gnu.org>
16577
16578 * w32.c (logon_network_drive): New function.
16579 (stat): Use it.
16580
165812008-01-26 Chong Yidong <cyd@stupidchicken.com>
16582
16583 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
16584 invisible text covered with an ellipsis.
16585
165862008-01-25 Richard Stallman <rms@gnu.org>
16587
16588 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
16589 jump back to beginning. Move some other initializations after that.
16590 (Qwindow_text_change_functions, Vwindow_text_change_functions):
16591 New variables.
16592 (syms_of_xdisp): Init them.
16593
16594 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
16595
16596 * buffer.c (reset_buffer_local_variables):
16597 Implement `permanent-local-hook'.
16598 (Qpermanent_local_hook): New variable.
16599 (syms_of_buffer): Init and staticpro it.
16600
166012008-01-25 Michael Albinus <michael.albinus@gmx.de>
16602
16603 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
16604
166052008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
16606
16607 * fns.c (Fclrhash): Return TABLE.
16608
166092008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16610
16611 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
16612 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
16613 is set even without positional changes.
16614 (x_scroll_bar_clear): Set bar->redraw_needed_p.
16615
16616 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
16617
166182008-01-23 Jason Rumney <jasonr@gnu.org>
16619
16620 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
16621
16622 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
16623 the unicode range available in MULE by locale-coding-system.
16624 Improve dbcs lead byte detection. Set event timestamp and modifiers
16625 earlier.
16626
166272008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16628
16629 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
16630 [MAC_OSX] (init_mac_osx_environment): Initialize it.
16631 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
16632 when used on child processes.
16633
166342008-01-21 Michael Albinus <michael.albinus@gmx.de>
16635
16636 * dbusbind.c (Fdbus_method_return_internal): Rename from
16637 Fdbus_method_return.
16638 (Fdbus_unregister_object): Move to dbus.el.
16639 (Fdbus_call_method, Fdbus_method_return_internal)
16640 (Fdbus_send_signal): Improve debug messages.
16641
166422008-01-20 Martin Rudalics <rudalics@gmx.at>
16643
16644 * undo.c (undo_inhibit_record_point): New variable.
16645 (syms_of_undo): Initialize it.
16646 (record_point): Don't record point when undo_inhibit_record_point
16647 is set.
16648
166492008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
16650
16651 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
16652
16653 * xdisp.c (Qauto_hscroll_mode): New var.
16654 (syms_of_xdisp): Initialize it.
16655 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
16656 window's buffer.
16657 (hscroll_windows): Don't check automatic_hscrolling_p here.
16658
16659 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
16660 vscroll if we're setting window-buffer to the value it already has.
16661
166622008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
16663
16664 * m/intel386.h: Remove references to XENIX.
16665
166662008-01-17 Andreas Schwab <schwab@suse.de>
16667
16668 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
16669 instead of HAVE_X86_64_LIB64_DIR.
16670 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
16671
166722008-01-17 Glenn Morris <rgm@gnu.org>
16673
16674 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
16675 to HAVE_X86_64_LIB64_DIR.
16676
166772008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
16678
16679 * s/irix3-3.h:
16680 * s/irix4-0.h:
16681 * s/386-ix.h:
16682 * s/domain.h:
16683 * s/hpux9-x11r4.h:
16684 * s/hpux9shxr4.h: Remove files for systems no longer supported.
16685
16686 * sysdep.c: Remove code containing references to symbols defined
16687 by unsupported systems.
16688
166892008-01-16 Glenn Morris <rgm@gnu.org>
16690
16691 * coding.c (select-safe-coding-system-function): Doc fix.
16692
166932008-01-15 Glenn Morris <rgm@gnu.org>
16694
16695 * config.in: Revert 2008-01-13 change: this is a generated file.
16696
166972008-01-13 Tom Tromey <tromey@redhat.com>
16698
16699 * lisp.h: Fix typo.
16700
167012008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
16702
16703 * m/sequent-ptx.h:
16704 * m/sequent.h:
16705 * s/ptx.h:
16706 * s/ptx4-2.h:
16707 * s/ptx4.h: Remove files for systems no longer supported.
16708
16709 * callproc.c (Fcall_process): Fix previous change.
16710
167112008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
16712
16713 * unexsunos4.c: Remove file, system not supported anymore.
16714
16715 * m/mips.h:
16716 * m/intel386.h:
16717 * callproc.c:
16718 * config.in:
16719 * ecrt0.c:
16720 * emacs.c:
16721 * fileio.c:
16722 * frame.c:
16723 * getpagesize.h:
16724 * keyboard.c:
16725 * lread.c:
16726 * process.c:
16727 * puresize.h:
16728 * sysdep.c:
16729 * systty.h:
16730 * syswait.h:
16731 * unexec.c:
16732 * xdisp.c:
16733 * alloc.c: Remove code containing references to symbols defined by
16734 unsupported systems.
16735
167362008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
16737
16738 * coding.c (detect_coding_mask): Fix previous change.
16739
167402008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
16741
16742 * coding.c (detect_coding_iso2022): New arg
16743 latin_extra_code_state. Allow Latin extra codes only
16744 when *latin_extra_code_state is nonzero.
16745 (detect_coding_mask): If there is a NULL byte, detect the encoding
16746 as UTF-16 or binary. If Latin extra codes exist, detect the
16747 encoding as ISO-2022 only when there's no other proper encoding is
16748 found.
16749
167502008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16751
16752 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
16753 #ifdef MAC_OS.
16754
167552008-01-08 Richard Stallman <rms@gnu.org>
16756
16757 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
16758
167592008-01-06 Nick Roberts <nickrob@snap.net.nz>
16760
16761 * keyboard.c (parse_menu_item): Don't enclose key bindings on
16762 menu bar in parentheses.
16763
167642008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
16765
16766 * m/7300.h:
16767 * m/acorn.h:
16768 * m/alliant-2800.h:
16769 * m/alliant.h:
16770 * m/alliant1.h:
16771 * m/alliant4.h:
16772 * m/altos.h:
16773 * m/amdahl.h:
16774 * m/apollo.h:
16775 * m/att3b.h:
16776 * m/aviion-intel.h:
16777 * m/aviion.h:
16778 * m/celerity.h:
16779 * m/clipper.h:
16780 * m/cnvrgnt.h:
16781 * m/convex.h:
16782 * m/cydra5.h:
16783 * m/delta88k.h:
16784 * m/dpx2.h:
16785 * m/dual.h:
16786 * m/elxsi.h:
16787 * m/f301.h:
16788 * m/gould-np1.h:
16789 * m/gould.h:
16790 * m/i860.h:
16791 * m/ibmps2-aix.h:
16792 * m/ibmrt-aix.h:
16793 * m/ibmrt.h:
16794 * m/irist.h:
16795 * m/is386.h:
16796 * m/isi-ov.h:
16797 * m/mega68.h:
16798 * m/mg1.h:
16799 * m/news-r6.h:
16800 * m/news-risc.h:
16801 * m/news.h:
16802 * m/nh3000.h:
16803 * m/nh4000.h:
16804 * m/ns16000.h:
16805 * m/ns32000.h:
16806 * m/nu.h:
16807 * m/orion.h:
16808 * m/orion105.h:
16809 * m/paragon.h:
16810 * m/pfa50.h:
16811 * m/plexus.h:
16812 * m/pyramid.h:
16813 * m/pyrmips.h:
16814 * m/sh3el.h:
16815 * m/sps7.h:
16816 * m/sr2k.h:
16817 * m/stride.h:
16818 * m/sun1.h:
16819 * m/sun2.h:
16820 * m/sun3-68881.h:
16821 * m/sun3-fpa.h:
16822 * m/sun3-soft.h:
16823 * m/sun3.h:
16824 * m/sun386.h:
16825 * m/symmetry.h:
16826 * m/tad68k.h:
16827 * m/tahoe.h:
16828 * m/targon31.h:
16829 * m/tek4300.h:
16830 * m/tekxd88.h:
16831 * m/tower32.h:
16832 * m/tower32v3.h:
16833 * m/ustation.h:
16834 * m/wicat.h:
16835 * m/xps100.h:
16836 * s/cxux.h:
16837 * s/cxux7.h:
16838 * s/dgux.h:
16839 * s/dgux4.h:
16840 * s/dgux5-4-3.h:
16841 * s/dgux5-4r2.h:
16842 * s/esix.h:
16843 * s/esix5r4.h:
16844 * s/hiuxmpp.h:
16845 * s/hiuxwe2.h:
16846 * s/iris3-5.h:
16847 * s/iris3-6.h:
16848 * s/isc2-2.h:
16849 * s/isc3-0.h:
16850 * s/isc4-0.h:
16851 * s/isc4-1.h:
16852 * s/newsos5.h:
16853 * s/newsos6.h:
16854 * s/osf1.h:
16855 * s/osf5-0.h:
16856 * s/riscix1-1.h:
16857 * s/riscix12.h:
16858 * s/sco4.h:
16859 * s/sco5.h:
16860 * s/sunos4-0.h:
16861 * s/sunos4-1.h:
16862 * s/sunos413.h:
16863 * s/sunos4shr.h:
16864 * s/umax.h:
16865 * s/unipl5-2.h:
16866 * s/xenix.h:
16867 * cxux-crt0.s:
16868 * unexapollo.c:
16869 * unexconvex.c:
16870 * unexenix.c:
16871 * unexsni.c: Remove files for systems no longer supported.
16872
16873 * m/intel386.h: Remove references to unsupported systems.
16874
16875 * w32.c (get_emacs_configuration): Remove reference to i860.
16876
16877 * sysdep.c: Remove dead code.
16878
168792008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
16880
16881 * s/rtu.h:
16882 * m/masscomp.h: Remove files. Platform is obsolete.
16883
168842008-01-04 Michael Albinus <michael.albinus@gmx.de>
16885
16886 * dbusbind.c (Fdbus_method_return): New function.
16887 (xd_read_message): Add the serial number to the event.
16888 (Fdbus_register_method): Activate the function.
16889
168902008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
16891
16892 * keyboard.c (read_key_sequence): Fix typo.
16893
168942008-01-03 Michael Albinus <michael.albinus@gmx.de>
16895
16896 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
16897 (xd_signature, xd_append_arg): Handle element type detection for
16898 empty arrays.
16899 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
16900 SDATA () calls; this must be solved more general.
16901 (Fdbus_register_signal): Use SBYTES instead of strlen.
16902
169032008-01-03 Magnus Henoch <magnus@zemdatav>
16904
16905 * dbusbind.c (xd_append_arg): Use unsigned char instead of
16906 unsigned int for byte values (necessary for big-endian platform).
16907 (Fdbus_call_method): Handle the case of no returned arguments.
16908
169092007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
16910
16911 * dbusbind.c (xd_read_message): Use non-static input_event struct.
16912
169132007-12-31 Magnus Henoch <mange@freemail.hu>
16914
16915 * dbusbind.c (xd_signature): Signature of variant is just "v".
16916
169172007-12-30 Michael Albinus <michael.albinus@gmx.de>
16918
16919 * dbusbind.c: Fix several errors and compiler warnings.
16920 Reported by Tom Tromey <tromey@redhat.com>.
16921 (XD_ERROR, XD_DEBUG_MESSAGE)
16922 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
16923 (xd_append_arg): Part for basic D-Bus types rewritten.
16924 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
16925 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
16926 appropriate.
16927 (xd_read_message): Return Qnil. Don't signal an error; it is not
16928 useful during event reading.
16929 (Fdbus_register_signal): Signal an error if the check for
16930 FUNCTIONP fails.
16931 (Fdbus_register_method): New function. The implementation is not
16932 complete, the call of the function signals an error therefore.
16933 (Fdbus_unregister_object): New function, renamed from
16934 Fdbus_unregister_signal. The initial check signals an error, if
16935 the object is not well formed.
16936
169372007-12-30 Richard Stallman <rms@gnu.org>
16938
16939 * textprop.c (get_char_property_and_overlay):
16940 Signal error if POSITION is out of range in a buffer.
16941
169422007-12-29 Martin Rudalics <rudalics@gmx.at>
16943
16944 * w32fns.c (Fx_create_frame): Make copy of frame parameters
16945 because the original parameters are in pure storage now.
16946
169472007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16948
16949 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
16950
169512007-12-22 Eli Zaretskii <eliz@gnu.org>
16952
16953 * callint.c (syms_of_callint) <command-history>: Add reference to
16954 history-length in the doc string.
16955
169562007-12-17 Jason Rumney <jasonr@gnu.org>
16957
16958 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
16959 before passing as wParam.
16960
169612007-12-22 Michael Albinus <michael.albinus@gmx.de>
16962
16963 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
16964 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
16965 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
16966 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
16967 as number.
16968 (Fdbus_call_method): Fix docstring.
16969
169702007-12-21 Michael Albinus <michael.albinus@gmx.de>
16971
16972 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
16973 New macros.
16974 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
16975 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
16976 Simplify.
16977 (xd_signature): New function.
16978 (xd_append_arg): Compute also signatures. Major rewrite.
16979 (xd_retrieve_arg): Make debug messages friendly.
16980 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
16981 Check for signatures of arguments.
16982
169832007-12-19 Michael Albinus <michael.albinus@gmx.de>
16984
16985 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
16986 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
16987 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
16988 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
16989 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
16990 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
16991 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
16992 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
16993 (xd_retrieve_value): Remove. Functionality included in ...
16994 (xd_append_arg): New function.
16995 (Fdbus_call_method, Fdbus_send_signal): Apply it.
16996
169972007-12-16 Michael Albinus <michael.albinus@gmx.de>
16998
16999 * dbusbind.c (top): Include <stdio.h>.
17000 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
17001 dbus_message_new_method_call and dbus_message_new_signal.
17002 (Fdbus_register_signal): Rename unique_name to uname.
17003 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
17004 non-existing unique name. Fix typos in matching rule. Return an
17005 object which is useful in Fdbus_unregister_signal.
17006 (Fdbus_unregister_signal): Reimplementation, in order to remove
17007 only the corresponding entry.
17008 (Vdbus_registered_functions_table): Change the order of entries.
17009 Apply these changes in xd_read_message and Fdbus_register_signal.
17010
170112007-12-16 Andreas Schwab <schwab@suse.de>
17012
17013 * fileio.c (Finsert_file_contents): Fix overflow check to not
17014 depend on undefined integer overflow.
17015
170162007-12-14 Jason Rumney <jasonr@gnu.org>
17017
17018 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
17019 for characters above 127.
17020
170212007-12-13 Jason Rumney <jasonr@gnu.org>
17022
17023 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
17024 before dereferencing array.
17025 (lookup_vk_code): Remove zero comparison.
17026
170272007-12-14 Michael Albinus <michael.albinus@gmx.de>
17028
17029 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
17030 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
17031 Use `unsigned int' instead of `uint'.
17032 (xd_read_message, Fdbus_register_signal): Split expressions into
17033 multiple lines before operators "&&" and "||", according to the
17034 GNU Coding Standards.
17035
170362007-12-14 Eli Zaretskii <eliz@gnu.org>
17037
17038 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
17039
170402007-12-12 Juri Linkov <juri@jurta.org>
17041
17042 * buffer.c (Frename_buffer): In interactive spec replace
17043 `read-buffer' with `read-string' that uses `buffer-name-history'
17044 as history, and the current buffer's name as default.
17045
170462007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
17047
17048 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
17049 manipulating the backtrace manually.
17050 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
17051 (struct backtrace, backtrace_list): Remove.
17052 (command_loop_1): Remove dead var `no_direct'.
17053
17054 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
17055 preserve non-built-in buffer-local variables.
17056 (Fkill_all_local_variables): Don't re-create&re-set permanent
17057 buffer-local variables.
17058
170592007-12-09 Juri Linkov <juri@jurta.org>
17060
17061 * buffer.c (Frename_buffer): Change interactive spec from "s" to
17062 Lisp code that uses `read-buffer' with current buffer as default.
17063
170642007-12-08 Michael Albinus <michael.albinus@gmx.de>
17065
17066 * dbusbind.c (xd_read_message): Generate an event for every
17067 registered handler. There might be several handlers registered
17068 for the same signal.
17069 (Fdbus_register_signal): Don't overwrite a registration for the
17070 same signal. Add a new registration if handlers are different.
17071 (Vdbus_registered_functions_table): Rework doc string.
17072
170732007-12-07 Michael Albinus <michael.albinus@gmx.de>
17074
17075 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
17076 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
17077 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
17078 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
17079 Unify argument lists.
17080 (xd_read_message, Fdbus_register_signal): Reorder and extend event
17081 arguments and hash table keys. Use unique name for service.
17082 (Fdbus_unregister_signal): Remove checks.
17083 (Vdbus_registered_functions_table): Fix doc string.
17084
170852007-12-05 Magnus Henoch <mange@freemail.hu>
17086
17087 * process.c (make_process): Initialize pty_flag to 0.
17088
170892007-12-05 Jason Rumney <jasonr@gnu.org>
17090
17091 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
17092 specified XBMs.
17093
170942007-12-05 Richard Stallman <rms@gnu.org>
17095
17096 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
17097
170982007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17099
17100 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
17101 New variable.
17102 (mac_try_close_socket) [MAC_OSX]: New function.
17103 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
17104 Update cfsockets_for_select. Replace invalid CFRunLoop source.
17105
17106 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
17107 Use mac_try_close_socket.
17108
171092007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17110
17111 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
17112 reloc_base.
17113 (copy_dysymtab): Compute relocation base here.
17114 (rebase_reloc_address) [__ppc64__]: New function.
17115 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
17116 changed.
17117
171182007-12-05 Jason Rumney <jasonr@gnu.org>
17119
17120 * w32proc.c (sys_spawnve): Quote args with wildcards.
17121
171222007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17123
17124 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
17125 __objc_* sections.
17126 (unrelocate) [_LP64]: Set relocation base to address of data segment.
17127
171282007-12-05 Michael Albinus <michael.albinus@gmx.de>
17129
17130 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
17131 Move check for Vdbus_registered_functions_table to
17132 xd_read_queued_messages.
17133 (xd_read_queued_messages): Protect xd_read_message calls by
17134 internal_condition_case_1.
17135
171362007-12-04 Michael Albinus <michael.albinus@gmx.de>
17137
17138 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
17139 Qdbus_system_bus and Qdbus_session_bus, respectively.
17140 (Vdbus_intern_symbols): Remove.
17141 (Vdbus_registered_functions_table): New hash table.
17142 (XD_SYMBOL_INTERN_SYMBOL): Remove.
17143 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
17144 Rewrite in order to manage registered functions by hash table
17145 Vdbus_registered_functions_table.
17146
171472007-12-03 Jan Djärv <jan.h.d@swipnet.se>
17148
17149 * xterm.c: Update URL to Window Manager Specification in comment.
17150
171512007-12-02 Michael Albinus <michael.albinus@gmx.de>
17152
17153 * config.in (HAVE_DBUS): Add.
17154
17155 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
17156 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
17157 (obj): Add $(DBUS_OBJ).
17158 (LIBES): Add $(DBUS_LIBS).
17159 (dbusbind.o): New target.
17160
17161 * dbusbind.c: New file.
17162
17163 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
17164
17165 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
17166 (Qdbus_event): New Lisp symbol.
17167 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
17168 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 17169 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
17170
17171 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
17172
171732007-12-01 Richard Stallman <rms@gnu.org>
17174
17175 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
17176
171772007-11-30 Jason Rumney <jasonr@gnu.org>
17178
17179 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
17180 (w32con_reset_terminal_modes): Clear screen buffer.
17181 (w32_face_attributes): Don't use color indexes that are out of range.
17182 Only reverse the default colors.
17183
17184 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
17185 WINDOWSNT.
17186
17187 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
17188
171892007-11-29 Jason Rumney <jasonr@gnu.org>
17190
17191 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
17192 (w32_face_attributes): Use Vtty_defined_color_alist to determine
17193 if the terminal colors are initialized.
17194 (unspecified_fg, unspecified_bg): Remove unused declarations.
17195
171962007-11-29 Andreas Schwab <schwab@suse.de>
17197
17198 * keyboard.c (apply_modifiers): Fix typo.
17199
172002007-11-29 Richard Stallman <rms@gnu.org>
17201
17202 * keymap.c (Fcurrent_local_map): Doc fix.
17203
172042007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
17205
17206 * s/gnu-kfreebsd.h: New file.
17207
172082007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
17209
17210 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
17211 Don't cast redundantly.
17212
17213 * keyboard.c (KEY_TO_CHAR): New macro.
17214 (parse_modifiers, apply_modifiers): Accept integer arguments.
17215 (read_key_sequence): Use them to unify the "shift->unshift" mapping
17216 for chars and symbol keys.
17217 After doing such remapping, apply function-key-map again.
17218
172192007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
17220
17221 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
17222 compiled anymore.
17223
172242007-11-26 Andreas Schwab <schwab@suse.de>
17225
17226 * process.c (list_processes_1): Fix indentation level of the
17227 command column.
17228
172292007-11-23 Andreas Schwab <schwab@suse.de>
17230
17231 * editfns.c (Fformat): Handle %c specially since it requires the
17232 argument to be of type int.
17233
172342007-11-23 Markus Triska <markus.triska@gmx.at>
17235
17236 * emacs.c (main): Call init_editfns before init_process, since
17237 init_process sets Vprocess_connection_type depending on OS release.
17238
172392007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
17240
17241 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
17242 (find_symbol_value): Use do_symval_forwarding.
17243
17244 * data.c (set_internal): Set the value in the `cons-cell' (for
17245 Buffer_Local_values) not only for frame-local variables.
17246
172472007-11-22 Andreas Schwab <schwab@suse.de>
17248
17249 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
17250 values to sprintf.
17251 * keymap.c (Fsingle_key_description): Likewise.
17252 * print.c (print_object): Likewise.
17253
172542007-11-22 Jan Djärv <jan.h.d@swipnet.se>
17255
17256 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
17257 file for image is nil.
17258
172592007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
17260
17261 * term.c: Include stdarg.h.
17262 (fatal): Implement using varargs.
17263 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
17264
172652007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
17266
17267 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
17268 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
17269 Update call to buffer_slot_type_mismatch.
17270 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
17271 (buffer_slot_type_mismatch): Update.
17272 * buffer.c (buffer_local_types): Remove.
17273 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
17274 (defvar_per_buffer): Set the type in the buffer_objfwd.
17275
172762007-11-21 Jason Rumney <jasonr@gnu.org>
17277
17278 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
17279 CreateFileMapping returns NULL on failure.
17280
172812007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
17282
17283 * search.c (Fset_match_data): Remove the `evaporate' feature.
17284 (unwind_set_match_data): Don't use the `evaporate' feature.
17285
172862007-11-21 Jason Rumney <jasonr@gnu.org>
17287
17288 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
17289
17290 * w32console.c (w32con_write_glyphs): Remove unused variables.
17291
172922007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
17293
17294 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
17295
17296 * s/darwin.h (MULTI_KBOARD): Remove.
17297
17298 * macfns.c (x_create_tip_frame, Fx_create_frame)
17299 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
17300
173012007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
17302
17303 * buffer.c (Fbuffer_local_value): Remove redundant test.
17304 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
17305 than in `current-buffer' to match the comment.
17306 Do the swap using swap_in_global_binding.
17307
17308 * data.c (store_symval_forwarding, set_internal):
17309 * eval.c (specbind): Remove dead code.
17310
17311 * coding.c (detect_coding, Fupdate_coding_systems_internal):
17312 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
17313 Since we do not want to see internal Lisp_*fwd objects here.
17314
173152007-11-18 Jan Djärv <jan.h.d@swipnet.se>
17316
17317 * sysdep.c (init_system_name): Use getaddrinfo if available.
17318
17319 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
17320 (x_scroll_bar_note_movement): start, end, with, height in struct
17321 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
17322
173232007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
17324
17325 * puresize.h (BASE_PURESIZE): Increase to 1190000.
17326
173272007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
17328
17329 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
17330 This undoes Richard's change of 14-Oct-2002.
17331
17332 * alloc.c (allocate_other_vector):
17333 * lisp.h (allocate_other_vector): Remove.
17334
17335 * window.c (struct save_window_data): Move non-lisp data to the end
17336 and make it `int' rather than Lisp_Object.
17337 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
17338 Done wrap/unwrap integer values.
17339 (Fset_window_configuration, compare_window_configurations):
17340 Update use of fields to their new types.
17341
17342 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
17343 Turn integer fields into `int'. Merge x_window_low and x_window_high.
17344 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
17345 (SET_SCROLL_BAR_X_WINDOW): Remove.
17346 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
17347 Access the new x_window field directly.
17348 * xterm.c (x_scroll_bar_create): Use a pseudovector.
17349 Don't wrap/unwrap integers into Lisp_Objects.
17350 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
17351 (x_scroll_bar_report_motion):
17352 Don't wrap/unwrap integers into Lisp_Objects.
17353 (x_term_init): Use SDATA.
17354 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
17355 (x_scroll_bar_set_handle, x_scroll_bar_remove)
17356 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
17357 (x_scroll_bar_report_motion, x_scroll_bar_clear):
17358 * xfns.c (x_set_background_color):
17359 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
17360 Access the new x_window field directly.
17361
17362 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
17363 (allocate_pseudovector): Make non-static.
17364
17365 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
17366 (allocate_pseudovector): Declare.
17367 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
17368
173692007-11-15 Andreas Schwab <schwab@suse.de>
17370
17371 * editfns.c (Fformat): Correctly format EMACS_INT values.
17372 Also take precision into account when formatting an integer.
17373
17374 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
17375
173762007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
17377
17378 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
17379 (syms_of_keyboard): Defsubr it.
17380
17381 * data.c (swap_in_global_binding): Fix longstanding bug where
17382 store_symval_forwarding was not called with the right second argument,
17383 thus causing objfwd-ing from being dropped.
17384
173852007-11-14 Juanma Barranquero <lekktu@gmail.com>
17386
17387 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
17388 (Fx_display_pixel_height, Fx_display_planes)
17389 (Fx_display_color_cells, Fx_server_max_request_size)
17390 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
17391 (Fx_display_visual_class, Fx_display_save_under):
17392 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
17393 (Fx_display_pixel_height, Fx_display_planes)
17394 (Fx_display_color_cells, Fx_server_max_request_size)
17395 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
17396 (Fx_display_mm_height, Fx_display_mm_width)
17397 (Fx_display_backing_store, Fx_display_visual_class)
17398 (Fw32_select_font, Fx_display_save_under):
17399 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
17400 (Fx_display_pixel_height, Fx_display_planes)
17401 (Fx_display_color_cells, Fx_server_max_request_size)
17402 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
17403 (Fx_display_save_under): Fix typos in docstrings.
17404
174052007-11-14 Juanma Barranquero <lekktu@gmail.com>
17406
17407 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
17408 corresponding to deleted entries; they are an implementation detail.
17409 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
17410 Remove variables.
17411 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
17412 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
17413 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
17414 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
17415 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
17416 (Fw32_define_rgb_color, Fw32_load_color_file)
17417 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
17418 Fix typos in docstrings.
17419 (Fx_server_version): Reflow docstring.
17420 (Fw32_shell_execute): Doc fixes.
17421
174222007-11-13 Juanma Barranquero <lekktu@gmail.com>
17423
17424 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
17425 if w32_parse_hot_key returned nil.
17426
174272007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
17428
17429 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
17430
174312007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 17432
aac0c6e3
MR
17433 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
17434
17435 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
17436
17437 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
17438 Remove W32_SCROLL_BAR_CLICK_EVENT.
17439
17440 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
17441 Add MULTIMEDIA_KEY_EVENT.
17442
17443 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
17444 (lispy_multimedia_keys) [WINDOWSNT]: New array.
17445 (make_lispy_event) [WINDOWSNT]: Use it to translate
17446 MULTIMEDIA_KEY_EVENT.
17447
17448 * w32term.h (WM_APPCOMMAND): Define if not already.
17449 (GET_APPCOMMAND_LPARAM): Likewise.
17450
17451 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
17452 WM_APPCOMMAND.
17453
17454 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
17455 (syms_of_w32fns): Export and initialize it.
17456 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
17457
174582007-11-09 Chong Yidong <cyd@stupidchicken.com>
17459
17460 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
17461 twice.
17462
17463 * xdisp.c (handle_face_prop): Fix last change.
17464
174652007-11-09 Richard Stallman <rms@gnu.org>
17466
17467 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
17468 not just for after-strings and before-strings.
17469 Call face_for_overlay_string and pass the overlay to it.
17470 (handle_display_prop): Determine whether property came from an overlay.
17471 Pass OVERLAY arg to handle_single_display_spec.
17472 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
17473 (load_overlay_strings): Fill in it->string_overlays.
17474 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
17475
17476 * xfaces.c (face_for_overlay_string): Function renamed from
17477 face_at_buffer_position_no_overlays, and add arg OVERLAY.
17478
17479 * dispextern.h (struct it): New elt string_overlays.
17480 New elt from_overlay, also in stack.
17481 Rearrange a few elements.
17482 (face_for_overlay_string): Decl renamed from
17483 face_at_buffer_position_no_overlays, and add argument.
17484
174852007-11-09 Richard Stallman <rms@gnu.org>
17486
17487 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
17488 to get the base face for an overlay string.
17489
17490 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
17491
17492 * xfaces.c (face_at_buffer_position_no_overlays): New function.
17493
17494 * xdisp.c (handle_stop): Move some code out of loop.
17495
174962007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17497
17498 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
17499 Fix conversion from Lisp object to ATSUFontID.
17500
175012007-11-09 Jason Rumney <jasonr@gnu.org>
17502
17503 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
17504
175052007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17506
17507 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
17508 Don't assume regions are aligned to page boundary.
17509 (print_load_command_name): Add LC_UUID if defined.
17510
175112007-11-09 Richard Stallman <rms@gnu.org>
17512
17513 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
17514
175152007-11-07 Jason Rumney <jasonr@gnu.org>
17516
17517 * s/windows95.h: Remove.
17518
175192007-11-06 Jan Djärv <jan.h.d@swipnet.se>
17520
17521 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
17522 abort with a message on unhandled store_type values.
17523
175242007-11-01 Jan Djärv <jan.h.d@swipnet.se>
17525
17526 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
17527 Remove HAVE_X11R5 and HAVE_X11R4.
17528
175292007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
17530
17531 * Makefile.in: Remove references to sunfns.c and sunfns.o.
17532
175332007-11-01 Johan Bockgård <bojohan@gnu.org>
17534
17535 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
17536 Don't set s->stippled_p here, since it has already been set by
17537 x_set_glyph_string_gc from x_draw_glyph_string.
17538
175392007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
17540
17541 * sunfns.c: Remove file.
17542
17543 * m/sun386.h:
17544 * m/sun2.h:
17545 * m/sparc.h: Remove Sun windows code.
17546
175472007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
17548
17549 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
17550 (init_keyboard): Set current_kboard's window-system to nil.
17551 (tty_read_avail_input): Typo.
17552 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
17553
175542007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
17555
17556 * s/usg5-4.h:
17557 * s/usg5-3.h:
17558 * s/ptx.h:
17559 * m/is386.h:
17560 * m/ibmps2-aix.h:
17561 * Makefile.in: Remove all mentions of X10.
17562
17563 * dispnew.c (syms_of_display): Don't mention version 10.
17564
175652007-10-28 Juanma Barranquero <lekktu@gmail.com>
17566
17567 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
17568 ($(BLD)/abbrev.$(O)): Remove.
17569
175702007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
17571
17572 Rewrite abbrev.c in Elisp.
17573 * image.c (Qcount): Don't declare as extern.
17574 (syms_of_image): Initialize and staticpro `Qcount'.
17575 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
17576 * emacs.c (main): Don't call syms_of_abbrev.
17577 * Makefile.in (obj): Remove abbrev.o.
17578 (abbrev.o): Remove.
17579 * abbrev.c: Remove.
17580
175812007-10-26 Martin Rudalics <rudalics@gmx.at>
17582
17583 * window.c (window_min_size_2): Don't count header-line.
17584
175852007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
17586
17587 * frame.h (struct frame): Move all bit fields after the first bit
17588 field to take advantage of the available space. Group all the
17589 chars together to reduce wasted space due to padding.
17590
175912007-10-26 Juanma Barranquero <lekktu@gmail.com>
17592
17593 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
17594
17595 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
17596 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
17597 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
17598 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
17599 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
17600 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
17601 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
17602 (last_marked, mark_object_loop_halt): Make static.
17603
17604 * frame.c (syms_of_frame) <delete-frame-functions>:
17605 Fix typo in docstring.
17606
176072007-10-25 Juanma Barranquero <lekktu@gmail.com>
17608
17609 * w32.c (init_environment): Fix tiny memory leak.
17610 (w32_get_resource): Remove unused variable `ok'.
17611
176122007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
17613
17614 Make `window-system' into a keyboard-local variable (rather than
17615 frame-local as done originally by multi-tty).
17616
17617 * keyboard.h (struct kboard): Add Vwindow_system.
17618 * keyboard.c (init_kboard): Set a default for Vwindow_system.
17619 (mark_kboards): Mark Vwindow_system.
17620
17621 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
17622 (init_display): Don't set the obsolete `window-system' frame-param.
17623
17624 * xterm.c (x_term_init):
17625 * w32term.c (w32_create_terminal):
17626 * term.c (init_tty): Set Vwindow_system.
17627 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
17628 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
17629
17630 * xfns.c (Fx_create_frame, x_create_tip_frame):
17631 * w32fns.c (Fx_create_frame, x_create_tip_frame):
17632 * macfns.c (Fx_create_frame):
17633 Don't set the obsolete `window-system' frame-param.
17634
17635 * frame.h (Qwindow_system): Remove.
17636 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
17637 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
17638
176392007-10-24 Richard Stallman <rms@gnu.org>
17640
17641 * frame.c (x_figure_window_size): For fullscreen case,
17642 set USPosition | PPosition without clobbering rest of window_prompting.
17643
17644 * keyboard.c (Fcurrent_idle_time): Doc fix.
17645
17646 * print.c (Fwith_output_to_temp_buffer): Doc fix.
17647
176482007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
17649
17650 * process.c (unwind_request_sigio): Only define if __ultrix__.
17651
17652 * callproc.c (child_setup): Remove spurious *.
17653
17654 * lisp.h (Fget_text_property): Declare.
17655 (have_menus_p): Declare it here rather than in sys-dep header files.
17656 * macterm.h (have_menus_p):
17657 * msdos.h (have_menus_p):
17658 * xterm.h (have_menus_p): Remove.
17659
17660 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
17661 (Fmake_variable_frame_local): Just check the variable's const-ness
17662 rather than checking nil or t.
17663
176642007-10-22 Jason Rumney <jasonr@gnu.org>
17665
17666 * w32fns.c: Include math.h.
17667 (w32_abort): Declaration moved to nt/config.nt.
17668
17669 * s/ms-w32.h (HAVE_STDLIB_H): Define.
17670 (abort): Redefinition moved to nt/config.nt.
17671
17672 * m/windowsnt.h: Remove.
17673
176742007-10-22 Juanma Barranquero <lekktu@gmail.com>
17675
17676 * emacs.c (Fdump_emacs): Fix typo in message.
17677 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
17678 <installation-directory>: Reflow docstring.
17679
176802007-10-22 Juri Linkov <juri@jurta.org>
17681
17682 * minibuf.c: Allow minibuffer default to be a list of default values.
17683 With empty input use the first element of this list as returned default.
17684 (string_to_object)
17685 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
17686 (read_minibuf): If defalt is cons, set histstring to its car.
17687 (Fread_string): If default_value is cons, set val to its car.
17688 (Fread_buffer): If def is cons, use its car.
17689 (Fcompleting_read): If defalt is cons, set val to its car.
17690
176912007-10-21 Michael Albinus <michael.albinus@gmx.de>
17692
17693 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
17694
176952007-10-20 Juanma Barranquero <lekktu@gmail.com>
17696
17697 * doc.c (Fdocumentation): Check for advice in all cases.
17698
176992007-10-19 Chong Yidong <cyd@stupidchicken.com>
17700
17701 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
17702
177032007-10-19 Richard Stallman <rms@gnu.org>
17704
17705 * doc.c (Fdocumentation): Check for and handle an advised function.
17706
177072007-10-19 Juanma Barranquero <lekktu@gmail.com>
17708
17709 * process.c (Fset_process_filter): Doc fix.
17710
177112007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
17712
17713 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
17714 which caused key-translation-map to applied repeatedly (thus breaking
17715 double-mode).
17716
177172007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
17718
17719 * xselect.c (x_own_selection, x_handle_selection_clear)
17720 (x_clear_frame_selections):
17721 * w32menu.c (list_of_panes, list_of_items):
17722 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
17723 * textprop.c (validate_plist, interval_has_all_properties)
17724 (interval_has_some_properties, interval_has_some_properties_list)
17725 (add_properties, text_property_list):
17726 * process.c (Fget_buffer_process, list_processes_1, status_notify):
17727 * minibuf.c (Fassoc_string):
17728 * macselect.c (x_own_selection, x_clear_frame_selections)
17729 (Fx_disown_selection_internal):
17730 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
17731 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
17732
177332007-10-17 Chong Yidong <cyd@stupidchicken.com>
17734
17735 * process.c: Link to libs for calling res_init() if available.
17736 (Fmake_network_process): Call res_init() before getaddrinfo or
17737 gethostbyname, if possible.
17738
177392007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
17740
17741 * lread.c (read1): Set pvectype for char_tables.
17742
17743 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
17744 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
17745 Add type checks.
17746 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
17747
17748 * alloc.c (free_misc): Use XMISCTYPE.
17749 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
17750
177512007-10-17 Glenn Morris <rgm@gnu.org>
17752
17753 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
17754 (syms_of_minibuf): Add Qcompletion_ignore_case.
17755 * dired.c (Qcompletion_ignore_case): Change to external.
17756 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
17757 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
17758 (Fread_file_name): Use it rather than intern'ing.
17759
17760 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
17761 (Fread_coding_system): Ignore case of user input.
17762
177632007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17764
17765 * xdisp.c (handle_display_prop): Ignore display specs after
17766 replacing one when string text is being replaced.
17767 (handle_single_display_spec): Pretend as if characters with display
17768 property haven't been consumed only when buffer text is being replaced.
17769
177702007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
17771
17772 * xfns.c (Fx_create_frame, Fx_display_list):
17773 * window.c (window_fixed_size_p, enlarge_window)
17774 (shrink_window_lowest_first):
17775 * macterm.c (init_font_name_table):
17776 * macfns.c (Fx_create_frame, Fx_display_list):
17777 * lread.c (close_load_descs):
17778 * keyboard.c (read_char_x_menu_prompt):
17779 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
17780 * coding.c (code_convert_region_unwind): Test the type of an object
17781 rather than just !NILP before extracting data from it.
17782
17783 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
17784
17785 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
17786 (XMISCANY): New macro.
17787 (XMISCTYPE): Use it.
17788 (struct Lisp_Misc_Any): New type.
17789 (union Lisp_Misc): Use it.
17790 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
17791 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
17792 (find_symbol_value, set_internal, default_value, Fset_default)
17793 (Fmake_variable_buffer_local, Fmake_local_variable)
17794 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
17795 (Flocal_variable_if_set_p, Fvariable_binding_locus):
17796 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
17797 * alloc.c (allocate_buffer): Set the size and tag.
17798 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
17799 Use XMISCANY.
17800 (die): Follow the GNU convention for error messages.
17801 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
17802 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
17803 tag any more.
17804 (set_buffer_internal_1):
17805 * frame.c (store_frame_param):
17806 * eval.c (specbind):
17807 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
17808
17809 * doc.c (Fsnarf_documentation): Simplify.
17810
178112007-10-14 Juanma Barranquero <lekktu@gmail.com>
17812
17813 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
17814 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
17815
178162007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
17817
17818 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
17819
178202007-10-14 Juanma Barranquero <lekktu@gmail.com>
17821
17822 * eval.c (do_autoload): Don't save autoloads.
17823
17824 * data.c (Ffset): Save autoload of the function being set.
17825
178262007-10-07 John Paul Wallington <jpw@pobox.com>
17827
17828 * xfns.c (x_create_tip_frame): Set the `display-type' frame
17829 parameter before setting up faces.
17830
178312007-10-13 Eli Zaretskii <eliz@gnu.org>
17832
17833 * ccl.c (Fregister_code_conversion_map):
17834 * keyboard.c (append_tool_bar_item): Reformat last change.
17835
17836 * lisp.h (eabs): Rename from `abs'. All callers changed.
17837
178382007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
17839
17840 * buffer.c (add_overlay_mod_hooklist):
17841 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
17842 * fontset.c (make_fontset):
17843 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
17844 (append_tool_bar_item):
17845 * macmenu.c (grow_menu_items):
17846 * w32menu.c (grow_menu_items):
17847 * xmenu.c (grow_menu_items): Use larger_vector.
17848
178492007-10-13 Eli Zaretskii <eliz@gnu.org>
17850
17851 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
17852 selected frame'' on MSDOS).
17853
178542007-10-12 Martin Rudalics <rudalics@gmx.at>
17855
17856 * frame.c (Qexplicit_name): New variable.
17857 (x_report_frame_params): Report it in parameter alist.
17858 (syms_of_frame): Intern and staticpro it.
17859
178602007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
17861
17862 * macfns.c (x_create_tip_frame): Set terminal for frame.
17863
178642007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
17865
17866 * frame.c (Qenvironment): Remove.
17867 (syms_of_frame) <Qenvironment>: Don't initialize.
17868 (Fdelete_frame): Don't treat the `environment' param specially.
17869 * frame.h (Qenvironment): Don't declare.
17870 * callproc.c (set_initial_environment): Don't set unused frame param.
17871
17872 * frame.c (Fframe_with_environment): Remove.
17873 (syms_of_frame) <Sframe_with_environment>: Don't declare.
17874
17875 * lisp.h (Fframe_with_environment): Don't declare.
17876
178772007-10-10 Juanma Barranquero <lekktu@gmail.com>
17878
17879 * indent.c (indent_tabs_mode, last_known_column)
17880 (last_known_column_modified): Make static.
17881 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
17882
178832007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
17884
17885 * puresize.h (BASE_PURESIZE): Increase to 1170000.
17886
178872007-10-09 Jason Rumney <jasonr@gnu.org>
17888
17889 * w32term.c (x_set_window_size): Disable code that attempts to tell
17890 Lisp code about a size change before it actually happens.
17891
178922007-10-09 Richard Stallman <rms@gnu.org>
17893
17894 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
17895 return HANDLED_RETURN.
17896
178972007-10-08 Martin Rudalics <rudalics@gmx.at>
17898
17899 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
17900 when there's an unread command event.
17901
17902 * frame.c (focus_follows_mouse): Move here from frame.el to allow
17903 window autoselection act appropriately when leaving selected frame.
17904 (syms_of_frame): Initialize focus_follows_mouse.
17905 * frame.h (focus_follows_mouse): Extern it.
17906 * macterm.c (XTread_socket): When focus_follows_mouse is nil
17907 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
17908 * msdos.c (dos_rawgetc): Likewise.
17909 * w32term.c (w32_read_socket): Likewise.
17910 * xterm.c (handle_one_xevent): Likewise.
17911 * xdisp.c (syms_of_xdisp): In doc-string of
17912 mouse-autoselect-window mention focus-follows-mouse.
17913
179142007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17915
17916 * macterm.c (mac_load_query_font): Fix missing return value.
17917 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
17918 Add BLOCK_INPUT.
17919
179202007-10-08 Richard Stallman <rms@gnu.org>
17921
17922 * xdisp.c (get_window_cursor_type): Implement documented behavior
17923 for cursor-in-non-selected-windows = t.
17924
179252007-10-08 Jason Rumney <jasonr@gnu.org>
17926
17927 * w32.c (w32_get_resource): Always close registry keys.
17928
179292007-10-08 Jason Rumney <jasonr@gnu.org>
17930
17931 * makefile.w32-in (LIBS): Add COMCTL32.
17932
17933 * w32fns.c (globals_of_w32fns): Init common controls.
17934
179352007-10-08 Richard Stallman <rms@gnu.org>
17936
17937 * image.c (our_memory_buffer): Rename from omfib_buffer.
17938
179392007-10-08 Richard Stallman <rms@gnu.org>
17940
17941 * buffer.c (Foverlays_at): Doc fix.
17942
179432007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
17944
17945 * fns.c (Fplist_put): Preserve uneven tail data.
17946
179472007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
17948
17949 * termhooks.h (enum event_kind): Remove trailing comma.
17950
17951 * frame.h (enum): Remove trailing comma.
17952
179532007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
17954
17955 * w32proc.c (delete_child): Don't terminate threads of zombies.
17956
179572007-10-08 Martin Rudalics <rudalics@gmx.at>
17958
17959 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
17960
17961 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
17962 last-repeatable-command.
17963 (init_kboard): Initialize Vlast_repeatable_command.
17964 (command_loop_1): Set it to real_this_command unless that was
17965 bound to an input event.
17966 (mark_kboards): Mark it.
17967
179682007-10-08 Richard Stallman <rms@gnu.org>
17969
17970 * eval.c (condition-case): Doc fix.
17971
179722007-10-08 Masatake YAMATO <jet@gyve.org>
17973
17974 * xfaces.c (tty_supports_face_attributes_p): Fix code
17975 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
17976 was copied and not edited.
17977
179782007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
17979
17980 Add new `input-decode-map' keymap and use it for terminal
17981 escape sequences.
17982 * keyboard.h (struct kboard): Add Vinput_decode_map.
17983 Remove Vlocal_key_translation_map.
17984 * keyboard.c (read_key_sequence): Add support for input-decode-map.
17985 (init_kboard): Init input-decode-map.
17986 Replace local-key-translation-map back with key-translation-map.
17987 (syms_of_keyboard): Declare input-decode-map.
17988 Remove local-key-translation-map. Update docstrings.
17989 (mark_kboards): Mark Vinput_decode_map.
17990 Don't mark Vlocal_key_translation_map.
17991 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
17992 Replace local-key-translation-map back with key-translation-map.
17993 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
17994 Bind in input-decode-map rather than function-key-map.
17995
17996 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
17997 This was made redundant by the previous introduction of XSETPVECTYPE.
17998
179992007-10-09 Richard Stallman <rms@gnu.org>
18000
18001 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
18002
180032007-09-29 Richard Stallman <rms@gnu.org>
18004
18005 * eval.c (internal_condition_case_2, internal_condition_case_1)
18006 (internal_condition_case): Reenable abort if x_catching_errors ()
18007 to see if that really happens and why.
18008
180092007-10-06 Andreas Schwab <schwab@suse.de>
18010
18011 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
18012
180132007-10-04 Juanma Barranquero <lekktu@gmail.com>
18014
18015 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
18016
180172007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
18018
18019 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
18020
180212007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
18022
18023 * window.h (struct window):
18024 * window.c (struct save_window_data, struct saved_window):
18025 * termhooks.h (struct terminal):
18026 * process.h (struct Lisp_Process):
18027 * frame.h (struct frame):
18028 * buffer.h (struct buffer):
18029 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
18030 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
18031 The size field of (pseudo)vectors is now unsigned.
18032 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
18033
18034 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
18035 Turn `count' into an integer.
18036
18037 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
18038 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
18039 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
18040 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
18041 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
18042
18043 * alloc.c (allocate_pseudovector): New fun.
18044 (ALLOCATE_PSEUDOVECTOR): New macro.
18045 (allocate_window, allocate_terminal, allocate_frame)
18046 (allocate_process): Use it.
18047 (mark_vectorlike): New function.
18048 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
18049 (mark_terminals): Use it.
18050 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
18051 (Fmake_byte_code): Use XSETPVECTYPE.
18052
18053 * frame.c (Fframe_parameters): Minor simplification.
18054
18055 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
18056
18057 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
18058
18059 * buffer.c (Fget_buffer_create, init_buffer_once):
18060 * lread.c (defsubr):
18061 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
18062
18063 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
18064 defined differently in the m/*.h files.
18065 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
18066 (XSETPVECTYPE): New macro.
18067 (XSETPSEUDOVECTOR): Use it.
18068
18069 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
18070 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
18071
18072 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
18073 * lread.c (defvar_per_buffer):
18074 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
18075
18076 * window.c (candidate_window_p): Only consider as visible frames that
18077 are on the same terminal.
18078
18079 * m/ibms390x.h (MARKBIT): Remove unused macro.
18080
180812007-10-01 Juanma Barranquero <lekktu@gmail.com>
18082
18083 * lread.c (Fload): Fix typo in docstring.
18084
180852007-10-01 Michaël Cadilhac <michael@cadilhac.name>
18086
18087 * floatfns.c (Fexpt): Manually check for overflows, so that a power
18088 of a non-zero value can't yield zero.
18089
180902007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
18091
18092 * term.c (term_clear_mouse_face, term_mouse_highlight)
18093 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
18094
18095 * print.c (safe_debug_print): Use XHASH.
18096
18097 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
18098 Lisp elements such as tags.
18099 (XHASH): New macro.
18100 (EQ): Use it.
18101 (SREF, SSET, STRING_COPYIN): Use SDATA.
18102 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
18103
18104 * alloc.c (mark_terminal): Remove left-over declaration.
18105 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
18106 (allocate_vectorlike): Remove type argument. Adjust callers.
18107 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
18108 Only handle the one remaining MEM_TYPE_VECTORLIKE.
18109
18110 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
18111 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
18112 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
18113 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
18114 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
18115 Use them.
18116
18117 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
18118 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
18119 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
18120
181212007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
18122
18123 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
18124 loaded by default.
18125
181262007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
18127
18128 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
18129 on this tty.
18130 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
18131
18132 * term.c (mouse_face_window): Rename from Qmouse_face_window.
18133 Update all users.
18134 (handle_one_term_event): Use Gpm_DrawPointer.
18135 (Fgpm_mouse_start): Rename from Fterm_open_connection.
18136 Signal errors instead of returning nil. Always return nil.
18137 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
18138 Make it a noop if gpm-mouse was not activated.
18139 (syms_of_term): Update names.
18140
181412007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
18142
18143 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
18144 (init_sys_modes): Check that gpm_tty is the current tty.
18145
18146 * alloc.c (allocate_terminal): Set the vector size to only count the
18147 lisp fields. Initialize those to nil.
18148 (mark_object): Don't treat terminals specially.
18149 (mark_terminal): Remove.
18150 (mark_terminals): Use mark_object instead.
18151
18152 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
18153 the GC to the beginning.
18154
18155 * indent.h:
18156 * indent.c: Use EMACS_INT for ints coming from Elisp data.
18157
18158 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
18159
181602007-09-25 Jason Rumney <jasonr@gnu.org>
18161
18162 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
18163
18164 * w32console.c (create_w32cons_output): Remove.
18165
18166 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
18167
18168 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
18169 (reset_sys_modes): Use reset_terminal_modes_hook.
18170
181712007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
18172
18173 * eval.c (do_autoload): Don't output any message.
18174
181752007-09-24 Juri Linkov <juri@jurta.org>
18176
18177 * emacs.c (standard_args): Change priority of "--no-splash"
18178 from 40 to 3. Add "--no-desktop" with the same priority.
18179
181802007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
18181
18182 * alloc.c (gc_sweep): Check cons cell mark bits word by word
18183 and optimize the case where they are all 1.
18184
181852007-09-23 Johannes Weiner <hannes@saeurebad.de>
18186
18187 * lisp.h (abs): Define if not defined.
18188 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
18189 Don't define `abs', since it's defined in lisp.h.
18190
181912007-09-22 Eli Zaretskii <eliz@gnu.org>
18192
18193 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
18194 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
18195 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
18196 (init_tty): Use DEV_TTY instead of "/dev/tty".
18197 [WINDOWSNT]: No need to protect from NAME arg being null.
18198
181992007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
18200
18201 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
18202 up the tty state.
18203
182042007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
18205
18206 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
18207 (gpm_tty): Change its type.
18208 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
18209 (gpm_tty): Change its type and initialize it.
18210 (Fterm_open_connection): Check the frame is indeed a tty.
18211 Use the new gpm_tty.
18212 (Fterm_close_connection): Use the new gpm_tty.
18213 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
18214 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
18215
182162007-09-21 Juanma Barranquero <lekktu@gmail.com>
18217
18218 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
18219 underline_color, to draw strike-through.
18220
182212007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
18222
18223 * lisp.h (allocate_terminal): Declare.
18224
18225 * window.c (candidate_window_p): Consider frames that are being placed
18226 by the user as somewhere between visible and iconified.
18227 (window_loop): Prefer windows on the current frame.
18228 (Fselect_window): Move the use of select-frame to the beginning so we
18229 can just delegate all the work (it'll call us back anyway).
18230
18231 * frame.c (Qdisplay_environment_variable):
18232 * frame.h (Qdisplay_environment_variable): Delete.
18233
18234 * .gdbinit (xbacktrace): Print the arg's address rather than the value
18235 of the first arg, since that value may be a union.
18236
18237 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
18238 parameter rather than Qdisplay_environment_variable. If all else
18239 fails, look for DISPLAY in initial-environment.
18240
182412007-09-21 Glenn Morris <rgm@gnu.org>
18242
18243 * Makefile.in (emacstool): Remove target.
18244 (lisp, shortlisp): Remove termdev.elc.
18245
182462007-09-21 Markus Triska <markus.triska@gmx.at>
18247
18248 * xterm.c (x_delete_display): Compile session management conditionally.
18249
182502007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
18251
18252 * callproc.c (getenv_internal_1): New function.
18253 (getenv_internal): Use it.
18254 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
18255
18256 * terminal.c (get_terminal): Don't accept ints to represent terminals.
18257 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
18258 (Fset_terminal_parameter): Work with dead terminals as well.
18259 (Fmodify_terminal_parameters): Remove.
18260
18261 * terminal.c (get_terminal): Handle terminals.
18262 Make sure the terminal returned is live.
18263 (create_terminal): Use allocate_terminal.
18264 (mark_terminals): Move to alloc.c.
18265 (delete_terminal): Use terminal->name as liveness status.
18266 NULL out fields after freeing their contents.
18267 Don't deallocate the object.
18268 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
18269 rather than an int.
18270 (Fterminal_live_p): Accept non-integer arguments.
18271 (Fterminal_list): Return terminal objects rather than an ints.
18272
18273 * alloc.c (enum mem_type): New member for `terminal' objects.
18274 (allocate_terminal): New function.
18275 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
18276 Handle terminals.
18277 (mark_terminal): New fun.
18278 (mark_terminals): Move from terminal.c.
18279
18280 * term.c (get_tty_terminal): Don't treat output_initial specially.
18281 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
18282 (delete_tty): Use terminal->name as liveness status.
18283
18284 * termhooks.h (struct terminal): Make it into a pseudovector.
18285 Remove `deleted' replaced by checking `name's nullness.
18286
18287 * print.c (print_object): Handle terminals.
18288
18289 * lisp.h (enum pvec_type): New `terminal' pseudovector.
18290 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
18291
18292 * frame.c (make_terminal_frame):
18293 * keyboard.c (tty_read_avail_input):
18294 * w32term.c (x_delete_terminal):
18295 * xfns.c (Fx_create_frame, x_create_tip_frame):
18296 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
18297
182982007-09-20 Glenn Morris <rgm@gnu.org>
18299
18300 * process.c (Fmake_network_process): Doc fix.
18301
183022007-09-19 Jason Rumney <jasonr@gnu.org>
18303
18304 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
18305
183062007-09-19 Michaël Cadilhac <michael@cadilhac.name>
18307
18308 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
18309 Fix a C warning regarding variable constness.
18310
18311 * xterm.c (handle_one_xevent): Fix a C warning.
18312
183132007-09-18 Jason Rumney <jasonr@gnu.org>
18314
18315 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
18316
183172007-09-17 Jan Djärv <jan.h.d@swipnet.se>
18318
18319 * gtkutil.c (gdpy_def): New variable.
18320 (xg_initialize): Initialize gdpy_def.
18321 (xg_display_close): If no other display exists, set gdpy_def to a
18322 new connection.
18323
183242007-09-16 Jan Djärv <jan.h.d@swipnet.se>
18325
18326 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
18327 when we have no file name for the icon.
18328 (xg_tool_bar_expose_callback): Remove.
18329 (xg_create_tool_bar): Don't connect expose signal to
18330 xg_tool_bar_expose_callback.
18331 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
18332
183332007-09-16 Andreas Schwab <schwab@suse.de>
18334
18335 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
18336 values instead of zapping them.
18337
183382007-09-14 Glenn Morris <rgm@gnu.org>
18339
18340 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
18341 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
18342 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
18343 scope and rename to omfib_buffer for clarity.
18344 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
18345
183462007-09-14 Kenichi Handa <handa@m17n.org>
18347
18348 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
18349
183502007-09-13 Jason Rumney <jasonr@gnu.org>
18351
18352 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
18353
18354 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
18355
18356 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
18357 (mac_term_init): Call here instead, passing rif.
18358
183592007-09-13 Glenn Morris <rgm@gnu.org>
18360
18361 * s/hpux.h: No longer define `static' as nothing.
18362
183632007-09-13 Johan Bockgård <bojohan@gnu.org>
18364
18365 * callint.c (Fcall_interactively): Remove unused var `fun'.
18366
183672007-09-12 Romain Francoise <romain@orebokech.com>
18368
18369 * window.c (prefer_window_split_horizontally, display_buffer):
18370 Revert 2007-09-08 change.
18371
183722007-09-12 Glenn Morris <rgm@gnu.org>
18373
18374 * alloca.c: Remove file.
18375 * Makefile.in (alloca): Do not undef.
18376 (allocaobj, alloca.o): Remove.
18377 (otherobj): Remove allocaobj.
18378 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
18379 * regex.c (C_ALLOCA): Remove all references and code that was only
18380 used when this was defined.
18381 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
18382 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
18383 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
18384
18385 * Makefile.in (SOURCES, unlock, relock): Delete.
18386
18387 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
18388 (menu_grab_callback): All uses changed.
18389
18390 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
18391 (x_reply_selection_request): All uses changed.
18392
183932007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
18394
18395 * lread.c (load_warn_old_style_backquotes): Change message to look
18396 better when it appears in the middle of byte-compiler messages.
18397
183982007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
18399
18400 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
18401
18402 * xterm.c (x_create_terminal): Add comment.
18403
18404 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
18405
184062007-09-10 Richard Stallman <rms@gnu.org>
18407
18408 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
18409
184102007-09-10 Michaël Cadilhac <michael@cadilhac.name>
18411
18412 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
18413 (DEFUN): Document `intspec', use it instead of `prompt'.
18414
18415 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
18416
18417 * data.c (Finteractive_form): If the interactive specification starts
18418 with a `(', use it as a Lisp form.
18419
18420 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
18421 name and file modes.
18422
18423 * callint.c (Fcall_interactively): Comment fixes.
18424
184252007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
18426
18427 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
18428 and compiled functions.
18429
184302007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
18431
18432 * window.c (prefer_window_split_horizontally): New variable.
18433 (display_buffer): Consider splitting window horizontally depending
18434 on prefer_window_split_horizontally.
18435
184362007-09-08 Eli Zaretskii <eliz@gnu.org>
18437
18438 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
18439
184402007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
18441
18442 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
18443
18444 * frame.c (x_set_frame_parameters): Check number is positive before
18445 using XFASTINT.
18446
18447 * window.c (freeze_window_start): Don't presume selected_window holds
18448 a window object.
18449 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
18450
184512007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
18452
18453 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
18454
184552007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
18456
18457 * window.c (Vsplit_window_preferred_function): New var.
18458 (Fdisplay_buffer): Use it.
18459 (syms_of_window): Export, and initialize it.
18460
184612007-09-06 Pixel <pixel@mandriva.com> (tiny change)
18462
18463 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
18464
184652007-09-06 Glenn Morris <rgm@gnu.org>
18466
18467 * gtkutil.c (menu_grab_callback) <cnt>:
18468 * xselect.c (x_reply_selection_request) <cnt>: Move static
18469 variable to file scope.
18470
184712007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
18472
18473 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
18474 consistent values of selected_frame and selected_window.
18475
184762007-09-04 Jason Rumney <jasonr@gnu.org>
18477
18478 * w32console.c (initialize_w32_display): Zero unused hooks.
18479
184802007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
18481
18482 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
18483 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
18484
184852007-09-04 Jason Rumney <jasonr@gnu.org>
18486
18487 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
18488 in w32console.c. Set up input. Remove XXX comments that have been
18489 confirmed as correct.
18490
18491 * s/ms-w32.h (MULTI_KBOARD): Define.
18492
18493 * w32console.c (one_and_only_w32cons): Remove.
18494 (initialize_w32_display): Take terminal argument.
18495
18496 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
18497 initialize_w32_display.
18498 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
18499
18500 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
18501
18502 * keyboard.c (discard_mouse_events): Discard it.
18503 (make_lispy_event): Translate it to a lisp event.
18504 (lispy_wheel_names): Add wheel-left and right events.
18505 (syms_of_keyboard): Enlarge wheel_syms.
18506
18507 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
18508 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
18509
18510 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
18511
18512 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
18513 from WM_MOUSEHWHEEL.
18514 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
18515
18516 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
18517 terminal.
18518
18519 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
18520 keyboard for the terminal.
18521
185222007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
18523
18524 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
18525 (Vresume_tty_hook): Rename from Vresume_tty_functions.
18526 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
18527 and resume-tty-function to resume-tty-hook.
18528 (Fsuspend_tty, Fresume_tty): Use new names.
18529
185302007-09-02 Jan Djärv <jan.h.d@swipnet.se>
18531
18532 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
18533 if it starts with "n:".
18534
185352007-08-31 Jan Djärv <jan.h.d@swipnet.se>
18536
18537 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
18538
185392007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
18540
18541 * frame.h:
18542 * frame.c (Qterm_environment_variable): Remove.
18543 (syms_of_frame): Don't init and staticpro it.
18544
18545 * callproc.c (getenv_internal): Remove special case for $TERM.
18546
18547 * callproc.c (Vinitial_environment): New variable.
18548 (set_initial_environment): Initialize it.
18549 (syms_of_callproc): Declare it.
18550 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
18551 TERM under which a process runs is never related to the TERM in which
18552 Emacs is running.
18553
185542007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
18555
18556 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
18557 * s/darwin.h: ... do it here.
18558
185592007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
18560
18561 * lisp.h (set_initial_environment): Rename from set_global_environment.
18562
18563 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
18564 removed by mistake on the multi-tty branch.
18565
18566 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
18567 (Fmodify_frame_parameters): Return a value.
18568
18569 * image.c (png_load): Comment-out var only used in commented-out code.
18570
18571 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
18572 before passing it to mark_object.
18573
18574 * xfaces.c (internal_resolve_face_name): Return a value.
18575 (internal_resolve_face_name, resolve_face_name_error): Comment out.
18576
18577 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
18578 (x_icon): Comment-out var only used in commented-out code.
18579
185802007-08-29 Romain Francoise <romain@orebokech.com>
18581
18582 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
18583 QUIT hasn't been provided.
18584
185852007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
18586
18587 * callproc.c (child_setup, getenv_internal): Use the
18588 display-environment-variable and term-environment-variable frame params.
18589 (set_initial_environment): Initialise Vprocess_environment.
18590
18591 * config.in: Disable multi-keyboard support on a mac.
18592
18593 * frame.c (Qterm_environment_variable)
18594 (Qdisplay_environment_variable): New variables.
18595 (syms_of_frame): Intern and staticpro them.
18596 (Fmake_terminal_frame): Disable output method test.
18597
18598 * frame.h: Declare them here.
18599
18600 * macfns.c (x_set_mouse_color): Get rif from the frame.
18601 (x_set_tool_bar_lines): Don't use updating_frame.
18602 (mac_window): Add 2 new parameters for consistency with other systems.
18603 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
18604 frame parameters following what is done in X11 and w32. Don't use
18605 FRAME_MAC_DISPLAY_INFO.
18606 (Fx_open_connection, start_hourglass): Remove window-system check.
18607 (x_create_tip_frame): Get the keyboard from the terminal.
18608
18609 * macmenu.c: Reorder includes.
18610 (Fx_popup_menu): Use terminal specific mouse_position_hook.
18611
18612 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
18613 terminal parameter.
18614 (x_clear_frame): Add a frame parameter.
18615 (note_mouse_movement): Get rif from the frame.
18616 (mac_term_init): Initialize the terminal.
18617 (mac_initialize): Make static and move terminal initialization ...
18618 (mac_create_terminal): ... to this new function.
18619
18620 * macterm.h (struct mac_display_info): Add terminal.
18621 (mac_initialize): Delete declaration.
18622
18623 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
18624
18625 * sysdep.c: Comment out text after #endif.
18626
18627 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
18628 is defined. Better initialize ttys in windows. Use terminal
18629 specific mouse_position_hook.
18630
18631 * termhooks.h (union display_info): Add mac_display_info.
18632
18633 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
18634 Set the default minibuffer frame, window_system and the rest of the
18635 frame parameters following what is done in X11.
18636
18637 * w32term.c (w32_initialize): Make static.
18638
18639 * xselect.c (x_handle_selection_clear): Only access
18640 terminal->kboard when MULTI_KBOARD is defined.
18641
18642 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
18643 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
18644
186452007-08-29 Jason Rumney <jasonr@gnu.org>
18646
18647 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
18648 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
18649
18650 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
18651 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
18652
18653 * keyboard.c (restore_kboard_configuration): Only define when
18654 MULTI_KBOARD defined.
18655
18656 * makefile.w32-in: Update dependancies from Makefile.in.
18657 (OBJ1): Add terminal.$(O)
18658
18659 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
18660 Don't define function body.
18661 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
18662
18663 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
18664
18665 * w32.c (request_sigio, unrequest_sigio): Remove.
18666
18667 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
18668 (w32con_clear_frame, w32con_clear_end_of_line)
18669 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
18670 (w32con_delete_glyphs, w32con_set_terminal_window)
18671 (scroll_line, w32_sys_ring_bell): Add frame arg.
18672 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
18673 Add terminal arg.
18674 (PICK_FRAME): Remove.
18675 (w32con_write_glyphs): Use frame specific terminal coding.
18676 (one_and_only_w32cons): New global variable.
18677 (initialize_w32_display): Use it for storing hooks.
18678 (create_w32cons_output): New function.
18679
18680 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
18681 arg a frame.
18682
18683 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
18684 Set window_system.
18685 (x_set_tool_bar_lines): Don't use updating_frame.
18686 (Fx_create_frame): Set terminal and ref count.
18687 (Fx_open_connection): Remove window-system check.
18688
18689 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
18690
18691 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
18692 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
18693 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
18694 Add frame arg.
18695 (x_delete_terminal, w32_create_terminal): New functions.
18696 (w32_term_init): Create a terminal.
18697 (w32_initialize): Move terminal specific initialization to
18698 w32_create_terminal.
18699
18700 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
18701 (w32_clear_rect, w32_clear_area): Use background from frame.
18702 (w32_display_info): Add terminal.
18703 (w32_sys_ring_bell, x_delete_display): Declare here.
18704
18705 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
18706
18707 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
18708
187092007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
18710
18711 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
18712 Fix get_named_tty calls for the controlling tty.
18713
187142007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
18715
18716 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
18717
187182007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
18719
18720 * term.c (tty_insert_glyphs): Add missing first parameter.
18721
187222007-08-29 Károly Lőrentey <karoly@lorentey.hu>
18723
18724 * buffer.c (Fbuffer_list, Fbury_buffer):
18725 Take frame->buried_buffer_list into account.
18726
18727 * cm.c (current_tty): New variable, for cmputc().
18728 (cmputc): Use it.
18729 (cmcheckmagic): Add tty parameter, look up terminal streams there.
18730 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
18731 (cmgoto): Add tty parameter. Pass it on to calccost().
18732 Use emacs_tputs() instead of tputs().
18733
18734 * cm.h (emacs_tputs): New macro to set current_tty, and then call
18735 tputs().
18736 (current_tty): New variable, for cmputc().
18737 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
18738
18739 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
18740 (internal_condition_case, internal_condition_case_1)
18741 (internal_condition_case_2): Don't abort when x_catching_errors.
18742
18743 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
18744 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
18745 prevent crashes caused by bogus longjmps in read_char.
18746
18747 * keymap.h (Fset_keymap_parent): Add EXFUN.
18748
18749 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
18750 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
18751 Remove redundant definition.
18752
18753 * macfns.c (x_set_mouse_color, x_make_gc):
18754 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
18755
18756 * w32term.c (x_free_frame_resources):
18757 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
18758 (w32_initialize): Use the accessor macros for terminal characteristics.
18759
18760 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
18761 Use the accessor macros for terminal characteristics.
18762 * msdos.c (internal_terminal_init): Use the accessor macros for
18763 terminal characteristics.
18764 (ScreenVisualBell, internal_terminal_init):
18765 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
18766
18767 * termopts.h (no_redraw_on_reenter): Declare.
18768
18769 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
18770 (mark_terminals, mark_ttys): Declare.
18771 (Fgarbage_collect): Call them.
18772 (mark_object): Mark buried_buffer_list.
18773
18774 * prefix-args.c: Include stdlib.h for exit.
18775
18776 * syssignal.h: Add comment.
18777
18778 * indent.c: Include stdio.h.
18779
18780 * window.h (Vinitial_window_system): Declare.
18781 (Vwindow_system): Delete declaration.
18782
18783 * fontset.c (Finternal_char_font): Use FRAME_RIF.
18784
18785 * image.c (lookup_image): Don't initialize `c' until the xasserts
18786 have been run.
18787
18788 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
18789 FRAME_FOREGROUND_PIXEL.
18790
18791 * print.c (print_preprocess): Don't lose print_depth levels while
18792 iterating.
18793
18794 * widget.c (update_from_various_frame_slots):
18795 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
18796
18797 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
18798 frames.
18799 (window_internal_height): Remove bogus make_number call.
18800 (init_window_once): Call make_terminal_frame with two zero parameters.
18801
18802 * fileio.c (Fread_file_name): Update comment.
18803
18804 * callint.c (Fcall_interactively):
18805 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
18806 Make sure it is correctly unwound.
18807
18808 * xsmfns.c (x_session_close): New function.
18809
18810 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
18811 Delete declarations.
18812
18813 * xterm.h: Remove declaration for x_fully_uncatch_errors.
18814 (x_output): Remove background_pixel and foreground_pixel fields.
18815 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
18816 (x_delete_device, x_session_close): Declare.
18817
18818 * lread.c: Include setjmp.h. Update declaration of `read_char'.
18819 (read_filtered_event): Call `read_char' with a local
18820 `wrong_kboard_jmpbuf'.
18821
18822 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
18823 Don't call single_kboard_state. Use FRAME_RIF.
18824
18825 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
18826 systems.
18827
18828 * lisp.h (set_process_environment): Rename to `set_global_environment'.
18829 (Fframe_with_environment, Fset_input_meta_mode)
18830 (Fset_quit_char): EXFUN.
18831 (x_create_device, tty_output, terminal, tty_display_info): Declare.
18832 (init_sys_modes, reset_sys_modes): Update prototypes.
18833 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
18834
18835 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
18836 Vlocal_key_translation_map, and Vkeyboard_translate_table.
18837 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
18838 Delete declarations.
18839 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
18840 (temporarily_switch_to_single_kboard, tty_read_avail_input):
18841 New declarations.
18842
18843 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
18844 already does that during init_display(). Call syms_of_keymap
18845 before syms_of_keyboard. Call `syms_of_terminal'.
18846 Call set_initial_environment, not set_process_environment.
18847 (shut_down_emacs): Call reset_all_sys_modes() instead of
18848 reset_sys_modes().
18849
18850 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
18851 (internal_resolve_face_name, resolve_face_name_error): New functions.
18852 (resolve_face_name): Protect against loops and errors thrown by Fget.
18853 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
18854 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
18855
18856 * scroll.c: Replace CURTTY() with local variables throughout the
18857 file (where applicable).
18858 (calculate_scrolling, calculate_direct_scrolling)
18859 (scrolling_1, scroll_cost): Use the accessor macros for terminal
18860 characteristics.
18861
18862 * keymap.c (Vfunction_key_map): Remove.
18863 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
18864 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
18865 (Vkey_translation_map): Remove.
18866 (syms_of_keymap): Remove DEFVAR for key-translation-map.
18867 (Fdescribe_buffer_bindings)
18868 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
18869 Update for terminal-local key-translation-map.
18870
18871 * Makefile.in (callproc.o): Update dependencies.
18872 (lisp, shortlisp): Add termdev.elc.
18873 (obj): Add terminal.o.
18874 (terminal.o): Add dependencies.
18875 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
18876 (data.o, fns.o): Add termhooks.h dependency.
18877 (SOME_MACHINE_LISP): Add dnd.elc.
18878 (minibuf.o): Fix typo.
18879 Update dependencies.
18880
18881 * data.c (do_symval_forwarding, store_symval_forwarding)
18882 (find_symbol_value): Use the selected frame's keyboard, not
18883 current_kboard.
18884
18885 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
18886 Vwindow_system.
18887
18888 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
18889 Fmenu_bar_open.
18890 (syms_of_xmenu): Update defsubr.
18891 (mouse_position_for_popup, Fx_popup_menu)
18892 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
18893 (set_frame_menubar, free_frame_menubar)
b97439ce 18894 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
18895 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
18896 an X frame.
18897
18898 * xselect.c (x_own_selection): Abort if not an X frame.
18899 (some_frame_on_display): Check if it is an X frame.
18900 (x_handle_selection_clear): Deal with MULTI_KBOARD.
18901
18902 * coding.c: Include frame.h and termhooks.h.
18903 (terminal_coding, keyboard_coding): Delete.
18904 (Fset_terminal_coding_system_internal)
18905 (Fset_keyboard_coding_system_internal)
18906 (Fkeyboard_coding_system)
18907 (Fterminal_coding_system): Add a terminal parameter.
18908 Get terminal_coding from the terminal.
18909 (init_coding_once): Don't call setup_coding_system here.
18910
18911 * dispextern.h (set_scroll_region, turn_off_insert)
18912 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
18913 (tty_clear_end_of_line, tty_setup_colors)
18914 (delete_tty, updating_frame)
18915 (produce_special_glyphs, produce_glyphs, write_glyphs)
18916 (insert_glyphs): Remove.
18917 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
18918 (tty_turn_off_highlight, get_tty_size): Add declaration.
18919 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
18920
18921 * frame.h (enum output_method): Add output_initial.
18922 (struct x_output): Delete.
18923 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
18924 Access foreground_pixel and background_pixel directly from the frame.
18925 (tty_display): Delete.
18926 (struct frame): Add buried_buffer_list, foreground_pixel,
18927 background_pixel and terminal. Delete kboard.
18928 (union output_data): Add tty.
18929 (FRAME_KBOARD): Get the kboard from the terminal.
18930 (FRAME_INITIAL_P): New macro.
18931 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
18932 (Qterm_environment_variable, Qdisplay_environment_variable)
18933 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
18934 New declarations.
18935
18936 * termchar.h (tty_output, tty_display_info): New structures.
18937 (tty_list): Declare.
18938 (FRAME_TTY, CURTTY): New macros.
18939 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
18940 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
18941 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
18942 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
18943
18944 * callproc.c: Include frame.h and termhooks.h, for terminal
18945 parameters.
18946 (add_env): New function.
18947 (child_setup): Use it.
18948 (child_setup, getenv_internal): Handle the new Vprocess_environment.
18949 (getenv_internal): Fix get_terminal_param call.
18950 (Fgetenv_internal, egetenv): Update doc.
18951 (syms_of_callproc): Initialize Vprocess_environment to nil.
18952 Register and initialize them. Remove obsolete defvars. Update doc
18953 strings.
18954 (child_setup): Handle Vlocal_environment_variables.
18955 (getenv_internal): Add terminal parameter.
18956 Handle Vlocal_environment_variables.
18957 (Fgetenv_internal): Add terminal parameter.
18958 (child_setup, getenv_internal, Fgetenv_internal): Store the local
18959 environment in a frame (not terminal) parameter. Update doc strings.
18960 (set_initial_environment): Rename from set_global_environment.
18961 Store Emacs environment in initial frame parameter.
18962
18963 * xdisp.c (redisplay_internal): Update references to
18964 `previous_terminal_frame'.
18965 (display_mode_line, Fformat_mode_line): Replace calls to
18966 `push_frame_kboard' with `push_kboard'.
18967 (get_glyph_string_clip_rects): Add extra parentheses and
18968 braces to prevent compiler warnings.
18969 (calc_pixel_width_or_height): Add xassert to check that the
18970 frame is alive. Don't call `lookup_image' on a termcap frame.
18971 (message2_nolog, message3_nolog, redisplay_internal)
18972 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
18973 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
18974 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
18975 (Fx_display_pixel_width, Fx_display_pixel_height)
18976 (Fx_display_planes, Fx_display_color_cells)
18977 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
18978 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
18979 (Fx_display_backing_store, Fx_display_visual_class)
18980 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
18981 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
18982
18983 * xfns.c (x_set_foreground_color x_set_background_color)
18984 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
18985 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
18986 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
18987 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
18988 terminal that is being deleted.
18989 (Fx_create_frame): Use `store_frame_param' to set `window-system'
18990 frame parameter, and make sure it overrides any user-supplied setting.
18991 (Fx_close_connection, Fx_synchronize): Unify argument names with
18992 the rest of the DEFUNs.
18993
18994 * dispnew.c (Fsend_string_to_terminal): Update call to
18995 `get_tty_terminal'.
18996 (Fredraw_frame, Fsend_string_to_terminal)
18997 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
18998 FRAME_TERMCAP_P and FRAME_TTY.
18999 (window_change_signal): Don't believe width/height values that are
19000 impossibly small.
19001 (Vinitial_window_system): Rename from Vwindow_system.
19002 (termscript, Wcm, rif): Delete.
19003
19004 * termhooks.h (struct terminal): New struct containing the
19005 previously global text display hooks and new members NAME,
19006 DELETED and PARAM_ALIST.
19007 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
19008 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
19009 (FRAME_RIF): New macros.
19010 (get_terminal_param, get_device): New declarations.
19011 (termscript): Delete declaration.
19012
19013 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
19014 (XTflash, x_free_frame_resources, x_scroll_bar_create)
19015 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
19016 FRAME_FOREGROUND_PIXEL.
19017 (x_fully_uncatch_errors): Disable definition.
19018 (x_scroll_bar_expose): Fix reference to foreground pixel.
19019 (XTread_socket): Disable loop on all X displays.
19020 (x_delete_terminal): Don't set terminal->deleted and let
19021 delete_terminal delete the frames on the terminal.
19022 (x_delete_display): Doc update to reflect changes in
19023 delete_terminal.
19024 (x_display_info) <terminal>: Move member earlier in the struct.
19025 (deleting_tty): Remove old variable.
19026 (Fsuspend_tty): Call clear_tty_hooks.
19027 (Fresume_tty, init_tty): Call set_tty_hooks.
19028 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
19029 errors on X frames.
19030 (x_catch_errors_unwind): Abort if x_error_message is NULL.
19031 (handle_one_xevent): Initialize `f' to NULL.
19032 (x_delete_terminal, x_create_terminal): New functions.
19033 (XTset_terminal_modes, XTreset_terminal_modes)
19034 (XTread_socket, x_connection_closed, x_term_init)
19035 (x_term_init, x_delete_display): Add terminal parameter.
19036 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
19037 X connections.
19038
19039 * frame.c: Include termchar.h.
19040 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
19041 (Qwindow_system, Qenvironment, Qterm_environment_variable)
19042 (Qdisplay_environment_variable): New vars.
19043 (Fframep): Deal with output_initial.
19044 (Fframe-live-p): Doc fix.
19045 (Fwindow-system): New function.
19046 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
19047 (make_terminal_frame): Don't create frames on a terminal that is
19048 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
19049 (store_frame_param): Check for found_for_frame before calling XFRAME.
19050 (Fmake_terminal_frame): Handle NULL tty names correctly.
19051 (syms_of_frame): Enhance doc string of `default-frame-alist'.
19052 (Fdelete_frame): Remove unused variable `count'. Don't allow other
19053 frames to refer to a deleted frame in their 'environment parameter.
19054 (Fframe_with_environment): New function.
19055 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
19056 (get_future_frame_param): New function.
19057 (Fmake_terminal_frame): Use it.
19058 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
19059
19060 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
19061 * sysdep.c (reset_sys_modes): Update for renames.
19062
19063 * keyboard.c (tty_read_avail_input): New function.
19064 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
19065 (syms_of_keyboard): Defsubr them.
19066 (Fset_input_meta_mode, Fset_quit_char): New functions.
19067 (Fset_input_mode): Split to above functions.
19068 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
19069 parameter. Use it in call to `read_char'.
19070 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
19071 Set wrong_kboard_jmpbuf correctly in recursive calls.
19072 Use current_kboard to access Vkeyboard_translate_table.
19073 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
19074 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
19075 Update longjmp invocations. Remember the original current_kboard,
19076 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
19077 changes it. Comment out unnecessary calls to
19078 `record_single_kboard_state' and `any_kboard_state'.
19079 Update recursive calls.
19080 (wrong_kboard_jmpbuf): Remove global variable.
19081 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
19082 Handle deleted interrupted_kboards correctly; that is a legal
19083 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
19084 and read_char calls. Abort if interrupted_kboard died in read_char.
19085 (any_kboard_state, single_kboard_state)
19086 (push_frame_kboard): Remove function.
19087 (pop_kboard): Switch out of single_kboard mode if the kboard has
19088 been deleted. Remove unused variable. Help debugging by not
19089 changing current_kboard unnecessarily. Set current_kboard to the
19090 kboard of the selected frame when the stored kboard object has
19091 been deleted before pop_kboard.
19092 (temporarily_switch_to_single_kboard): Change first parameter to a
19093 frame pointer. Throw an error when caller wants to change kboards
19094 while in single_kboard mode. Don't push_kboard if we weren't in
19095 single kboard state. Don't pop_kboard if we popped into any
19096 kboard state.
19097 (restore_kboard_configuration): Abort if pop_kboard changed the
19098 kboard in single_kboard mode. Call pop_kboard only after setting
19099 up single_kboard mode.
19100 (Frecursive_edit): Switch to single_kboard mode only in nested
19101 command loops.
19102 (cmd_error, command_loop, command_loop_1, timer_check):
19103 Comment out unnecessary call to `any_kboard_state' and
19104 `record_single_kboard_state'.
19105 (delete_kboard): Exit single_kboard mode if we have just deleted
19106 that kboard. Use FRAME_KBOARD.
19107 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
19108 `fatal_error_signal'.
19109 (record_single_kboard_state): Don't push_kboard if we weren't in
19110 single kboard state. Don't pop_kboard if we popped into any
19111 kboard state.
19112 (push_frame_kboard): Rename to push_kboard.
19113 (kbd_buffer_get_event): Use FRAME_TERMINAL.
19114 (read_avail_input): Read input from all terminals.
19115 (mark_kboards): Also mark Vkeyboard_translate_table.
19116 (kbd_buffer_store_event_hold): Simplify condition.
19117 (read_key_sequence): Reinitialize fkey and keytran at each replay.
19118 (Vkeyboard_translate_table): Move to struct kboard.
19119 (init_kboard): Initialize Vkeyboard_translate_table.
19120 (syms_of_keyboard): Use DEFVAR_KBOARD to define
19121 Vkeyboard_translate_table. Update doc strings. Update docs of
19122 local-function-key-map and function-key-map.
19123
19124 * terminal.c: New file.
19125
19126 * term.c: Include errno.h.
19127 (Vring_bell_function, device_list, initial_device)
19128 (next_device_id, ring_bell, update_begin, update_end)
19129 (set_terminal_window, cursor_to, raw_cursor_to)
19130 (clear_to_end, clear_frame, clear_end_of_line)
19131 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
19132 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
19133 (syms_of_term): Move their initialization to terminal.c.
19134 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
19135 (Ftty_display_color_cells)
19136 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
19137 (clear_tty_hooks, set_tty_hooks)
19138 (init_tty, maybe_fatal): New functions.
19139 (Ftty_type): Return nil if terminal is not on a tty instead of
19140 throwing an error. Doc update.
19141 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
19142 Doc update. Initialize new subrs and variables.
19143 (delete_tty): Use terminal->deleted.
19144 (tty_set_terminal_modes): Rename from set_terminal_modes.
19145 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
19146 (set_scroll_region): Rename to `tty_set_scroll_region'.
19147 (turn_on_insert): Rename to `tty_turn_on_insert'.
19148 (turn_off_insert): Rename to `tty_turn_off_insert'.
19149 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
19150 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
19151 (toggle_highligh): Rename to `tty_toggle_highlight'.
19152 (background_highlight): Rename to `tty_background_highlight'.
19153 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
19154 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
19155 (tty_set_scroll_region, tty_background_highlight)
19156 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
19157 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
19158 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
19159 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
19160 Add static modifier.
19161 (tty_reset_terminal_modes, tty_set_terminal_window)
19162 (tty_set_scroll_region, tty_background_highlight)
19163 (tty_highlight_if_desired, tty_cursor_to)
19164 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
19165 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
19166 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
19167 renames.
19168
191692007-08-28 Jan Djärv <jan.h.d@swipnet.se>
19170
19171 * keyboard.c: Qrtl is new.
19172 (parse_tool_bar_item): Handle :rtl keyword.
19173 (syms_of_keyboard): Intern :rtl keyword.
19174
19175 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
19176
19177 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
19178 so no Lisp code is executed.
19179 (file_for_image, find_rtl_image): New functions.
19180 (xg_get_image_for_pixmap): Use file_for_image.
19181 (update_frame_tool_bar): If direction is RTL, use RTL image if
19182 defined. Use Gtk stock images if defined.
19183
191842007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19185
19186 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
19187 for nonexistent or zero-width glyph in composition glyph.
19188
191892007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
19190
19191 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
19192
19193 * xdisp.c (Finvisible_p): New function.
19194 (syms_of_xdisp): defsubr it.
19195
191962007-08-24 Juanma Barranquero <lekktu@gmail.com>
19197
19198 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
19199 Doc fixes.
19200
192012007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19202
19203 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
19204
192052007-08-24 Martin Rudalics <rudalics@gmx.at>
19206
19207 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
19208 whether decoding has modified buffer contents.
19209
192102007-08-24 Jason Rumney <jasonr@gnu.org>
19211
19212 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
19213 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
19214 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
19215 (init_svg_functions) [HAVE_NTGUI]: New function.
19216 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
19217 (svg_load_image): Use them.
19218 (svg_load_image) [HAVE_NTGUI]: Implement background.
19219
192202007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19221
19222 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
19223 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
19224 (LIBX): Remove @RSVG_LIBS@.
19225 (LIBES): Add $(RSVG_LIBS).
19226
19227 * image.c (svg_load_image): Blend with specified background if exists.
19228 Use IMAGE_BACKGROUND. Add Mac OS Support.
19229
19230 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
19231 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
19232 Remove macros.
19233 [MAC_OSX] (socket_callback): Do nothing.
19234 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
19235 ReceiveNextEvent.
19236 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
19237 socket_callback.
19238 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
19239
192402007-08-22 Glenn Morris <rgm@gnu.org>
19241
19242 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
19243
192442007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
19245
19246 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
19247
19248 * image.c: Add support for SVG images. Some additional comments
19249 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
19250 (svg_image_p): New function to test for SVG image.
19251 (svg_load): New function to load SVG image.
19252 (svg_load_image): New function, helper for svg_load.
19253 (Qsvg): New Lisp_object.
19254 (svg_keyword_index): New enum.
19255 (svg_format): New static `image_keyword' struct.
19256 (svg_type): New static `image_type' struct.
19257 (librsvg/rsvg.h): Include it.
19258
192592007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
19260
19261 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
19262
192632007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
19264
19265 * lread.c (Qold_style_backquotes): New var.
19266 (syms_of_lread): Init and staticpro it.
19267 (load_warn_old_style_backquotes): New fun.
19268 (Fload): Use them to warn about old style backquotes.
19269 (end_of_file_error, Fload): Remove unused vars.
19270
19271 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
19272
19273 * lread.c (Vold_style_backquotes): New var.
19274 (syms_of_lread): Init and export it to Elisp.
19275 (read1): Set it when we find an old-style (back)quote.
19276
192772007-08-22 Jason Rumney <jasonr@gnu.org>
19278
19279 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
19280
192812007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
19282
19283 * puresize.h (BASE_PURESIZE): Increase to 1140000.
19284
192852007-08-19 Richard Stallman <rms@gnu.org>
19286
19287 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
19288
192892007-08-19 Andreas Schwab <schwab@suse.de>
19290
19291 * alloc.c (pure): Round PURESIZE up.
19292
192932007-08-17 Jan Djärv <jan.h.d@swipnet.se>
19294
19295 * xterm.c (handle_one_xevent): Remove check that mouse click is in
19296 active frame.
19297
192982007-08-16 Richard Stallman <rms@gnu.org>
19299
19300 * eval.c (Fcommandp): Add parens to clarify.
19301
19302 * minibuf.c (Fall_completions): Use enum for type of table.
19303
19304 * emacs.c (USAGE2): Improve text.
19305
193062007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
19307
19308 * term.c (tty_default_color_capabilities): Declare static
19309 variables in file scope, to avoid HPUX compiler problem.
19310
193112007-08-13 Jan Djärv <jan.h.d@swipnet.se>
19312
19313 * gtkutil.c (update_frame_tool_bar): Use -1 as index
19314 to gtk_toolbar_insert.
19315
193162007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
19317
19318 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
19319
19320 * insdel.c (reset_var_on_error): New fun.
19321 (signal_before_change, signal_after_change):
19322 Use it to reset (after|before)-change-functions to nil in case of error.
19323 Bind inhibit-modification-hooks to t.
19324 Don't bind (after|before)-change-functions to nil while they run.
19325
193262007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19327
19328 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
19329 filling pixmap with stippled background.
19330
193312007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19332
19333 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
19334 Don't use invisible frame as parent window for repositioning.
19335
193362007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
19337
19338 * print.c (new_backquote_output): Rename from old_backquote_output.
19339 (print): Inverse its logic (according to its name) so as to match the
19340 behavior of new_backquote_flag in lread.c.
19341
193422007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19343
19344 * gmalloc.c (posix_memalign): New function.
19345
19346 * macterm.c (frame_highlight, frame_unhighlight): Don't call
19347 ActivateControl/DeactivateControl here.
19348 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
19349 frame-notice-user-settings is non-nil.
19350 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
19351 for kEventParamFMFontStyle.
19352 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
19353 mac_pass_command_to_system and mac_pass_control_to_system here.
19354 (XTread_socket): Call ActivateControl/DeactivateControl here.
19355 (XTread_socket) [TARGET_API_MAC_CARBON]:
19356 Check mac_pass_command_to_system and mac_pass_control_to_system here.
19357 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
19358 for window repositioning.
19359
193602007-08-08 Glenn Morris <rgm@gnu.org>
19361
19362 * Replace `iff' in doc-strings and comments.
19363
193642007-08-07 Chong Yidong <cyd@stupidchicken.com>
19365
19366 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
19367
193682007-08-07 Martin Rudalics <rudalics@gmx.at>
19369
19370 * fileio.c (Finsert_file_contents): Run format-decode and
19371 after_insert_file_functions on entire buffer when REPLACE is
19372 non-nil and inhibit modification_hooks and point_motion_hooks.
19373 For consistency, run after_insert_file_functions iff something
19374 got inserted. Move signal_after_change and update_compositions
19375 after code running after_insert_file_functions. Make sure that
19376 undo_list doesn't record intermediate steps of the decoding process.
19377
193782007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19379
19380 * emacs.c (main)
19381 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
19382 Call malloc_enable_thread on interactive startup.
19383
19384 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
19385 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
19386 [USE_PTHREAD]: Conditionalize with it.
19387 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
19388 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
19389 New functions.
19390
193912007-08-06 Chong Yidong <cyd@stupidchicken.com>
19392
19393 * xdisp.c (redisplay_window): When restoring original buffer
19394 position, make sure it is still valid.
19395
19396 * image.c (png_load): Ignore png-supplied background color.
19397
193982007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19399
19400 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
19401 Use kCFAbsoluteTimeIntervalSince1970.
19402
19403 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
19404 New variable.
19405 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
19406 event loop should be quit.
19407 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
19408 Quit dialog event loop if quit_dialog_event_loop is set.
19409
19410 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
19411 (Selection): New typedef. Use instead of ScrapRef.
19412 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
19413 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
19414 (mac_clear_selection): Rename from clear_scrap.
19415 (get_flavor_type_from_symbol): New argument SEL and subsume function of
19416 scrap_has_target_type. All uses changed.
19417 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
19418 (mac_selection_has_target_p): New functions.
19419 (mac_put_selection_value): Rename from put_scrap_string.
19420 (mac_get_selection_value): Rename from get_scrap_string.
19421 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
19422 (put_scrap_private_timestamp, scrap_has_target_type)
19423 (get_scrap_private_timestamp): Remove functions.
19424 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
19425 (x_own_selection, x_get_local_selection):
19426 Use mac_valid_selection_value_p.
19427 (x_own_selection): Don't use put_scrap_private_timestamp.
19428 Record OWNERSHIP-INFO into Vselection_alist instead.
19429 (x_get_local_selection): Don't check type if request is local.
19430 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
19431 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
19432
194332007-08-04 Jan Djärv <jan.h.d@swipnet.se>
19434
19435 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
19436 add comment explaining why.
19437
194382007-08-03 Richard Stallman <rms@gnu.org>
19439
19440 * fileio.c (Fvisited_file_modtime): Use make_time.
19441
194422007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
19443
19444 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
19445 build.
19446
194472007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
19448
19449 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
19450
194512007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
19452
19453 * puresize.h (BASE_PURESIZE): Increase to 1130000.
19454
194552007-07-30 Richard Stallman <rms@gnu.org>
19456
19457 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
19458
194592007-07-29 Jan Djärv <jan.h.d@swipnet.se>
19460
19461 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
19462
194632007-07-28 Nick Roberts <nickrob@snap.net.nz>
19464
19465 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
19466 remote default-directory.
19467
19468 * buffer.c (mode-line-format): Update doc string.
19469
194702007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19471
19472 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
19473 scroll bar gap.
19474 (x_scroll_bar_create): Set bar->fringe_extended_p.
19475 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
19476 on frame edge. Check fringe background extension. Don't clear
19477 extended fringe background area.
19478
19479 * w32term.h (struct scroll_bar): New member fringe_extended_p.
19480 (w32_fill_area): Enclose multiple statements with do ... while (0).
19481
19482 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
19483 Extend fringe background to scroll bar gap.
19484 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
19485 Set bar->fringe_extended_p.
19486 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
19487 Put leftmost/rightmost scroll bars on frame edge. Check fringe
19488 background extension. Don't clear extended fringe background area.
19489
19490 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
19491 New member fringe_extended_p.
19492
194932007-07-25 Glenn Morris <rgm@gnu.org>
19494
19495 * Relicense all FSF files to GPLv3 or later.
19496
19497 * COPYING: Switch to GPLv3.
19498
194992007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
19500
19501 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
19502
19503 * data.c (Finteractive_form): Check for the presence of an
19504 `interactive-form' symbol property more thoroughly.
19505
19506 * data.c (Finteractive_form): Use an `interactive-form' property if
19507 present, analogous to the function-documentation property.
19508
195092007-07-24 Jason Rumney <jasonr@gnu.org>
19510
19511 * w32fns.c (x_real_positions): Get real position from OS instead of
19512 calculating it.
19513
195142007-07-23 Jason Rumney <jasonr@gnu.org>
19515
19516 * filelock.c (current_lock_owner): Allow for @ sign in username.
19517
195182007-07-22 Nick Roberts <nickrob@snap.net.nz>
19519
19520 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
19521 remote default-directory.
19522
19523 * buffer.c (mode-line-format): Describe above case in doc string.
19524
195252007-07-20 Eli Zaretskii <eliz@gnu.org>
19526
19527 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
19528 Define if not defined.
19529
195302007-07-18 Jason Rumney <jasonr@gnu.org>
19531
19532 * w32proc.c (w32_executable_type): Handle 64 bit executables.
19533
195342007-07-18 Richard Stallman <rms@gnu.org>
19535
19536 * data.c (Fsetq_default): Doc fix.
19537
19538 * eval.c (Fsetq): Doc fix.
19539
195402007-07-18 Juanma Barranquero <lekktu@gmail.com>
19541
19542 * coding.c (Ffind_operation_coding_system):
19543 * eval.c (For, Fand): Doc fixes.
19544 Reported by Johan Bockgård.
19545
195462007-07-18 Jan Djärv <jan.h.d@swipnet.se>
19547
19548 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
19549
19550 * xterm.h: Declare x_ewmh_activate_frame.
19551
19552 * xterm.c (x_ewmh_activate_frame): New function.
19553 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
19554
195552007-07-17 Martin Rudalics <rudalics@gmx.at>
19556
19557 * window.c (Fdisplay_buffer): If largest or LRU window is the
19558 only window, split it even if it is not eligible for splitting.
19559 This restores the original behavior broken by the 2007-07-15
19560 change.
19561
195622007-07-17 Glenn Morris <rgm@gnu.org>
19563
19564 * abbrev.c (abbrev_check_chars): New function.
19565 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
19566 Call abbrev_check_chars to check abbrev characters are word
19567 constituents. Doc fix.
19568
195692007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
19570
19571 * process.c (Fstart_process, Fmake_network_process)
19572 (read_process_output): Fix up last changes.
19573
195742007-07-16 Eli Zaretskii <eliz@gnu.org>
19575
19576 * makefile.w32-in (clean): Don't delete *~.
19577
195782007-07-16 Andreas Schwab <schwab@suse.de>
19579
19580 * window.c (Fdisplay_buffer): Use NILP.
19581 (Fset_window_scroll_bars): Likewise.
19582
195832007-07-15 Martin Rudalics <rudalics@gmx.at>
19584
19585 * window.c (window_min_size_2): New function.
19586 (window_min_size_1, size_window, Fdisplay_buffer)
19587 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
19588 windows without mode- or header-lines when window-min-height is
19589 too small.
19590 (size_window): Reset nodelete_p after testing it, following an
19591 earlier note by Kim F. Storm.
19592 (display_buffer): Do not set split_height_threshold to twice the
19593 value of window_min_height to avoid changing the value of a
19594 customizable variable. Rather explicitly check whether the
19595 height of the window that shall be splitted is at least as large
19596 as split_height_threshold.
19597 (Fwindow_full_width_p): New defun.
19598 (syms_of_window): Defsubr it.
19599
19600 * window.h: Add EXFUN for Fwindow_full_width_p.
19601
196022007-07-14 Jason Rumney <jasonr@gnu.org>
19603
19604 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
19605
196062007-07-14 Richard Stallman <rms@gnu.org>
19607
19608 * eval.c (maybe_call_debugger): New function.
19609 (find_handler_clause): Use maybe_call_debugger.
19610 Call it when the handler says `debug'.
19611 Eliminate DEBUGGER_VALUE_PTR.
19612 (Fsignal): Eliminate debugger_value.
19613 (Qdebug): New variable.
19614 (syms_of_eval): Initialize it.
19615
196162007-07-14 Juanma Barranquero <lekktu@gmail.com>
19617
19618 * eval.c (Fprogn):
19619 * keyboard.c (Ftrack_mouse):
19620 * print.c (Fwith_output_to_temp_buffer):
19621 * window.c (Fsave_window_excursion): Doc fix.
19622
196232007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
19624
19625 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
19626
196272007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
19628
19629 * process.h (struct Lisp_Process): Turn slots infd, outfd,
19630 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
19631 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
19632 read_output_delay, and read_output_skip from Lisp_Objects to ints.
19633 Remove unused encoding_carryover.
19634 * process.c: Adjust all functions accordingly.
19635
196362007-07-12 Richard Stallman <rms@gnu.org>
19637
19638 * term.c: Include unistd.h only if HAVE_UNISTD_H.
19639
196402007-07-11 Jason Rumney <jasonr@gnu.org>
19641
19642 * makefile.w32-in (LIBS): Include OLE32.
19643
19644 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
19645 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
19646
196472007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
19648
19649 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
19650 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
19651 from a Lisp_Object into a bare pointer.
19652 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
19653 Adjust the code correspondingly.
19654
19655 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
19656
19657 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
19658 (term_show_mouse_face): Remove unused var `j'.
19659 (handle_one_term_event): Remove unused vars `i' and `j'.
19660 Don't cast return value of ttyname since it's not necessary.
19661
196622007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
19663
19664 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
19665 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
19666
19667 * fns.c (map_char_table): Use an array of int for `indices' rather than
19668 an array of Lisp_Objects (which are only ever integers anyway).
19669 (Fmap_char_table): Update caller.
19670 * lisp.h: Update prototype.
19671 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
19672 * fontset.c (Ffontset_info):
19673 * casetab.c (set_case_table): Update callers.
19674
19675 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
19676
19677 * keymap.c (struct accessible_keymaps_data)
19678 (struct where_is_internal_data): New structures.
19679 (accessible_keymaps_1, where_is_internal_1): Use them to change
19680 interface to adhere to the one used by map_keymap.
19681 (Faccessible_keymaps, where_is_internal): Use map_keymap.
19682 (accessible_keymaps_char_table, where_is_internal_2): Remove.
19683
19684 * keymap.h (map_keymap_function_t): More informative prototype.
19685
196862007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
19687
19688 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
19689 (looking_at_1): Don't change search_regs and last_thing_searched
19690 if `inhibit-changing-match-data' is non-nil.
19691 (string_match_1, search_buffer, set_search_regs): Likewise.
19692 (syms_of_search): Add Lisp level definition for
19693 `inhibit-changing-match-data' and set it to nil.
19694 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
19695 start and end of the match, instead of using values in search_regs.
19696
196972007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
19698
19699 * minibuf.c (Fcompleting_read): New value `confirm-only'
19700 for `require-match'.
19701
197022007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
19703
19704 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
19705 part of the 2007-06-27 change to syms_of_fileio.
19706
197072007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19708
19709 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
19710 Check WINDOWP before using XWINDOW. Consolidate return statements.
19711
197122007-06-27 Richard Stallman <rms@gnu.org>
19713
19714 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
19715
197162007-06-27 Juanma Barranquero <lekktu@gmail.com>
19717
19718 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
19719
197202007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19721
19722 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
19723 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
19724 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
19725 (_free_internal, memalign): Use them.
19726 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
19727 Initialize to PTHREAD_MUTEX_INITIALIZER.
19728 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
19729 (morecore_nolock): Rename from morecore. All uses changed.
19730 Use only nolock versions of internal allocation functions.
19731 (_malloc_internal_nolock, _realloc_internal_nolock)
19732 (_free_internal_nolock): New functions created from
19733 _malloc_internal, _realloc_internal, and _free_internal.
19734 (_malloc_internal, _realloc_internal, _free_internal): Use them.
19735 Copy hook value to automatic variable before its use.
19736 (memalign): Copy hook value to automatic variable before its use.
19737
197382007-06-26 Kenichi Handa <handa@m17n.org>
19739
19740 * coding.c (Ffind_operation_coding_system): Docstring improved.
19741 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
19742
197432007-06-25 David Kastrup <dak@gnu.org>
19744
19745 * keymap.c (Fcurrent_active_maps): Add `position' argument.
19746 (Fwhere_is_internal): Adjust call to `current-active-maps' to
19747 cater for additional parameter.
19748
19749 * keymap.h: Adjust number of parameters to `current-active-maps'.
19750
19751 * doc.c (Fsubstitute_command_keys): Adjust call of
19752 `current-active-maps'.
19753
197542007-06-25 David Kastrup <dak@gnu.org>
19755
19756 * callint.c (Fcall_interactively): Make the parsing of interactive
19757 specs somewhat more readable.
19758
197592007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19760
19761 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
19762 to scroll bar gap also when bitmap fills fringe. Draw only foreground
19763 if extended background has already been filled.
19764
197652007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19766
19767 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
19768 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
19769
19770 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
19771 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
19772 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
19773 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
19774 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
19775 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
19776 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
19777 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
19778 Run timers during dialog popup.
19779 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
19780
197812007-06-21 Jason Rumney <jasonr@gnu.org>
19782
19783 * image.c (convert_mono_to_color_image): Swap fore and background.
19784
197852007-06-20 Jason Rumney <jasonr@gnu.org>
19786
19787 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
19788 (w32_free_bdf_font): Unmap memory not handle.
19789
197902007-06-20 Sam Steingold <sds@gnu.org>
19791
19792 * gmalloc.c (__morecore): Fix the declaration to comply with the
19793 definition.
19794
197952007-06-20 Juanma Barranquero <lekktu@gmail.com>
19796
19797 * w32term.c (w32_delete_display): Remove leftover declaration.
19798 (w32_define_cursor, w32_initialize): Make static.
19799
19800 * w32.c (_wsa_errlist): Fix typo in error message.
19801 (init_environment): Ignore any environment variable from the
19802 registry having a null value.
19803
198042007-06-20 Glenn Morris <rgm@gnu.org>
19805
19806 * Makefile.in (LIBGIF): Default to -lgif.
19807
198082007-06-17 Jason Rumney <jasonr@gnu.org>
19809
19810 * w32menu.c (add_menu_item): Don't use multibyte string functions on
19811 unicode strings.
19812
198132007-06-16 Juanma Barranquero <lekktu@gmail.com>
19814
19815 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
19816 Fix typo in docstring.
19817
198182007-06-16 Eli Zaretskii <eliz@gnu.org>
19819
19820 * w32menu.c (add_menu_item): Escape `&' characters in menu items
19821 and their keybindings.
19822
198232007-06-15 Chong Yidong <cyd@stupidchicken.com>
19824
19825 * composite.c (update_compositions): Fix last fix.
19826
198272007-06-14 Jason Rumney <jasonr@gnu.org>
19828
19829 * w32.c (get_process_times_fn): New function pointer.
19830 (globals_of_w32): Intialize it if present in kernel32.dll.
19831 (w32_get_internal_run_time): New function.
19832
19833 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
19834
198352007-06-14 Kenichi Handa <handa@etlken.m17n.org>
19836
19837 * composite.c (update_compositions): Check the validness of
19838 compositions.
19839
198402007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19841
19842 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
19843 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
19844
19845 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
19846 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
19847
19848 * macgui.h (USE_MAC_TOOLBAR): New define.
19849
19850 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
19851 Return immediately unless popup is activated.
19852
19853 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
19854 background to scroll bar gap.
19855 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
19856 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
19857 scroll bars on frame edge. Check fringe background extension.
19858 Don't clear extended fringe background area.
19859 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
19860 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
19861 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
19862 [USE_MAC_TOOLBAR]: New macros.
19863 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
19864 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
19865 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
19866 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
19867 [USE_MAC_TOOLBAR]: New functions.
19868 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
19869 manually if previous repositioning has failed.
19870 (mac_handle_keyboard_event): Use precomputed event kind.
19871 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
19872 as tool bar item click. Handle mouse movement over tool bar items.
19873
19874 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
19875 toolbar_win_gravity.
19876 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
19877 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
19878 Add externs.
19879
19880 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
19881 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
19882
198832007-06-14 Chong Yidong <cyd@stupidchicken.com>
19884
19885 * image.c (search_image_cache): Remove unused variable.
19886
198872007-06-13 Chong Yidong <cyd@stupidchicken.com>
19888
19889 * xfns.c, xmenu.c: Link to xaw3d if available.
19890
198912007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19892
19893 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
19894 frame_foreground and frame_background.
19895
19896 * image.c (lookup_image): Save frame foreground and background colors.
19897 (search_image_cache): Check if saved and current frame colors match.
19898
198992007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
19900
19901 * regex.c (regex_compile): Remove the `regnum' counter.
19902 Use bufp->re_nsub instead. Add support for \(?N:RE\).
19903
199042007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
19905
19906 * term.c: Include intervals.h to declare Fget_text_property.
19907
199082007-06-10 Jason Rumney <jasonr@gnu.org>
19909
19910 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
19911
199122007-06-08 Juanma Barranquero <lekktu@gmail.com>
19913
19914 * callint.c (Fcall_interactively):
19915 * editfns.c (Fdelete_and_extract_region):
19916 * fileio.c (Fread_file_name):
19917 * fns.c (Fmapconcat):
19918 * keyboard.c (cmd_error_internal):
19919 * keymap.c (Fkey_description):
19920 * lread.c (openp):
19921 * minibuf.c (read_minibuf):
19922 * search.c (wordify):
19923 * sunfns.c (sel_read):
19924 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
19925 * xfns.c (x_default_scroll_bar_color_parameter):
19926 * xmenu.c (menu_help_callback):
19927 * xselect.c (Fx_get_atom_name):
19928 * xterm.c (x_term_init): Use empty_unibyte_string.
19929
199302007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
19931
19932 * alloc.c (init_strings): Initialize canonical empty strings.
19933 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
19934 canonical empty string when the requested size is 0.
19935
19936 * emacs.c (empty_unibyte_string): Rename from empty_string.
19937 (empty_multibyte_string): New canonical empty string.
19938 (syms_of_emacs): Don't initialize empty_string.
19939
19940 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
19941 string, if appropriate.
19942 (empty_unibyte_string, empty_multibyte_string): New externs.
19943 (empty_string): Remove extern.
19944
19945 * lread.c (syms_of_lread): Use empty_unibyte_string.
19946
199472007-06-07 Jason Rumney <jasonr@gnu.org>
19948
19949 * s/ms-w32.h: Don't define HAVE_TZNAME.
19950
19951 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
19952
199532007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19954
19955 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
19956
19957 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
19958 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
19959
19960 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
19961 Don't call next handler.
19962 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
19963 Remove argument. Install handler to application.
19964 (set_frame_menubar): Don't change deep_p.
19965 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
19966 FRAME_OUTER_TO_INNER_DIFF_Y.
19967 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
19968 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
19969 [HAVE_DIALOGS]: New macros.
19970 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
19971 Use them.
19972 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
19973
19974 * macselect.c [MAC_OSX] (install_service_handler): Rename from
19975 init_service_handler. All callers changed. Return OSStatus value.
19976
19977 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
19978 All callers changed so as not to call SetPortWindowPort.
19979 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
19980 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
19981 mac_draw_string_common.
19982 (mac_draw_image_string_qd): Likewise.
19983 (mac_draw_string_common): Use them. Add INLINE.
19984 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
19985 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
19986 GetGlobalMouse.
19987 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
19988 and FRAME_OUTER_TO_INNER_DIFF_Y.
19989 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
19990 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
19991 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
19992 repositioning window to mac_handle_window_event.
19993 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
19994 saving window location to mac_handle_window_event
19995 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
19996 (install_menu_target_item_handler): Remove argument in extern.
19997 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
19998 Also accept command events.
19999 (do_keystroke): New function created from XTread_socket.
20000 (init_command_handler): Remove functions.
20001 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
20002 and save window location by kEventWindowShowing and kEventWindowHiding
20003 handlers here. Don't call next handler for window state change and
20004 focus events.
20005 (mac_handle_application_event, mac_handle_keyboard_event)
20006 [TARGET_API_MAC_CARBON]: New functions.
20007 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
20008 kEventWindowShowing and kEventWindowHiding events. Move installation
20009 of mouse, font, text input and menu target item handlers to
20010 install_application_handler.
20011 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
20012 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20013 New function.
20014 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
20015 Register it.
20016 (XTread_socket) [TARGET_API_MAC_CARBON]:
20017 Consolidate SendEventToEventTarget calls.
20018 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
20019 Move application activation handler to mac_handle_application_event.
20020 Move keyboard handler to mac_handle_keyboard_event.
20021 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
20022 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
20023 init_command_handler. Call install_application_handler.
20024
20025 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
20026 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
20027
200282007-06-07 Glenn Morris <rgm@gnu.org>
20029
20030 * emacs.c (main): Use `emacs-copyright' in --version output.
20031
200322007-06-06 Chong Yidong <cyd@stupidchicken.com>
20033
20034 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
20035
200362007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20037
20038 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
20039
20040 * macgui.h: Replace WindowPtr with WindowRef.
20041
20042 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
20043 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
20044 Replace ControlHandle with ControlRef.
20045 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
20046
20047 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
20048 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
20049 Replace ControlHandle with ControlRef.
20050 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
20051 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
20052
20053 * macterm.h (struct scroll_bar): Rename member control_handle_low
20054 and control_handle_high to control_ref_low and control_ref_high.
20055 All uses changed.
20056 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
20057 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
20058 respectively. All uses changed.
20059 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
20060 (install_window_handler, remove_window_handler): Replace WindowPtr
20061 with WindowRef in externs.
20062
200632007-06-05 Juanma Barranquero <lekktu@gmail.com>
20064
20065 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
20066
200672007-06-03 Nick Roberts <nickrob@snap.net.nz>
20068
20069 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
20070
20071 * frame.c (Fmouse_position, Fmouse_pixel_position):
20072 Condition on HAVE_GPM too.
20073
20074 * term.c (term_mouse_highlight): Remove unused variables.
20075 (Fterm_open_connection): Set gpm_zerobased to 1.
20076 (term_mouse_movement, term_mouse_click, handle_one_term_event):
20077 Use zero based co-ordinates.
20078 (handle_one_term_event): Report a drag as mouse movement too.
20079
20080 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
20081
200822007-06-03 Chong Yidong <cyd@stupidchicken.com>
20083
20084 * image.c (search_image_cache): New function. Require background
20085 color match if background color is unspecified in the image spec.
20086 (uncache_image, lookup_image): Use it.
20087
200882007-06-01 Juanma Barranquero <lekktu@gmail.com>
20089
20090 * window.c (Fshrink_window): Reflow docstring.
20091
200922007-06-02 Chong Yidong <cyd@stupidchicken.com>
20093
20094 * Version 22.1 released.
20095
200962007-06-01 Richard Stallman <rms@gnu.org>
20097
20098 * xfns.c (x_encode_text): Add GCPRO.
20099
201002007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20101
20102 * xfns.c (x_set_name_internal): Save encoded name before
20103 x_encode_text in case string data is relocated.
20104
201052007-05-31 Richard Stallman <rms@gnu.org>
20106
20107 * buffer.c (syms_of_buffer): Doc fix.
20108
201092007-05-30 Nick Roberts <nickrob@snap.net.nz>
20110
20111 * sysdep.c (init_sys_modes): Add rather than replace with
20112 O_NONBLOCK.
20113
20114 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
20115 term_mouse_moveto.
20116
20117 * termhooks.h (term_mouse_moveto): New extern.
20118
20119 * term.c (mouse_face_window): Rename...
20120 (Qmouse_face_window): ...to this.
20121 (term_show_mouse_face, term_clear_mouse_face)
20122 (term_mouse_highlight): Use Qmouse_face_window.
20123 (term_mouse_moveto): New function.
20124 (term_mouse_position): Make it work.
20125 (syms_of_term): Uncomment assignment to mouse_position_hook.
20126 Staticpro Qmouse_face_window.
20127
201282007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20129
20130 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
20131 around current_column call.
20132
201332007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
20134
20135 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
20136 * xdisp.c (next_element_from_buffer):
20137 * window.c (delete_window):
20138 * term.c (term_mouse_highlight):
20139 * msdos.c (getdefdir):
20140 * macterm.c (mac_create_bitmap_from_bitmap_data)
20141 (init_font_name_table):
20142 * fns.c (Fsxhash):
20143 * data.c (Fmake_local_variable):
20144 * ccl.c (ccl_driver): Likewise.
20145
201462007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20147
20148 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
20149 Call mac_wakeup_from_rne on window size change.
20150
201512007-05-25 Chong Yidong <cyd@stupidchicken.com>
20152
20153 * image.c (uncache_image): Fix typo.
20154
201552007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
20156
20157 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
20158
201592007-05-22 Richard Stallman <rms@gnu.org>
20160
20161 * xterm.c (x_connection_closed): Remove NO_RETURN.
20162
201632007-05-22 Martin Rudalics <rudalics@gmx.at>
20164
20165 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
20166
201672007-05-21 Chong Yidong <cyd@stupidchicken.com>
20168
20169 * image.c (uncache_image): New function.
20170 (Fimage_refresh): New function.
20171
201722007-05-20 Jan Djärv <jan.h.d@swipnet.se>
20173
20174 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
20175
201762007-05-20 Nick Roberts <nickrob@snap.net.nz>
20177
20178 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
20179 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
20180
201812007-05-20 Nick Roberts <nickrob@snap.net.nz>
20182
20183 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
20184 conditional on [HAVE_GPM_H].
20185
201862007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
20187
20188 * syntax.c (skip_chars): Update syntax-table only after we checked that
20189 the new location is valid.
20190
201912007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20192
20193 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
20194 mac_get_window_bounds.
20195
201962007-05-20 Nick Roberts <nickrob@snap.net.nz>
20197
20198 * Makefile.in (LIBGPM): Allow it to be set from configure.
20199 If set then link Emacs with it.
20200
20201 * config.in: Regenerate.
20202
20203 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
20204 New externs.
20205
20206 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
20207 Include gpm.h.
20208 (handle_one_term_event, term_gpm): New externs.
20209
20210 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
20211 and allow it to be interrupted by SIGIO.
20212
20213 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
20214 (wait_reading_process_output): Wait on gpm_fd too.
20215 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
20216 (add_gpm_wait_descriptor_called_flag): New variable.
20217 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
20218
20219 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
20220 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
20221 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
20222 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
20223 (make_lispy_event): Add case GPM_CLICK_EVENT.
20224 (read_avail_input): Handle mouse input.
20225
20226 * term.c (write_glyphs_with_face): New function.
20227 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
20228 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
20229 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
20230 (mouse_face_face_id, term_gpm, pos_x, pos_y)
20231 (last_mouse_x, last_mouse_y): New variables.
20232 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
20233 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
20234 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
20235 (Fterm_close_connection): New functions.
20236 (term_init): Initialise mouse_face_window.
20237
202382007-05-19 Chong Yidong <cyd@stupidchicken.com>
20239
20240 * xdisp.c (redisplay_window): If first window line is a
20241 continuation line, recompute the new window start instead of
20242 recentering.
20243
202442007-05-18 Glenn Morris <rgm@gnu.org>
20245
20246 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
20247 Suggested by Alfred M. Szmidt <ams@gnu.org>.
20248
202492007-05-17 Glenn Morris <rgm@gnu.org>
20250
20251 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
20252
202532007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20254
20255 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
20256 dead key repeat and up events.
20257
202582007-05-14 Chong Yidong <cyd@stupidchicken.com>
20259
20260 * image.c (pbm_load): Check image size for monochrome pbm.
20261
202622007-05-13 Chong Yidong <cyd@stupidchicken.com>
20263
20264 * xterm.c (XTread_socket): Revert last change.
20265
202662007-05-12 Chong Yidong <cyd@stupidchicken.com>
20267
20268 * image.c (pbm_load): Correctly check image size for greyscale pbm.
20269
20270 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
20271
202722007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
20273
20274 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
20275 mixup (YAILOM).
20276
202772007-05-07 Andreas Schwab <schwab@suse.de>
20278
20279 * keymap.c (Flookup_key): Fix typo in last change.
20280
202812007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
20282
20283 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
20284 mapping for unibyte strings.
20285
202862007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20287
20288 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
20289 (Fx_popup_dialog) [MAC_OSX]: Likewise.
20290
202912007-04-29 Richard Stallman <rms@gnu.org>
20292
20293 * insdel.c (replace_range): For undo, record insertion first.
20294
202952007-04-29 Andreas Schwab <schwab@suse.de>
20296
20297 * lisp.h (VECSIZE): Use OFFSETOF.
20298
202992007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20300
20301 * xdisp.c (try_window_reusing_current_matrix): Fix number of
20302 disabled lines.
20303
203042007-04-28 Richard Stallman <rms@gnu.org>
20305
20306 * lread.c (read_escape): In a string, \s is always space.
20307
203082007-04-27 Jan Djärv <jan.h.d@swipnet.se>
20309
20310 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
20311
20312 * gtkutil.c (xg_update_menubar, create_menus): Create empty
20313 submenu for menu bar items.
20314
20315See ChangeLog.10 for earlier changes.
20316
20317;; Local Variables:
20318;; coding: utf-8
20319;; add-log-time-zone-rule: t
aac0c6e3
MR
20320;; End:
20321
76b6f707 20322 Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
aac0c6e3
MR
20323
20324 This file is part of GNU Emacs.
20325
20326 GNU Emacs is free software: you can redistribute it and/or modify
20327 it under the terms of the GNU General Public License as published by
20328 the Free Software Foundation, either version 3 of the License, or
20329 (at your option) any later version.
20330
20331 GNU Emacs is distributed in the hope that it will be useful,
20332 but WITHOUT ANY WARRANTY; without even the implied warranty of
20333 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20334 GNU General Public License for more details.
20335
20336 You should have received a copy of the GNU General Public License
20337 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
20338
20339;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40