]> code.delx.au - gnu-emacs/blob - src/ChangeLog
01ecd37eec77f926180942a85f141f9e388c808f
[gnu-emacs] / src / ChangeLog
1 2010-10-12 Juanma Barranquero <lekktu@gmail.com>
2
3 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
4
5 2010-10-10 Jan Djärv <jan.h.d@swipnet.se>
6
7 * nsterm.m (Qleft): Declare.
8 (ns_right_alternate_modifier): New variable
9 (NSRightAlternateKeyMask): New define.
10 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
11 ns_right_alternate_modifier isn't Qleft.
12 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
13 as emacs modifier for NSRightAlternateKeyMask.
14 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
15
16 2010-10-08 Michael Albinus <michael.albinus@gmx.de>
17
18 * dbusbind.c (xd_get_dispatch_status): Return a Lisp_Object.
19 (xd_pending_messages): Catch xd_get_dispatch_status calls.
20
21 2010-10-08 Kenichi Handa <handa@m17n.org>
22
23 * coding.c (complement_process_encoding_system): Fix previous change.
24
25 2010-10-03 Michael Albinus <michael.albinus@gmx.de>
26
27 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
28 (Fdbus_init_bus): ... here. (Bug#7113)
29
30 2010-10-03 Glenn Morris <rgm@gnu.org>
31
32 * buffer.c (before-change-functions, after-change-functions):
33 Three-year overdue doc fix following 2007-08-13 change.
34
35 2010-10-02 Kenichi Handa <handa@m17n.org>
36
37 * coding.c (coding_inherit_eol_type): If parent doesn't specify
38 eol-format, inherit from the system's default.
39 (complement_process_encoding_system): Make a new coding system
40 inherit the original eol-format.
41
42 2010-09-30 Kenichi Handa <handa@m17n.org>
43
44 * coding.c (complement_process_encoding_system): New function.
45
46 * coding.h (complement_process_encoding_system): Extern it.
47
48 * callproc.c (Fcall_process): Complement the coding system for
49 encoding arguments.
50 (Fcall_process_region): Complement the coding system for encoding
51 the input to the process.
52
53 * process.c (Fstart_process): Complement the coding system for
54 encoding arguments.
55 (send_process): Complement the coding system for encoding what
56 sent to the process.
57
58 2010-09-29 Kenichi Handa <handa@m17n.org>
59
60 * xfont.c (xfont_open): Fix setting of font->average_width from
61 :avgwidth property (Bug#7123).
62
63 2010-09-28 Michael Albinus <michael.albinus@gmx.de>
64
65 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
66 is more portable.
67
68 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
69 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
70 has not defined SIGIO.
71
72 2010-09-27 Michael Albinus <michael.albinus@gmx.de>
73
74 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
75 (Bug#7113)
76
77 2010-09-26 Jan Djärv <jan.h.d@swipnet.se>
78
79 * xgselect.c (xg_select): Clear file descriptors not set from
80 rfds and wfds.
81
82 2010-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
83
84 * syntax.c (back_comment): Detect the case where a 1-char comment
85 starter is also the 2nd char of a 2-char comment ender.
86
87 2010-09-17 Jan Djärv <jan.h.d@swipnet.se>
88
89 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
90
91 2010-09-12 Jan Djärv <jan.h.d@swipnet.se>
92
93 * xterm.c (get_current_vm_state): New function.
94 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
95 want_fullscreen so set_wm_state calls are few (Bug#7013).
96 (x_handle_net_wm_state): Move code to get_current_vm_state and
97 call that function.
98
99 2010-09-11 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
100
101 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
102
103 2010-09-08 Kenichi Handa <handa@m17n.org>
104
105 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
106 we may use designation or locking-shift.
107
108 2010-09-07 Kenichi Handa <handa@m17n.org>
109
110 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
111 sequence when the source is multibyte.
112
113 2010-08-31 Kenichi Handa <handa@m17n.org>
114
115 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
116 characters.
117
118 * term.c (encode_terminal_code): Fix the previous change.
119 (produce_glyphs): Don't set it->char_to_display here.
120 Don't handle unibyte-display-via-language-environment here.
121 (produce_special_glyphs): Set temp_it.char_to_display before
122 calling produce_glyphs.
123
124 * xdisp.c (get_next_display_element): Set it->char_to_display
125 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
126 characters.
127 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
128 calling PRODUCE_GLYPHS.
129 (append_space_for_newline): Save and store it->char_to_display.
130 Set it->char_to_display before calling PRODUCE_GLYPHS.
131 (extend_face_to_end_of_line): Set it->char_to_display before
132 calling PRODUCE_GLYPHS.
133 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
134 character to its byte value.
135 (get_char_glyph_code): New function.
136 (produce_stretch_glyph): Set it2.char_to_display too before
137 calling x_produce_glyphs.
138 (x_produce_glyphs): Simplify by using the same code for ASCII and
139 non-ASCII characters. Don't set it->char_to_display here.
140 Don't handle unibyte-display-via-language-environment here. For a
141 charater of no glyph, use font->space_width instead of FONT_WIDTH.
142
143 2010-08-29 Kenichi Handa <handa@m17n.org>
144
145 * term.c (encode_terminal_code): Encode byte chars to the
146 correspnding bytes.
147
148 2010-08-17 Andreas Schwab <schwab@linux-m68k.org>
149
150 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
151 instead of SAFE_ALLOCA.
152
153 2010-08-17 Chong Yidong <cyd@stupidchicken.com>
154
155 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
156 (Bug#6214).
157
158 2010-08-14 Jan Djärv <jan.h.d@swipnet.se>
159
160 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
161
162 2010-08-13 Jan Djärv <jan.h.d@swipnet.se>
163
164 * doc.c (Fsnarf_documentation): Initialize skip_file before
165 build-files test.
166
167 2010-08-09 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
168
169 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
170 New definitions.
171 (HAVE_TERMIO): Remove.
172
173 2010-08-06 Kenichi Handa <handa@m17n.org>
174
175 * charset.c: Include <stdlib.h>
176 (struct charset_sort_data): New struct.
177 (charset_compare): New function.
178 (Fsort_charsets): New funciton.
179 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
180
181 * coding.c (decode_coding_iso_2022): Fix checking of dimension
182 number in CTEXT extended segment.
183
184 2010-08-01 Juanma Barranquero <lekktu@gmail.com>
185
186 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
187 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
188
189 2010-07-30 Juanma Barranquero <lekktu@gmail.com>
190
191 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
192 (Fhash_table_size): Fix typos in docstrings.
193 (Fmake_hash_table): Doc fix.
194
195 2010-07-28 Juanma Barranquero <lekktu@gmail.com>
196
197 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
198 Doc fix (bug#5625).
199
200 2010-07-27 Ken Brown <kbrown@cornell.edu>
201
202 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
203 the MSDOS definition.
204
205 2010-07-25 Christoph Scholtes <cschol2112@gmail.com>
206
207 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
208
209 2010-07-22 Christoph Scholtes <cschol2112@gmail.com>
210
211 * window.c (Fwindow_height): Doc fix (bug#6518).
212
213 2010-07-21 Juanma Barranquero <lekktu@gmail.com>
214
215 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
216
217 2010-07-17 Jan Djärv <jan.h.d@swipnet.se>
218
219 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
220 is related to the menu bar (Bug#6499).
221
222 2010-07-14 Jan Djärv <jan.h.d@swipnet.se>
223
224 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
225
226 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
227
228 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
229 i.e. don't put back ButtonRelease (Bug#6608).
230
231 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
232 instead of Window. Call xg_event_is_for_menubar when
233 USE_GTK (Bug#6499).
234
235 * gtkutil.h (xg_event_is_for_menubar): Declare.
236
237 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
238
239 2010-07-14 Eli Zaretskii <eliz@gnu.org>
240
241 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
242 when it's the same as the old foreground. (Bug#6609)
243
244 2010-07-10 Chong Yidong <cyd@stupidchicken.com>
245
246 * xfaces.c (realize_face): Garbage the frame if a face is removed
247 (Bug#6593).
248
249 2010-07-05 Andreas Schwab <schwab@linux-m68k.org>
250
251 * keyboard.c: Remove duplicate <setjmp.h>.
252 (read_key_sequence): Remove volatile qualifiers.
253
254 2010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
255
256 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
257 (struct glyph_row): New members left_fringe_offset and
258 right_fringe_offset.
259
260 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
261 specially.
262 * w32term.c (w32_draw_fringe_bitmap): Likewise.
263 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
264
265 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
266 Take account of bitmap offset.
267 (draw_window_fringes): Take account of window vscroll.
268 (update_window_fringes): Likewise. Extend top-aligned top indicator
269 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
270 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
271 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
272
273 2010-07-04 Juanma Barranquero <lekktu@gmail.com>
274
275 * w32fns.c (Qtooltip): Declare.
276 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
277
278 2010-07-03 Jan Djärv <jan.h.d@swipnet.se>
279
280 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
281 grab on just Press (Bug#6499).
282
283 2010-07-02 Chong Yidong <cyd@stupidchicken.com>
284
285 * frame.c (Qtooltip): New var.
286 (delete_frame): Use it. Fix faulty if statement. Don't update
287 mode line for tooltip frames. Suggested by Martin Rudalics.
288
289 * xfns.c (x_create_tip_frame):
290 * w32fns.c (x_create_tip_frame): Use it.
291
292 2010-06-30 Naohiro Aota <naota@elisp.net> (tiny change)
293
294 * xftfont.c (xftfont_open): Check font width one by one also when
295 spacing is dual.
296
297 * ftfont.c (ftfont_open): Ditto.
298
299 2010-06-26 Andreas Schwab <schwab@linux-m68k.org>
300
301 * alloc.c (Fmake_byte_code): Don't access undefined argument
302 (Bug#6517).
303
304 2010-06-25 Chong Yidong <cyd@stupidchicken.com>
305
306 * xdisp.c (next_element_from_image): Ensure that after-strings are
307 read the next time we hit handle_stop (Bug#1336).
308
309 2010-06-23 Andreas Schwab <schwab@linux-m68k.org>
310
311 * lread.c (read1): Signal error if #s is not followed by paren.
312
313 2010-06-19 Chong Yidong <cyd@stupidchicken.com>
314
315 * image.c (free_image): Mark frame as garbaged (Bug#6426).
316
317 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
318
319 2010-06-15 Glenn Morris <rgm@gnu.org>
320
321 * editfns.c (Fbyte_to_string): Pacify compiler.
322
323 2010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
324
325 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
326 Check `object's type before accessing its guts.
327
328 2010-06-08 Andreas Schwab <schwab@linux-m68k.org>
329
330 * minibuf.c (Fall_completions): Add more checks.
331
332 2010-06-08 Juanma Barranquero <lekktu@gmail.com>
333
334 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
335
336 2010-06-03 Andreas Schwab <schwab@linux-m68k.org>
337
338 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
339 address. (Bug#6346)
340
341 2010-06-03 Juanma Barranquero <lekktu@gmail.com>
342
343 * ccl.c (Fccl_program_p): Fix typo in docstring.
344
345 2010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
346
347 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
348 of bug#6305).
349
350 2010-05-27 Chong Yidong <cyd@stupidchicken.com>
351
352 * xdisp.c (redisplay_window): After redisplay, check if point is
353 still valid before setting it (Bug#6177).
354
355 2010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
356
357 * s/netbsd.h: If terminfo is found, use it in preference to
358 termcap. (Bug#6190) [Backport from trunk]
359
360 2010-05-20 Kevin Ryde <user42@zip.com.au>
361
362 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
363 (Voverriding_terminal_local_map, Vsystem_key_alist)
364 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
365
366 2010-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
367
368 * editfns.c (Fbyte_to_string): New function.
369
370 2010-05-18 Chong Yidong <cyd@stupidchicken.com>
371
372 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
373 prevent stack overflow if number of arguments is too large
374 (Bug#6214).
375
376 2010-05-11 Eli Zaretskii <eliz@gnu.org>
377
378 * makefile.w32-in ($(BLD)/w32fns.$(O)): Depend on $(SRC)/w32.h.
379
380 * w32fns.c: Include w32.h.
381 (Fw32_shell_execute): Decode the error message before passing it
382 to `error'. (Bug#6126)
383
384 2010-05-11 Karel Klic <kklic@redhat.com>
385
386 * ftfont.c: Fix incorrect parentheses of #if condition for
387 definining M17N_FLT_USE_NEW_FEATURE.
388
389 2010-05-07 Chong Yidong <cyd@stupidchicken.com>
390
391 * Version 23.2 released.
392
393 2010-04-30 Andreas Schwab <schwab@linux-m68k.org>
394
395 * composite.c (autocmp_chars): Save point as marker before calling
396 auto-composition-function (Bug#5984).
397
398 * lisp.h (restore_point_unwind): Add prototype.
399
400 * fileio.c (restore_point_unwind): Remove static attribute.
401
402 2010-04-23 Kenichi Handa <handa@m17n.org>
403
404 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
405 new feature of libotf and m17n-flt.
406 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
407 Call OTF_check_features even if no specific feature is given.
408 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
409 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
410 that OUT is NULL. Use OTF_drive_gsub_with_log and
411 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
412 OTF_drive_gpos.
413 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
414 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
415 Setup mflt_enable_new_feature and mflt_try_otf.
416
417 2010-04-19 Juanma Barranquero <lekktu@gmail.com>
418
419 * dired.c (Ffile_attributes): Fix typo in docstring.
420
421 2010-04-13 Adrian Robert <Adrian.B.Robert@gmail.com>
422
423 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
424 NSInteger (Bug#5811).
425
426 2010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
427
428 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
429 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
430
431 2010-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
432
433 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
434
435 2010-04-07 Jan Djärv <jan.h.d@swipnet.se>
436
437 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
438 FRAME_LINE_TO_PIXEL_Y.
439
440 * xterm.c (x_set_window_size_1): Don't add border_width/height to
441 pixelwidth/height.
442
443 2010-04-05 Chong Yidong <cyd@stupidchicken.com>
444
445 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
446 terminal frames (Bug#5837).
447
448 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
449
450 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
451 * nsterm.h: Fix prototype.
452
453 2010-03-31 Eli Zaretskii <eliz@gnu.org>
454
455 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
456 in this function. (Bug#5703)
457
458 2010-03-31 Chong Yidong <cyd@stupidchicken.com>
459
460 * nsterm.h: Fix last change.
461
462 2010-03-30 Bernhard Herzog <bh@intevation.de> (tiny change)
463
464 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
465
466 2010-03-30 Jan Djärv <jan.h.d@swipnet.se>
467
468 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
469 invisible (Bug#5766).
470
471 2010-03-29 Adrian Robert <adrian.b.robert@gmail.com>
472
473 * xdisp.c (x_consider_frame_title, update_window_cursor): Remove
474 HAVE_NS conditionals.
475 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
476
477 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
478 filename for the title.
479 (ns_set_doc_edited): Do nothing if the selected window is a
480 minibuffer window.
481
482 * nsterm.h: Add prototypes for ns_set_name_as_filename and
483 ns_set_doc_edited.
484
485 * nsterm.m: Remove unneeded prototype.
486
487 2010-03-28 Glenn Morris <rgm@gnu.org>
488
489 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
490 in the DOC file. (Bug#5336)
491
492 2010-03-24 Chong Yidong <cyd@stupidchicken.com>
493
494 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
495
496 2010-03-20 Jan Djärv <jan.h.d@swipnet.se>
497
498 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
499
500 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
501
502 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
503
504 2010-03-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
505
506 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
507 XLoadQueryFont.
508
509 2010-03-16 Kenichi Handa <handa@m17n.org>
510
511 * coding.c (decode_coding_ccl): Fix previous change for the
512 multibyte case.
513 (encode_coding_ccl): Don't setup ccl program here. Fix for the
514 case that the output buffer is fullfilled.
515 (encode_coding): Setup ccl program here.
516
517 2010-03-15 Andreas Politz <politza@fh-trier.de> (tiny change)
518
519 * editfns.c (Fformat): Account for string precision when computing
520 field width (Bug#5710).
521
522 2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
523
524 Make it possible to C-g in a tight bytecode loop again (bug#5680).
525 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
526 (QUIT): Use it to consolidate code and remove redundancy.
527 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
528
529 * regex.c (regex_compile): Setup gl_state as well.
530
531 * syntax.c (skip_chars): Setup gl_state (bug#3823).
532 (in_classes): Use CONSP before XCAR/XCDR.
533
534 2010-03-03 Chong Yidong <cyd@stupidchicken.com>
535
536 * keymap.c (Fwhere_is_internal): Use Fequal to compare
537 definitions, so that keyboard macros are correctly handled
538 (Bug#5481).
539
540 2010-03-02 Eli Zaretskii <eliz@gnu.org>
541
542 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
543 text that could be relocated inside the call to emacs_mule_char.
544 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
545 (CODING_DECODE_CHAR): Add a comment describing its purpose.
546
547 2010-03-02 Kenichi Handa <handa@m17n.org>
548
549 * character.c (parse_str_as_multibyte): Fix handling of the
550 multibyte form of raw-bytes.
551 (str_as_multibyte): Likewise.
552
553 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
554 form of raw-bytes.
555
556 2010-02-28 Chong Yidong <cyd@stupidchicken.com>
557
558 * charset.c (load_charset_map_from_file)
559 (load_charset_map_from_vector): Zero out allocated
560 charset_map_entries before using them.
561
562 2010-02-27 Andreas Schwab <schwab@linux-m68k.org>
563
564 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
565
566 2010-02-27 Chong Yidong <cyd@stupidchicken.com>
567
568 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
569 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
570
571 2010-02-26 Kenichi Handa <handa@m17n.org>
572
573 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
574
575 * xdisp.c (reseat_to_string): Fix previous change.
576
577 2010-02-26 David Reitter <david.reitter@gmail.com>
578
579 * nsfont.m (nsfont_draw): ns_antialias_text should be a
580 Lisp_Object (Bug#4736).
581
582 2010-02-25 Kenichi Handa <handa@m17n.org>
583
584 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
585
586 2010-02-24 Jan Djärv <jan.h.d@swipnet.se>
587
588 * xterm.c (XTflash): Move declarations before statements.
589
590 * gtkutil.c (xg_get_gdk_display): Remove (unused).
591 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
592 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
593 (xg_create_tool_bar): Remove unused variables.
594 (x_wm_set_size_hint): Move declarations before statements.
595 (xg_create_frame_widgets): Remove variable grav.
596
597 2010-02-21 Chong Yidong <cyd@stupidchicken.com>
598
599 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
600
601 2010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
602
603 * term.c (fatal): Add a final \n if needed (bug#5596).
604
605 2010-02-18 Chong Yidong <cyd@stupidchicken.com>
606
607 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
608
609 2010-02-18 Glenn Morris <rgm@gnu.org>
610
611 * callint.c (Finteractive): Doc fix.
612
613 2010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
614
615 * coding.c (record_conversion_result):
616 Handle CODING_RESULT_INSUFFICIENT_DST.
617 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
618 memory allocation error.
619
620 2010-02-17 Kenichi Handa <handa@m17n.org>
621
622 * coding.c (decode_coding_ccl): Don't setup ccl program here.
623 Fix for the case that the output buffer is fullfilled.
624 (decode_coding): Setup ccl program here. Keep looping when the
625 decoder stopped because the output buffer is
626 fullfilled (bug#5534).
627
628 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
629
630 2010-02-13 Jan Djärv <jan.h.d@swipnet.se>
631
632 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
633 bug #5571.
634 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
635 overdrawn.
636
637 2010-02-10 Jan Djärv <jan.h.d@swipnet.se>
638
639 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
640 doing_interact here.
641 (ice_connection_closed): New function.
642 (x_session_check_input, smc_die_CB, ice_io_error_handler)
643 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
644 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
645 returns I/O error.
646 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
647 bug #5512.
648
649 2010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
650
651 * nsfont.m (nsfont_open): The system's value for the font descent
652 is negative, so round it down to avoid clipping.
653
654 2010-02-06 Chong Yidong <cyd@stupidchicken.com>
655
656 * charset.c (load_charset_map_from_file)
657 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
658 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
659
660 2010-02-05 Chong Yidong <cyd@stupidchicken.com>
661
662 * charset.c (load_charset_map_from_file): Allocate large
663 charset_map_entries structure on the heap rather than the stack.
664 (Bug#5526).
665
666 2010-01-31 Kenichi Handa <handa@m17n.org>
667
668 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
669 size in NAME is invalid, return -1 (Bug#5396).
670
671 2010-01-31 Chong Yidong <cyd@stupidchicken.com>
672
673 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
674 <deactivated@gmail.com> (Bug#3605).
675
676 2010-01-31 David De La Harpe Golden <david@harpegolden.net>
677
678 * fileio.c (Frename_file): Correctly rename symlinks to
679 directories (Bug#5496).
680
681 2010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
682
683 * nsterm.m (ns_ring_bell): Handle visible bell like X.
684
685 2010-01-30 Andreas Schwab <schwab@linux-m68k.org>
686
687 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
688
689 2010-01-29 Chong Yidong <cyd@stupidchicken.com>
690
691 * frame.c (DEFAULT_ROWS): Change default to 35.
692
693 * xfns.c (x_default_font_parameter): Change default XFT font to
694 monospace-10 (Bug#3643).
695
696 2010-01-29 Eli Zaretskii <eliz@gnu.org>
697
698 * w32inevt.c (key_event): Remove unnecessary comparison of
699 event->uChar.AsciiChar with 128.
700
701 2010-01-28 Chong Yidong <cyd@stupidchicken.com>
702
703 * fileio.c (Frename_file): Fix last change (Bug#5487).
704
705 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
706
707 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
708
709 2010-01-28 Jan Djärv <jan.h.d@swipnet.se>
710
711 * xfns.c (Fx_create_frame): Remove window size matching code from
712 2010-01-15.
713 (x_get_current_desktop, x_get_desktop_workarea): Remove.
714
715 2010-01-27 Jason Rumney <jasonr@gnu.org>
716
717 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
718 (key_event): Use unicode for characters 128 and higher (Bug#4567).
719
720 2010-01-27 Kenichi Handa <handa@m17n.org>
721
722 * regex.c (analyse_first): Fix setting of fastmap for unibyte
723 pattern string (Bug#4209).
724
725 2010-01-27 David De La Harpe Golden <david@harpegolden.net>
726
727 * fileio.c (Frename_file): Call copy-directory and
728 delete-directory for directories, in order to handle cross-device
729 renaming (Bug#3353).
730
731 2010-01-25 Jan Djärv <jan.h.d@swipnet.se>
732
733 * xfns.c (Fx_create_frame): If frame height is too big, try
734 sizes 24 and 10. Bug #3643.
735
736 2010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
737
738 Try and fix bug#788, hopefully for real this time.
739 * keymap.c (shadow_lookup): Add `remap' arg.
740 (describe_map, describe_vector): Update calls to shadow_lookup.
741 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
742 `remapped' so this flag is applicable to `sequence'. Be careful to
743 perform remapping during shadow_lookup check of remapped_sequences.
744
745 2010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
746
747 * image.c (png_load): Use png_sig_cmp instead of the obsolete
748 png_check_sig, which has been removed in libpng 1.4.
749
750 2010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
751
752 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
753 lacks this header file).
754
755 2010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
756
757 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
758 as in Emacs 22.
759
760 2010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
761
762 * lisp.h (make_pure_string): String pointer arg now points to const.
763
764 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
765 args now point to const.
766
767 2010-01-22 Eli Zaretskii <eliz@gnu.org>
768
769 * lread.c (Fload): Don't treat files without .elc extension as
770 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
771 them. (bug#5303)
772
773 2010-01-20 Kenichi Handa <handa@m17n.org>
774
775 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
776 treat the source as actual byte sequence.
777
778 2010-01-19 Alan Mackenzie <acm@muc.de>
779
780 Fix spurious before-change-functions invocation from (insert ?\n).
781 * textprop.c (set_text_properties): Rename parameter
782 `signal_after_change_p' to `coherent_change_p', and make the
783 invocation of `modify_region' conditional on it.
784
785 2010-01-19 Jan Djärv <jan.h.d@swipnet.se>
786
787 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
788 for debug purpose.
789 (syms_of_xsettings): Declare xft-settings.
790
791 2010-01-18 Chong Yidong <cyd@stupidchicken.com>
792
793 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
794
795 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
796
797 * xterm.c (event_handler_gdk): Block input (Bug#5037).
798
799 2010-01-16 Chong Yidong <cyd@stupidchicken.com>
800
801 * emacs.c (standard_args): Adjust arg priorities to reflect how
802 they are processed in startup.el.
803
804 2010-01-16 Andreas Schwab <schwab@linux-m68k.org>
805
806 * Makefile.in (lisp, shortlisp): Update.
807
808 2010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
809
810 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
811 code, link the new kboard into all_kboard before running Lisp code,
812 and protect the new terminal with GCPRO (Bug#5365).
813 (x_term_init): Remove unused var `atom'.
814 (x_delete_display, x_delete_terminal): Remove unused var `i'.
815
816 2010-01-15 Jan Djärv <jan.h.d@swipnet.se>
817
818 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
819 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
820 to find out usable size of the desktop. Don't make frames larger than
821 this. Bug #3643.
822
823 2010-01-15 Kenichi Handa <handa@m17n.org>
824
825 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
826
827 2010-01-15 Chong Yidong <cyd@stupidchicken.com>
828
829 * nsterm.m (Qnone): Define.
830
831 * nsfns.m (Qnone): Move definition to nsterm.m.
832
833 2010-01-14 Kenichi Handa <handa@m17n.org>
834
835 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
836 systems.
837
838 2010-01-14 Kenichi Handa <handa@m17n.org>
839
840 Make auto-composition work on all buffers even if they are
841 fundamental mode.
842
843 * composite.c (Vauto_composition_mode): New variable.
844 (composition_compute_stop_pos): Check Vauto_composition_mode
845 instead of Vauto_composition_function.
846 (composition_adjust_point, Ffind_composition_internal): Likewise.
847 (syms_of_composite): Declare Lisp variable
848 "auto-composition-mode" here.
849
850 2010-01-13 Chong Yidong <cyd@stupidchicken.com>
851
852 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
853 during call to vendor-specific-keysyms (Bug#5365).
854
855 2010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
856
857 * keyboard.c (input_available_signal) [SYNC_INPUT]:
858 Call SIGNAL_THREAD_CHECK (Bug#5333).
859
860 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
861 Call SIGNAL_THREAD_CHECK.
862
863 2010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
864
865 Try to fix bug#5314. This is probably not the final word, tho.
866 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
867 recent-auto-save-p as a side-effect.
868 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
869 * buffer.c (Fkill_buffer, reset_buffer):
870 * editfns.c (Fsubst_char_in_region):
871 * fileio.c (Finsert_file_contents, Fdo_auto_save)
872 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
873
874 2010-01-13 Kenichi Handa <handa@m17n.org>
875
876 Display buffer name, etc. in mode line by composing correctly.
877
878 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
879 STRING is not nil.
880 (display_mode_element): Adjust for the change of
881 decode_mode_spec and display_line.
882 (decode_mode_spec): Change arg MULTIBYTE to STRING.
883 (display_string): Handle the case that STRING is non-null and
884 LISP_STRING is not nil.
885
886 * xterm.c (x_draw_composite_glyph_string_foreground):
887 Pay attention to s->face->overstrike.
888
889 * composite.c (composition_reseat_it): Don't check PT if STRING is
890 non nil.
891
892 2010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
893
894 * keyboard.c (read_char): Don't apply previous change when current
895 buffer is unchanged by command execution.
896
897 2010-01-12 Jan Djärv <jan.h.d@swipnet.se>
898
899 * keyboard.c (read_char): Return after executing from special map.
900
901 2010-01-12 Glenn Morris <rgm@gnu.org>
902
903 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
904 bug-gnu-emacs rather than emacs-pretest-bug.
905
906 2010-01-11 Chong Yidong <cyd@stupidchicken.com>
907
908 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
909 initializing the Lisp variables that depend on them.
910
911 2010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
912
913 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
914 Clear areas that will not be updated after change of menu bar lines.
915 Clear the menu bar window's current matrix when the window gets empty.
916
917 2010-01-09 Chong Yidong <cyd@stupidchicken.com>
918
919 * intervals.h, textprop.c (extend_property_ranges): Return value
920 and args changed. Discard properties that begin at or after the
921 new end (Bug#5306).
922
923 * editfns.c (Fformat): Caller changed.
924
925 * nsterm.m (ns_set_default_prefs): Delete function.
926 (syms_of_nsterm): Initialize ns_command_modifier,
927 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
928 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
929
930 * xdisp.c (pos_visible_p): Check for invisible text at the correct
931 position (Bug#4040).
932
933 2010-01-09 Eli Zaretskii <eliz@gnu.org>
934
935 * editfns.c (Ffloat_time): Doc fix.
936
937 2010-01-09 Jan Djärv <jan.h.d@swipnet.se>
938
939 * xfns.c (Fx_create_frame): Don't create frame larger than display
940 by default bug#3643.
941
942 2010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
943
944 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
945 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
946 windows above internal border.
947
948 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
949 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
950 windows above internal border.
951
952 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
953 tool bar windows specially.
954
955 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
956
957 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
958 specially.
959 (XTflash): Take account of menu bar height.
960
961 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
962 specially.
963
964 2010-01-08 Jan Djärv <jan.h.d@swipnet.se>
965
966 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
967 also be true before we can return early (bug #5339).
968
969 2010-01-06 David Reitter <david.reitter@gmail.com>
970
971 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
972 (Fns_display_usable_bounds): Rewrite, computing bounds properly
973 (Bug#3233).
974
975 2010-01-06 Jan Djärv <jan.h.d@swipnet.se>
976
977 * font.c (font_open_entity): Enable chache and call cached_font_ok
978 for the driver if defined.
979 (QCuser_spec): New symbol.
980 (font_spec_from_name): Save name as user-spec.
981 (font_load_for_lface): Keep user-spec instead of name.
982 (font_open_by_name): Save name as user-spec.
983 (syms_of_font): Initialize QCuser_spec.
984 (font_clear_prop): Clear name if it exists in font (bug#5157).
985
986 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
987 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
988 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
989
990 * font.h (struct font_driver): Add cached_font_ok.
991
992 * xterm.c (x_clear_frame): Queue draw for scroll bars.
993
994 2010-01-05 Jan Djärv <jan.h.d@swipnet.se>
995
996 * xterm.c (x_new_font): Move code for setting rows/cols before
997 resizing ...
998 (x_set_window_size): ... to here. Bug #2568.
999
1000 * gtkutil.c (xg_clear_under_internal_border): New function.
1001 (xg_frame_resized, xg_frame_set_char_size):
1002 Call xg_clear_under_internal_border.
1003 (xg_update_scrollbar_pos): Clear under old scroll bar position.
1004
1005 2010-01-05 Chong Yidong <cyd@stupidchicken.com>
1006
1007 * keyboard.c (read_key_sequence): Catch keyboard switch after
1008 making a new tty frame (Bug#5095).
1009
1010 2010-01-05 Kenichi Handa <handa@m17n.org>
1011
1012 * fontset.c (fontset_find_font): Fix getting the frame pointer.
1013
1014 2010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
1015
1016 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
1017 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
1018 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
1019
1020 2010-01-03 Michael Albinus <michael.albinus@gmx.de>
1021
1022 * dbusbind.c (xd_add_watch): Improve debug message.
1023 (xd_remove_watch): Improve debug message. If DATA is the session
1024 bus, unset D-Bus session environment.
1025 (Fdbus_init_bus): Pass the bus as argument to
1026 dbus_connection_set_watch_functions. (Bug#5283)
1027
1028 2010-01-01 Chong Yidong <cyd@stupidchicken.com>
1029
1030 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
1031
1032 * lread.c (syms_of_lread): Make it clearer that these are the
1033 names of loaded files (Bug#5068).
1034
1035 * eval.c (run_hook_with_args): Handle the case where the global
1036 value has the obsolete single-function form (Bug#5026).
1037
1038 2009-12-27 Chong Yidong <cyd@stupidchicken.com>
1039
1040 * minibuf.c (Fall_completions): Minor optimization.
1041
1042 2009-12-26 Eli Zaretskii <eliz@gnu.org>
1043
1044 * .gdbinit (pgx): Fix display of composite glyphs.
1045 Display cmp.from and cmp.to as well.
1046 (pitx): Fix last change.
1047
1048 2009-12-25 Kenichi Handa <handa@m17n.org>
1049
1050 * composite.h (composition_adjust_point): Update prototype.
1051
1052 * composite.c (composition_reseat_it): Don't make a composition
1053 spanning over point.
1054 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
1055 composable characters.
1056 (composition_adjust_point): New arg NEW_PT. Callers changed.
1057
1058 * keyboard.c (command_loop_1): Force redisplay if the last point
1059 was within a composition.
1060 (adjust_point_for_property): Don't adjust point for automatic
1061 composition when called after buffer modification.
1062
1063 2009-12-19 Eli Zaretskii <eliz@gnu.org>
1064
1065 * .gdbinit (pitx): Don't use enum names, use their values.
1066 Remove reference to non-existing value GET_FROM_COMPOSITION.
1067 (pgx): Don't use enum names, use their values.
1068 (pitmethod): New helper command.
1069 (pitx): Use it to display iteration method.
1070 (pgrowit): New command.
1071
1072 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
1073
1074 Update dependencies in Makefile.in.
1075
1076 * Makefile.in (alloc.o): Depend on termhooks.h.
1077 (atimer.o): Depend on blockinput.h.
1078 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
1079 and frame.h.
1080 (callint.o): Depend on systime.h, coding.h, and composite.h.
1081 (callproc.o): Depend on buffer.h.
1082 (casefiddle.o): Don't depend on charset.h.
1083 (casetab.o): Depend on character.h.
1084 (ccl.o): Depend on composite.h.
1085 (chartab.o): Depend on ccl.h.
1086 (cm.o): Depend on dispextern.h.
1087 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
1088 (coding.o): Don't depend on $(INTERVALS_H).
1089 (composite.o): Don't depend on dispextern.h explicitly (it's in
1090 $(INTERVALS_H)). Depend on ccl.h.
1091 (data.o): Depend on systime.h, coding.h, composite.h,
1092 dispextern.h, font.h, and ccl.h.
1093 (dired.o): Depend on composite.h.
1094 (dispnew.o): Depend on coding.h. Don't depend explicitly on
1095 composite.h (it's in $(INTERVALS_H)).
1096 (doc.o): Depend on systime.h, coding.h, and composite.h.
1097 (editfns.o): Don't depend explicitly on dispextern.h.
1098 (emacs.o): Depend on frame.h and coding.h.
1099 (eval.o): Depend on coding.h, composite.h, and xterm.h.
1100 (fileio.o): Depend on frame.h and commands.h. Don't depend
1101 explicitly on dispextern.h.
1102 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
1103 composite.h.
1104 (fns.o): Don't depend on termhooks.h.
1105 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
1106 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
1107 coding.h, $(INTERVALS_H), window.h, xterm.h.
1108 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
1109 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
1110 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
1111 fontset.h, ccl.h, and ftfont.h.
1112 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1113 (gtkutil.o): Depend on dispextern.h and composite.h.
1114 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
1115 termhooks.h, and ccl.h.
1116 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
1117 (intervals.o): Depend on systime.h and coding.h.
1118 (keyboard.o): Depend on composite.h and coding.h.
1119 (keymap.o): Depend on coding.h and frame.h.
1120 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
1121 (macros.o): Depend on systime.h, coding.h, and composite.h.
1122 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
1123 and atimer.h.
1124 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
1125 dispextern.h explicitly.
1126 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
1127 Don't depend explicitly on dispextern.h and composite.h.
1128 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
1129 (regex.o): Don't depend on charset.h.
1130 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
1131 (search.o): Don't depend explicitly on composite.h.
1132 (sound.o): Depend on atimer.h and systime.h.
1133 (syntax.o): Don't depend explicitly on composite.h.
1134 (sysdep.o): Depend on coding.h and composite.h.
1135 (term.o): Depend on xterm.h and buffer.h.
1136 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
1137 (textprop.o): Don't depend on dispextern.h explicitly.
1138 (undo.o): Depend on dispextern.h.
1139 (window.o): Depend on coding.h and termhooks.h. Don't depend on
1140 dispextern.h and composite.h explicitly.
1141 (xdisp.o): Depend on ccl.h.
1142 (xfaces.o): Depend on coding.h and ccl.h.
1143 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
1144 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1145 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
1146 ftfont.h.
1147 (xgselect.o): New dependency.
1148 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
1149 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
1150 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
1151 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
1152 (xsmfns.o): Depend on frame.h and dispextern.h.
1153 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
1154 sysselect.h.
1155
1156 2009-12-19 Andreas Schwab <schwab@linux-m68k.org>
1157
1158 * font.c (Fclear_font_cache): Pass correct cache argument to
1159 font_clear_cache.
1160
1161 2009-12-16 Andreas Schwab <schwab@linux-m68k.org>
1162
1163 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
1164 twice.
1165
1166 2009-12-15 Chong Yidong <cyd@stupidchicken.com>
1167
1168 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
1169 calling file-remote-p. Reported by Jim Meyering.
1170
1171 2009-12-15 Michael Albinus <michael.albinus@gmx.de>
1172
1173 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
1174 avoid compiler warnings. (Bug #5217)
1175
1176 2009-12-14 Kenichi Handa <handa@m17n.org>
1177
1178 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
1179 in 8-bit encoding.
1180
1181 2009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
1182
1183 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
1184 tooltip windows.
1185
1186 2009-12-13 Jan Djärv <jan.h.d@swipnet.se>
1187
1188 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
1189 Xatom_net_window_type.
1190
1191 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
1192 Xatom_net_window_type.
1193
1194 * xterm.c (my_log_handler): New function.
1195 (x_term_init): Set my_log_handler as log handler during gtk_init
1196 so we can filter out buggy messages. (Bug #5120).
1197
1198 * xterm.c (xg_scroll_callback): Parameter list changed,
1199 use parameter GtkScrollType to determine scroll/line/page.
1200 Only allow dragging if a button < 4 is grabbed (bug #5177).
1201 (xg_end_scroll_callback): New function.
1202 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
1203 xg_create_scroll_bar.
1204
1205 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
1206 (scroll_end_callback): Remove.
1207 (xg_create_scroll_bar): Add parameter end_callback, bind it to
1208 button-release-event. Replace value-changed event with change-value,
1209 bug #5177,
1210 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
1211 bug #5177.
1212
1213 * gtkutil.h (XG_LAST_SB_DATA): Remove.
1214 (xg_create_scroll_bar): Add GCallback end_callback.
1215
1216 * xftfont.c (QClcdfilter): New variable.
1217 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
1218 (syms_of_xftfont): Initialize QClcdfilter.
1219
1220 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1221
1222 * xsettings.c (struct xsettings): Add member seen.
1223 (parse_xft_settings): Update member seen with what we have read.
1224 Return non-zero if Xft-settings have been parsed, 0 otherwise.
1225 (apply_xft_settings): Only update Xft settings with what member seen
1226 indicates as new.
1227
1228 2009-12-12 Eli Zaretskii <eliz@gnu.org>
1229
1230 * dispextern.h (struct text_pos): Use EMACS_INT;
1231 (struct glyph): Use EMACS_INT for charpos.
1232 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
1233 region_beg_charpos, region_end_charpos,
1234 redisplay_end_trigger_charpos, and also for
1235 iterator_stack_entry.end_charpos and
1236 iterator_stack_entry.stop_charpos.
1237
1238 2009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1239
1240 * gtkutil.c (scroll_end_callback): New function (bug #5177).
1241 (xg_create_scroll_bar): Call scroll_end_callback on button release
1242 event (bug #5177).
1243 (xg_event_is_for_scrollbar): != replaced with ==.
1244
1245 2009-12-12 Kenichi Handa <handa@m17n.org>
1246
1247 * ftfont.c (struct ftfont_info): New member matrix.
1248 (ftfont_open): Setup xftfont_info->matrix.
1249 (MFLTFontFT): New member matrix.
1250 (FLOOR, CEIL, ROUND): New macros.
1251 (ftfont_get_metrics): Handle matrix transformation.
1252 (ftfont_shape_by_flt): New arg matrix. Callers changed.
1253
1254 * xftfont.c (struct xftfont_info): New member matrix.
1255 (xftfont_open): Setup xftfont_info->matrix.
1256
1257 2009-12-10 Kenichi Handa <handa@m17n.org>
1258
1259 * xdisp.c (append_space_for_newline): Consider face-remapping.
1260
1261 2009-12-09 Andreas Schwab <schwab@linux-m68k.org>
1262
1263 * xsettings.c: Include "keyboard.h".
1264
1265 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
1266
1267 Fix implicit function declarations.
1268 * cmds.c: Include "frame.h".
1269 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
1270 * frame.h: Move declaration of delete_frame outside of
1271 HAVE_WINDOW_SYSTEM.
1272
1273 2009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
1274
1275 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
1276
1277 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
1278 GTK builds.
1279
1280 2009-12-07 Andreas Schwab <schwab@linux-m68k.org>
1281
1282 * unexelf.c (unexec): Don't search for .data twice.
1283
1284 2009-12-05 Chong Yidong <cyd@stupidchicken.com>
1285
1286 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
1287 if push failed.
1288 (handle_line_prefix): Set avoid_cursor_p here. Check return value
1289 of push_display_prop (Bug#5000).
1290
1291 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
1292 value of font_list_entities (Bug#5085).
1293
1294 2009-12-04 Juanma Barranquero <lekktu@gmail.com>
1295
1296 Fix `string-to-number' to deal consistently with integers and floats.
1297 * lread.c (isfloat_string): New argument ignore_trailing to accept all
1298 trailing characters, not just whitespace.
1299 (read1): Pass new arg 0 to keep old behavior.
1300 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
1301 trailing chars, as it is already done for integers. Doc fixes.
1302 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
1303
1304 2009-12-04 Eli Zaretskii <eliz@gnu.org>
1305
1306 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
1307 Delete unused enumeration value.
1308
1309 2009-12-03 Eli Zaretskii <eliz@gnu.org>
1310
1311 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
1312
1313 2009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
1314
1315 * process.c (Fmake_network_process): Fix up the tests for
1316 "connectionless socket", so they DTRT for seqpacket sockets as well.
1317
1318 2009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
1319
1320 * process.c (Qseqpacket): New symbol.
1321 (HAVE_SEQPACKET): New macro.
1322 (Fmake_network_process): Accept new :type `seqpacket'.
1323 (init_process): Add `seqpacket' feature when applicable.
1324 (syms_of_process): Initialize Qseqpacket.
1325
1326 2009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1327
1328 * font.c (font_load_for_lface, font_open_by_name): Don't store name
1329 if entity is Qnil.
1330
1331 2009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
1332
1333 * print.c (print_preprocess): Preprocess the key_and_value table of
1334 hashtables, even tho they're "hidden" (bug#5082).
1335
1336 2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
1337
1338 * frame.c (frame_make_pointer_invisible)
1339 (frame_make_pointer_visible): Declare f before statements.
1340
1341 2009-11-28 Eli Zaretskii <eliz@gnu.org>
1342
1343 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
1344 omitted dependencies on lisp.h.
1345
1346 2009-11-27 Jan Djärv <jan.h.d@swipnet.se>
1347
1348 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
1349 is NULL.
1350
1351 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
1352
1353 * frame.c (frame_make_pointer_invisible)
1354 (frame_make_pointer_visible): Just return if there isn't any selected
1355 frame.
1356
1357 * search.c (simple_search): Remove warning by making *p const.
1358
1359 2009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
1360
1361 * xdisp.c (power_letter): Remove duplicate const.
1362
1363 2009-11-25 Jan Djärv <jan.h.d@swipnet.se>
1364
1365 * term.c (delete_tty): Remove check for last terminal (bug#4970).
1366
1367 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
1368 defaults (bug #5025).
1369
1370 2009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
1371
1372 * insdel.c (adjust_markers_for_delete): Move it in the
1373 right direction! (bug#4803)
1374
1375 2009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1376
1377 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
1378
1379 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
1380
1381 2009-11-24 Glenn Morris <rgm@gnu.org>
1382
1383 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
1384
1385 2009-11-23 Jan Djärv <jan.h.d@swipnet.se>
1386
1387 * Makefile.in: Must create deps for ecrt0.o in its rule.
1388
1389 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
1390 because that is what Gtk+ font dialog understands.
1391
1392 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
1393 of Fcopy_sequence.
1394 (font_open_by_name): Put name given into QCname for font-object returned.
1395
1396 * frame.c (x_set_font): Save original font name as frame parameter
1397 font-parameter.
1398
1399 * xsettings.c (set_default_xft_settings): New function.
1400 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
1401 is found.
1402
1403 2009-11-22 Andreas Schwab <schwab@linux-m68k.org>
1404
1405 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
1406 searching backwards through multibyte buffer.
1407
1408 2009-11-21 Jan Djärv <jan.h.d@swipnet.se>
1409
1410 * xterm.c: #include xgselect.h.
1411 (x_initialize): Call xgselect_initialize.
1412
1413 * xsettings.c (something_changedCB): C++ comments => C comments.
1414 (init_gconf): Do not deal with any GLib file descriptors, xg_select
1415 does that now.
1416
1417 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
1418 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
1419 (scroll_bar_button_cb): Remove.
1420 (create_menus): C++ comments => C comments. Don't bind grab-notify
1421 event.
1422 (xg_create_scroll_bar): Don't bind button-press-event and
1423 button-release-event.
1424
1425 * process.c: Include xgselect.h if defined (USE_GTK) ||
1426 defined (HAVE_GCONF).
1427 (wait_reading_process_output): Call xg_select for the same condition.
1428
1429 * xgselect.c (xg_select): New function to better integrate with
1430 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
1431
1432 * xgselect.h: New file, declare xg_select, xgselect_initialize.
1433
1434 * Makefile.in (XOBJ): Add xgselect.o.
1435
1436 2009-11-21 Andreas Schwab <schwab@linux-m68k.org>
1437
1438 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
1439 Remove ignored second argument. All callers changed.
1440 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
1441 (RE_STRING_CHAR_AND_LENGTH): Likewise.
1442 * xdisp.c (string_char_and_length): Likewise.
1443
1444 2009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
1445
1446 * xterm.c (x_new_font):
1447 * print.c (print_object):
1448 * cmds.c (Fself_insert_command): Move declarations before statements.
1449
1450 2009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
1451
1452 * s/cygwin.h: Remove unneeded linker flags.
1453
1454 2009-11-20 Jan Djärv <jan.h.d@swipnet.se>
1455
1456 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
1457
1458 * xsettings.h: Declare xsettings_get_system_font.
1459
1460 * xsettings.c (xsettings_get_system_font): New function.
1461 (init_gconf): No use initiating gconf unless we have Xft also.
1462 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
1463 HAVE_GCONF.
1464
1465 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
1466 add a blank entry so it doesn't collapse into nothing.
1467
1468 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1469
1470 * lread.c (Funintern): Comment out last change.
1471
1472 2009-11-19 Richard Stallman <rms@gnu.org>
1473
1474 * lread.c (Funintern): Error if symbol is t or nil.
1475
1476 2009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1477
1478 * insdel.c (make_gap_larger): Don't make as many assumptions about the
1479 representation of Lisp integers.
1480 Reported by MJ Chan <mjchan.inbox@gmail.com>.
1481
1482 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1483
1484 * lisp.h: Remove declaration of Ffont_get_system_font.
1485 * xfns.c: Move include of "xsettings.h".
1486 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
1487
1488 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1489
1490 * xsettings.c (something_changedCB, Ffont_get_system_font):
1491 Check use_system_font.
1492 (syms_of_xsettings): DEFVAR font-use-system-font.
1493
1494 2009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1495
1496 * xfns.c (x_default_font_parameter): Remove dead assignment.
1497
1498 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
1499
1500 2009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1501
1502 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
1503 not have FC_LCD_*. #define them if not there.
1504
1505 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
1506
1507 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
1508
1509 * xterm.c (handle_one_xevent): Call xft_settings_event for
1510 ClientMessage, PropertyNotify and DestroyNotify.
1511 (x_term_init): If we have XFT, get DPI from Xft.dpi.
1512 Call xsettings_initialize.
1513
1514 * xftfont.c (xftfont_fix_match): New function.
1515 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
1516 Call xftfont_fix_match after XftFontMatch.
1517
1518 * xfont.c (xfont_driver): Initialize all members.
1519
1520 * xfns.c (x_default_font_parameter):
1521 Try font from Ffont_get_system_font.
1522 Do not get font from x_default_parameter if we got one from
1523 Ffont_get_system_font.
1524 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
1525
1526 * w32font.c (w32font_driver): Initialize all members.
1527
1528 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
1529
1530 * lisp.h: Declare syms_of_xsettings.
1531
1532 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
1533 Handle CONFIG_CHANGED_EVENT.
1534
1535 * ftfont.c (ftfont_filter_properties): New function.
1536
1537 * frame.c (x_set_font): Remove unused variable lval.
1538
1539 * font.h (struct font_driver): Add filter_properties.
1540
1541 * font.c (font_put_extra): Don't return if val is nil, it means
1542 boolean option is off.
1543 (font_parse_fcname): Collect all extra properties in extra_props
1544 and call filter_properties for all drivers with extra_props and
1545 font as parameter.
1546 (font_open_entity): Do not use cache, it does not pick up new
1547 fontconfig settings like hinting.
1548 (font_load_for_lface): If spec had a name in it, store it in entity.
1549
1550 * emacs.c (main): Call syms_of_xsettings.
1551
1552 * config.in: HAVE_GCONF is new.
1553
1554 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
1555 xsettings.o is new.
1556
1557 2009-11-17 Kenichi Handa <handa@m17n.org>
1558
1559 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
1560 back to the default font in case that no suitable font is found.
1561
1562 2009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
1563
1564 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
1565 Suggested by Chad Brown <yandros@mit.edu>.
1566 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
1567
1568 2009-11-16 Jan Djärv <jan.h.d@swipnet.se>
1569
1570 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
1571
1572 2009-11-14 Andreas Schwab <schwab@linux-m68k.org>
1573
1574 * Makefile.in: Ignore errors from mkdir when creating deps directory.
1575
1576 2009-11-14 Jan Djärv <jan.h.d@swipnet.se>
1577
1578 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
1579 has a parent.
1580
1581 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
1582 dependency files in deps/. Include those files into Makefile.
1583
1584 * config.in: Generated (AUTO_DEPEND).
1585
1586 2009-11-13 Michael Albinus <michael.albinus@gmx.de>
1587
1588 * dbusbind.c (Vdbus_registered_objects_table): Rename from
1589 Vdbus_registered_functions_table, because it contains also
1590 properties. Fix docstring.
1591 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
1592
1593 2009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
1594
1595 * alloc.c (mark_object): Don't reprocess marked strings.
1596 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
1597 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
1598
1599 2009-11-13 Kenichi Handa <handa@m17n.org>
1600
1601 * category.c (word_boundary_p): Adjust for the change of the
1602 semantics of Vword_combining_categories.
1603 (Vword_combining_categories): Describe the slight change of the
1604 semantics.
1605
1606 2009-11-13 Eli Zaretskii <eliz@gnu.org>
1607
1608 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
1609
1610 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
1611
1612 2009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
1613
1614 * xdisp.c (syms_of_xdisp): Fix typo in last change.
1615
1616 2009-11-12 Juanma Barranquero <lekktu@gmail.com>
1617
1618 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
1619
1620 2009-11-11 David Reitter <david.reitter@gmail.com>
1621
1622 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
1623 variables to fix 2009-11-09 change.
1624
1625 2009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
1626
1627 * process.c (ifflag_def): Make flag_sym constant.
1628 (Fnetwork_interface_info): Use a constant pointer.
1629 (ifflag_table):
1630 * xfns.c (cursor_bits):
1631 * xdisp.c (power_letter):
1632 * termcap.c (speeds, esctab):
1633 * sysdep.c (baud_convert):
1634 * keyboard.c (lispy_accent_codes, modifier_names):
1635 * image.c (xbm_format, xpm_format, pbm_format, png_format)
1636 (jpeg_format, tiff_format, gif_format, svg_format)
1637 (interlace_start, interlace_increment, gs_format):
1638 * gtkutil.c (separator_names):
1639 * fringe.c (swap_nibble):
1640 * fns.c (base64_value_to_char, base64_char_to_value):
1641 * fileio.c (make_temp_name_tbl):
1642 * coding.c (suffixes): Make constant.
1643
1644 * frame.c (make_initial_frame):
1645 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
1646 build_string.
1647 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
1648
1649 * s/freebsd.h:
1650 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
1651
1652 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
1653 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
1654
1655 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
1656 * xterm.c (syms_of_xterm):
1657 * xfaces.c (syms_of_xfaces):
1658 * xdisp.c (syms_of_xdisp):
1659 * lread.c (syms_of_lread):
1660 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
1661 build_string.
1662
1663 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
1664
1665 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1666
1667 * fns.c (Fplist_get): Merge the active and the commented out code.
1668
1669 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1670
1671 * keyboard.h: Declare timer_check.
1672
1673 * keyboard.c (timer_check_2): New function that does what the old
1674 timer_check did.
1675 (timer_check): Call timer_check_2 until -1 or a non-zero time is
1676 returned, i.e. don't return -1 with timers pending.
1677
1678 * process.c: Remove extern declaration of timer_check.
1679
1680 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
1681 even if timer_check returned -1.
1682
1683 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
1684 xg_dialog_data.
1685 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
1686 the event loop.
1687 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
1688 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
1689 Destroy the dialog after xg_dialog_run.
1690
1691 2009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1692
1693 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
1694
1695 2009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1696
1697 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
1698
1699 2009-11-09 Juanma Barranquero <lekktu@gmail.com>
1700
1701 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
1702
1703 2009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
1704
1705 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
1706 w32menu.c, and nsmenu.m.
1707 Simplify the obsolete case where position is nil.
1708 (cleanup_popup_menu): New function, moved from nsmenu.m.
1709 (struct skp): Remove slot `notreal'.
1710 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
1711 adjust callers.
1712 (single_menu_item): Adjust call to parse_menu_item.
1713 (syms_of_menu): Defsubr x-popup-menu.
1714 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
1715 (keymap_panes): Don't export any more.
1716 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
1717 (xmenu_show): Declare.
1718 * keyboard.c (parse_menu_item): Remove arg `notreal'.
1719 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
1720 * keyboard.h (parse_menu_item): Update declaration.
1721 * xmenu.c (Fx_popup_menu): Remove.
1722 (syms_of_xmenu): Don't defsubr x-popup-menu.
1723 * w32menu.c (Fx_popup_menu): Remove.
1724 (syms_of_w32menu): Don't defsubr x-popup-menu.
1725 * nsmenu.m (cleanup_popup_menu): Remove.
1726 (ns_menu_show): Rename from ns_popup_menu and remove all the code
1727 moved to menu.c's Fx_popup_menu.
1728 (Fx_popup_menu): Remove.
1729 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
1730 menu_items (it's done in menu.c already).
1731
1732 2009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
1733
1734 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
1735 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
1736
1737 2009-11-08 Chong Yidong <cyd@stupidchicken.com>
1738
1739 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
1740 xmenu_show. Hide any tooltip before opening a menu.
1741 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
1742 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
1743
1744 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1745
1746 Let integers use up 2 tags to give them one extra bit and thus double
1747 their range.
1748 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
1749 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
1750 New macros.
1751 (enum Lisp_Type): Use them. Give explicit values.
1752 (Lisp_Type_Limit): Remove.
1753 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
1754 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
1755 Pay attention to USE_2_TAGS_FOR_INTS.
1756 (INTEGERP): Use LISP_INT_TAG_P.
1757 * fns.c (internal_equal): Simplify the default case.
1758 (sxhash): Use case_Lisp_Int.
1759 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
1760 any more.
1761 (Ftype_of): Use case_Lisp_Int.
1762 (store_symval_forwarding): Take into account the fact that Ints can
1763 now have more than one tag.
1764 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
1765 buffer_slot_type_mismatch):
1766 * xfaces.c (face_attr_equal_p):
1767 * print.c (print_object):
1768 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
1769 Use case_Lisp_Int.
1770
1771 2009-11-06 Eli Zaretskii <eliz@gnu.org>
1772
1773 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
1774
1775 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
1776 warning.
1777
1778 2009-11-06 Jan Djärv <jan.h.d@swipnet.se>
1779
1780 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
1781
1782 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
1783
1784 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
1785 ButtonPressRelease and MotionNotify (bug#4870).
1786
1787 2009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
1788
1789 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
1790
1791 * xterm.c (syms_of_xterm):
1792 * xselect.c (syms_of_xselect):
1793 * xmenu.c (syms_of_xmenu):
1794 * xfns.c (syms_of_xfns):
1795 * xfaces.c (syms_of_xfaces):
1796 * xdisp.c (syms_of_xdisp):
1797 * window.c (syms_of_window):
1798 * w32fns.c (syms_of_w32fns):
1799 * undo.c (syms_of_undo):
1800 * textprop.c (syms_of_textprop):
1801 * terminal.c (syms_of_terminal):
1802 * syntax.c (syms_of_syntax):
1803 * sound.c (syms_of_sound):
1804 * search.c (syms_of_search):
1805 * print.c (syms_of_print):
1806 * minibuf.c (syms_of_minibuf):
1807 * macros.c (syms_of_macros):
1808 * keymap.c (syms_of_keymap, initial_define_key)
1809 (initial_define_lispy_key):
1810 * keyboard.c (syms_of_keyboard):
1811 * insdel.c (syms_of_insdel):
1812 * image.c (syms_of_image):
1813 * fringe.c (syms_of_fringe):
1814 * frame.c (syms_of_frame):
1815 * fontset.c (syms_of_fontset):
1816 * fns.c (syms_of_fns):
1817 * fns.c (syms_of_fns):
1818 * fileio.c (syms_of_fileio):
1819 * fileio.c (syms_of_fileio):
1820 * eval.c (syms_of_eval):
1821 * doc.c (syms_of_doc):
1822 * dispnew.c (syms_of_display):
1823 * dired.c (syms_of_dired):
1824 * dbusbind.c (syms_of_dbusbind):
1825 * data.c (syms_of_data):
1826 * composite.c (syms_of_composite):
1827 * coding.c (syms_of_coding):
1828 * cmds.c (syms_of_cmds):
1829 * charset.c (define_charset_internal, syms_of_character):
1830 * ccl.c (syms_of_ccl):
1831 * category.c (syms_of_category, init_category_once):
1832 * casetab.c (syms_of_casetab):
1833 * casefiddle.c (syms_of_casefiddle):
1834 * callint.c (syms_of_callint):
1835 * bytecode.c (syms_of_bytecode):
1836 * buffer.c (keys_of_buffer, syms_of_buffer):
1837 * alloc.c (syms_of_alloc):
1838 * process.c (syms_of_process, init_process):
1839 * lread.c (syms_of_lread, init_obarray):
1840 * font.c (build_style_table):
1841 * emacs.c (syms_of_emacs, main): Replace calls to intern with
1842 intern_c_string, calls to make_pure_string with
1843 make_pure_c_string. Use pure_cons instead of Fcons.
1844
1845 * process.c (socket_options): Make it const.
1846 (set_socket_option, init_process): Use a const pointer.
1847
1848 * lread.c (intern_c_string): New function.
1849 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1850 (defvar_int): Uset it. Make the name const char*.
1851
1852 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
1853 (defvar_int): Update prototypes.
1854 (DEFUN, EXFUN): Support for prototypes is now required.
1855 (intern_c_string): New prototype.
1856 (struct Lisp_Subr): Make symbol_name constant.
1857
1858 * font.c (struct table_entry): Remove unused member. Make NAMES
1859 constant.
1860 (weight_table, slant_table, width_table): Make constant.
1861
1862 * emacs.c (struct standard_args): Make name and longname constant.
1863
1864 * character.h (DEFSYM): Use intern_c_string.
1865
1866 2009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
1867
1868 * alloc.c (make_pure_c_string): New function.
1869
1870 * eval.c (Fautoload): Purecopy all arguments.
1871
1872 2009-11-05 Kenichi Handa <handa@m17n.org>
1873
1874 * fileio.c (Finsert_file_contents): Be sure set coding-system of
1875 the buffer in case of replace.
1876
1877 2009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
1878
1879 * puresize.h (BASE_PURESIZE): Increase to 1620000.
1880
1881 2009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
1882
1883 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
1884 when applicable (bug#4851).
1885
1886 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
1887 (P_): Support for prototypes is now required.
1888
1889 2009-10-31 Chong Yidong <cyd@stupidchicken.com>
1890
1891 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
1892 (Bug#4827).
1893
1894 2009-10-30 Eli Zaretskii <eliz@gnu.org>
1895
1896 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
1897
1898 2009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
1899
1900 * puresize.h (BASE_PURESIZE): Increase to 1470000.
1901
1902 * lread.c (Fload): Purecopy the file name when building
1903 Vpreloaded_file_list.
1904
1905 2009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
1906
1907 * w32fns.c (syms_of_w32fns): Change default value of
1908 w32-scroll-lock-modifier to nil. (Bug#2827)
1909
1910 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
1911
1912 * minibuf.c (Fall_completions): Fix typos in docstring.
1913
1914 2009-10-26 Andreas Schwab <schwab@redhat.com>
1915
1916 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
1917
1918 2009-10-26 Juanma Barranquero <lekktu@gmail.com>
1919
1920 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
1921 For delta < 0, skip check that only makes sense when the mini-window
1922 is going to be enlarged. (Bug#4534)
1923
1924 2009-10-25 Chong Yidong <cyd@stupidchicken.com>
1925
1926 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
1927 string in menu maps (Bug#4471).
1928
1929 2009-10-24 Chong Yidong <cyd@stupidchicken.com>
1930
1931 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
1932 FRAME_NS_VIEW on terminal frames (Bug#4765).
1933
1934 2009-10-24 Andreas Schwab <schwab@linux-m68k.org>
1935
1936 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
1937 DBUS_TYPE_UINTnn separately to get proper sign extension.
1938
1939 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
1940 can properly handle unsigned types.
1941 (make_uid, make_gid): Remove.
1942
1943 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
1944 types again.
1945
1946 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
1947 (system_process_attributes): Likewise.
1948
1949 2009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
1950
1951 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
1952
1953 * eval.c (Fautoload): Purecopy the filename. Simplify.
1954
1955 * category.c (Fdefine_category): Purecopy docstring.
1956
1957 2009-10-23 Andreas Schwab <schwab@linux-m68k.org>
1958
1959 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
1960
1961 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
1962
1963 2009-10-23 Chong Yidong <cyd@stupidchicken.com>
1964
1965 * window.c (Fwindow_edges, Fwindow_pixel_edges)
1966 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
1967 (Bug#4775).
1968
1969 2009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
1970
1971 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
1972 (init_fileio_once):
1973 * lisp.h (init_fileio_once): Remove.
1974 * emacs.c (main): Don't call init_fileio_once.
1975
1976 2009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
1977
1978 * puresize.h (BASE_PURESIZE): Increase to 1430000.
1979
1980 2009-10-21 Andreas Schwab <schwab@linux-m68k.org>
1981
1982 * doprnt.c (doprnt): Fix overflow check.
1983
1984 2009-10-21 Jan Djärv <jan.h.d@swipnet.se>
1985
1986 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
1987
1988 * xterm.h (x_wait_for_event): Declare it.
1989
1990 * xterm.c (pending_event_wait): New variable.
1991 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
1992 see pending_event_wait.eventtype.
1993 (handle_one_xevent): Don't change gravity when parent changes.
1994 (x_new_font): Call change_frame_size with new rows/columns before we
1995 try to resize the frame.
1996 (x_wait_for_event): New function.
1997 (x_set_window_size_1): Don't change gravity unless change_gravity
1998 is set.
1999 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
2000 don't change frame size, instead wait for the ConfigureNotify.
2001 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
2002 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
2003 (x_initialize): Initialize pending_event_wait.
2004
2005 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
2006 size.
2007
2008 * widget.c (EmacsFrameSetValues): Add comment.
2009 (EmacsFrameSetCharSize): Just call x_set_window_size.
2010
2011 * gtkutil.c (xg_frame_set_char_size): Flush events and call
2012 x_wait_for_event.
2013 (flush_and_sync): Remove again.
2014 (xg_get_font_name): Suggest monospace if no previous font is known.
2015
2016 2009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
2017
2018 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
2019 8th bit, since that only made sense in the ASCII world (bug#4751).
2020
2021 2009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2022
2023 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
2024 processing pending events when event is filtered for input method.
2025 (Bug#3681)
2026
2027 2009-10-20 Juanma Barranquero <lekktu@gmail.com>
2028
2029 * fns.c: Add #endif accidentally removed in previous change.
2030
2031 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2032
2033 * fns.c: Remove code for unsupported system: MAC_OS.
2034 * image.c: Likewise. Include setjmp.h.
2035
2036 2009-10-19 Jan Djärv <jan.h.d@swipnet.se>
2037
2038 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
2039 pixel -1 (bug #4742).
2040
2041 2009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2042
2043 * process.c (create_pty): Remove conditionals for no longer
2044 supported systems: UNIPLUS and RTU.
2045
2046 * xterm.c:
2047 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
2048
2049 * alloc.c: Do not define struct catchtag.
2050 * eval.c: Move struct catchtag definition ...
2051 * lisp.h: ... here.
2052
2053 * image.c: Move png.h #include earlier to avoid warnings.
2054
2055 * xterm.c:
2056 * xsmfns.c:
2057 * xselect.c:
2058 * xrdb.c:
2059 * xmenu.c:
2060 * xftfont.c:
2061 * xfont.c:
2062 * xfns.c:
2063 * xfaces.c:
2064 * xdisp.c:
2065 * window.c:
2066 * widget.c:
2067 * w32xfns.c:
2068 * w32uniscribe.c:
2069 * w32term.c:
2070 * w32select.c:
2071 * w32reg.c:
2072 * w32proc.c:
2073 * w32menu.c:
2074 * w32inevt.c:
2075 * w32heap.c:
2076 * w32font.c:
2077 * w32fns.c:
2078 * w32console.c:
2079 * w32.c:
2080 * w16select.c:
2081 * vm-limit.c:
2082 * unexsol.c:
2083 * unexec.c:
2084 * unexcw.c:
2085 * unexaix.c:
2086 * undo.c:
2087 * tparam.c:
2088 * textprop.c:
2089 * terminfo.c:
2090 * terminal.c:
2091 * termcap.c:
2092 * term.c:
2093 * syntax.c:
2094 * sound.c:
2095 * sheap.c:
2096 * search.c:
2097 * scroll.c:
2098 * region-cache.c:
2099 * regex.c:
2100 * ralloc.c:
2101 * process.c:
2102 * print.c:
2103 * nsterm.m:
2104 * nsselect.m:
2105 * nsmenu.m:
2106 * nsimage.m:
2107 * nsfont.m:
2108 * nsfns.m:
2109 * msdos.c:
2110 * minibuf.c:
2111 * menu.c:
2112 * marker.c:
2113 * macros.c:
2114 * keymap.c:
2115 * keyboard.c:
2116 * intervals.c:
2117 * insdel.c:
2118 * indent.c:
2119 * gtkutil.c:
2120 * ftxfont.c:
2121 * ftfont.c:
2122 * fringe.c:
2123 * frame.c:
2124 * fontset.c:
2125 * font.c:
2126 * fns.c:
2127 * floatfns.c:
2128 * filelock.c:
2129 * fileio.c:
2130 * emacs.c:
2131 * editfns.c:
2132 * dosfns.c:
2133 * doprnt.c:
2134 * doc.c:
2135 * dispnew.c:
2136 * dired.c:
2137 * dbusbind.c:
2138 * data.c:
2139 * composite.c:
2140 * coding.c:
2141 * cmds.c:
2142 * cm.c:
2143 * chartab.c:
2144 * charset.c:
2145 * character.c:
2146 * ccl.c:
2147 * category.c:
2148 * casetab.c:
2149 * casefiddle.c:
2150 * callproc.c:
2151 * callint.c:
2152 * bytecode.c:
2153 * buffer.c:
2154 * atimer.c: Include setjmp.h. (Bug#4643)
2155
2156 2009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
2157
2158 Remove leftover table unibyte_to_multibyte_table.
2159 * character.c (unibyte_to_multibyte_table): Remove.
2160 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
2161 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
2162 * character.h (UNIBYTE_TO_CHAR): New macro.
2163 (MAKE_CHAR_MULTIBYTE): Use it.
2164 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
2165 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
2166 (message_dolog, set_message_1):
2167 * search.c (Freplace_match):
2168 * editfns.c (Fcompare_buffer_substrings):
2169 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
2170 (concat):
2171 * insdel.c (copy_text, count_size_as_multibyte):
2172 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
2173 * term.c (produce_glyphs):
2174 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
2175 * regex.c (RE_CHAR_TO_MULTIBYTE):
2176 * cmds.c (internal_self_insert):
2177 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
2178
2179 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
2180
2181 2009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
2182
2183 * puresize.h (BASE_PURESIZE): Increase to 1310000.
2184
2185 2009-10-16 Juanma Barranquero <lekktu@gmail.com>
2186
2187 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
2188
2189 2009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
2190
2191 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
2192 still needed under Tiger.
2193
2194 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
2195
2196 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
2197 __Apple__.
2198
2199 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
2200
2201 2009-10-15 Kenichi Handa <handa@m17n.org>
2202
2203 * print.c (print_object): Escape a symbol like "2E10" too.
2204
2205 2009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
2206
2207 Cleanups and changes for 64-bit compile under Snow Leopard.
2208 Based on suggestions by Erik Charlebois.
2209
2210 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
2211
2212 * nsfont.m (ns_char_width): Replace deprecated call.
2213 (ns_findfonts, nsfont_list_family): Use long format in printf, and
2214 cast argument.
2215 (nsfont_open): Use ns_char_width() everywhere.
2216 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
2217
2218 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
2219
2220 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
2221 where appropriate.
2222
2223 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
2224 where appropriate.
2225 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
2226 Use stringWithUTF8String.
2227 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
2228
2229 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
2230 Add formal protocol mention to inheritance.
2231 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
2232
2233 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
2234 Fix printf format.
2235 (ns_query_color): Use CGFloat where appropriate.
2236 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
2237 (EmacsScroller-mouseDown:): Use long format in printf, and cast
2238 argument.
2239
2240 * config.in (NS_HAVE_NSINTEGER): Drop.
2241
2242 * dbusbind.c (dbus-method-return-internal)
2243 (dbus-method-error-internal): Use long format in printf, and cast
2244 argument.
2245
2246 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
2247 in printf, and cast argument.
2248
2249 * process.c (list_processes_1): Use long format in printf, and
2250 cast argument.
2251
2252 2009-10-11 Glenn Morris <rgm@gnu.org>
2253
2254 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
2255
2256 2009-10-08 Jan Djärv <jan.h.d@swipnet.se>
2257
2258 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
2259 menu bar with a small width so it doesn't enlarge the frame.
2260
2261 2009-10-08 Juanma Barranquero <lekktu@gmail.com>
2262
2263 * fontset.c (Fset_fontset_font): Fix typos in error messages.
2264
2265 2009-10-06 Glenn Morris <rgm@gnu.org>
2266
2267 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
2268 SOME_MACHINE_LISP (this enters indirectly via DOC).
2269
2270 2009-10-05 Eli Zaretskii <eliz@gnu.org>
2271
2272 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
2273
2274 2009-10-04 Eli Zaretskii <eliz@gnu.org>
2275
2276 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
2277 Doc fix.
2278
2279 2009-10-03 Martin Rudalics <rudalics@gmx.at>
2280
2281 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
2282
2283 2009-10-02 Michael Albinus <michael.albinus@gmx.de>
2284
2285 * lisp.h (Qdelete_directory_internal): Remove, because it is not
2286 used anymore outside fileio.c.
2287
2288 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
2289
2290 2009-10-01 Juanma Barranquero <lekktu@gmail.com>
2291
2292 * lisp.h (Qdelete_directory_internal):
2293 Declare, instead of Qdelete_directory.
2294
2295 * w32fns.c (Fsystem_move_file_to_trash): Use it.
2296
2297 2009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
2298
2299 * eval.c (Fcalled_interactively_p): Add `kind' argument.
2300
2301 2009-10-01 Michael Albinus <michael.albinus@gmx.de>
2302
2303 * fileio.c (Fdelete_directory_internal): Rename from
2304 Fdelete_directory. It is not a command anymore. It has no file
2305 name handler.
2306
2307 2009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
2308
2309 * xdisp.c (get_next_display_element): Use an enum in last change.
2310
2311 2009-09-28 Kenichi Handa <handa@m17n.org>
2312
2313 * xdisp.c (get_next_display_element): Pay attention to
2314 unibyte_display_via_language_environment in handling
2315 Vnobreak_char_display.
2316
2317 2009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
2318
2319 * nsterm.h (ns_app_name): New extern variable.
2320
2321 * nsterm.m (ns_app_name): New variable.
2322 (ns_term_init): Set and use it.
2323 (ns_term_shutdown): Use it.
2324
2325 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
2326 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
2327
2328 * nsfns.m (ns_set_name_iconic, ns_set_name)
2329 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
2330 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
2331
2332 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
2333 Remove double-casting in client_data comparison.
2334
2335 2009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2336
2337 * keyboard.c (make_lispy_event): Remember last wheel direction.
2338 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
2339
2340 2009-09-26 Glenn Morris <rgm@gnu.org>
2341
2342 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
2343 internal.elc. Add term/pc-win.elc.
2344 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
2345 term/x-win.elc.
2346 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
2347 term/w32-win.elc.
2348 (NS_SUPPORT): New.
2349 (lisp): Add NS_SUPPORT.
2350 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
2351
2352 2009-09-25 David Reitter <david.reitter@gmail.com>
2353
2354 * nsmenu.m (EmacsMenu-clear): Recognize application menu
2355 on Mac OS X 10.6+ (bug#4513).
2356
2357 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
2358
2359 * frame.c (xrdb_get_resource): Return nil for empty string resources;
2360 some parts of Emacs code (like font selection) don't grok them.
2361 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
2362
2363 2009-09-24 Andreas Schwab <schwab@redhat.com>
2364
2365 * coding.c (decode_coding_iso_2022): Fix operator precedence.
2366
2367 2009-09-24 Juanma Barranquero <lekktu@gmail.com>
2368
2369 * dired.c (Fdirectory_files): Fix typo in docstring.
2370
2371 2009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2372
2373 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
2374 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
2375 (EmacsScroller-setPosition:portion:whole:): Remove -display call
2376 under GNUstep.
2377 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
2378
2379 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
2380 glyph advancement.
2381
2382 2009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
2383
2384 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
2385 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
2386
2387 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
2388 deleted (bug #4492).
2389
2390 * nsfont.m (Vns_reg_to_script): New lisp variable.
2391 (syms_of_nsfont): Declare it.
2392 (ns_registry_to_script): New function.
2393 (ns_get_req_script): Call it.
2394 (ns_findfonts): Don't give up on non-unicode registry.
2395
2396 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
2397
2398 2009-09-20 Tom Tromey <tromey@redhat.com>
2399
2400 * eval.c (find_handler_clause): Make stack-trace-on-error work in
2401 batch mode (bug#4228).
2402
2403 2009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
2404
2405 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
2406 carefully. (Bug #4339)
2407
2408 2009-09-18 Chong Yidong <cyd@stupidchicken.com>
2409
2410 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
2411
2412 2009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2413
2414 * emacs.c (inhibit_x_resources): Update doc string for NS.
2415 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
2416 legacy code for -NXHost. Fix error printf in daemon case.
2417
2418 * nsterm.h (ns_no_defaults): Remove.
2419
2420 * nsterm.m (ns_no_defaults): Remove.
2421 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
2422 (ns_use_qd_smoothing): Remove legacy variable.
2423 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
2424 don't update the NSWindow itself.
2425 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
2426 state detection and store user rect ourselves. (Bug #3581)
2427
2428 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
2429 ns_use_qd_smoothing.
2430
2431 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
2432 platform versions. Drop support for emacs-20-style face specs.
2433 (x-close-connection): Drop PSFlush() under OS X.
2434 (x-focus-frame): Activate the app first. (Bug #4180)
2435
2436 2009-09-17 Juanma Barranquero <lekktu@gmail.com>
2437
2438 * emacs.c (inhibit_x_resources): New variable.
2439 (main) [HAVE_NS]: Don't process --quick command line option.
2440 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
2441
2442 * lisp.h (inhibit_x_resources): Declare it extern.
2443
2444 * w32reg.c (x_get_string_resource):
2445 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
2446
2447 2009-09-17 Eli Zaretskii <eliz@gnu.org>
2448
2449 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
2450 Add lisp/term/internal.elc.
2451
2452 2009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
2453
2454 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
2455 (bug#4461).
2456
2457 2009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
2458
2459 * puresize.h (BASE_PURESIZE): Increase to 1290000.
2460
2461 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
2462 (OBJECTS_MACHINE): Remove, unused.
2463
2464 2009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
2465
2466 * frame.c (x_get_resource_string): Remove unused.
2467
2468 2009-09-15 Jan Djärv <jan.h.d@swipnet.se>
2469
2470 * xterm.c (x_new_font): Call change_frame_size before calling
2471 x_set_window_size, in case frame size won't change.
2472
2473 * frame.c (x_set_font): Remove dead code.
2474
2475 2009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
2476
2477 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
2478
2479 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2480
2481 * lread.c (Fload): Don't output a message after loading an obsolete
2482 package any more (done in Lisp now).
2483
2484 2009-09-12 Chong Yidong <cyd@stupidchicken.com>
2485
2486 * fns.c (syms_of_fns): Doc fix (Bug#4227).
2487
2488 2009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2489
2490 * keymap.c (Fwhere_is_internal): Use nconc2.
2491
2492 2009-09-11 Alan Mackenzie <acm@muc.de>
2493
2494 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
2495 batch mode.
2496
2497 2009-09-11 Andreas Schwab <schwab@linux-m68k.org>
2498
2499 * xdisp.c (display_mode_element): Detect cycles.
2500
2501 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2502
2503 * keymap.c (where_is_internal): Don't erroneously return nil right after
2504 filling the cache.
2505 (where_is_internal_1): Fix up typo.
2506
2507 2009-09-11 Glenn Morris <rgm@gnu.org>
2508
2509 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
2510 share a common doc-string.
2511
2512 2009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2513
2514 * keymap.c (get_keymap): Return the actual keymap symbol rather than
2515 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
2516
2517 * keymap.c (QCadvertised_binding): New constant.
2518 (syms_of_keymap): Initialize it.
2519 (Fwhere_is_internal): Try and use bindings from :advertised-binding
2520 if applicable.
2521
2522 2009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
2523
2524 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
2525 (parse_menu_item): Streamline since bindings are recomputed all the
2526 time anyway. Don't bother checking Vdefine_key_rebound_commands any
2527 more and don't support lmenu's menu-alias any more either.
2528
2529 * keymap.c (where_is_internal_data): Make noindirect a boolean.
2530 (where_is_internal): Strip it down to only traverse the keymaps.
2531 Move the cache handling from Fwhere_is_internal to here.
2532 (Fwhere_is_internal): Move the handling of remapping and the choice of
2533 the best binding from where_is_internal to here.
2534 Unify the cached/noncached paths, so remapping is also handled
2535 correctly when the cache is used, and so the cache can be used to
2536 speed up remap-handling when applicable.
2537 Give preference to non-remapped bindings.
2538 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
2539 non-remapped bindings.
2540 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
2541 command remapping.
2542
2543 * xdisp.c (display_mode_element): Move list length limit from 50 to
2544 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
2545
2546 2009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
2547
2548 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
2549
2550 2009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
2551
2552 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
2553 (Bug#4334)
2554
2555 * keymap.c (where_is_internal): Filter out shadowed remappings.
2556 Assume that where_is_internal returns unshadowed bindings to simplify
2557 the code and get rid of the gotos. Use ASIZE.
2558
2559 2009-09-04 Jan Djärv <jan.h.d@swipnet.se>
2560
2561 * xterm.c (x_focus_changed): If we get a focusout and pointer
2562 is invisible, make it visible.
2563
2564 * xterm.h: Remove condition for declaration of
2565 x_*_window_to_frame.
2566
2567 2009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
2568
2569 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
2570 initial terminal as well.
2571
2572 2009-09-02 Jan Djärv <jan.h.d@swipnet.se>
2573
2574 * xterm.h: Rename x_non_menubar_window_to_frame to
2575 x_menubar_window_to_frame.
2576
2577 * xterm.c: Remove declarations also in xterm.h
2578 (XTmouse_position): Do not return valid positions
2579 for clicks in the menubar and the toolbar for Gtk+.
2580
2581 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
2582 if the widget for the event has the same top level as a frame,
2583 return the frame.
2584 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
2585 internal windows, bug #4122.
2586 (x_non_menubar_window_to_frame): Remove.
2587
2588 2009-09-02 Glenn Morris <rgm@gnu.org>
2589
2590 * buffer.c (default-major-mode): Move most of the doc from here...
2591 (major-mode): ... to here.
2592
2593 2009-08-30 Nick Roberts <nickrob@snap.net.nz>
2594
2595 * process.c (wait_reading_process_output): Keep the descriptor
2596 when pty is used by a non-child process, e.g., in I/O buffer of
2597 GDB this allows inferior to be restarted.
2598
2599 2009-08-29 Eli Zaretskii <eliz@gnu.org>
2600
2601 * xdisp.c (redisplay_internal): Remove redundant test and collapse
2602 both branches into one.
2603
2604 2009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
2605
2606 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
2607 (main): Use enable-multibyte-characters rather than
2608 default-enable-multibyte-characters. Output a warning message when
2609 running a unibyte session.
2610
2611 2009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2612
2613 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
2614 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
2615 (copy_data_segment): Also copy __program_vars section.
2616 (copy_dyld_info) [LC_DYLD_INFO]: New function.
2617 (dump_it) [LC_DYLD_INFO]: Use it.
2618
2619 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
2620
2621 2009-08-28 Eli Zaretskii <eliz@gnu.org>
2622
2623 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
2624 $(SRC)/buildobj.h.
2625 (buildobj.h): Renamed from $(SRC)/buildobj.h.
2626 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
2627 $(SRC)/buildobj.h.
2628 (clean): Add buildobj.h.
2629
2630 2009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
2631
2632 * print.c (print_object): Set escapeflag to 1 when printing
2633 hashtable keys and values.
2634
2635 2009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
2636
2637 * lread.c (read_integer): Use doubles (and potentially return a float
2638 number) as we do in string-to-number.
2639 (read1): Use strtol to read integers, signal errors on strtol's
2640 overflow and use floats if strtol's output is too large for
2641 Elisp integers.
2642
2643 2009-08-27 Eli Zaretskii <eliz@gnu.org>
2644
2645 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
2646 (make-buildobj-SH): Fix last change.
2647 (SRC): Move to before where it's first used.
2648
2649 2009-08-27 Kenichi Handa <handa@m17n.org>
2650
2651 * process.c (send_process): Use encode_coding_object instead of
2652 encode_coding_string to perform eol-conversion even if the string
2653 is unibyte.
2654
2655 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
2656 character.
2657
2658 * cmds.c (Fself_insert_command): Avoid unnecessay
2659 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
2660
2661 2009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
2662
2663 * callproc.c (Fcall_process): Remove always true #if.
2664
2665 * lisp.h: Replace #if 0 code for checking with text pointing to
2666 the --enable-checking configure flag.
2667
2668 * emacs.c (main): Mention the --enable-profiling configure flag
2669 instead of using CFLAGS.
2670
2671 2009-08-26 Ken Raeburn <raeburn@raeburn.org>
2672
2673 * Makefile.in (buildobj.h): New target.
2674 (doc.o): Depend on it.
2675 (temacs${EXEEXT}): Don't generate buildobj.lst.
2676 (mostlyclean): Delete buildobj.h, not buildobj.lst.
2677 * makefile.w32-in ($(SRC)/buildobj.h): New target.
2678 ($(BLD)/doc.$(O)): Depend on it.
2679 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
2680 provided by Eli Zaretskii.)
2681 ($(TEMACS)): Don't generate buildobj.lst.
2682 * doc.c: Include buildobj.h.
2683 (buildobj): New static variable.
2684 (Fsnarf_documentation): Use it, instead of opening and reading
2685 buildobj.lst.
2686
2687 2009-08-25 Michael Albinus <michael.albinus@gmx.de>
2688
2689 * dbusbind.c (Fdbus_call_method)
2690 (Fdbus_call_method_asynchronously): Use English numeric format for
2691 timeout values in doc string.
2692
2693 2009-08-25 Kenichi Handa <handa@m17n.org>
2694
2695 * alloc.c (mark_char_table): New function.
2696 (mark_object): Use mark_char_table for a char-table.
2697
2698 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
2699 (CHAR_TABLE_REF): Use it.
2700
2701 2009-08-23 Ken Raeburn <raeburn@raeburn.org>
2702
2703 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
2704 before invoking the newly build emacs to check for load-path
2705 shadowing.
2706
2707 2009-08-22 Glenn Morris <rgm@gnu.org>
2708
2709 * Makefile.in (bootstrap_exe): New variable.
2710 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
2711 Use ${bootstrap_exe}.
2712
2713 2009-08-22 Eli Zaretskii <eliz@gnu.org>
2714
2715 * coding.h (encode_coding_string): Don't encode unibyte strings.
2716 (Bug#4047)
2717
2718 2009-08-22 Michael Albinus <michael.albinus@gmx.de>
2719
2720 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
2721
2722 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
2723 intended as hotfix only.
2724 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
2725
2726 2009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
2727
2728 * nsterm.m (ns_get_color): Update documentation properly for last
2729 change, and clean up loose ends in the code left by it. Fix
2730 longstanding bug with 16-bit hex parsing, and add support for
2731 yet another X11 format (rgb:r/g/b) for compatibility.
2732 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
2733 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
2734
2735 2009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
2736
2737 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
2738
2739 2009-08-20 Michael Albinus <michael.albinus@gmx.de>
2740
2741 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
2742 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
2743 (xd_initialize, xd_pending_messages): Check, whether
2744 $DBUS_SESSION_BUS_ADDRESS is set.
2745
2746 2009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2747
2748 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
2749
2750 * nsterm.m (ns_get_color): Remove incompatible color formats again.
2751
2752 2009-08-20 Glenn Morris <rgm@gnu.org>
2753
2754 * emacs.c (system-type): Doc fix.
2755
2756 2009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
2757
2758 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
2759 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
2760
2761 2009-08-18 Michael Albinus <michael.albinus@gmx.de>
2762
2763 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
2764 New functions.
2765 (xd_initialize): Revert change from 2009-08-16.
2766
2767 2009-08-18 Kenichi Handa <handa@m17n.org>
2768
2769 * fontset.c (Ffontset_font): If a nil element is found in a
2770 font-group vector, return nil.
2771
2772 2009-08-17 Chong Yidong <cyd@stupidchicken.com>
2773
2774 * process.c (status_notify): Don't perform redisplay.
2775 (Fdelete_process, list_processes_1, process_send_signal):
2776 Expliticly perform redisplay.
2777 (wait_reading_process_output): Always check process status, but
2778 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
2779
2780 2009-08-17 Ken Raeburn <raeburn@raeburn.org>
2781
2782 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
2783 (XFLOAT_INIT): New macro for storing a float value.
2784 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
2785 * fns.c (sxhash): Copy out the value of a float in order to
2786 examine its bytes.
2787 * dbusbind.c (xd_append_arg): Likewise.
2788
2789 * emacs.c (main): Don't call syms_of_data twice.
2790
2791 2009-08-16 Michael Albinus <michael.albinus@gmx.de>
2792
2793 * dbusbind.c (xd_initialize): Add connection file descriptor to
2794 input_wait_mask, in order to let select() detect, whether a new
2795 message has been arrived.
2796 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
2797
2798 2009-08-15 Michael Albinus <michael.albinus@gmx.de>
2799
2800 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
2801 New functions.
2802
2803 * lisp.h (xd_pending_messages): Declare.
2804
2805 * keyboard.c (readable_events): Call xd_pending_messages.
2806
2807 2009-08-15 Chong Yidong <cyd@stupidchicken.com>
2808
2809 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
2810
2811 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
2812
2813 * buffer.c (set_buffer_internal_1)
2814 (swap_out_buffer_local_variables): Check for unbound local
2815 variables (Bug#4138).
2816
2817 2009-08-14 Eli Zaretskii <eliz@gnu.org>
2818
2819 * process.c (create_pty): Fix last change.
2820
2821 2009-08-13 Chong Yidong <cyd@stupidchicken.com>
2822
2823 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
2824 (xbm_load_image): Caller changed.
2825 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
2826
2827 2009-08-13 Nick Roberts <nickrob@snap.net.nz>
2828
2829 * process.c (create_pty): New function.
2830 (Fstart_process): Use it to allow Emacs to just associate a pty
2831 with the buffer. See associated change in gdb-mi.el.
2832 (list_processes_1): Deal with no program name.
2833 (start_process_unwind): Use pid == -2 to mean no process.
2834
2835 2009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
2836
2837 * cmds.c (nonundocount): New global variable.
2838 (keys_of_cmds): Initialize it.
2839 (Fself_insert_command): Use it to combine upto 20 sequential chars
2840 into a single undo entry, just like the Qself_insert_command code in
2841 keyboard.c does.
2842 Call frame_make_pointer_invisible, also like the Qself_insert_command
2843 code in keyboard.c does.
2844 * keyboard.c (command_loop_1): Use the new global nonundocount rather
2845 than its own local replacement for it.
2846
2847 2009-08-10 Ken Raeburn <raeburn@raeburn.org>
2848
2849 * fns.c (concat): Don't re-set string length to its current value.
2850
2851 * coding.h (decode_coding_string, encode_coding_string):
2852 Use SBYTES macro.
2853
2854 * doprnt.c (doprnt_lisp): Delete unused function.
2855 (doprnt): Merge with doprnt1, discarding lispstrings code.
2856 * lisp.h (doprnt_lisp): Don't declare.
2857
2858 2009-08-07 Juri Linkov <juri@jurta.org>
2859
2860 * puresize.h (BASE_PURESIZE): Increase to 1270000.
2861
2862 2009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
2863
2864 * print.c (syms_of_print): Undo previous change.
2865
2866 2009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
2867
2868 * lread.c (read1, syms_of_lread): Read hashtables back from the
2869 readable format.
2870
2871 * print.c (print_preprocess, print_object): Print hashtables fully
2872 and readably.
2873 (syms_of_print): Provide 'hashtable-print-readable.
2874
2875 2009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
2876
2877 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
2878 no family set.
2879 (nsfont_open): Handle case when entity has no family.
2880
2881 2009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
2882
2883 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
2884 element, not a list, for match case.
2885
2886 2009-07-28 Kenichi Handa <handa@m17n.org>
2887
2888 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
2889 rigidly.
2890
2891 * xfont.c (xfont_list_pattern): Don't ignore the return value of
2892 font_parse_xlfd. Check font properties more rigidly.
2893
2894 2009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
2895
2896 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
2897 bsd-common.h.
2898
2899 2009-07-27 Kenichi Handa <handa@m17n.org>
2900
2901 * xfaces.c (face_with_height): Call font_clear_prop.
2902
2903 2009-07-26 Chong Yidong <cyd@stupidchicken.com>
2904
2905 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
2906
2907 * xterm.c (x_term_init): Use Qx.
2908
2909 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
2910
2911 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
2912 (ns_get_color): Revert 2009-07-16 change.
2913
2914 2009-07-25 Eli Zaretskii <eliz@gnu.org>
2915
2916 * lread.c (syms_of_lread) <force_load_messages>: New variable.
2917 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
2918
2919 2009-07-25 Ken Raeburn <raeburn@raeburn.org>
2920
2921 * coding.h (decode_coding_string, encode_coding_string):
2922 Use SCHARS macro.
2923
2924 * lread.c: Rewrite 2009-07-21 changes.
2925 (load_depth): Delete.
2926 (Qload_in_progress): New variable.
2927 (load_unwind): Don't reference load_depth or load_in_progress.
2928 (Fload): Likewise; specbind Qload_in_progress instead.
2929 (init_lread): Don't initialize load_depth.
2930 (syms_of_lread): Initialize and protect Qload_in_progress.
2931
2932 2009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
2933
2934 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
2935
2936 2009-07-23 Yavor Doganov <yavor@gnu.org>
2937
2938 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
2939
2940 2009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2941
2942 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
2943 Bugs 3792, 3720, 2402.
2944 (ns_lookup_indexed_color): Check for bad index.
2945 (ns_index_color): Init unused slot to 0.
2946 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
2947 Bug 3714, possibly 3082.
2948
2949 2009-07-22 Jason Rumney <jasonr@gnu.org>
2950
2951 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
2952 Position IME window at cursor (Bug#2570).
2953 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
2954 (globals_of_w32fns): Dynamically load functions required above.
2955
2956 * w32term.c (w32_draw_window_cursor): Send message to reposition
2957 any IME window.
2958
2959 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
2960
2961 * fileio.c: Revert 2009-07-16 changes.
2962 (Vauto_save_include_big_deletions): New variable.
2963 (Fdo_auto_save): Disable auto-save only if
2964 auto-save-include-big-deletions is nil.
2965
2966 2009-07-21 Chong Yidong <cyd@stupidchicken.com>
2967
2968 * xdisp.c (move_it_to): For continued lines ending in a tab, take
2969 the overflowed pixels into account (Bug#3879).
2970
2971 2009-07-21 Ken Raeburn <raeburn@raeburn.org>
2972
2973 * lread.c (load_depth): New variable.
2974 (Fload, load_unwind, init_lread): Set it to the load recursion
2975 depth; set load_in_progress as a simple boolean based on the
2976 current load_depth. (Bug#3892)
2977
2978 2009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
2979
2980 * nsfont.m (ns_has_attribute): Remove.
2981 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
2982
2983 2009-07-18 Juri Linkov <juri@jurta.org>
2984
2985 * process.c (Fset_process_query_on_exit_flag): Mention killing
2986 a buffer in docstring.
2987
2988 2009-07-17 Kenichi Handa <handa@m17n.org>
2989
2990 * casetab.c (shuffle): Fix the logic of setting up the cycle.
2991
2992 2009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2993
2994 * nsfns.m (Fns_set_alpha): Remove function.
2995 (syms_of_nsfns): Don't defsubr it.
2996
2997 * nsterm.m (ns_get_color): Remove incompatible color formats.
2998 (ns_color_to_lisp): Generate #rrggbb color format string.
2999
3000 2009-07-16 Richard Stallman <rms@gnu.org>
3001
3002 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
3003 (Fset_buffer_auto_saved): Handle save_length = -2.
3004
3005 2009-07-16 Chong Yidong <cyd@stupidchicken.com>
3006
3007 * xterm.c (Qx_gtk_map_stock): New var.
3008
3009 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
3010 of calling intern each time.
3011
3012 2009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3013
3014 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
3015 does tiling.
3016
3017 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
3018
3019 2009-07-14 Kenichi Handa <handa@m17n.org>
3020
3021 * font.c (font_vconcat_entity_vectors): New function.
3022 (struct font_sort_data): New member font_driver_preference.
3023 (font_compare): Check font_driver_preference.
3024 (font_sort_entities): The format of the first argument changed.
3025 (font_delete_unmatched): Likewise.
3026 (font_list_entities): The return type changed.
3027 (font_select_entity): The format of the second argument changed.
3028 (font_find_for_lface): Adjuste for the above changes.
3029 Don't suppress the checking of C even if the repertory supports it.
3030 (Flist_fonts): Adjust for the above changes.
3031
3032 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
3033 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
3034 Reject a font who has adstyle property that is different from a
3035 langname derived from registry property.
3036 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
3037
3038 2009-07-13 Eli Zaretskii <eliz@gnu.org>
3039
3040 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
3041 local copy of dirfilename.
3042
3043 2009-07-13 Kenichi Handa <handa@m17n.org>
3044
3045 * chartab.c (sub_char_table_ref_and_range): Fix the range check
3046 against max_char.
3047
3048 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
3049 calling XSYMBOL (sym).
3050
3051 2009-07-11 Eli Zaretskii <eliz@gnu.org>
3052
3053 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
3054 New function.
3055 (directory_files_internal) [WINDOWSNT]:
3056 Bind w32-get-true-file-attributes to either t or nil, depending whether
3057 the filesystem of the directory is fast or slow.
3058
3059 * w32.c (logon_network_drive): Don't assume PATH is an absolute
3060 file name.
3061 (is_slow_fs): New function.
3062 (stat): Use it to determine whether to issue more system calls to
3063 get accurate file attributes, when w32-get-true-file-attributes is
3064 `local'.
3065
3066 2009-07-10 Jan Djärv <jan.h.d@swipnet.se>
3067
3068 * xfns.c (Fx_select_font): Remember last font selected in
3069 x_last_font_name and use that the next time. Also try the frame
3070 parameter font-parameter as default to the font dialog.
3071
3072 2009-07-10 Kenichi Handa <handa@m17n.org>
3073
3074 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
3075
3076 2009-07-09 Eli Zaretskii <eliz@gnu.org>
3077
3078 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
3079
3080 * w32.c (stat): Treat UNC file names as residing on remote
3081 drives. (Bug#3542)
3082
3083 2009-07-09 Kenichi Handa <handa@m17n.org>
3084
3085 * fontset.c (fontset_find_font): Fix previous change.
3086
3087 2009-07-08 Michael Albinus <michael.albinus@gmx.de>
3088
3089 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
3090 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
3091 error flag.
3092
3093 2009-07-08 Kenichi Handa <handa@m17n.org>
3094
3095 * fontset.c (fontset_find_font): Fix the logic of handling
3096 charset_matched.
3097 (font_for_char): Delete unused var.
3098 (generate_ascii_font_name): Delete it.
3099
3100 * coding.h (JIS_TO_SJIS2): Fix the code range check.
3101
3102 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
3103 (encode_coding_sjis): Fix the code range check.
3104
3105 2009-07-07 Chong Yidong <cyd@stupidchicken.com>
3106
3107 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
3108 (Fexpand_file_name): Copy string data properly (Bug#3772).
3109
3110 2009-07-07 Jan Djärv <jan.h.d@swipnet.se>
3111
3112 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
3113 first MapNotify.
3114
3115 2009-07-07 Kenichi Handa <handa@m17n.org>
3116
3117 * character.h (unibyte_has_multibyte_table): Delete extern.
3118 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
3119
3120 * charset.c (Fset_charset_priority): Update charset_unibyte.
3121 (syms_of_charset): Initialize charset_unibyte.
3122
3123 * character.c (unibyte_has_multibyte_table): Delete it.
3124 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
3125 charset_unibyte.
3126 (multibyte_char_to_unibyte_safe): Likewise.
3127 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
3128
3129 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
3130 (x_produce_glyphs): Likewise.
3131
3132 * .gdbinit (xcharset): Fix the treating $arg0.
3133
3134 2009-07-04 Eli Zaretskii <eliz@gnu.org>
3135
3136 Emulation of `getloadavg' on MS-Windows.
3137 * w32.c: Include float.h
3138 (g_b_init_get_native_system_info, g_b_init_get_system_times)
3139 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
3140 (get_native_system_info, get_system_times): New functions.
3141 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
3142 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
3143 (globals_of_w32): Initialize g_b_init_get_native_system_info,
3144 g_b_init_get_system_times, and num_of_processors.
3145
3146 2009-07-03 Jason Rumney <jasonr@gnu.org>
3147
3148 * w32term.c (w32_initialize): Use standard types.
3149
3150 2009-07-03 Eli Zaretskii <eliz@gnu.org>
3151
3152 * dired.c (Ffile_attributes): Decode user and group names by the
3153 locale's encoding. (Bug#3443)
3154
3155 2009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
3156
3157 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
3158 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
3159
3160 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
3161
3162 * term.c (init_tty): Remove spurious #ifdef.
3163
3164 * m/mips.h: Mention this file is also used for netbsd.
3165 * m/pmax.h: Remove file.
3166
3167 2009-07-03 Jan Djärv <jan.h.d@swipnet.se>
3168
3169 * xterm.h (struct x_display_info): Add invisible_cursor.
3170 (struct x_output): Add current_cursor.
3171
3172 * xterm.c (XTtoggle_invisible_pointer): New function.
3173 (x_define_frame_cursor): Don't define cursor if invisible or the
3174 same as before. Set current_cursor.
3175 (x_create_terminal): Set toggle_invisible_pointer_hook.
3176
3177 * xfns.c (make_invisible_cursor): New function.
3178 (x_set_mouse_color): Call make_invisible_cursor.
3179 Set current_cursor.
3180 (x_window): Set current_cursor.
3181
3182 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
3183
3184 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
3185 inserting a character.
3186 (read_avail_input): Call frame_make_pointer_visible.
3187
3188 * frame.c (Vmake_pointer_invisible): New variable.
3189 (frame_make_pointer_invisible, frame_make_pointer_visible):
3190 New functions.
3191 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
3192
3193 * frame.h: Declare frame_make_pointer_invisible and
3194 frame_make_pointer_visible.
3195 (struct frame): Add pointer_invisible.
3196
3197 2009-07-02 Jan Djärv <jan.h.d@swipnet.se>
3198
3199 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
3200 frame isn't visible.
3201 (xg_frame_resized): If width/height is -1, get size of window
3202 from X server.
3203
3204 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
3205 for MapNotify.
3206
3207 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
3208 here or call change_frame_size. Just call flush_and_sync.
3209 (flush_and_sync): Reintroduce.
3210
3211 2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
3212
3213 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
3214
3215 * xterm.c (x_handle_net_wm_state): Also look for sticky.
3216 (x_term_init): Initialize Xatom_net_wm_state_sticky.
3217
3218 * frame.h: Declare Qsticky.
3219
3220 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
3221
3222 * nsfns.m (ns_frame_parm_handlers): Ditto.
3223
3224 * frame.c: Declare Qsticky.
3225 (frame_parms): Add sticky.
3226
3227 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
3228
3229 * xterm.h: Declare x_set_sticky.
3230
3231 * xterm.c (x_set_sticky): New function.
3232
3233 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
3234 (xg_tool_bar_menu_proxy): Attach enter/leave events to
3235 xg_tool_bar_proxy_help_callback.
3236
3237 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
3238
3239 * frame.c: Qmaximized is new.
3240 (x_set_frame_parameters): Do not handle fullscreen specially.
3241 Only set width and height if explicitly set.
3242 (x_set_fullscreen): Handle Qmaximized.
3243 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
3244 (syms_of_frame): Initialize Qmaximized.
3245
3246 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
3247 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3248
3249 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
3250 for Expose event. Add call to x_check_fullscreen for MapNotify event.
3251 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3252 set gravity to NorthWestGravity when USE_GTK.
3253 (set_wm_state): New function.
3254 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3255 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
3256 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
3257 or the case when no window manager is running. That means remove calls
3258 to x_real_positions and x_fullscreen_adjust.
3259
3260 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
3261 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
3262 flush_and_sync.
3263 (xg_height_changed): New function.
3264 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
3265 and gtk_window_set_policy. Set frame gravity after parsing the
3266 geometry string.
3267 (xg_update_frame_menubar, free_frame_menubar)
3268 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
3269 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
3270 Remove calls to xg_frame_set_char_size.
3271
3272 2009-07-01 Kenichi Handa <handa@m17n.org>
3273
3274 * keyboard.c (decode_keyboard_code): New function.
3275 (tty_read_avail_input): Decode the input bytes if necessary.
3276
3277 * coding.c (setup_coding_system):
3278 Initialize coding->carryover_bytes to 0.
3279 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
3280 use Qno_conversion.
3281
3282 2009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3283
3284 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
3285
3286 2009-06-30 Chong Yidong <cyd@stupidchicken.com>
3287
3288 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
3289
3290 2009-06-30 Jason Rumney <jasonr@gnu.org>
3291
3292 * w32term.c (w32_initialize): Use GetModuleHandle for library that
3293 is already loaded.
3294 Set user model ID if supported (bug#1849).
3295
3296 2009-06-29 Jim Meyering <meyering@redhat.com>
3297
3298 Remove useless if-before-xfree test.
3299 * nsfont.m (nsfont_close): Remove useless test.
3300 * term.c (delete_tty): Likewise.
3301 * w32.c (system_process_attributes): Likewise.
3302 * w32font.c (w32font_close): Likewise.
3303 * xfaces.c (x_free_gc): Likewise.
3304 * xselect.c (buffer): Likewise.
3305
3306 2009-06-28 Andreas Schwab <schwab@linux-m68k.org>
3307
3308 * process.c (send_process): Keep decoded string in a local
3309 variable and protect it from GC. (Bug#3521)
3310
3311 2009-06-28 Eli Zaretskii <eliz@gnu.org>
3312
3313 * term.c (create_tty_output) [MSDOS]: #ifdef away.
3314 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
3315
3316 2009-06-28 Chong Yidong <cyd@stupidchicken.com>
3317
3318 * xdisp.c (start_display, handle_face_prop)
3319 (move_it_vertically_backward, cursor_row_fully_visible_p)
3320 (redisplay_window, try_window_id, produce_image_glyph):
3321 Delete some #ifdef-ed out code chunks that are now obsolete.
3322
3323 * xterm.c (x_update_window_begin, x_new_focus_frame)
3324 (x_scroll_bar_handle_click, handle_one_xevent)
3325 (handle_one_xevent, XTread_socket, x_focus_on_frame)
3326 (x_make_frame_visible, x_make_frame_invisible)
3327 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
3328 code chunks that are now obsolete.
3329
3330 2009-06-28 Michael Albinus <michael.albinus@gmx.de>
3331
3332 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
3333 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
3334 for hours, when optimzation is enabled.
3335 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
3336 (xd_read_message): Make them static.
3337
3338 2009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
3339
3340 * term.c (turn_on_face): Allow simultaneously bold and dim
3341 terminal faces (Bug#3530).
3342
3343 2009-06-27 Chong Yidong <cyd@stupidchicken.com>
3344
3345 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
3346
3347 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
3348 truncation glyphs (Bug#3686).
3349
3350 2009-06-27 Glenn Morris <rgm@gnu.org>
3351
3352 * m/pmax.h: Restore file, with only netbsd portions.
3353
3354 2009-06-26 David Reitter <david.reitter@gmail.com>
3355
3356 * nsterm.m (keydown): Avoid infinite loop.
3357
3358 2009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
3359
3360 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
3361 the arg FORCE_SYMBOL.
3362
3363 2009-06-25 Kenichi Handa <handa@m17n.org>
3364
3365 * fontset.c (fontset_find_font): When a usable rfont_def is found
3366 in a fallback font-group, make it the first element of the group.
3367
3368 2009-06-24 Chong Yidong <cyd@stupidchicken.com>
3369
3370 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
3371
3372 2009-06-24 Kenichi Handa <handa@m17n.org>
3373
3374 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
3375 set for C.
3376 (fontset_font): Record the availability of a font for C both in
3377 the realized fontsets of the current one and the default one.
3378
3379 2009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
3380
3381 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
3382 conditional, it is always defined on AIX.
3383
3384 2009-06-23 Miles Bader <miles@gnu.org>
3385
3386 * window.c (Vrecenter_redisplay): New variable.
3387 (syms_of_window): Initialize it.
3388 (Qtty): New extern declaration.
3389 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
3390
3391 2009-06-23 Jim Meyering <meyering@redhat.com>
3392
3393 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
3394 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
3395 pointer dereferences are guaranteed to be valid.
3396
3397 2009-06-23 Kenichi Handa <handa@m17n.org>
3398
3399 * emacs.c (main): Call init_font ().
3400
3401 * font.h (Vfont_log): Extern it.
3402 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
3403
3404 * font.c (font_sort_entities, font_list_entities)
3405 (font_matching_entity, font_open_entity)
3406 (font_close_object): Change font_add_log to FONT_ADD_LOG.
3407 (Vfont_log): Delete static.
3408 (font_log_env_checked): Delete this variable.
3409 (font_add_log): Don't check font_log_env_checked.
3410 (font_deferred_log): Check Vfont_log.
3411 (init_font): New function.
3412
3413 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
3414
3415 * w32font.c: Change font_add_log to FONT_ADD_LOG.
3416
3417 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
3418
3419 * xfont.c: Change font_add_log to FONT_ADD_LOG.
3420
3421 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
3422 (face_for_char): Don't call font_deferred_log here.
3423 (font_for_char): Likewise.
3424
3425 2009-06-22 Chong Yidong <cyd@stupidchicken.com>
3426
3427 * w32term.c (x_draw_glyph_string): Use the glyph string's width
3428 rather than its background_width for drawing the overline and
3429 underline (Bug#489).
3430
3431 * xterm.c (x_draw_glyph_string): Use the glyph string's width
3432 rather than its background_width for drawing the overline and
3433 underline (Bug#489).
3434 (xg_default_icon_file): New variable.
3435 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
3436 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
3437
3438 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
3439 (load_overlay_strings): Remove externs.
3440 (fast_find_position): Function deleted.
3441 (mouse_face_from_buffer_pos): New function, based on
3442 fast_find_position. Correctly handle before-strings,
3443 display-strings, and after-strings (Bug#1220).
3444 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
3445
3446 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
3447
3448 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
3449 (move_it_in_display_line_to, move_it_in_display_line_to)
3450 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
3451
3452 2009-06-21 Chong Yidong <cyd@stupidchicken.com>
3453
3454 * Branch for 23.1.
3455
3456 2009-06-21 Jason Rumney <jasonr@gnu.org>
3457
3458 * w32term.c (keyboard_codepage): New static variable.
3459 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
3460 (w32_read_socket) [WM_CHAR]: Use it to decode character
3461 input (bug#3237).
3462 (w32_initialize): Initialize it.
3463 (codepage_for_locale): New function.
3464
3465 2009-06-20 Ken Raeburn <raeburn@raeburn.org>
3466
3467 * process.c (status_message): Pass Faset index argument as a lisp
3468 object, so as to work with USE_LISP_UNION_TYPE.
3469
3470 2009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3471
3472 * coding.c (Ffind_coding_systems_region_internal):
3473 Cache checked characters.
3474
3475 2009-06-18 Kenichi Handa <handa@m17n.org>
3476
3477 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
3478
3479 2009-06-18 Andreas Schwab <aschwab@redhat.com>
3480
3481 * xdisp.c (redisplay_internal): Check that the frame is still
3482 live after redisplay of its windows.
3483 (redisplay_windows): Check that the window is still live.
3484
3485 2009-06-17 Andreas Schwab <schwab@linux-m68k.org>
3486
3487 * coding.c (detect_coding_utf_16): Fix previous change.
3488
3489 2009-06-16 Kenichi Handa <handa@m17n.org>
3490
3491 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
3492 UTF-16 by checking the dispersion of Eth and Oth bytes.
3493
3494 2009-06-15 Andreas Schwab <schwab@linux-m68k.org>
3495
3496 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
3497
3498 2009-06-15 Kenichi Handa <handa@m17n.org>
3499
3500 * process.c (status_message): Fix previous change. Be sure to
3501 decode a localized string.
3502
3503 2009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3504
3505 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
3506 add comment explaining why.
3507
3508 2009-06-14 Sidney Markowitz <sidney@sidney.com>
3509
3510 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
3511
3512 2009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
3513
3514 * nsfont.m (ns_attribute_value): Remove.
3515 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
3516 (ns_has_attribute): Shrink the normal range.
3517 (ns_findfonts): Don't worry about requested spec in determining
3518 need for synthItal.
3519 (ns_get_covering_families): Retain scriptToFamilies.
3520
3521 2009-06-14 Seiji Zenitani <zenitani@mac.com>
3522
3523 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
3524
3525 2009-06-11 Kenichi Handa <handa@m17n.org>
3526
3527 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3528 overhang for the static composition case.
3529
3530 2009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3531
3532 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3533 overhang for the automatic composition case.
3534
3535 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
3536 composition case.
3537
3538 2009-06-10 Chong Yidong <cyd@stupidchicken.com>
3539
3540 * xdisp.c (get_next_display_element): When handling wrap-prefix
3541 and line-prefix, treat \n as a control character (bug#3502).
3542
3543 2009-06-10 Kenichi Handa <handa@m17n.org>
3544
3545 * font.c (font_parse_family_registry): Fix for one-char foundry.
3546 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
3547
3548 2009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
3549
3550 * process.c (status_message): Fix handling of multibyte signal
3551 string (Bug#3499).
3552
3553 2009-06-09 Jim Meyering <meyering@redhat.com>
3554
3555 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
3556 color name is missing.
3557
3558 2009-06-09 Kenichi Handa <handa@m17n.org>
3559
3560 * charset.c (Fmap_charset_chars): In docstring, state clearly that
3561 FROM-CODE and TO-CODE are codepoints of CHARSET.
3562
3563 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3564
3565 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
3566
3567 2009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3568
3569 Changes to support :script/:lang/:otf in NS font driver.
3570 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
3571 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
3572 indicate not part of font driver interface, and change callers.
3573 (ns_get_family): Remove pointless null check.
3574 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
3575 ns_spec_to_descriptor, ns_descriptor_to_entity.
3576 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
3577 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
3578 (ns_spec_to_descriptor, ns_descriptor_to_entity)
3579 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
3580 (ns_get_req_script, ns_accumulate_script_ranges)
3581 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
3582 New functions.
3583 (nsfont_list, nsfont_match): Use ns_findfonts.
3584 (nsfont_open): Use font descriptor instead of traits.
3585 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
3586 (dump_glyphstring): Rename to ns_dump_glyphstring.
3587
3588 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
3589
3590 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
3591
3592 * fontset.c (fontset_from_font): Remove NS-specific code.
3593
3594 2009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
3595
3596 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
3597 nonactive windows.
3598
3599 2009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
3600
3601 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
3602
3603 2009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
3604
3605 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
3606
3607 2009-06-07 Chong Yidong <cyd@stupidchicken.com>
3608
3609 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
3610 account for the overflowing of newlines into the last glyph on the
3611 display line (Bug#3482).
3612
3613 2009-06-05 David Reitter <david.reitter@gmail.com>
3614
3615 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
3616 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
3617 Fns_selection_exists_p, Fns_selection_owner_p.
3618
3619 2009-06-03 Jason Rumney <jasonr@gnu.org>
3620
3621 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
3622 available. (Bug#3379)
3623
3624 2009-05-29 Kenichi Handa <handa@m17n.org>
3625
3626 * coding.c (get_translation_table):
3627 Check Venable_character_translation.
3628
3629 2009-05-26 David Reitter <david.reitter@gmail.com>
3630
3631 * nsterm.m (ns_raise_frame): Only raise frame if visible.
3632 (x_make_frame_visible): Move frame to front rather than calling
3633 ns_raise_frame().
3634 (keyDown:): Do not swallow events that aren't re-sent if frame
3635 isn't key window.
3636 (drawRect:): Do not set visibility/iconified flags because
3637 drawRect may be called by NSView even if the frame is hidden.
3638
3639 * nsfns.m (Fx_create_frame): Follow other ports in
3640 determining visibility; default to t. Ensure async_visible is set.
3641
3642 2009-05-23 Eli Zaretskii <eliz@gnu.org>
3643
3644 * dired.c (Ffile_attributes): Doc fix.
3645
3646 2009-05-22 Chong Yidong <cyd@stupidchicken.com>
3647
3648 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
3649
3650 2009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
3651
3652 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
3653 and xfont_scratch_props.
3654 (syms_of_xfont): Do it here instead.
3655 (xfont_find_ccl_program): Delete, unused.
3656 (xfont_open): Delete unused var `i'.
3657
3658 2009-05-21 Kenichi Handa <handa@m17n.org>
3659
3660 * fontset.c (Qlatin): Don't make it static.
3661
3662 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
3663 New functions.
3664 (xfont_scripts_cache, xfont_scratch_props): New variables.
3665 (Qlatin, Vscalable_fonts_allowed): Extern it.
3666 (xfont_list_pattern): Argument changed. Callers changed.
3667 Check Vscalable_fonts_allowed. Check the support of a script.
3668 (xfont_list): Don't reject a font spec with :script property.
3669 (xfont_has_char): Fix setting of encoding.
3670 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
3671 xfont_scratch_props.
3672
3673 2009-05-19 Kenichi Handa <handa@m17n.org>
3674
3675 * font.c (font_sort_entities): Rename from font_sort_entites.
3676 Callers changed.
3677
3678 2009-05-18 Kenichi Handa <handa@m17n.org>
3679
3680 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
3681
3682 2009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
3683
3684 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
3685 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
3686
3687 2009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3688
3689 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
3690 (x_delete_terminal): Dissociate resource database from display and
3691 then call XrmDestroyDatabase before closing display.
3692
3693 2009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
3694
3695 * nsterm.m (ns_read_socket): Remove unused variable.
3696 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
3697 whether selected frame is viable before raising it (based on patch
3698 by David Reitter), and improve commentary.
3699 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
3700
3701 2009-05-15 Kenichi Handa <handa@m17n.org>
3702
3703 * font.c (Ffont_spec): Check arguments.
3704
3705 2009-05-14 Chong Yidong <cyd@stupidchicken.com>
3706
3707 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
3708 weight when testing attributes (Bug#3282).
3709
3710 2009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3711
3712 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
3713 what we expect to get in the next ConfigureNotify event.
3714
3715 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
3716 before Xft one (Bug#1696).
3717
3718 2009-05-07 David Reitter <david.reitter@gmail.com>
3719
3720 * nsfns.m (Fx_display_planes): Compute bitplanes using
3721 NSBitsPerPixelFromDepth (Bug#3207).
3722
3723 2009-05-10 Chong Yidong <cyd@stupidchicken.com>
3724
3725 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
3726
3727 2009-05-10 Ulrich Mueller <ulm@gentoo.org>
3728
3729 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
3730
3731 2009-05-07 David Reitter <david.reitter@gmail.com>
3732
3733 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
3734 Respect mouse face background.
3735
3736 2009-05-07 David Reitter <david.reitter@gmail.com>
3737
3738 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
3739 Mouse movement/highlight: bracket drawing operations
3740 in ns_update_begin and ns_update_end.
3741
3742 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3743
3744 * nsfns.m (ns_get_screen): Rewrite.
3745 Don't presume selected-frame is of type `ns'.
3746
3747 * font.c (font_update_drivers): Sanity fallback to avoid disabling
3748 all drivers.
3749
3750 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
3751
3752 2009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3753
3754 * keyboard.h (add_user_signal): Fix typo in extern.
3755
3756 * lisp.h (add_user_signal): Remove extern.
3757
3758 * unexelf.c (unexec): Consider a section to precede the .bss section
3759 if its addresses overlap that of .bss.
3760 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
3761 instead of dumping process.
3762
3763 2009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3764
3765 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
3766
3767 2009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3768
3769 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
3770
3771 2009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3772
3773 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
3774 any statements.
3775
3776 2009-05-02 Andreas Schwab <schwab@linux-m68k.org>
3777
3778 * process.c (read_process_output): Make sure the current buffer is
3779 always restored.
3780
3781 * coding.c (record_conversion_result): Don't modify
3782 Vlast_code_conversion_error for successful result.
3783 (alloc_destination): Don't clobber conversion result. (Bug#1650)
3784
3785 2009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
3786
3787 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
3788 (load_charset_map): Remove unnecessary code.
3789
3790 2009-04-30 David Reitter <david.reitter@gmail.com>
3791
3792 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
3793 through f24.
3794
3795 2009-04-30 Chong Yidong <cyd@stupidchicken.com>
3796
3797 * xfaces.c (face_at_buffer_position): New arg base_face_id.
3798
3799 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
3800 face_at_buffer_position.
3801 (face_before_or_after_it_pos, get_next_display_element)
3802 (note_mouse_highlight): Update face_at_buffer_position call.
3803
3804 * term.c (term_mouse_highlight):
3805 * msdos.c (IT_note_mouse_highlight):
3806 * fontset.c (Finternal_char_font):
3807 * font.c (font_at, font_range): Update face_at_buffer_position call.
3808
3809 * dispextern.h (face_at_buffer_position): Update prototype.
3810
3811 2009-04-30 Kenichi Handa <handa@m17n.org>
3812
3813 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
3814
3815 2009-04-29 Andreas Schwab <schwab@linux-m68k.org>
3816
3817 * callproc.c (Fcall_process): Fix GC protection. Make sure
3818 current buffer is always restored.
3819
3820 2009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3821
3822 * atimer.c (init_atimer): Also clear stopped_atimers.
3823
3824 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
3825
3826 * process.c (create_process): Clean up merger residues of
3827 2008-07-17 change.
3828
3829 2009-04-29 Ulrich Mueller <ulm@gentoo.org>
3830
3831 * lread.c (Vread_circle): New variable.
3832 (read1): Disable recursive read if Vread_circle is nil.
3833
3834 2009-04-29 Kenichi Handa <handa@m17n.org>
3835
3836 * fontset.h (set_default_ascii_font): Delete extern.
3837
3838 * fontset.c (set_default_ascii_font): Delete this unused function.
3839
3840 * frame.c (x_set_font): When ARG is a font-object, check if the
3841 font-object matches with the ASCII font-spec of the frame's
3842 fontset. If not, create a new fontset for the frame. (Bug #3075)
3843
3844 2009-04-28 Andreas Schwab <schwab@linux-m68k.org>
3845
3846 * fns.c (Flocale_info): Protect vector from GC during decoding.
3847
3848 * process.c (Fstart_process): Protect argv strings from GC during
3849 encoding.
3850
3851 2009-04-27 Andreas Schwab <schwab@linux-m68k.org>
3852
3853 * sysdep.c: Include <ctype.h>.
3854
3855 2009-04-27 David Reitter <david.reitter@gmail.com>
3856
3857 * nsfont.m (nsfont_open): Remove unused variable shrink.
3858 Remove commented-out code.
3859
3860 2009-04-26 Johan Bockgård <bojohan@gnu.org>
3861
3862 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
3863
3864 2009-04-25 Jason Rumney <jasonr@gnu.org>
3865
3866 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
3867
3868 2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3869
3870 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
3871 Swap bytes in short integer if fringe bitmap width > 8.
3872
3873 2009-04-23 Kenichi Handa <handa@m17n.org>
3874
3875 * xfaces.c (Fx_list_fonts): If a font size is specified in
3876 PATTERN, set it in returned scalable fonts.
3877
3878 2009-04-22 Chong Yidong <cyd@stupidchicken.com>
3879
3880 * keyboard.c (Fset_input_meta_mode): Doc fix.
3881
3882 * dispnew.c (Fsend_string_to_terminal): Doc fix.
3883
3884 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
3885
3886 * coding.c (Fterminal_coding_system): Doc fix.
3887
3888 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
3889 (Fx_display_pixel_height, Fx_display_planes)
3890 (Fx_display_color_cells, Fx_server_max_request_size)
3891 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
3892 (Fx_display_mm_height, Fx_display_mm_width)
3893 (Fx_display_backing_store, Fx_display_visual_class)
3894 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
3895 Doc fixes, replacing "terminal id" with "terminal object".
3896 (check_x_display_info): Handle terminal objects instead of
3897 terminal ids.
3898
3899 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
3900 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
3901 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
3902 Doc fixes, replacing "terminal id" with "terminal object".
3903
3904 2009-04-21 Kenichi Handa <handa@m17n.org>
3905
3906 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
3907 (font_score): Check AVGWIDTH too.
3908
3909 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
3910 worst case.
3911 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
3912 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
3913
3914 2009-04-19 Jason Rumney <jasonr@gnu.org>
3915
3916 The following changes fix Bug#3005 for wide glyphs on each platform,
3917 without reintroducing Bug#1258 for stretch glyphs.
3918
3919 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
3920 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
3921 get_phys_cursor_geometry.
3922
3923 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
3924 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
3925 using get_phys_cursor_geometry.
3926
3927 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
3928 correctly calculated.
3929
3930 2009-04-19 Jan Djärv <jan.h.d@swipnet.se>
3931
3932 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
3933 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
3934 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
3935 is deprecated.
3936
3937 2009-04-18 Andreas Schwab <schwab@linux-m68k.org>
3938
3939 * font.c (font_put_frame_data): Use xfree instead of free.
3940
3941 2009-04-17 Juanma Barranquero <lekktu@gmail.com>
3942
3943 * w32font.c (Qja, Qko): Remove declarations.
3944 (syms_of_w32font): Don't DEFSYM them.
3945
3946 2009-04-17 Chong Yidong <cyd@stupidchicken.com>
3947
3948 * font.c (Qja, Qko): Move definitions here from ftfont.c.
3949
3950 * font.h (Qja, Qko): Extern them.
3951
3952 * ftfont.c (Qja, Qko): Remove declarations.
3953
3954 * xfont.c (Qja, Qko): Remove declarations.
3955
3956 2009-04-17 Kenichi Handa <handa@m17n.org>
3957
3958 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
3959 string from a vector to handle Latin-1 characters correctly.
3960
3961 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
3962 entity even if the cache hits.
3963
3964 2009-04-16 Andreas Schwab <schwab@linux-m68k.org>
3965
3966 * search.c (boyer_moore): Use zero as marker value for a possible
3967 match instead of depending on overflow behavior. (Bug#2844)
3968
3969 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
3970 * lisp.h: Adjust prototypes.
3971
3972 2009-04-16 Chong Yidong <cyd@stupidchicken.com>
3973
3974 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
3975 change (Bug#3003).
3976
3977 2009-04-16 Kenichi Handa <handa@m17n.org>
3978
3979 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
3980
3981 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
3982 adstyle.
3983
3984 * ftfont.c (Qja, Qko): Don't make them static.
3985 (enum ftfont_cache_for): New enum.
3986 (fc_charset_table): Undo the previous change.
3987 (ftfont_get_latin1_charset): Delete it.
3988 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
3989 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
3990 non-scarable font, try to get AVERAGE_WIDTH.
3991 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
3992 Change ft_face_cache from a list of a hash-table. Don't check
3993 `ja' and `ko' adstyle here.
3994 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
3995 FTFONT_CACHE_FOR_CHARET.
3996 (ftfont_get_charset): Undo the previous change.
3997 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
3998 (ftfont_close): Likewise.
3999 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
4000
4001 * font.c (font_sort_entites): Change the meaning of the arg
4002 BEST-ONLY. Don't optimize for VEC of lenght 1.
4003 (font_select_entity): Just return the value of font_sort_entites.
4004
4005 * xfaces.c (merge_face_vectors): Reflect font properties in
4006 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
4007 font_clear_prop if a face attribute doesn't change.
4008
4009 * charset.h (charset_ksc5601): Extern it.
4010
4011 * charset.c (charset_ksc5601): New variable.
4012 (Fdefine_charset_internal): Set charset_ksc5601.
4013 (init_charset_once): Initialize charset_ksc5601 to -1.
4014
4015 2009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4016
4017 * fileio.c (history_delete_duplicates): Remove unused declaration.
4018
4019 * callint.c (history_delete_duplicates): New declaration.
4020 (Fcall_interactively): Remove command history duplicates when
4021 history_delete_duplicates is true.
4022
4023 2009-04-14 Eli Zaretskii <eliz@gnu.org>
4024
4025 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
4026
4027 2009-04-14 Kenichi Handa <handa@m17n.org>
4028
4029 * font.c (Ffont_info): Fix docstring. Fix the second element of
4030 the returned value (bug#2949).
4031
4032 2009-04-14 Chong Yidong <cyd@stupidchicken.com>
4033
4034 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
4035
4036 2009-04-14 Kenichi Handa <handa@m17n.org>
4037
4038 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
4039 encoding charset is ascii_compatible.
4040
4041 * charset.c (Fdefine_charset_internal): Make charset
4042 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
4043 code_offset is 0, and covers all ASCII characters.
4044
4045 2009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4046
4047 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
4048 (ns_string_to_pasteboard_internal):
4049 * nsmenu.m (process_dialog):
4050 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
4051 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
4052 * lisp.h (Fx_load_color_file): Declare.
4053
4054 2009-04-13 Kenichi Handa <handa@m17n.org>
4055
4056 * font.c (font_delete_unmatched): Preserve the order of list elements.
4057 (font_select_entity): Suppress the code to optimize for the same
4058 kind of fonts.
4059 (font_load_for_lface): Get a font that supports at least ASCII
4060 characters.
4061
4062 * ftfont.c (Qja, Qko): New variables.
4063 (fc_charset_table): Delete uniquifier data for iso8859-1.
4064 (ftfont_get_latin1_charset): New function.
4065 (get_adstyle_property): New function.
4066 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
4067 bitmap fonts.
4068 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
4069 Delete iso-8859-1 range from the charset of fonts whose adstyle is
4070 `ko' or `ja'.
4071 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
4072 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
4073 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
4074 property.
4075 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
4076 (syms_of_ftfont): DEFSYM Qja and Qko.
4077
4078 2009-04-09 Kenichi Handa <handa@m17n.org>
4079
4080 * charset.c (map_charset_chars): For a charset of `superset'
4081 method, fix calculation of code range.
4082
4083 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
4084 from the list of extra properties.
4085 (font_clear_prop): Be sure to delete `:name' font property.
4086
4087 2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4088
4089 * dispnew.c (redraw_overlapping_rows): Fix detection of
4090 overlapping for topmost and bottommost rows.
4091
4092 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
4093
4094 2009-04-06 Jason Rumney <jasonr@gnu.org>
4095
4096 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
4097
4098 2009-04-06 Kenichi Handa <handa@m17n.org>
4099
4100 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
4101
4102 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
4103
4104 2009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4105
4106 * ftfont.c (ftfont_open): Fix checking of the return value of
4107 FT_Load_Char. Fix setting font->underline_thickness.
4108
4109 2009-04-04 Chong Yidong <cyd@stupidchicken.com>
4110
4111 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
4112 (Fterminal_parameters, Fterminal_parameter)
4113 (Fset_terminal_parameter): In doc string, refer to terminal
4114 objects rather than terminal ids.
4115
4116 2009-04-04 Eli Zaretskii <eliz@gnu.org>
4117
4118 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
4119 ret_lim_data. (Bug#2867)
4120
4121 2009-04-03 Chong Yidong <cyd@stupidchicken.com>
4122
4123 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
4124 so they don't get wider than the window, matching 2006-01-23
4125 change to the partner function in xdisp.c (Bug#2800).
4126
4127 2009-04-03 Kenichi Handa <handa@m17n.org>
4128
4129 * print.c (print_object): Make each lowest sub_char_table start a
4130 new line (Bug#2866).
4131
4132 2009-04-02 Kenichi Handa <handa@m17n.org>
4133
4134 * fontset.c (fontset_font): Record no-font when a fontset
4135 explicitly tells not to try another font-specs.
4136
4137 2009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
4138
4139 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
4140
4141 2009-03-30 Kenichi Handa <handa@m17n.org>
4142
4143 * fontset.c (fontset_from_font): Specify only registry in a
4144 font-spec for all characters supported by that registry.
4145
4146 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
4147 even if HAVE_M17N_FLT is not defined.
4148
4149 2009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
4150
4151 * ftfont.c: Conditionalize prototyping and use of
4152 ftfont_variation_glyphs.
4153
4154 2009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
4155
4156 * frame.c (delete_frame): Work around compiler bug.
4157
4158 * editfns.c (general_insert_function): Adjust to insdel.c changes.
4159 * insdel.c (prepare_to_modify_buffer, signal_before_change):
4160 Some more EMACS_INT.
4161 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
4162
4163 * xdisp.c (dump_glyph): Fix typo.
4164
4165 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
4166 (adjust_markers_gap_motion, adjust_markers_for_delete)
4167 (adjust_markers_for_insert, adjust_point)
4168 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
4169 (make_gap, copy_text, count_size_as_multibyte, insert)
4170 (insert_and_inherit, insert_before_markers)
4171 (insert_before_markers_and_inherit, insert_1)
4172 (count_combining_before, count_combining_after, insert_1_both)
4173 (insert_from_string, insert_from_string_before_markers)
4174 (insert_from_string_1, insert_from_gap, insert_from_buffer)
4175 (insert_from_buffer_1, adjust_after_replace)
4176 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
4177 (replace_range_2, del_range, del_range_1, del_range_byte)
4178 (del_range_both, del_range_2, modify_region)
4179 (prepare_to_modify_buffer, signal_before_change)
4180 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
4181 for buffer positions and sizes.
4182 * lisp.h: Adjust prototypes accordingly.
4183
4184 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
4185 (non_regular_inserted, non_regular_nbytes, read_non_regular)
4186 (Finsert_file_contents): Use EMACS_INT for buffer positions.
4187
4188 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
4189
4190 2009-03-27 Jan Djärv <jan.h.d@swipnet.se>
4191
4192 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
4193 lines and columns so we keep the same pixel height and width.
4194
4195 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
4196 the property _NET_WM_STATE has changed.
4197 (x_handle_net_wm_state): New function to update frame parameter
4198 fullscreen.
4199 (x_term_init): Initialize atoms for _NET_WM_STATE.
4200
4201 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
4202
4203 2009-03-27 Kevin Ryde <user42@zip.com.au>
4204
4205 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
4206 Gpm_GetEvent as an error that justifies closing the filedescriptor.
4207 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
4208 (Fgpm_mouse_stop): Pass that new parameter.
4209 * termhooks.h (close_gpm): Adjust prototype.
4210
4211 2009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
4212
4213 * lisp.h (Fx_focus_frame): Declare.
4214
4215 * callint.c (Fcall_interactively): For '^' just delegate the work to
4216 handle-shift-selection.
4217 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
4218
4219 2009-03-24 Chong Yidong <cyd@stupidchicken.com>
4220
4221 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
4222
4223 * data.c (Qinteractive_form): New variable.
4224 (Finteractive_form): Use it.
4225
4226 * eval.c (Fcommandp): Use Qinteractive_form.
4227
4228 2009-03-24 Jason Rumney <jasonr@gnu.org>
4229
4230 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
4231 Calculate total size precisely. Decode environment variables
4232 before substituting. (Bug#38)
4233
4234 2009-03-24 Kenichi Handa <handa@m17n.org>
4235
4236 * font.c (find_font_encoding): Return Qnil for unsupported
4237 encoding (Bug#2722).
4238
4239 2009-03-23 Jan Djärv <jan.h.d@swipnet.se>
4240
4241 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
4242 that gdpy is set.
4243
4244 2009-03-22 Alan Mackenzie <acm@muc.de>
4245
4246 * callint.c (Finteractive): Clarify the doc string - even
4247 promptless elements need \n separators.
4248
4249 2009-03-22 Jason Rumney <jasonr@gnu.org>
4250
4251 * w32term.c (syms_of_w32term): Doc fix for
4252 x-use-underline-position-properties.
4253
4254 2009-03-21 Eli Zaretskii <eliz@gnu.org>
4255
4256 * w32.c (getpwuid): Change argument type to unsigned.
4257 (struct w32_id): Change type of `rid' member to unsigned.
4258 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
4259 argument ID to unsigned. All callers changed.
4260 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
4261
4262 2009-03-20 Eli Zaretskii <eliz@gnu.org>
4263
4264 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
4265 negative, produce a float value.
4266
4267 * dired.c (make_uid, make_gid): New functions.
4268 (Ffile_attributes): Use them to avoid negative UID and GID.
4269
4270 2009-03-20 Juanma Barranquero <lekktu@gmail.com>
4271
4272 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
4273 (syms_of_keyboard) <command-hook-internal, input-method-function>:
4274 Fix typos in docstrings.
4275
4276 2009-03-19 Kenichi Handa <handa@m17n.org>
4277
4278 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
4279 changed, use font_load_for_lface to get a new font object.
4280 Call free_realized_fontset after handling ASCII font change.
4281
4282 * frame.c (x_set_font): Handle the case that ARG is a cons.
4283
4284 2009-03-19 Glenn Morris <rgm@gnu.org>
4285
4286 * fileio.c (Fsubstitute_in_file_name): Doc fix.
4287
4288 2009-03-19 Chong Yidong <cyd@stupidchicken.com>
4289
4290 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
4291
4292 2009-03-19 Kenichi Handa <handa@m17n.org>
4293
4294 * charset.c (load_charset_map_from_file): When a mapfile can't be
4295 loaded, signal an error.
4296
4297 2009-03-18 Eli Zaretskii <eliz@gnu.org>
4298
4299 * dired.c (Ffile_attributes): Make sure UID and GID are always
4300 positive, even if the value is too large for a positive EMACS_INT.
4301 Doc fix.
4302
4303 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
4304
4305 2009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4306
4307 * xmenu.c (xdialog_show): Move Fredisplay call ...
4308 (Fx_popup_dialog): ... here.
4309
4310 2009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
4311
4312 * dired.c (file_name_completion): Disable the first optimization just
4313 installed, since it is not implemented correctly.
4314
4315 2009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4316
4317 * dired.c (file_name_completion): Check completion-ignored-extensions
4318 only if the entry can affect bestmatch.
4319 Stop the search early, as Ftry_completion already does.
4320
4321 2009-03-17 Chong Yidong <cyd@stupidchicken.com>
4322
4323 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
4324
4325 2009-03-15 Chong Yidong <cyd@stupidchicken.com>
4326
4327 * keyboard.c (parse_menu_item): Don't display remappings as menu
4328 equivalent bindings (Bug#788).
4329
4330 2009-03-15 Jason Rumney <jasonr@gnu.org>
4331
4332 * w32term.h (WM_EMACS_PAINT): New message.
4333 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
4334 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
4335 before passing to lisp thread. (Bug#950)
4336
4337 2009-03-14 David Reitter <david.reitter@gmail.com>
4338
4339 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
4340 variable as it was never reset.
4341 (ns_term_init): Remove initialization of Lisp-settable defaults
4342 and ns_expand_space.
4343 (-setPanelFromDefaultValues): Remove ns_expand_space.
4344 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
4345 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
4346 i.e. no additional spacing, similar to Carbon port.
4347
4348 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
4349 * nsfns.m (ns-popup-prefs-panel): Remove.
4350
4351 2009-03-14 Jan Djärv <jan.h.d@swipnet.se>
4352
4353 * sound.c (alsa_configure): Remove call to deprecated
4354 snd_pcm_sw_params_set_xfer_align.
4355
4356 2009-03-14 Stephen Berman <stephen.berman@gmx.net>
4357
4358 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
4359 after clicking in a detached tool bar.
4360 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
4361
4362 2009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
4363
4364 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
4365 int/Lisp_Object mixup).
4366
4367 2009-03-13 Kenichi Handa <handa@m17n.org>
4368
4369 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
4370 Handle NAME nil and t correctly. Callers changed.
4371 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
4372 (set_fontset_font): Change ARG to a vector. Handle range_list in
4373 ARG correctly.
4374 (Fset_fontset_font): Fix the case that TARGET is both a script
4375 name and charset name. Adjust the arg to set_fontset_font for
4376 the above change.
4377 (fontset_from_font): Fix previous change.
4378 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
4379 entry. If FONTSET is the default fontset, don't set the extra
4380 slot of the returning char-table.
4381
4382 2009-03-12 Juanma Barranquero <lekktu@gmail.com>
4383
4384 * nsfns.m (Fx_close_connection): Doc fix.
4385 (Fns_do_applescript): Reflow docstring.
4386 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
4387 (Fx_display_pixel_width, Fx_display_pixel_height)
4388 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
4389 Fix typos in docstrings.
4390 (Fns_set_alpha): Fix typos in error messages.
4391
4392 2009-03-12 David Reitter <david.reitter@gmail.com>
4393
4394 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
4395 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
4396 were used for such events.
4397
4398 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
4399 (toggleToolbar, performDragOperation, runHelp): Use it.
4400
4401 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
4402 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
4403
4404 2009-03-11 Kenichi Handa <handa@m17n.org>
4405
4406 * font.h (font_open_by_spec): Extern it.
4407
4408 * font.c (font_open_by_spec): New function.
4409 (font_open_by_name): Use font_open_by_spec.
4410
4411 * frame.c (x_set_font): When ARG is a font-object, don't alter the
4412 fontset of the frame.
4413
4414 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
4415 modify the default font of frames that use this fontset.
4416 (num_auto_fontsets): New variable.
4417 (fontset_from_font): Use num_auto_fontsets to decide a fontset
4418 name. Be sure to set FONTSET_ASCII to the correct font name.
4419 (update_auto_fontset_alist): New function.
4420
4421 2009-03-11 Juanma Barranquero <lekktu@gmail.com>
4422
4423 * makefile.w32-in: Update dependencies.
4424
4425 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4426
4427 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
4428
4429 2009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4430
4431 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
4432
4433 2009-03-10 Chong Yidong <cyd@stupidchicken.com>
4434
4435 * lread.c (Feval_buffer): Doc fix.
4436
4437 2009-03-09 Kenichi Handa <handa@m17n.org>
4438
4439 * charset.c (Qfile_name_handler_alist): Extern it.
4440 (load_charset_map_from_file): Temporarily bind
4441 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
4442
4443 2009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
4444
4445 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
4446 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
4447
4448 2009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4449
4450 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
4451 (x_set_window_size): Change back to calculated method of setting
4452 toolbar height under Cocoa. (Bug#2546)
4453 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
4454 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
4455
4456 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
4457
4458 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
4459 accelerator in parens under GNUstep.
4460
4461 2009-03-06 Kenichi Handa <handa@m17n.org>
4462
4463 These changes are to detect incorrect composition sequence without
4464 looking ahead the source. (Bug#2370)
4465
4466 * coding.h: Include "composite.h".
4467 (enum compisition_state): New enum.
4468 (struct compisition_status): New struct.
4469 (struct iso_2022_spec): New member cmp_status.
4470 (struct emacs_mule_spec): New struct.
4471 (struct coding_system): New members ctext_extended_segment_len and
4472 embedded_utf_8. Change the union member
4473 spec.emacs_mule_full_support to spec.emacs_mule.
4474
4475 * coding.c (CODING_ISO_CMP_STATUS): New macro.
4476 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
4477 (MAX_ANNOTATION_LENGTH): Define to 5.
4478 (ADD_COMPOSITION_DATA): New arg nbytes.
4479 (emacs_mule_char): New arg cmp_status.
4480 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
4481 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
4482 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
4483 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
4484 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
4485 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
4486 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
4487 (EMACS_MULE_COMPOSITION_END): New macro.
4488 (emacs_mule_finish_composition): New function.
4489 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
4490 (decode_coding_emacs_mule): Avoid long looking ahead while
4491 handling composition.
4492 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
4493 (ENCODE_COMPOSITION_RULE): New macro.
4494 (finish_composition): New function.
4495 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
4496 (DECODE_COMPOSITION_START): New implementation.
4497 (DECODE_COMPOSITION_END): Likewise.
4498 (STORE_COMPOSITION_RULE): New macro.
4499 (decode_coding_iso_2022): Avoid long looking ahead while handling
4500 composition, CTEXT extended segment, and embedded UTF-8.
4501 (setup_coding_system): For a coding of type iso-2022, reset
4502 CODING_ISO_EXTSEGMENT_LEN (coding) and
4503 CODING_ISO_EMBEDDED_UTF_8 (coding).
4504 (get_translation): Delete arguments last_block, from_nchars,
4505 to_nchars. Callers changed.
4506 (produce_chars): Don't modify charbuf. Adjusted for the change of
4507 get_translation.
4508 (produce_composition): Adjust for the new annotation sequence.
4509 (handle_composition_annotation): Likewise.
4510 (consume_chars): Adjust for the change of get_translation.
4511
4512 2009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
4513
4514 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
4515
4516 2009-03-05 Kenichi Handa <handa@m17n.org>
4517
4518 * font.c (font_select_entity): New function.
4519 (font_find_for_lface): Use font_select_entity to select a font.
4520
4521 * fontset.c (fontset_find_font): If a font found without
4522 restricting to the characters C doesn't support C, try to find a
4523 font with C restriction.
4524
4525 2009-03-04 Nikolaj Schumacher <me@nschum.de>
4526
4527 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
4528
4529 2009-03-04 Jason Rumney <jasonr@gnu.org>
4530
4531 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4532 characters that have already been read. (Bug#2569)
4533
4534 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
4535 Log an error message if check_image_size failed.
4536 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4537 (gs_load): Mention max-image-size in size error message. (Bug#2560)
4538
4539 2009-03-02 Eli Zaretskii <eliz@gnu.org>
4540
4541 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
4542 when decoding process output.
4543
4544 2009-03-01 Richard M Stallman <rms@gnu.org>
4545
4546 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
4547
4548 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
4549
4550 2009-02-28 Eli Zaretskii <eliz@gnu.org>
4551
4552 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
4553 (decode_coding_emacs_mule, decode_coding_iso_2022)
4554 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4555 (decode_coding_raw_text, decode_coding_charset)
4556 (setup_coding_system, decode_eol, decode_coding, consume_chars):
4557 Honor inhibit-eol-conversion. (Bug #2186)
4558
4559 2009-02-28 Jason Rumney <jasonr@gnu.org>
4560
4561 * coding.c (detect_coding_charset): If not checking latin extra,
4562 fail on characters between 0x80 and 0xA0. (Bug#2354)
4563
4564 2009-02-28 Eli Zaretskii <eliz@gnu.org>
4565
4566 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
4567 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
4568
4569 2009-02-27 Glenn Morris <rgm@gnu.org>
4570
4571 * callint.c (Finteractive): Doc fix.
4572
4573 2009-02-27 Kenichi Handa <handa@m17n.org>
4574
4575 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
4576
4577 2009-02-27 Chong Yidong <cyd@stupidchicken.com>
4578
4579 * font.c (font_style_to_value): Set value for unknown symbols to
4580 100 instead of 255.
4581 (weight_table, slant_table, width_table): Treat "unspecified" as
4582 the default value.
4583
4584 2009-02-26 Juanma Barranquero <lekktu@gmail.com>
4585
4586 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
4587
4588 2009-02-25 Juanma Barranquero <lekktu@gmail.com>
4589
4590 * lread.c (Fload): Stop checking Vloads_in_progress and signal
4591 error as soon as a recursive load is detected.
4592
4593 2009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4594
4595 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
4596 before caching.
4597
4598 2009-02-24 Kenichi Handa <handa@m17n.org>
4599
4600 * fontset.c (fontset_find_font): Fix the condition for checking
4601 unavailable font.
4602
4603 2009-02-24 Glenn Morris <rgm@gnu.org>
4604
4605 * xfaces.c (Finternal_set_font_selection_order): Remove leading
4606 whitespace that confuses documentation.
4607
4608 2009-02-23 Miles Bader <miles@gnu.org>
4609
4610 * process.c (Flist_system_processes, Fprocess_attributes)
4611 (syms_of_process): Rename `system-process-attributes' to
4612 `process-attributes'.
4613
4614 2009-02-22 Andreas Schwab <schwab@linux-m68k.org>
4615
4616 * coding.h (struct coding_system): Make safe_charsets a pointer to
4617 unsigned char.
4618 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
4619 being 255.
4620 (SAFE_CHARSET_P): Likewise.
4621 (setup_iso_safe_charsets): Properly setup safe_charsets.
4622 (Fdefine_coding_system_internal): Likewise.
4623 (setup_coding_system): Likewise. Remove unneeded casts.
4624 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
4625 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
4626 unneeded casts.
4627
4628 * insdel.c (del_range_2): Don't modify gap contents when called
4629 from decode_coding_object. (Bug#1809)
4630
4631 2009-02-21 Chong Yidong <cyd@stupidchicken.com>
4632
4633 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
4634 Qfont_object.
4635 (Ftype_of): Recognize font objects.
4636
4637 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
4638
4639 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
4640 moved to data.c.
4641
4642 2009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4643
4644 * nsterm.m (x_make_frame_invisible): Unset async_visible,
4645 async_iconified. Based on a patch by Christian Lynbech
4646 <christian.lynbech@tieto.com>.
4647 (EmacsView-windowDidMiniaturize:): Unset async_visible.
4648
4649 2009-02-20 Glenn Morris <rgm@gnu.org>
4650
4651 * syntax.c (Fskip_chars_forward): Fix doc typo.
4652
4653 2009-02-20 Chong Yidong <cyd@stupidchicken.com>
4654
4655 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
4656
4657 2009-02-19 Chong Yidong <cyd@stupidchicken.com>
4658
4659 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
4660
4661 2009-02-19 Kenichi Handa <handa@m17n.org>
4662
4663 * coding.c (detect_coding): Preserve coding->mode.
4664 Don't overflow coding->carryover. (Bug#2370)
4665
4666 2009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
4667
4668 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
4669
4670 2009-02-18 Kenichi Handa <handa@m17n.org>
4671
4672 * font.c (font_check_otf_features): Fix handling of `nil' element.
4673 (Ffont_spec): Describe :lang and :otf in the docstring.
4674
4675 2009-02-16 Andreas Schwab <schwab@suse.de>
4676
4677 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
4678 string.
4679
4680 2009-02-16 Kenichi Handa <handa@m17n.org>
4681
4682 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
4683 (Bug#1723)
4684
4685 2009-02-14 Chong Yidong <cyd@stupidchicken.com>
4686
4687 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
4688
4689 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
4690 (handle_line_prefix): Suppress wrapping of wrap prefixes.
4691
4692 2009-02-14 Eli Zaretskii <eliz@gnu.org>
4693
4694 * msdos.c (MAX_SCREEN_BUF): New macro.
4695 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
4696 Encode the entire run of glyphs sharing the same face, instead of
4697 doing that one glyph at a time (fixes a bug with displaying
4698 double-size characters).
4699
4700 2009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
4701
4702 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
4703
4704 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
4705 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
4706 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
4707
4708 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
4709 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
4710
4711 2009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
4712
4713 * keyboard.c (adjust_point_for_property): Allow stopping between two
4714 invisible areas.
4715
4716 2009-02-12 Jason Rumney <jasonr@gnu.org>
4717
4718 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
4719 (add_font_entity_to_list): Call check_face_name even when family
4720 is unspecified.
4721
4722 * w32term.c (x_display_pixel_height, x_display_pixel_width):
4723 Release DC when finished. Use NULL window to refer to desktop.
4724 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
4725
4726 * w32font.c (add_font_entity_to_list): Fix check for substituted
4727 raster fonts. (Bug#2219)
4728
4729 2009-02-12 Kenichi Handa <handa@m17n.org>
4730
4731 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
4732 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
4733 (autocmp_chars): Use fast_looking_at. Don't compose more
4734 characters than MAX_COMPOSITION_COMPONENTS.
4735 (find_automatic_composition): While looking forward and backward,
4736 check static composition. Fix where to stop looking forward.
4737 (composition_adjust_point): Fix checking of static composition.
4738 (Fcomposition_get_gstring): Pay attention to
4739 MAX_COMPOSITION_COMPONENTS.
4740
4741 * lisp.h (fast_looking_at): Extern it.
4742
4743 * search.c (fast_looking_at): New function.
4744
4745 * term.c (encode_terminal_code): Adjust for the change of
4746 <struct glyph>.u.cmp.to.
4747 (append_composite_glyph): Likewise.
4748
4749 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
4750 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
4751 composition.
4752 (append_composite_glyph): Adjust for the change of
4753 <strcut glyph>.u.cmp.to.
4754
4755 2009-02-11 Juanma Barranquero <lekktu@gmail.com>
4756
4757 * casetab.c (init_casetab_once):
4758 * coding.c (ALLOC_CONVERSION_WORK_AREA):
4759 * font.c (font_update_lface):
4760 * fontset.c (Fnew_fontset):
4761 * ftfont.c (ftfont_drive_otf):
4762 * xfont.c (xfont_open):
4763 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
4764
4765 2009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
4766
4767 * fileio.c (Fwrite_region): !NILP -> CONSP.
4768
4769 2009-02-10 Andreas Schwab <schwab@suse.de>
4770
4771 * process.c (send_process): Properly relocate pointer into data
4772 when using encoded data. (Bug#2272)
4773
4774 2009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
4775
4776 * coding.c (detect_coding_charset): Fix previous change.
4777
4778 2009-02-08 Jason Rumney <jasonr@gnu.org>
4779
4780 * w32fns.c (w32_hide_hourglass): Handle case where frame
4781 disappeared while hourglass was displayed. (Bug #2193)
4782
4783 2009-02-07 Andreas Schwab <schwab@suse.de>
4784
4785 * unexelf.c (unexec): Fix error message.
4786
4787 2009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
4788
4789 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
4790 when modal window is active. (Bug #2152)
4791 (applicationShouldTerminate:): Remove now-unneeded while loop
4792 around NSRunAlertPanel.
4793
4794 * nsmenu.m (popupSession): New file-global variable.
4795 (pop_down_menu): End the popupSession before closing dialog.
4796 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
4797 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
4798 don't query NSApp for events (just sleep instead).
4799
4800 2009-02-07 Eli Zaretskii <eliz@gnu.org>
4801
4802 * coding.c (syms_of_coding) <translation-table-for-input>:
4803 Modify doc string to discourage use for character code unification.
4804
4805 2009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4806
4807 * atimer.c (run_timers): Update pending_atimers.
4808
4809 2009-02-06 Chong Yidong <cyd@stupidchicken.com>
4810
4811 * image.c (svg_load_image): Fix last change.
4812
4813 * xfns.c (Fx_create_frame): Signal an error if no font is
4814 found (Bug#2147).
4815
4816 2009-02-05 Juanma Barranquero <lekktu@gmail.com>
4817
4818 * character.c (syms_of_character) <script-representative-chars>:
4819 Fix typo in docstring.
4820
4821 2009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
4822
4823 * nsmenu.m (pop_down_menu): New function.
4824 (ns_popup_dialog): Call it on unwind.
4825 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
4826 call timer_check() (Bug#2154).
4827 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
4828 handling_signal is set.
4829 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
4830
4831 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
4832
4833 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
4834
4835 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
4836
4837 * keyboard.c (poll_for_input_1, handle_async_input):
4838 Set handling_signal under HAVE_NS.
4839
4840 2009-02-04 Glenn Morris <rgm@gnu.org>
4841
4842 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
4843
4844 2009-02-04 Kenichi Handa <handa@m17n.org>
4845
4846 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
4847
4848 * charset.c (Fchar_charset): New optional arg restriction.
4849
4850 * coding.h (coding_system_charset_list): Extern it.
4851
4852 * coding.c (coding_system_charset_list): New function.
4853
4854 * composite.c: Include coding.h and termhooks.h.
4855 (composition_gstring_p): Fix for the terminal case.
4856 (composition_gstring_width): Likewise.
4857 (fill_gstring_body): Likewise.
4858 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
4859 the frame.
4860 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
4861 is within a composition.
4862 (Fcomposition_get_gstring): Fix the terminal case.
4863
4864 * term.c (encode_terminal_code): Fix handling of composition.
4865 (produce_composite_glyph): For static composition, get pixel_width
4866 from struct composition.
4867
4868 2009-02-02 Andreas Schwab <schwab@suse.de>
4869
4870 * unexelf.c (unexec): Handle unaligned bss offset.
4871
4872 2009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
4873
4874 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
4875 XT,w32read_socket changes to ns_read_socket.
4876
4877 * keyboard.c (handle_interrupt): Don't call
4878 quit_throw_to_read_char() under NS.
4879
4880 * blockinput.h: Remove NS-specific code.
4881
4882 2009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
4883
4884 * dispnew.c (window_change_signal): Don't try to get the size of a
4885 suspended tty frame.
4886 * term.c (Fresume_tty): Resize if the size has changed while the
4887 tty was suspended.
4888
4889 * alloc.c (mark_stack): Properly conditionalize previous change.
4890
4891 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
4892
4893 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
4894 * w32term.c (w32_read_socket) [SYNC_INPUT]:
4895 Remove; this code is not used on Windows.
4896
4897 2009-01-30 Eli Zaretskii <eliz@gnu.org>
4898
4899 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
4900 EOLs that also has stray ^M characters.
4901
4902 2009-01-30 Juanma Barranquero <lekktu@gmail.com>
4903
4904 * atimer.c (run_timers, alarm_signal_handler):
4905 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
4906 * w32inevt.c (w32_console_read_socket):
4907 * w32term.c (w32_read_socket):
4908 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
4909
4910 2009-01-30 Chong Yidong <cyd@stupidchicken.com>
4911
4912 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
4913 Initialize it as a relative filename pattern.
4914 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
4915 (Fcall_process_region): Simplify temp file creation using
4916 temporary-file-directory.
4917
4918 2009-01-29 Eli Zaretskii <eliz@gnu.org>
4919
4920 * msdos.c: Rename pending_signals to msdos_pending_signals.
4921 (sig_suspender, sigprocmask): Adjust.
4922
4923 2009-01-29 Chong Yidong <cyd@stupidchicken.com>
4924
4925 * keyboard.c (pending_signals): New var.
4926 (poll_for_input, input_available_signal, init_keyboard): Set it.
4927 (process_pending_signals): New function.
4928
4929 * lisp.h (QUIT): Check pending_signals instead of
4930 interrupt_input_pending. Use process_pending_signals.
4931
4932 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
4933
4934 * process.c (wait_reading_process_output): Use process_pending_signals.
4935
4936 * sysdep.c (emacs_write): Use process_pending_signals.
4937
4938 * xterm.c (XTread_socket): Update pending_signals.
4939
4940 * w32term.c (w32_read_socket): Update pending_signals.
4941
4942 * w32inevt.c (w32_console_read_socket): Update pending_signals.
4943
4944 2009-01-29 Kenichi Handa <handa@m17n.org>
4945
4946 * xftfont.c (xftfont_has_char): New function.
4947 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
4948
4949 2009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
4950
4951 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
4952 under GNUstep.
4953 (ns_query_color): New declaration.
4954
4955 * nsterm.m (ns_confirm_quit): New variable.
4956 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
4957 (EmacsApp-applicationShouldTerminate:): Use it.
4958 (EmacsPrefsController): Let user set it.
4959 (ns_query_color): New function.
4960 (ns_defined_color): Use it.
4961 (ns_initialize): Drop.
4962 (ns_term_init): Add two lines from ns_initialize(), and set
4963 input_interrupt_mode to nil.
4964
4965 * image.c (svg_load_image): Don't right-shift background RGB when
4966 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
4967
4968 2009-01-28 Kenichi Handa <handa@m17n.org>
4969
4970 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
4971 (fontset_get_font_group): Remember that no font-group is specified
4972 for C.
4973
4974 2009-01-27 Chong Yidong <cyd@stupidchicken.com>
4975
4976 * fns.c (concat): Check for string overflow (bug#1787).
4977
4978 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
4979 Quadruple undo limits (bug#1501).
4980
4981 2009-01-27 Kenichi Handa <handa@m17n.org>
4982
4983 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
4984 directly use GT_Get_Char_index.
4985
4986 * xftfont.c (struct xftfont_info): New member `index'.
4987
4988 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
4989 (Ffontset_font): Adjust for the change of fontset entry.
4990
4991 2009-01-26 Kenichi Handa <handa@m17n.org>
4992
4993 * fontset.c (fontset_find_font): Fix handling of non-cons return
4994 value of fontset_get_font_group.
4995 (fontset_font): Revert last change.
4996
4997 2009-01-26 Jason Rumney <jasonr@gnu.org>
4998
4999 * w32font.c (w32font_list_internal): Return quickly if registry is
5000 unknown. Simplify final return.
5001 (add_font_entity_to_list): Break complex logic down into more
5002 manageable chunks. Move unknown registry check to
5003 w32font_list_internal.
5004
5005 2009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
5006
5007 Changes to remove Feval calls from GUI under NS.
5008
5009 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
5010 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
5011 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
5012
5013 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
5014 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
5015 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
5016 instead of NON_ASCII_KEYSTROKE_EVENT.
5017 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
5018 (EmacsApp-applicationShouldTerminate:): Query user.
5019 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
5020 instead of Feval.
5021
5022 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
5023
5024 * keyboard.c (kbd_buffer_get_event): Check for it.
5025 (keys_of_keyboard): Define lispy keys for
5026 ns-put/unput-working-text.
5027
5028 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
5029 versions.
5030 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
5031
5032 2009-01-25 Chong Yidong <cyd@stupidchicken.com>
5033
5034 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
5035 setting current_buffer directly. (Bug#2044)
5036
5037 2009-01-24 Chong Yidong <cyd@stupidchicken.com>
5038
5039 * fontset.c (fontset_font): If we know there is no font, don't do
5040 any work. (Bug#1952, bug#1990).
5041
5042 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
5043
5044 2009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5045
5046 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
5047 (ns_no_defaults): New declaration.
5048 (main): Use it.
5049
5050 * nsterm.h (ns_no_defaults): New declaration.
5051
5052 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
5053
5054 * nsterm.m (ns_no_defaults): New variable.
5055 (ns_initialize): Don't read defaults when ns_no_defaults.
5056 (EmacsView-readSelectionFromPasteboard:)
5057 (writeSelectionToPasteboard:types:): New stubbed-out methods for
5058 NSServicesRequests protocol. (Bug#1435)
5059 (ns_dumpglyphs_stretch): New function.
5060 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
5061 of 2008-11-15 to other terms. (Bug#615)
5062
5063 * nsimage.m (setPixmapData:): Set to ignore image DPI.
5064
5065 2009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
5066
5067 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
5068 call for Sparc64.
5069
5070 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5071
5072 * nsfns.m:
5073 * nsgui.h:
5074 * nsmenu.m:
5075 * nsselect.m:
5076 * nsterm.h:
5077 * nsterm.m: Remove '23' comments that indicated code added during
5078 update from emacs-20 -> emacs-23.
5079
5080 2009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5081
5082 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
5083 ns_alternate_modifier. (Bug#1217)
5084
5085 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
5086 Display all shortcuts, including those w/o super modifier.
5087
5088 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
5089
5090 2009-01-22 Chong Yidong <cyd@stupidchicken.com>
5091
5092 * fileio.c (Vwrite_region_post_annotation_function)
5093 (Vwrite_region_annotation_buffers): New vars.
5094 (build_annotations_unwind): Just reset
5095 Vwrite_region_annotation_buffers.
5096 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
5097 Call write-region-post-annotation-function.
5098 (build_annotations): Add to Vwrite_region_annotation_buffers if
5099 buffer changes.
5100
5101 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5102
5103 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
5104 Tiger.
5105 * nsfns.m (ns_do_applescript):
5106 Conditionalize typeUTF16ExternalRepresentation on Tiger.
5107
5108 2009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
5109
5110 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
5111
5112 2009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5113
5114 * nsmenu.m (NSMENUPROFILE): Change #if style.
5115
5116 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
5117
5118 * nsterm.m (x_set_frame_alpha): Add prototype.
5119 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
5120 handle Ctrl-tab. (Bug#1841)
5121 (ns_get_color): Use unsigned long long for scanned hex string value.
5122 (ns_term_shutdown): Abort on non SIGTERM signals.
5123 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
5124 (EmacsPrefsController-setPanelFromDefaultValues): New function.
5125 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
5126 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
5127 (ns_defined_color): Fix settings of the XColor variable fields:
5128 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
5129
5130 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
5131 DPI. (Bug#1316)
5132 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
5133 values in onTiger section.
5134
5135 2009-01-19 Chong Yidong <cyd@stupidchicken.com>
5136
5137 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
5138 Check return value of font_spec_from_name.
5139 (Fx_list_fonts): Doc fix. (Bug#1951)
5140
5141 * font.c (font_spec_from_name): Return Qnil if font name could not
5142 be parsed.
5143 (font_parse_name): Treat a `?' character as part of an XLFD.
5144
5145 * fns.c (Fsubstring): Doc fix.
5146
5147 2009-01-19 Kenichi Handa <handa@m17n.org>
5148
5149 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
5150 (ftfont_list): Likewise.
5151
5152 2009-01-18 Juanma Barranquero <lekktu@gmail.com>
5153
5154 * dbusbind.c (Fdbus_register_signal):
5155 * process.c (conv_sockaddr_to_lisp):
5156 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
5157
5158 * callproc.c (Fgetenv_internal): Doc fix.
5159
5160 2009-01-16 Chong Yidong <cyd@stupidchicken.com>
5161
5162 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
5163 it is not even used.
5164
5165 2009-01-16 Glenn Morris <rgm@gnu.org>
5166
5167 * font.c (Ffont_variation_glyphs): Silence compiler.
5168
5169 2009-01-15 Juanma Barranquero <lekktu@gmail.com>
5170
5171 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
5172 Reported by David Robinow <drobinow@gmail.com>.
5173
5174 2009-01-15 Kenichi Handa <handa@m17n.org>
5175
5176 * coding.c (detect_coding_system): Fix handling of null_byte_found.
5177
5178 2009-01-14 Jason Rumney <jasonr@gnu.org>
5179
5180 * frame.c (x_set_font): Always store a font to the font parameter,
5181 never a fontset. (Bug#1562)
5182
5183 2009-01-14 Kenichi Handa <handa@m17n.org>
5184
5185 * coding.c (TWO_MORE_BYTES): New macro.
5186 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
5187
5188 2009-01-13 Chong Yidong <cyd@stupidchicken.com>
5189
5190 * font.c (font_clear_prop): If clearing the family, clear the font
5191 width index too.
5192
5193 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
5194
5195 2009-01-12 Juanma Barranquero <lekktu@gmail.com>
5196
5197 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
5198 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
5199 functions, use sizeof.
5200
5201 2009-01-12 Martin Rudalics <rudalics@gmx.at>
5202
5203 * keyboard.c (read_char): Fix case where last_nonmenu_event
5204 returned a bad value with submenus. (Bug#447)
5205
5206 2009-01-12 Chong Yidong <cyd@stupidchicken.com>
5207
5208 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
5209 family, clear the font width index too.
5210
5211 2009-01-11 Jason Rumney <jasonr@gnu.org>
5212
5213 * keyboard.c (cmd_error_internal): Exit when errors occur before
5214 frame creation and not in daemon mode. (Bug#1836)
5215
5216 2009-01-10 Chong Yidong <cyd@stupidchicken.com>
5217
5218 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
5219 of a display vector, backtrack.
5220 (try_window_reusing_current_matrix): Check glyph type before
5221 referencing charpos member.
5222
5223 2009-01-10 Eli Zaretskii <eliz@gnu.org>
5224
5225 Fix Bug #876:
5226
5227 * coding.c (inhibit_null_byte_detection): New variable.
5228 (detect_coding, detect_coding_system): Don't pay attention to null
5229 bytes if inhibit_null_byte_detection is non-zero.
5230 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
5231 <inhibit-iso-escape-detection>: Doc fix.
5232
5233 2009-01-09 Jason Rumney <jasonr@gnu.org>
5234
5235 * w32font.c (add_font_entity_to_list): Don't report unknown
5236 Windows charset as any unrecognized registry. (Bug#1548)
5237 Only report Unicode Plane 2 fonts as unicode-sip.
5238
5239 2009-01-09 Chong Yidong <cyd@stupidchicken.com>
5240
5241 * xfaces.c (Fx_font_family_list): Delete function.
5242 Move compatibility version to faces.el.
5243
5244 * font.c (Ffont_family_list): Return a list of strings, not symbols.
5245
5246 2009-01-09 Martin Rudalics <rudalics@gmx.at>
5247
5248 * frame.c (x_set_frame_parameters): Remember requested value for
5249 fullscreen before it's reset by the parameter handler.
5250
5251 2009-01-09 Glenn Morris <rgm@gnu.org>
5252
5253 * keyboard.c (last_command_char): For clarity, rename to...
5254 (last_command_event): ... and update all users.
5255 (last_input_char): For clarity, rename to...
5256 (last_input_event): ... and update all users.
5257 (last-command-char, last-input-char): Move to subr.el as aliases.
5258 * cmds.c, commands.h: Update for last_command_char rename.
5259
5260 2009-01-08 Chong Yidong <cyd@stupidchicken.com>
5261
5262 * font.c (font_open_for_lface): Handle unspecified height attribute.
5263
5264 2009-01-08 Jason Rumney <jasonr@gnu.org>
5265
5266 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
5267 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
5268 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
5269 Don't declare.
5270 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5271 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
5272
5273 2009-01-07 Kenichi Handa <handa@m17n.org>
5274
5275 * fileio.c (Finsert_file_contents): In the case of replace,
5276 remember the coding system used for decoding in
5277 coding_system (Bug#1039).
5278
5279 * coding.c (decode_coding_utf_8): Check byte_after_cr before
5280 breaking the loop. (Bug#870)
5281 (decode_coding_utf_16, decode_coding_emacs_mule)
5282 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5283 (decode_coding_charset): Likewise.
5284
5285 2009-01-05 Martin Rudalics <rudalics@gmx.at>
5286
5287 * frame.c (x_set_frame_parameters): Make sure height (width) get
5288 applied when fullwidth (fullheight) is set. (Bug#1522)
5289
5290 2009-01-04 Juanma Barranquero <lekktu@gmail.com>
5291
5292 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
5293 (utc_base): Declare as ULONGLONG, not long double.
5294 (convert_time_raw): Delete.
5295 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
5296 (initialize_utc_base): New function.
5297 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
5298 (convert_from_time_t): Use initialize_utc_base; compute result with
5299 64-bit arithmetic.
5300 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
5301
5302 2009-01-03 Eli Zaretskii <eliz@gnu.org>
5303
5304 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
5305 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
5306 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
5307 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
5308 [!subprocesses]: Define.
5309 (syms_of_process) [!subprocesses]: Intern and staticpro them.
5310 (Flist_system_processes, Fsystem_process_attributes)
5311 [!subprocesses]: Call list_system_processes and
5312 system_process_attributes instead of returning Qnil.
5313
5314 * dosfns.c (system_process_attributes, list_system_processes):
5315 New functions.
5316
5317 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
5318
5319 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
5320 Don't use the default (no-op) implementation.
5321
5322 2009-01-03 Jason Rumney <jasonr@gnu.org>
5323
5324 * keyboard.c (parse_modifiers_uncached): Wheel events are
5325 clicks (bug#687).
5326
5327 * w32term.c (x_query_colors, x_query_color): New functions.
5328
5329 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
5330 (svg_load_image): Cast returned pointers from dynamically loaded
5331 functions. Eliminate W32 specific code.
5332
5333 2009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
5334
5335 * nsfns.m (x_set_foreground_color, x_set_background_color)
5336 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
5337 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
5338 x_ prefix instead of ns_. Update references.
5339 (syms_of_nsfns): Add a FIXME comment.
5340
5341 * nsterm.m (x_set_cursor_type): New prototype.
5342 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
5343
5344 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
5345 for Solaris instead of incorrectly providing Qutime and Qcutime.
5346
5347 2009-01-02 Eli Zaretskii <eliz@gnu.org>
5348
5349 * w32.c (process_times): Compute sum of utime and stime.
5350 (system_process_attributes): Add Qtime to the alist.
5351
5352 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
5353 and add them to the alist.
5354
5355 * process.c (top level) <Qtime, Qctime>: New variables.
5356 (syms_of_process): staticpro them.
5357 (Fsystem_process_attributes): Add their documentation to the doc
5358 string.
5359
5360 * process.h: Declare Qtime and Qctime.
5361
5362 2009-01-02 Jason Rumney <jasonr@gnu.org>
5363
5364 * image.c (Qgobject): New symbol.
5365 (syms_of_image): Initialize it.
5366 (init_svg_functions): Load some functions from gobject library.
5367
5368 2009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
5369
5370 * frame.c (make_terminal_frame): Remove redundant code and useless
5371 block.
5372
5373 2009-01-01 Andreas Schwab <schwab@suse.de>
5374
5375 * process.c (conv_sockaddr_to_lisp): Add workaround for
5376 getsockname bug on BSD.
5377
5378 2009-01-01 Chong Yidong <cyd@stupidchicken.com>
5379
5380 * xfns.c (x_create_tip_frame): Set border width of the X window.
5381
5382 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
5383
5384 2009-01-01 Jason Rumney <jasonr@gnu.org>
5385
5386 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
5387 Don't block input, as per earlier xterm.c changes.
5388
5389 2008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
5390
5391 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
5392 (ns_appkit_version_int): New function.
5393 (x-server-version): Use ns_appkit_version_int and follow 21+
5394 convention of returning 3 integers.
5395
5396 2008-12-30 Kenichi Handa <handa@m17n.org>
5397
5398 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
5399 (CHAR_SURROGATE_PAIR_P): New macro.
5400
5401 * font.h (struct font_driver): New member get_variation_glyphs.
5402
5403 * font.c (font_range): Don't require a font for a variation selector.
5404 (Ffont_variation_glyphs): New function.
5405 (syms_of_font): Defsubr it.
5406
5407 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
5408 ftfont_variation_glyphs.
5409 (setup_otf_gstring): New function.
5410 (ftfont_drive_otf): Use it.
5411 (ftfont_shape_by_flt): Handle variation selector.
5412 (ftfont_variation_glyphs): New function.
5413
5414 2008-12-30 Martin Rudalics <rudalics@gmx.at>
5415
5416 * frame.c (Vemacs_iconified): Remove.
5417
5418 2008-12-30 Jason Rumney <jasonr@gnu.org>
5419
5420 * frame.c (store_frame_param, x_get_arg): Enable newer code on
5421 WINDOWSNT too, as related changes have already been synced. (Bug#117)
5422
5423 2008-12-30 Chong Yidong <cyd@stupidchicken.com>
5424
5425 * indent.c (Fvertical_motion): Don't advance iterator if we have
5426 reseated to the desired position.
5427
5428 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
5429 checking for pos match.
5430
5431 2008-12-30 Kenichi Handa <handa@m17n.org>
5432
5433 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
5434 just get the low 8-bit of the code.
5435
5436 * font.c (font_intern_prop): Validate str as multibyte.
5437
5438 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5439
5440 * dispextern.h (struct face): Move lface and hash from the middle
5441 of bitfields.
5442
5443 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
5444
5445 2008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5446
5447 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
5448 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
5449 instead of intervals.h.
5450
5451 2008-12-26 Andreas Schwab <schwab@suse.de>
5452
5453 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
5454 cons.
5455
5456 2008-12-26 Martin Rudalics <rudalics@gmx.at>
5457
5458 * textprop.c (Qminibuffer_prompt): New variable.
5459 (syms_of_textprop): Initialize it.
5460 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
5461 in minibuffer-prompt face. (Bug#1662)
5462
5463 2008-12-25 Jason Rumney <jasonr@gnu.org>
5464
5465 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
5466
5467 2008-12-24 Jason Rumney <jasonr@gnu.org>
5468
5469 * ralloc.c (r_alloc_reset_variable): New function.
5470
5471 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
5472 record of what points where. (Bug#716)
5473
5474 2008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
5475
5476 * minibuf.c (read_minibuf): Follow the non-interactive case when
5477 running as a daemon, before detaching.
5478
5479 2008-12-22 Andreas Schwab <schwab@suse.de>
5480
5481 * buffer.c (init_buffer): Use realloc instead of xrealloc.
5482 * gtkutil.c (free_widget_value): Use xfree instead of free.
5483
5484 2008-12-22 Martin Rudalics <rudalics@gmx.at>
5485
5486 * frame.c (delete_frame): New function derived from
5487 Fdelete_frame to handle Qnoelisp value for FORCE argument.
5488 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
5489 (Fdelete_frame): Call delete_frame. Remove line from doc-string
5490 saying that FORCE non-nil doesn't run `delete-frame-functions'.
5491 * frame.h: Extern delete_frame.
5492 * window.c (window_loop):
5493 * terminal.c (delete_terminal):
5494 * xterm.c (x_connection_closed):
5495 * xfns.c (Fx_hide_tip):
5496 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
5497
5498 2008-12-21 Jason Rumney <jasonr@gnu.org>
5499
5500 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
5501 when character maps to .notdef character.
5502
5503 2008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
5504
5505 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
5506
5507 2008-12-20 Jason Rumney <jasonr@gnu.org>
5508
5509 * frame.c (Fmake_terminal_frame): Raise an error when called from
5510 a graphical frame on Windows. (Bug#1325)
5511
5512 2008-12-20 Jan Djärv <jan.h.d@swipnet.se>
5513
5514 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
5515
5516 2008-12-20 Chong Yidong <cyd@stupidchicken.com>
5517
5518 * minibuf.c (Fread_buffer): Doc fix.
5519
5520 2008-12-20 Jason Rumney <jasonr@gnu.org>
5521
5522 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
5523 server name in UNC paths. (Bug#719)
5524
5525 * coding.c (decode_coding): Clear chars_at_source flag when using
5526 charbuf. (Bug#1035)
5527
5528 2008-12-19 Daniel Engeler <engeler@gmail.com>
5529
5530 * sysdep.c (serial_configure): Fix typo.
5531
5532 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5533
5534 * sysdep.c: Include alloca.h.
5535 (system_process_attributes): Add implementation for Solaris.
5536
5537 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
5538
5539 2008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5540
5541 Reorganize implementation of Flist_system_processes and
5542 Fsystem_process_attributes. No functional changes.
5543 * process.c: Don't #include pwd.h, grp.h and limits.h.
5544 (Flist_system_processes): Just call list_system_processes.
5545 (Fsystem_process_attributes): Just call system_process_attributes.
5546 (procfs_list_system_processes, time_from_jiffies)
5547 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
5548 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
5549
5550 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
5551 (list_system_processes): Rename from
5552 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
5553 Provide a do nothing implementation.
5554 (system_process_attributes): Rename from
5555 procfs_list_system_processes.
5556 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
5557 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
5558
5559 * w32.c (list_system_processes): Rename from
5560 w32_list_system_processes.
5561 (system_process_attributes): Rename from
5562 w32_system_process_attributes.
5563
5564 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
5565
5566 * process.h (w32_list_system_processes)
5567 (w32_system_process_attributes): Remove.
5568 (list_system_processes, system_process_attributes):
5569 New prototypes.
5570
5571 2008-12-19 Kenichi Handa <handa@m17n.org>
5572
5573 * xfont.c (xfont_decode_coding_xlfd): New function.
5574 (xfont_encode_coding_xlfd): New function.
5575 (xfont_list_pattern): Decode XLFD by iso-8859-1.
5576 (xfont_list): Decode and encode XLFD by iso-8859-1.
5577 (xfont_match): Likewise.
5578 (xfont_list_family): Likewise.
5579 (xfont_open): Likewise.
5580
5581 * ftfont.c (ftfont_open): Generate a multibyte string if given
5582 names are utf-8.
5583
5584 * xftfont.c (xftfont_open): Generate a multibyte string if given
5585 names are utf-8.
5586
5587 2008-12-18 Jan Djärv <jan.h.d@swipnet.se>
5588
5589 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
5590 changed.
5591 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
5592 clicked on a detached tool bar button.
5593
5594 2008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
5595
5596 * emacs.c (main): Print and error and exit when no data is read
5597 from the pipe.
5598
5599 2008-12-17 Jason Rumney <jasonr@gnu.org>
5600
5601 * w32font.c (w32font_has_char): Always return -1.
5602
5603 2008-12-16 Kenichi Handa <handa@m17n.org>
5604
5605 * font.c (font_open_entity): Fix previous change.
5606
5607 2008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
5608
5609 * process.c: Include <limits.h>.
5610
5611 2008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
5612
5613 * font.c (font_update_drivers): Fix mistake in reconstructing the
5614 driver list.
5615
5616 2008-12-16 Chong Yidong <cyd@stupidchicken.com>
5617
5618 * font.c (font_clear_cache): Fix format of font cache data.
5619
5620 2008-12-15 Chong Yidong <cyd@stupidchicken.com>
5621
5622 * xftfont.c (xftfont_open): Free Xft font pattern if
5623 XftFontOpenPattern fails.
5624
5625 * xterm.c (x_free_frame_resources): Remove extraneous call to
5626 free_frame_faces.
5627
5628 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
5629
5630 * xterm.c (x_delete_display): Move xim_close_dpy call to
5631 x_delete_terminal.
5632 (x_delete_terminal): Call xim_close_dpy.
5633
5634 2008-12-13 Jason Rumney <jasonr@gnu.org>
5635
5636 * w32font.c (intern_font_name): New function.
5637 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
5638 (w32font_open_internal, Fx_select_font): Decode font name.
5639 (fill_in_logfont, list_all_matching_fonts): Encode font name.
5640
5641 * w32font.h (intern_font_name): Declare new function.
5642
5643 * w32uniscribe.c (add_opentype_font_name_to_list):
5644 Use intern_font_name.
5645
5646 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
5647
5648 * frame.c (Fdelete_frame): Call free_font_driver_list.
5649
5650 * font.c (free_font_driver_list): Implement missing function.
5651
5652 * w32term.c (w32_term_init): Don't initialize the image cache
5653 here; it will be done in init_frame_faces.
5654
5655 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
5656 (struct x_display_info): Remove unused member null_pixel. New
5657 member xim_callback_data.
5658
5659 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
5660 (xim_initialize): Save pointer to callback function data.
5661 (xim_close_dpy): Free callback function data. Call XCloseIM,
5662 reverting 2008-11-04 change by David Smith.
5663 (x_term_init): Don't initialize the image cache here; it will be
5664 done in init_frame_faces. Remove ancient "null_pixel" cruft.
5665 (x_delete_display): Free x_dnd_atoms member.
5666
5667 2008-12-13 Kenichi Handa <handa@m17n.org>
5668
5669 * font.c (font_rescale_ratio): Moved from xfaces.c.
5670 Argument type changed. Handle a font-spec too.
5671 (font_score): Check Vface_font_rescale_alist.
5672 (font_open_entity): Likewise. (Bug#1547)
5673
5674 * xfaces.c (font_rescale_ratio): Moved to font.c.
5675
5676 2008-12-13 Chong Yidong <cyd@stupidchicken.com>
5677
5678 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
5679
5680 2008-12-12 Jason Rumney <jasonr@gnu.org>
5681
5682 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
5683 Vwindow_system_version to the real w32 major version.
5684
5685 2008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
5686
5687 * term.c (init_tty): Move setting the terminal name before the
5688 potential user: maybe_fatal.
5689
5690 2008-12-11 Chong Yidong <cyd@stupidchicken.com>
5691
5692 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
5693 all callers changed. Call free_frame_faces to free the face cache.
5694
5695 2008-12-11 Jason Rumney <jasonr@gnu.org>
5696
5697 * w32font.c (fill_in_logfont): Don't assume symbol script means
5698 SYMBOL_CHARSET. (Bug#547)
5699
5700 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
5701 size for surrogates. (Bug#1096, bug#872)
5702
5703 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
5704
5705 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
5706
5707 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
5708
5709 * process.c (Fsystem_process_attributes, syms_of_process):
5710 Fix typo in name of Ssystem_process_attributes.
5711 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
5712
5713 2008-12-11 Juanma Barranquero <lekktu@gmail.com>
5714
5715 * syntax.c (Fmodify_syntax_entry): Doc fix.
5716
5717 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
5718
5719 * font.c (Ffont_spec): Move usage to end of docstring.
5720
5721 2008-12-10 Jason Rumney <jasonr@gnu.org>
5722
5723 * w32font.c (Qcham): New symbol.
5724 (font_supported_scripts): Add cham, and comments for other new
5725 scripts in bitfield from OpenType spec.
5726 (add_font_entity_to_list): Limit unicode-sip fonts to those that
5727 contain characters beyond the bmp.
5728
5729 2008-12-10 Kenichi Handa <handa@m17n.org>
5730
5731 * ftfont.c (fc_charset_table): Add "unicode-sip".
5732 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
5733 Qunicode_sip.
5734
5735 2008-12-10 Juanma Barranquero <lekktu@gmail.com>
5736
5737 * coding.c (QCdefault_char): Rename from QCdefalut_char.
5738 (Fcoding_system_put): Use QCdefault_char.
5739 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
5740
5741 2008-12-09 Chong Yidong <cyd@stupidchicken.com>
5742
5743 * xftfont.c (syms_of_xftfont): Fix typo.
5744
5745 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
5746
5747 2008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
5748
5749 * emacs.c (main): Close daemon_pipe on exec.
5750
5751 2008-12-08 Chong Yidong <cyd@stupidchicken.com>
5752
5753 * termchar.h (struct tty): New members termcap_term_buffer and
5754 termcap_strings_buffer.
5755
5756 * term.c (encode_terminal_code): Free any previous memory blocks
5757 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
5758 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
5759 All callers changed.
5760 (init_tty): Store termcap data and string buffers in new struct
5761 tty members termcap_term_buffer and termcap_strings_buffer.
5762 (delete_tty): Free them.
5763 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
5764
5765 2008-12-07 Seiji Zenitani <zenitani@mac.com>
5766
5767 * nsfns.m (ns_set_background_color): Remove code duplication.
5768 It was a substitute for face-transparency on OS X 10.3.
5769
5770 2008-12-06 Chong Yidong <cyd@stupidchicken.com>
5771
5772 * coding.c (make_conversion_work_buffer): Disable buffer
5773 modification hooks in the work buffer.
5774
5775 2008-12-05 Eli Zaretskii <eliz@gnu.org>
5776
5777 * process.c (procfs_system_process_attributes): If `nread' has a
5778 negative value, assign zero to it.
5779
5780 2008-12-05 Chong Yidong <cyd@stupidchicken.com>
5781
5782 * eval.c (Vdebug_on_error): Doc fix.
5783
5784 2008-12-05 Kenichi Handa <handa@m17n.org>
5785
5786 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
5787 second character is a combining character.
5788
5789 2008-12-05 Eli Zaretskii <eliz@gnu.org>
5790
5791 * process.c (procfs_system_process_attributes): Don't use cmd,
5792 cmdsize, and q without initializing them first.
5793
5794 2008-12-04 Jason Rumney <jasonr@gnu.org>
5795
5796 * w32font.c (w32font_draw): Initialize orig_clip before getting
5797 it, and delete it when finished.
5798
5799 2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
5800
5801 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
5802 case when running as a daemon before detaching.
5803
5804 2008-12-03 Juanma Barranquero <lekktu@gmail.com>
5805
5806 * w32.c (init_environment): Don't unload library shell32.dll.
5807
5808 2008-12-03 Kenichi Handa <handa@m17n.org>
5809
5810 * font.c (font_at): Set `multibyte' at first.
5811
5812 * coding.c (decode_coding_charset): Check type of an element of
5813 vector VALIDS.
5814 (encode_coding_emacs_mule): Be sure to set `code'.
5815
5816 * fontset.c (face_for_char): Handle invalid charset property correctly.
5817 (font_for_char): Likewise.
5818
5819 2008-12-03 Chong Yidong <cyd@stupidchicken.com>
5820
5821 * font.c (Fopen_font): Compute pixel size correctly.
5822 (font_update_lface): Handle fonts with corrupted size specs,
5823 i.e. non-int and non-float.
5824
5825 * ftfont.c (ftfont_match): Initialize entity variable.
5826 (ftfont_resolve_generic_family): Avoid using uninitialized var.
5827 (ftfont_list_family): Initialize list var earlier.
5828
5829 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
5830
5831 * xterm.c (x_draw_glyph_string): Fall back on
5832 underline_minimum_offset for underline position.
5833
5834 2008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
5835
5836 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
5837
5838 * character.c (c_string_width): Specify the type for LEN.
5839
5840 2008-12-03 Kenichi Handa <handa@m17n.org>
5841
5842 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
5843 (decode_coding_utf_8): Likewise.
5844 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
5845 (produce_chars): Initialize consumed_chars to 0.
5846
5847 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
5848
5849 * keyboard.c (make_lispy_position): Only use PT if the selected
5850 window is current.
5851
5852 2008-12-02 Andreas Schwab <schwab@suse.de>
5853
5854 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
5855
5856 * doprnt.c (doprnt1): Fix size of charbuf.
5857
5858 2008-12-02 Chong Yidong <cyd@stupidchicken.com>
5859
5860 * keyboard.c (timer_check): Revert last change.
5861
5862 2008-12-02 Juanma Barranquero <lekktu@gmail.com>
5863
5864 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
5865
5866 2008-12-01 Juanma Barranquero <lekktu@gmail.com>
5867
5868 * makefile.w32-in: Update dependencies.
5869 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
5870
5871 2008-12-01 Andreas Schwab <schwab@suse.de>
5872
5873 * font.c (register_font_driver): Use xmalloc.
5874 (font_put_frame_data): Likewise.
5875
5876 2008-12-01 Chong Yidong <cyd@stupidchicken.com>
5877
5878 * xfaces.c (realize_x_face): Make abort condition clearer.
5879
5880 * gtkutil.c (update_frame_tool_bar): Initialize variable.
5881
5882 2008-11-30 Chong Yidong <cyd@stupidchicken.com>
5883
5884 * keyboard.c (timer_check): After a timer runs, ensure that the
5885 selected window's buffer is current.
5886
5887 2008-11-30 Juanma Barranquero <lekktu@gmail.com>
5888
5889 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
5890 It was accidentally restored by the Unicode merge.
5891
5892 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
5893
5894 2008-11-29 Juanma Barranquero <lekktu@gmail.com>
5895
5896 * w32proc.c: Include "coding.h".
5897 (Fw32_short_file_name): Encode filename passed to Windows API.
5898 (Fw32_long_file_name): Encode filename passed to Windows API and
5899 decode back the result. (Bug#1433)
5900
5901 2008-11-29 Kenichi Handa <handa@m17n.org>
5902
5903 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
5904 not before accessing it.
5905
5906 * charset.c (Fdefine_charset_internal): After calculating
5907 min_char, max_char, and fastmap, copy the charset structure again.
5908 (encode_char): Fix the previous change.
5909
5910 2008-11-28 Seiji Zenitani <zenitani@mac.com>
5911
5912 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
5913
5914 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
5915
5916 * nsterm.m (x_set_frame_alpha): New function.
5917
5918 2008-11-27 Eli Zaretskii <eliz@gnu.org>
5919
5920 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
5921
5922 2008-11-27 Juanma Barranquero <lekktu@gmail.com>
5923
5924 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
5925 pointer to check_face_name.
5926
5927 2008-11-27 Kenichi Handa <handa@m17n.org>
5928
5929 * category.h (SET_CATEGORY_SET): Call set_category_set.
5930 (set_category_set): Extern it.
5931
5932 * category.c (hash_get_category_set): New function.
5933 (Fmodify_category_entry): Adjusted for the change of
5934 char_table_ref_and_range. Call hash_get_category_set to get a
5935 category set to store in the table.
5936
5937 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
5938 Funify_charset.
5939
5940 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
5941 (DECODE_CHAR): Check if the decoder vector is ready.
5942 (ENCODE_CHAR): Check if the encoder char-table is ready.
5943 (maybe_unify_char): Extern it.
5944
5945 * charset.c (Vchar_unified_charset_table): Delete it.
5946 (inhibit_load_charset_map): New variable.
5947 (temp_charset_work): New variable.
5948 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
5949 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
5950 New macros.
5951 (load_charset_map): Meaning of control_flag changed. If
5952 inhibit_load_charset_map is nonzero, setup a table in
5953 temp_charset_work.
5954 (load_charset): New argument control_flag.
5955 (map_charset_for_dump): New function.
5956 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
5957 map_charset_for_dump.
5958 (Fdefine_charset_internal): If the charset method is MAP, load
5959 mapping tables by calling load_charset.
5960 (Funify_charset): Don't load a mapping table but directly set
5961 Vchar_unify_table.
5962 (maybe_unify_char): New function.
5963 (decode_char): Don't handle the deleted method MAP_DEFERRED.
5964 Handle the case of inhibit_load_charset_map being nonzero.
5965 (encode_char): Don't handle the deleted method MAP_DEFERRED.
5966 Handle the case of inhibit_load_charset_map being nonzero.
5967 (Fclear_charset_maps): Just free temp_charset_work.
5968 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
5969 variable.
5970
5971 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
5972 change of char_table_ref_and_range.
5973 (char_table_ref_and_range): Change the meaning of argument FROM
5974 and TO. Now the caller must provide initial values for *FROM
5975 and *TO.
5976
5977 * fontset.c (fontset_add): Adjusted for the change of
5978 char_table_ref_and_range.
5979 (fontset_get_font_group): Likewise.
5980 (Ffontset_info): Likewise.
5981
5982 * keymap.c (describe_vector): Adjusted for the change of
5983 char_table_ref_and_range. For char-table, put boundary between
5984 non-ASCII and 8-bit characters.
5985
5986 * print.c (print_object): For bool-vector, delete unnecessary
5987 check of ASCII_BYTE_P.
5988
5989 2008-11-26 Jason Rumney <jasonr@gnu.org>
5990
5991 * w32font.c (w32font_open_internal): Don't include external
5992 leading in font height. (Bug#879)
5993
5994 2008-11-26 Glenn Morris <rgm@gnu.org>
5995
5996 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
5997 redefinition with ifdef. (Bug#1383)
5998
5999 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6000
6001 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
6002
6003 2008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
6004
6005 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
6006 New EmacsView methods.
6007 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
6008 Fixes bug #1048,1357,1414.
6009
6010 2008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6011
6012 Fix bug #1362.
6013 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
6014 is not an indexed color.
6015 * nsterm.m (free_indexed_color): Add argument checking.
6016 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
6017
6018 2008-11-24 Chong Yidong <cyd@stupidchicken.com>
6019
6020 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
6021 Document confirm-after-completion value for
6022 minibuffer-completion-confirm.
6023
6024 2008-11-24 Jason Rumney <jasonr@gnu.org>
6025
6026 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
6027 warning.
6028
6029 2008-11-23 Jason Rumney <jasonr@gnu.org>
6030
6031 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
6032 restored before returning.
6033
6034 * w32font.c (check_face_name): New function.
6035 (add_font_entity_to_list): Use it to filter out common substituted
6036 fonts. (Bug#642)
6037
6038 2008-11-22 Martin Rudalics <rudalics@gmx.at>
6039
6040 * buffer.c (Fswitch_to_buffer): Reword and mention new option
6041 confirm-nonexistent-file-or-buffer in doc-string.
6042
6043 2008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
6044
6045 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
6046 Fix copy/paste typo. Add checks.
6047
6048 2008-11-21 Kenichi Handa <handa@m17n.org>
6049
6050 * coding.c (detect_coding_iso_2022): Reject invalid composition
6051 sequence.
6052 (DECODE_COMPOSITION_START): If the current source is the last
6053 block, and the current composition doesn't end, regard this
6054 sequence as invalid.
6055 (decode_coding_iso_2022): Handle invalid composition sequence.
6056
6057 2008-11-20 Martin Rudalics <rudalics@gmx.at>
6058
6059 * window.c (coordinates_in_window): Don't return
6060 ON_VERTICAL_BORDER for the rightmost position of a mode/header
6061 line when the window is not the rightmost one. (Bug#1372)
6062
6063 2008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
6064
6065 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
6066
6067 2008-11-15 Eli Zaretskii <eliz@gnu.org>
6068
6069 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
6070 and bright_bg if noninteractive is non-zero.
6071
6072 2008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6073
6074 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
6075 x_draw_glyph_string_background.
6076
6077 * w32term.c (x_draw_glyph_string): Likewise.
6078
6079 2008-11-15 Chong Yidong <cyd@stupidchicken.com>
6080
6081 * xterm.c (x_draw_glyph_string): Stop drawing the background of
6082 the next glyph string once past the overhang width.
6083
6084 * nsterm.m (ns_draw_glyph_string): Likewise.
6085
6086 * w32term.c (x_draw_glyph_string): Likewise.
6087
6088 2008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
6089
6090 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
6091 double file close.
6092
6093 2008-11-14 Martin Rudalics <rudalics@gmx.at>
6094
6095 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
6096 dedicated status of window before attempting to display another
6097 buffer in it.
6098
6099 2008-11-14 Juanma Barranquero <lekktu@gmail.com>
6100
6101 * msdos.c (Fmsdos_long_file_names):
6102 (syms_of_msdos) <dos-unsupported-char-glyph>:
6103 * dosfns.c (Fint86): Fix typos in docstrings.
6104
6105 2008-11-14 Eli Zaretskii <eliz@gnu.org>
6106
6107 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
6108
6109 2008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
6110
6111 * puresize.h (BASE_PURESIZE): Increase to 1260000.
6112
6113 2008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
6114
6115 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
6116
6117 * frame.h: Negative alpha means "don't touch".
6118
6119 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
6120
6121 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
6122
6123 2008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
6124
6125 * hftctl.c:
6126 * chpdef.h:
6127 * acldef.h: Remove files used only for systems no longer supported.
6128
6129 * Makefile.in: Fix .o alphabetical ordering.
6130 (hftctl.o): Remove dependency, file removed.
6131 (keymap.o, print.o): Depend on charset.h.
6132
6133 2008-11-10 Kenichi Handa <handa@m17n.org>
6134
6135 * character.c (Fget_byte): Fix and make it faster for unibyte target.
6136
6137 2008-11-08 Chong Yidong <cyd@stupidchicken.com>
6138
6139 * dired.c (file_name_completion): If completion_ignore_case is
6140 enabled, ignore case when checking completion-regexp-list.
6141
6142 2008-11-08 Eli Zaretskii <eliz@gnu.org>
6143
6144 * vm-limit.c (get_lim_data): Fix last change.
6145
6146 2008-11-08 Kenichi Handa <handa@m17n.org>
6147
6148 * character.c (Fget_byte): New function.
6149 (syms_of_character): Defsubr Fget_byte.
6150
6151 2008-11-07 Chong Yidong <cyd@stupidchicken.com>
6152
6153 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
6154 cursor position is valid after scrolling.
6155
6156 2008-11-06 Juanma Barranquero <lekktu@gmail.com>
6157
6158 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
6159
6160 2008-11-06 Glenn Morris <rgm@gnu.org>
6161
6162 * xterm.c (handle_one_xevent): Don't let popup menus cause
6163 mouse-autoselect-window related window switching. (Bug#1261)
6164
6165 2008-11-04 David Smith <davidsmith@acm.org> (tiny change)
6166
6167 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
6168
6169 2008-11-04 Andreas Schwab <schwab@suse.de>
6170
6171 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
6172
6173 2008-11-03 Chong Yidong <cyd@stupidchicken.com>
6174
6175 * xfns.c (Fx_wm_set_size_hint): New function.
6176
6177 2008-11-03 Martin Rudalics <rudalics@gmx.at>
6178
6179 * textprop.c (Fprevious_single_char_property_change): Return 0
6180 when there's no change in a string. (Bug#1301)
6181
6182 2008-11-02 Martin Rudalics <rudalics@gmx.at>
6183
6184 * frame.c (do_switch_frame): New argument NORECORD passed to
6185 Fselect_window.
6186 (Fselect_frame): New argument NORECORD passed to
6187 do_switch_frame.
6188 (Fset_frame_selected_window): New argument NORECORD passed to
6189 Fselect_frame.
6190 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
6191 in call of do_switch_frame.
6192 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
6193 Handle NORECORD argument in call of Fselect_frame.
6194 * lisp.h (do_switch_frame, Fselect_frame)
6195 (Fset_frame_selected_window): Adjust declarations.
6196 * window.c (select_frame_norecord): New function.
6197 (run_window_configuration_change_hook): Use it and call
6198 Fselect_frame with NORECORD set.
6199 (Fselect_window): Pass NORECORD to Fselect_frame.
6200 (Fset_window_configuration): Handle NORECORD argument in call of
6201 do_switch_frame.
6202 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
6203 Fset_frame_selected_window.
6204 * keyboard.c (command_loop_1): Handle NORECORD in call of
6205 Fselect_frame (currently ifdefd).
6206
6207 2008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
6208
6209 * emacs.c (USAGE2): Untabify.
6210
6211 2008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
6212
6213 * composite.c (fill_gstring_header): Fix copy/paste typo.
6214
6215 2008-10-31 Martin Rudalics <rudalics@gmx.at>
6216
6217 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
6218 (Fother_window): Rename argument and rewrite doc-string.
6219 (select_window_norecord): Fix return value. (Bug#1276)
6220
6221 2008-10-30 Juanma Barranquero <lekktu@gmail.com>
6222
6223 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
6224 new frames overriding foreground for tooltips. Based on similar patch
6225 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
6226
6227 2008-10-29 Chong Yidong <cyd@stupidchicken.com>
6228
6229 * emacs.c (Fdaemon_initialized): Initialize nfd.
6230
6231 2008-10-29 Martin Rudalics <rudalics@gmx.at>
6232
6233 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
6234 (Fwindow_text_height): Clarify doc-strings.
6235 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
6236 doc-string of window-scroll-functions.
6237
6238 2008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
6239
6240 * category.c (syms_of_category): Fix typo in docstring.
6241
6242 2008-10-28 Juanma Barranquero <lekktu@gmail.com>
6243
6244 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
6245 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
6246 Fix typos in docstrings.
6247
6248 2008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
6249
6250 * emacs.c (daemon_pipe): Make non-static.
6251 (IS_DAEMON): Move definition ...
6252 * lisp.h (IS_DAEMON): ... here.
6253 (daemon_pipe): Declare.
6254 (is_daemon): Remove.
6255 * dispnew.c (init_display): Use IS_DAEMON.
6256
6257 2008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
6258
6259 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
6260 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
6261
6262 * emacs.c (is_daemon): Remove.
6263 (main): Don't set is_daemon.
6264 (IS_DAEMON): New macro.
6265 (Fdaemonp, Fdaemon_initialized): Use it.
6266 (Fdaemon_initialized): Write a char into the pipe to make sure the
6267 parent exits.
6268 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
6269
6270 2008-10-27 Chong Yidong <cyd@stupidchicken.com>
6271
6272 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
6273 over-sized glyph, draw it with the default glyph width.
6274
6275 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6276 glyph, draw it with the default glyph width.
6277
6278 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6279 glyph, draw it with the default glyph width.
6280
6281 * xdisp.c (try_scrolling): When computing the distance from the
6282 scroll margin to PT, try moving some distance past the window
6283 bottom before giving up.
6284
6285 2008-10-27 Martin Rudalics <rudalics@gmx.at>
6286
6287 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
6288 (Fset_window_buffer): Explain in doc-string that a window can be
6289 "strongly" dedicated to its buffer.
6290
6291 2008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
6292
6293 * emacs.c (daemon_name): New variable.
6294 (main): Deal with --daemon=SERVER_NAME.
6295 (Fdaemonp): Return a name if one was passed to --daemon.
6296
6297 2008-10-26 Romain Francoise <romain@orebokech.com>
6298
6299 * emacs.c (daemon_pipe): New variable.
6300 (main): Create a pipe before forking, make the parent exit only after
6301 the child has closed its end of the pipe. Move closing the
6302 descriptors ...
6303 (Fdaemon_initialized): ... here. New function.
6304
6305 2008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
6306
6307 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
6308 the previous unoptimized table.
6309
6310 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
6311 the distinction between non-nil and non-t value of `dedicated'.
6312
6313 2008-10-25 Chong Yidong <cyd@stupidchicken.com>
6314
6315 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
6316 read_char_minibuf_menu_text is large enough to hold the menu string.
6317
6318 2008-10-25 Martin Rudalics <rudalics@gmx.at>
6319
6320 * window.c (Fget_buffer_window, Fdelete_windows_on)
6321 (Freplace_buffer_in_windows): Make buffer argument optional and
6322 rename to buffer_or_name.
6323
6324 2008-10-24 Chong Yidong <cyd@stupidchicken.com>
6325
6326 * xdisp.c (handle_single_display_spec, handle_display_prop):
6327 Undo 2005-05-16 change.
6328 (handle_stop): Pop iterator if it's loaded with an empty string.
6329 (get_overlay_strings_1): Don't save iterator if it's loaded with
6330 an empty string (bug#1201).
6331
6332 2008-10-24 Kenichi Handa <handa@m17n.org>
6333
6334 * ftfont.c (ftfont_otf_features): Fix previous change.
6335 (ftfont_otf_capability): Check FeatureList.FeatureCount before
6336 calling ftfont_otf_features.
6337
6338 2008-10-24 Kenichi Handa <handa@m17n.org>
6339
6340 * font.c (font_match_p): Fix for the case that a vector of
6341 characters is in script-representative-chars.
6342
6343 2008-10-24 Michael Albinus <michael.albinus@gmx.de>
6344
6345 * dbusbind.c (xd_in_read_queued_messages): New variable.
6346 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
6347 (xd_read_queued_messages): Catch Qdbus_error from the macros.
6348 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
6349 macro. (Bug#1186)
6350
6351 2008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
6352
6353 * s/sol2-10.h: New file.
6354
6355 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
6356
6357 * xdisp.c (fill_glyph_string): Fix typo in source (though the
6358 poor beast has survived 9+ years and the jump from xterm.c!).
6359
6360 2008-10-23 Martin Rudalics <rudalics@gmx.at>
6361
6362 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
6363 Reword doc-string.
6364 (Fbury_buffer): In doc-string say what happens to the buffer's window.
6365
6366 2008-10-23 Juanma Barranquero <lekktu@gmail.com>
6367
6368 * character.c (syms_of_character) <script-representative-chars>:
6369 <unicode-category-table>: Doc fixes.
6370
6371 2008-10-23 Noah Friedman <friedman@splode.com>
6372
6373 * coding.c (make_conversion_work_buffer): Check that
6374 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
6375 Fget_buffer_create.
6376
6377 2008-10-23 Kenichi Handa <handa@m17n.org>
6378
6379 * font.c (font_add_log): Check the values of extra properties.
6380
6381 2008-10-22 Martin Rudalics <rudalics@gmx.at>
6382
6383 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6384 Reword doc-string.
6385 (Fset_window_parameter): Use NILP.
6386 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
6387 (Frecenter): Use "selected" instead of "current" window in doc-strings.
6388
6389 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
6390
6391 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
6392
6393 2008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
6394
6395 * nsfns.m (ns_appkit_version): New function.
6396 (x-server-version): Use it.
6397 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
6398 (x-server-vendor): Don't check_ns().
6399
6400 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
6401
6402 2008-10-22 Juanma Barranquero <lekktu@gmail.com>
6403
6404 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
6405 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
6406
6407 2008-10-22 Kenichi Handa <handa@m17n.org>
6408
6409 * syntax.c (scan_words): Call word_boundary_p instead of comparing
6410 scripts.
6411
6412 * category.c (word_boundary_p): Check scripts instead of charset.
6413 Handle nil value in word-separating-categories and
6414 word-combining-categories.
6415 (syms_of_category): Fix docstrings of word-separating-categories
6416 and word-combining-categories.
6417
6418 2008-10-21 Eli Zaretskii <eliz@gnu.org>
6419
6420 * coding.c (Fencode_coding_region, Fdecode_coding_region)
6421 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
6422
6423 2008-10-21 Martin Rudalics <rudalics@gmx.at>
6424
6425 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
6426 Rename arg "buffer" to "buffer_or_name".
6427 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
6428 it optional.
6429 (no_switch_window): Remove since the return value is not used.
6430 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
6431 Consider window as dedicated when Fwindow_dedicated_p returns a
6432 non-nil value.
6433 * lisp.h: Remove prototype for no_switch_window.
6434
6435 2008-10-21 Jan Djärv <jan.h.d@swipnet.se>
6436
6437 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
6438 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
6439
6440 2008-10-21 Kenichi Handa <handa@m17n.org>
6441
6442 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
6443 check Vlatin_extra_code_table.
6444
6445 2008-10-20 Eli Zaretskii <eliz@gnu.org>
6446
6447 * fileio.c (Fset_file_modes): Doc fix.
6448
6449 2008-10-19 Michael Albinus <michael.albinus@gmx.de>
6450
6451 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
6452 in arrays.
6453
6454 2008-10-19 Martin Rudalics <rudalics@gmx.at>
6455
6456 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6457 Mention kill-buffer in doc-string.
6458 (Fset_window_buffer): Reinsert tem check removed in last commit.
6459 (Fenlarge_window, Fshrink_window): Have argument names and
6460 doc-string follow Elisp manual more closely.
6461
6462 2008-10-18 Eli Zaretskii <eliz@gnu.org>
6463
6464 * fileio.c (Fset_file_modes): Doc fix.
6465
6466 2008-10-18 Martin Rudalics <rudalics@gmx.at>
6467
6468 * window.c (Fwindow_width, Fset_window_start)
6469 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
6470 (Fdelete_windows_on, Freplace_buffer_in_windows):
6471 Make doc-strings follow code and Elisp manual more closely.
6472 (Fwindow_dedicated_p): Make window argument optional.
6473 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
6474 (Fset_window_buffer): Respect any non-nil dedicated value for
6475 window. Rename "buffer" argument to "buffer_or_name".
6476
6477 2008-10-18 Ulrich Mueller <ulm@gentoo.org>
6478
6479 * m/sh3.h: New file, machine description for SuperH.
6480
6481 2008-10-17 Martin Rudalics <rudalics@gmx.at>
6482
6483 * window.c (Fsplit_window): Rename arg horflag to horizontal.
6484
6485 2008-10-17 Kenichi Handa <handa@m17n.org>
6486
6487 * ftfont.c (ftfont_otf_features): Fix indexing
6488 gsub_gpos->FeatureList.Feature. Check the validity of indices.
6489
6490 2008-10-16 Magnus Henoch <mange@freemail.hu>
6491
6492 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
6493 (Fdbus_call_method_asynchronously): Ditto.
6494 This change makes C-h f display the argument list.
6495
6496 2008-10-16 Chong Yidong <cyd@stupidchicken.com>
6497
6498 * fileio.c (Fexpand_file_name): Doc fix.
6499
6500 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
6501 of :foreground and :background equivalent to unspecified (20.x
6502 compatibility).
6503
6504 2008-10-15 Eli Zaretskii <eliz@gnu.org>
6505
6506 * buffer.c (syms_of_buffer): Doc fix.
6507
6508 2008-10-14 Kenichi Handa <handa@m17n.org>
6509
6510 * font.c (font_clear_prop): When clearing font width, clear the
6511 average width field too.
6512
6513 2008-10-12 Andreas Schwab <schwab@suse.de>
6514
6515 * ftfont.c (ftfont_shape_by_flt): Make static.
6516 * ftfont.h (ftfont_shape_by_flt): Don't declare.
6517
6518 * font.c: Don't include <m17n-flt.h>.
6519
6520 2008-10-10 Eli Zaretskii <eliz@gnu.org>
6521
6522 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
6523
6524 2008-10-09 Eli Zaretskii <eliz@gnu.org>
6525
6526 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
6527 away code.
6528
6529 2008-10-09 Chong Yidong <cyd@stupidchicken.com>
6530
6531 * dispnew.c (update_text_area): Avoid looping due to large glyph
6532 overhangs (bug#1070).
6533
6534 2008-10-09 Kenichi Handa <handa@m17n.org>
6535
6536 * fontset.c (face_for_char): If face->fontset is negative, just
6537 return ascii_face.
6538
6539 * font.c (font_delete_unmatched): Fix previous change.
6540 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
6541
6542 2008-10-09 Martin Rudalics <rudalics@gmx.at>
6543
6544 * frame.c (Fraise_frame): On text-only terminals select frame in
6545 order to make it visible. (Bug#1061)
6546
6547 2008-10-08 Chong Yidong <cyd@stupidchicken.com>
6548
6549 * fontset.c (fontset_find_font): Check frame validity.
6550
6551 2008-10-07 Chong Yidong <cyd@stupidchicken.com>
6552
6553 * gtkutil.c (xg_display_open): Reset default display if none exists.
6554 (xg_display_close): Allow Emacs to close all displays (bug#985).
6555
6556 2008-10-06 Andreas Schwab <schwab@suse.de>
6557
6558 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
6559
6560 2008-10-06 Chong Yidong <cyd@stupidchicken.com>
6561
6562 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
6563
6564 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
6565
6566 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
6567 during initialization.
6568
6569 2008-10-04 Eli Zaretskii <eliz@gnu.org>
6570
6571 * xdisp.c (redisplay_internal): If frame switched, redisplay the
6572 whole thing on MSDOS frames as well as on a TTY.
6573
6574 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
6575 well as for TTY.
6576 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
6577 well as on a TTY.
6578
6579 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
6580 as well as for TTY.
6581
6582 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
6583
6584 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
6585 MSDOS frames as well.
6586
6587 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6588
6589 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
6590 correct arguments.
6591 * menu.c (find_and_return_menu_selection): Add cast.
6592
6593 2008-10-03 Glenn Morris <rgm@gnu.org>
6594
6595 * emacs.c (USAGE1): Add --daemon.
6596
6597 2008-10-02 Eli Zaretskii <eliz@gnu.org>
6598
6599 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
6600 100, so it's in percents as advertised.
6601
6602 2008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6603
6604 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
6605 (ns_output.current_cursor, ns_output.desired_cursor)
6606 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
6607 (FRAME_NEW_CURSOR_COLOR): Remove.
6608
6609 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
6610 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
6611 enumeration (HOLLOW_BOX_CURSOR, etc.).
6612
6613 * nsterm.m (ns_frame_rehighlight): Remove commented code.
6614 (draw_window_cursor): Simplify code.
6615 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
6616 Don't change cursor type. In latter, call rehighlight instead of doing
6617 updates manually.
6618 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
6619 Use core Emacs cursor types.
6620
6621 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
6622
6623 2008-10-02 Martin Rudalics <rudalics@gmx.at>
6624
6625 * process.c (Faccept_process_output): Fix doc-string.
6626
6627 2008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
6628
6629 * gmalloc.c (__sbrk): Also define for uClibc.
6630
6631 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
6632 for uClibc.
6633
6634 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6635
6636 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
6637 styles.
6638 (nsfont_open): Reenable the cache.
6639
6640 2008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6641
6642 * font.c (font_matching_entity): Reflect ATTRS in font selection.
6643 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
6644
6645 2008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
6646
6647 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
6648 a suspended terminal.
6649
6650 2008-09-30 Michael Albinus <michael.albinus@gmx.de>
6651
6652 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
6653
6654 2008-09-30 Eli Zaretskii <eliz@gnu.org>
6655
6656 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
6657
6658 2008-09-30 Chong Yidong <cyd@stupidchicken.com>
6659
6660 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
6661 in a continued line coincides with a line beginning.
6662
6663 2008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6664
6665 * nsfont.m (nsfont_trait_distance): Fix bug.
6666 (nsfont_list): Return a list rather than a vector (syncs with Handa
6667 changes of 2008-05-14).
6668 (nsfont_open): Improve logging.
6669
6670 2008-09-29 Andreas Schwab <schwab@suse.de>
6671
6672 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
6673
6674 2008-09-28 Martin Rudalics <rudalics@gmx.at>
6675
6676 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
6677 name as char-resolve-modifiers.
6678 Reported by: Markus Triska <markus.triska@gmx.at>
6679
6680 2008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
6681
6682 * dispnew.c (init_display): Return earlier when running as a daemon.
6683
6684 2008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6685
6686 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
6687
6688 2008-09-27 Eli Zaretskii <eliz@gnu.org>
6689
6690 * composite.c (Fcomposition_get_gstring)
6691 (Fcompose_region_internal, Fcompose_string_internal)
6692 (Ffind_composition_internal): Doc fix.
6693 (syms_of_composite) <compose-chars-after-function>: Doc fix.
6694 (syms_of_composite) <auto-composition-function>: Doc fix.
6695 (syms_of_composite) <composition-function-table>: Doc fix.
6696
6697 2008-09-25 Chong Yidong <cyd@stupidchicken.com>
6698
6699 * search.c (wordify): New argument for lax word-ends.
6700 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
6701
6702 2008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
6703
6704 * lisp.h (is_daemon): Declare.
6705 * dispnew.c (init_display): Do not try to initialize the terminal
6706 when running as a daemon.
6707
6708 2008-09-22 Chong Yidong <cyd@stupidchicken.com>
6709
6710 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
6711 x_display_pixel_height.
6712
6713 2008-09-22 Martin Rudalics <rudalics@gmx.at>
6714
6715 * undo.c (record_point): Don't call Fundo_boundary for first
6716 change. (Bug#731)
6717
6718 2008-09-22 Juanma Barranquero <lekktu@gmail.com>
6719
6720 * emacs.c (Fdaemonp): Doc fix.
6721
6722 2008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
6723
6724 * emacs.c (main): Place #ifdef in the proper place.
6725
6726 2008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
6727
6728 * emacs.c (standard_args): Add --daemon.
6729 (main): Disconnect from the terminal when --daemon is passed.
6730 (is_daemon): New variable.
6731 (Fdaemonp): New function.
6732 (syms_of_emacs): Defsubr it.
6733
6734 2008-09-20 Chong Yidong <cyd@stupidchicken.com>
6735
6736 * xdisp.c (get_next_display_element): Handle string display
6737 correctly when checking for the end of a box run.
6738
6739 2008-09-20 Glenn Morris <rgm@gnu.org>
6740
6741 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
6742 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
6743 (Frename_file): Avoid copying to trash if a rename involves
6744 a delete. (Bug#964).
6745
6746 2008-09-20 Eli Zaretskii <eliz@gnu.org>
6747
6748 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
6749 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
6750 frames as well as termcap frames.
6751 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
6752 get_named_tty.
6753
6754 2008-09-19 Eli Zaretskii <eliz@gnu.org>
6755
6756 * process.c (procfs_system_process_attributes): Fix cmdline in
6757 case /proc/PID/cmdline is empty.
6758
6759 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
6760 x_display_pixel_height.
6761
6762 2008-09-19 Juanma Barranquero <lekktu@gmail.com>
6763
6764 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
6765
6766 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
6767 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
6768
6769 2008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
6770
6771 * dispextern.h (struct it): Move line_wrap away from the middle of
6772 bitfields. Move voffset in struct iterator_stack_entry after the
6773 bitfields. Move tab_width near after another short.
6774
6775 2008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
6776
6777 * frame.h (struct frame): Move alpha from the middle of bitfields.
6778
6779 * window.h (struct window): Move frozen_window_start_p after the
6780 rest of the bitfields to reduce padding.
6781
6782 2008-09-18 Chong Yidong <cyd@stupidchicken.com>
6783
6784 * xterm.h (x_display_info): Remove `height' and `width' members.
6785
6786 * nsterm.h (ns_display_info): Remove `height' and `width' members.
6787
6788 * w32term.h (w32_display_info): Remove `height', `width',
6789 `height_in', and `width_in' members.
6790
6791 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6792 New functions.
6793 (x_calc_absolute_position): Use them.
6794 (x_term_init): Omit removed `height' and `width' members.
6795
6796 * w32term.c (x_display_pixel_height, x_display_pixel_width):
6797 New functions.
6798 (w32_read_socket, x_calc_absolute_position): Use them.
6799 (w32_initialize_display_info, w32_term_init): Omit removed members
6800 of w32_display_info.
6801
6802 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
6803 New functions.
6804 (ns_initialize_display_info): Omit removed members of ns_display_info.
6805
6806 * xterm.c (x_display_pixel_height, x_display_pixel_width):
6807 New functions.
6808 (x_calc_absolute_position): Use them.
6809 (x_term_init): Omit removed `height' and `width' members.
6810
6811 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
6812 (compute_tip_xy):
6813 * frame.c (x_fullscreen_adjust):
6814 * xmenu.c (menu_position_func): Use x_display_pixel_height and
6815 x_display_pixel_width.
6816
6817 2008-09-18 Kenichi Handa <handa@m17n.org>
6818
6819 * composite.c (fill_gstring_header): Don't check FROM and TO here.
6820 (composition_compute_stop_pos): Fix handling of static composition.
6821 (Fcomposition_get_gstring): Check FROM and TO at first.
6822
6823 2008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
6824
6825 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
6826 mixup (YAILOM).
6827
6828 2008-09-17 Chong Yidong <cyd@stupidchicken.com>
6829
6830 * indent.c (Fvertical_motion): Use position reported by iterator
6831 instead of PT for determining screen motion (bug#943).
6832
6833 2008-09-17 Romain Francoise <romain@orebokech.com>
6834
6835 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
6836
6837 2008-09-17 Kenichi Handa <handa@m17n.org>
6838
6839 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
6840
6841 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
6842 if necessary.
6843
6844 2008-09-16 Kenichi Handa <handa@m17n.org>
6845
6846 * coding.c (make_conversion_work_buffer): Avoid calling
6847 Fget_buffer_create if it is not necessary.
6848
6849 2008-09-15 Martin Rudalics <rudalics@gmx.at>
6850
6851 * window.c (Fselect_window): Don't update window_select_count and
6852 use_time when norecord is not nil.
6853
6854 2008-09-14 Kenichi Handa <handa@m17n.org>
6855
6856 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
6857 specpdl_ptr.
6858
6859 2008-09-12 Kenichi Handa <handa@m17n.org>
6860
6861 * indent.c (scan_for_column): Don't handle automatic composition
6862 if the current buffer is not associated with a window.
6863
6864 * composite.c (composition_reseat_it): If the current buffer is
6865 not associated with a window, ignore the automatic composition.
6866 (find_automatic_composition): Likewise.
6867
6868 2008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
6869
6870 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
6871 (Fgpm_mouse_stop): Use it.
6872 * termhooks.h (close_gpm): Declare.
6873 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
6874 connection if Gpm_GetEvent fails.
6875
6876 * window.c (set_window_buffer): Always preserve current-buffer.
6877
6878 2008-09-12 Glenn Morris <rgm@gnu.org>
6879
6880 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
6881
6882 2008-09-11 Glenn Morris <rgm@gnu.org>
6883
6884 * charset.c (charset-map-path): Doc fix.
6885
6886 2008-09-10 Kenichi Handa <handa@m17n.org>
6887
6888 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
6889
6890 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
6891 compose a grapheme cluster with the preceding base glyph.
6892
6893 * composite.c (composition_compute_stop_pos): Fix previous change.
6894 Reset cmp_it->id to -1 at first.
6895
6896 2008-09-10 Glenn Morris <rgm@gnu.org>
6897
6898 * Makefile.in (character.o, chartab.o): Fix config.h typo.
6899
6900 2008-09-09 Chong Yidong <cyd@stupidchicken.com>
6901
6902 * keyboard.c (read_key_sequence): Reapply translation maps when
6903 switching keyboards.
6904
6905 2008-09-09 Kenichi Handa <handa@m17n.org>
6906
6907 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
6908 characters.
6909
6910 * composite.c (FORWARD_CHAR): Fix calculation
6911 of (POSITION).pos_byte.
6912 (composition_compute_stop_pos): Limit the search of composition to
6913 at most 500 characters ahead. If we reach the limit or find a
6914 newline, set cmp_it->ch to -2 and return 0.
6915 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
6916
6917 2008-09-08 Kenichi Handa <handa@m17n.org>
6918
6919 * indent.c (Fvertical_motion): Be sure to set
6920 it_overshoot_expected if it.cmp_it.id is non-negative.
6921
6922 2008-09-07 Andreas Schwab <schwab@suse.de>
6923
6924 * callproc.c (Fcall_process): Don't hold references to string data
6925 across garbage collection. Move initialisation of new_argv down
6926 to avoid compiler bug.
6927
6928 2008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6929
6930 * process.c (Fsystem_process_attributes): Doc fix.
6931
6932 2008-09-07 Chong Yidong <cyd@stupidchicken.com>
6933
6934 * callproc.c (Fcall_process): Canonicalize current directory name.
6935
6936 * xdisp.c (move_it_to): When moving by vpos, ensure that the
6937 iterator advances to the next line if the current line ends in a
6938 continued tab.
6939
6940 2008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
6941
6942 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
6943 member to point to cmp_from.
6944
6945 * xdisp.c: Doc fix for references to gidx data member.
6946
6947 2008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
6948
6949 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
6950
6951 2008-09-07 Kenichi Handa <handa@m17n.org>
6952
6953 * composite.c (FORWARD_CHAR): Check STOP after
6954 incrementing (POSITION).pos.
6955
6956 2008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
6957
6958 * process.c (Fsystem_process_attributes): Doc fix.
6959
6960 2008-09-06 Chong Yidong <cyd@stupidchicken.com>
6961
6962 * keyboard.c (Ftop_level): Doc fix.
6963
6964 2008-09-06 Eli Zaretskii <eliz@gnu.org>
6965
6966 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
6967 minibuffer, don't let lower part of menu invade the echo area.
6968
6969 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
6970 "char *q" to access menu text and advance through it. Revert the
6971 change that displayed ">" instead of ASCII character 0x10.
6972
6973 2008-09-05 Eli Zaretskii <eliz@gnu.org>
6974
6975 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
6976 toggle boxes and radio buttons on MS-DOS as well.
6977
6978 2008-09-05 Kenichi Handa <handa@m17n.org>
6979
6980 * composite.c (autocmp_chars): Check lookback count.
6981 (composition_compute_stop_pos): Set cmp_it->lookback.
6982 (composition_reseat_it): Check lookback count.
6983 (struct position_record): New struct.
6984 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
6985 (find_automatic_composition): New function.
6986 (composition_adjust_point): Use find_automatic_composition.
6987
6988 * dispextern.h (struct composition_it): New member lookback.
6989
6990 2008-09-02 Chong Yidong <cyd@stupidchicken.com>
6991
6992 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
6993 if moving by a single line.
6994
6995 2008-09-02 Andreas Schwab <schwab@suse.de>
6996
6997 * xterm.c (x_delete_display): Fix merge error.
6998
6999 * fileio.c (Fexpand_file_name): Remove unused variables.
7000
7001 2008-09-02 Eli Zaretskii <eliz@gnu.org>
7002
7003 * fileio.c (Fexpand_file_name): Copy argument `name' into local
7004 storage on all platforms, not just on DOS_NT.
7005
7006 2008-09-02 Jason Rumney <jasonr@gnu.org>
7007
7008 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
7009 Ensure mouse is not grabbed after menu is finished.
7010
7011 2008-09-01 Chong Yidong <cyd@stupidchicken.com>
7012
7013 * xfaces.c (Finternal_set_alternative_font_family_alist)
7014 (Finternal_set_alternative_font_registry_alist): Properly copy
7015 entire alist structure.
7016
7017 2008-09-01 Kenichi Handa <handa@m17n.org>
7018
7019 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
7020 representative chars of the script is a vector.
7021 (ftfont_list): Handle the case where the representative chars of
7022 the script is a vector.
7023
7024 * character.c (syms_of_character): Docstring of
7025 script-representative-chars fixed.
7026
7027 2008-08-31 Eli Zaretskii <eliz@gnu.org>
7028
7029 * msdos.c (BUILD_CHAR_GLYPH): New macro.
7030 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
7031 the menu. Allocate larger buffer for `text', to account for
7032 possible ^C characters.
7033
7034 2008-08-31 Martin Rudalics <rudalics@gmx.at>
7035
7036 * xdisp.c (prepare_menu_bars): Don't call
7037 Vwindow_size_change_functions with arg Qt.
7038
7039 2008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
7040
7041 * font.h (font_range):
7042 * fileio.c (report_file_error):
7043 * composite.c (composition_update_it): Yet another int/Lisp_Object
7044 mixup (YAILOM).
7045
7046 2008-08-30 Glenn Morris <rgm@gnu.org>
7047
7048 * data.c (Fmake_variable_frame_local): Doc fix.
7049
7050 * frame.c (Fmodify_frame_parameters): Doc fix.
7051
7052 2008-08-30 Eli Zaretskii <eliz@gnu.org>
7053
7054 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
7055 needed by GetTokenInformation.
7056 (w32_system_process_attributes): Check return values of all system
7057 APIs.
7058
7059 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
7060 only when the state changes.
7061 (IT_update_begin, IT_update_end): Add termscript trace.
7062
7063 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
7064 clipboard is unavailable. Set dst to NULL if it doesn't point to
7065 malloc'ed data.
7066 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
7067 passing random values to xfree.
7068
7069 * dispnew.c (init_display): Set `tty's association in frame's
7070 parameters alist to the name of the terminal device, if that is known.
7071
7072 2008-08-29 Jason Rumney <jasonr@gnu.org>
7073
7074 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
7075
7076 2008-08-29 Eli Zaretskii <eliz@gnu.org>
7077
7078 * composite.c (fill_gstring_body): Avoid compiler warnings.
7079
7080 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
7081 LGLYPH_SET_CODE to avoid compiler warnings.
7082
7083 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
7084
7085 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
7086
7087 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
7088 LGLYPH_SET_CODE.
7089
7090 2008-08-29 Kenichi Handa <handa@m17n.org>
7091
7092 * fileio.c (report_file_error): Don't downcase the first character
7093 of errstring if it is still unibyte.
7094
7095 2008-08-29 Kenichi Handa <handa@m17n.org>
7096
7097 These changes are to re-implement the automatic composition so
7098 that it doesn't use text properties.
7099
7100 * Makefile.in (ftfont.o): Depend on composite.h.
7101 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
7102
7103 * character.h (Vunicode_category_table): Extern it.
7104
7105 * character.c (Vunicode_category_table): New variable.
7106 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
7107
7108 * chartab.c (optimize_sub_char_table): Perform more greedy
7109 optimization.
7110
7111 * composite.h (enum composition_method):
7112 Delete COMPOSITION_WITH_GLYPH_STRING.
7113 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
7114 (Vcomposition_function_table): Extern it.
7115 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
7116 (composition_gstring_put_cache, composition_gstring_from_id)
7117 (composition_gstring_p, composition_gstring_width)
7118 (composition_compute_stop_pos, composition_reseat_it)
7119 (composition_update_it, composition_adjust_point): Extern them.
7120 (Fcomposition_get_gstring): EXFUN it.
7121
7122 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
7123 (Vcomposition_function_table)
7124 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
7125 (gstring_hash_table, gstring_work, gstring_work_headers):
7126 New variables.
7127 (gstring_lookup_cache, composition_gstring_put_cache)
7128 (composition_gstring_from_id, composition_gstring_p)
7129 (composition_gstring_width, fill_gstring_header)
7130 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
7131 (composition_reseat_it, composition_update_it)
7132 (composition_adjust_point, Fcomposition_get_gstring): New functions.
7133 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
7134 and gstring_work_headers. DEFVAR_LISP composition-function-table.
7135 Defsubr composition_get_gstring.
7136
7137 * dispextern.h (struct glyph): New union u.cmp. Delete the member
7138 cmp_id.
7139 (struct glyph_string): Delete the member gidx. New members
7140 cmp_id, cmp_from, and cmp_to.
7141 (enum it_method): Delete GET_FROM_COMPOSITION.
7142 (struct composition_it): New struct.
7143 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
7144 Delete c, len, cmp_id, cmp_len in u.comp.
7145
7146 * font.h (enum lgstring_indices): Delete it.
7147 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
7148 (enum lglyph_indices): Likewise.
7149 (font_range): Adjust extern.
7150 (font_fill_lglyph_metrics): Extern it.
7151
7152 * font.c (QCf): New variable.
7153 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7154 (font_prepare_composition): Delete this function.
7155 (font_range): Type and arguments changed.
7156 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
7157 (font_fill_lglyph_metrics): New function.
7158 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
7159 (syms_of_font): DEFSYM QCf. Delete defsubr for
7160 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
7161 Defsubr Sfont_shape_gstring.
7162
7163 * fontset.h (font_for_char): Extern it.
7164
7165 * fontset.c (font_for_char): New function.
7166
7167 * ftfont.c: Include composite.h.
7168 (ftfont_resolve_generic_family): Add langset "en" to pattern.
7169 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7170
7171 * indent.c: Include composite.h and dispextern.h.
7172 (check_composition): Delete this function.
7173 (scan_for_column): Handle composition by
7174 composition_compute_stop_pos, composition_reseat_it, and
7175 composition_update_it.
7176 (compute_motion): Likewise.
7177 (Fvertical_motion): Fix checking of composition.
7178
7179 * keyboard.c (adjust_point_for_property): Check composition by
7180 composition_adjust_point.
7181
7182 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
7183 struct glyph_string.
7184
7185 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
7186 (append_composite_glyph): Adjust for the change of struct it and
7187 struct glyph.
7188 (produce_composite_glyph): Likewise.
7189
7190 * w32term.c (x_draw_composite_glyph_string_foreground):
7191 Adjust for the change of struct glyph_string.
7192 (x_draw_glyph_string): Likewise.
7193
7194 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
7195 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7196
7197 * xdisp.c: Include font.h.
7198 (it_props): Delete the entry for Qauto_composed.
7199 (init_iterator): Initialize it->cmp_it.id to -1.
7200 (compute_stop_pos): Call composition_compute_stop_pos.
7201 (face_before_or_after_it_pos): Adjust for the change of struct it.
7202 (handle_auto_composed_prop): Delete it.
7203 (handle_composition_prop): Handle only static composition.
7204 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
7205 from xassert. Initialize it->cmp_it.stop_pos.
7206 (push_it): Adjust for the change of struct it.
7207 (pop_it): Likewise.
7208 (get_next_element): Delete next_element_from_composition.
7209 (CHAR_COMPOSED_P): New macro.
7210 (get_next_display_element): For automatic composition, get a face
7211 from the font in the glyph-string.
7212 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
7213 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
7214 (next_element_from_string): Check if the character at the current
7215 position is composed by CHAR_COMPOSED_P.
7216 (next_element_from_buffer): Likewise.
7217 (next_element_from_composition): Adjust for the change of struct it.
7218 Update it->cmp_it.
7219 (dump_glyph): Adjust for the change of struct glyph.
7220 (fill_composite_glyph_string): Adjust for the change of struct
7221 it and struct glyph. Don't handle automatic composition here.
7222 (fill_gstring_glyph_string): New function.
7223 (x_get_glyph_overhangs): Handle automatic composition.
7224 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
7225 (BUILD_GSTRING_GLYPH_STRING): New macro.
7226 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
7227 automatic composition.
7228 (append_composite_glyph): Adjust for the change of struct it and
7229 struct glyph.
7230 (x_produce_glyphs): Adjust for the change of struct it.
7231
7232 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
7233 the change of struct glyph_string.
7234 (x_draw_glyph_string): Likewise.
7235
7236 2008-08-29 Glenn Morris <rgm@gnu.org>
7237
7238 * buffer.c (word-wrap): Doc fix.
7239 * xdisp.c (truncate-partial-width-windows): Doc fix.
7240 Increase default to 50.
7241
7242 2008-08-29 Chong Yidong <cyd@stupidchicken.com>
7243
7244 * xdisp.c (update_tool_bar_unwind): New function.
7245 (update_tool_bar): Temporarily set selected frame before building
7246 tool-bar items.
7247
7248 2008-08-28 Michael Albinus <michael.albinus@gmx.de>
7249
7250 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
7251 snprintf, respectively.
7252 (xd_append_arg): Convert strings with Fstring_make_unibyte.
7253
7254 2008-08-28 Chong Yidong <cyd@stupidchicken.com>
7255
7256 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
7257 LDFLAGS to GNUstep CC invocation.
7258
7259 2008-08-27 Chong Yidong <cyd@stupidchicken.com>
7260
7261 * indent.c (Fvertical_motion): Revert last change. Handle the
7262 general case where we are moving forward, and PT spans multiple
7263 screen lines.
7264
7265 * eval.c (find_handler_clause): Temporarily increase
7266 max-lisp-eval-depth while printing the backtrace buffer, to
7267 guarantee that help-mode code can run.
7268
7269 2008-08-27 Eli Zaretskii <eliz@gnu.org>
7270
7271 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
7272 colors under -rv.
7273 (IT_set_frame_parameters): Don't swap foreground and background
7274 colors if `(reverse . t)' is present in the frame properties.
7275 (internal_terminal_init): Call init_frame_faces only for the
7276 initial frame.
7277
7278 2008-08-27 Andreas Schwab <schwab@suse.de>
7279
7280 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
7281
7282 2008-08-27 Andreas Schwab <schwab@suse.de>
7283
7284 * search.c (search_buffer): Set char_base to zero only at the end.
7285
7286 2008-08-27 Kenichi Handa <handa@m17n.org>
7287
7288 * fileio.c (report_file_error): Fix handling of multibyte error string.
7289
7290 2008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
7291
7292 * xterm.c (x_term_init): Temporarily hide the partially
7293 initialized terminal while calling vendor-specific-keysyms.
7294
7295 2008-08-26 Eli Zaretskii <eliz@gnu.org>
7296
7297 * msdos.c (internal_terminal_init): Most initializations done only
7298 once, especially initial_screen_colors[] and termscript open.
7299
7300 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
7301
7302 * eval.c (Fcondition_case): Doc fix.
7303
7304 * widgetprv.h (EmacsFramePart): Change font member to the new font
7305 struct.
7306
7307 * widget.c: Include character.h and font.h for XSETFONT.
7308 (setup_frame_gcs): Compute X font id from font struct, just once.
7309
7310 2008-08-26 Eli Zaretskii <eliz@gnu.org>
7311
7312 * term.c (get_named_tty): Fix last change.
7313
7314 2008-08-26 Chong Yidong <cyd@stupidchicken.com>
7315
7316 * indent.c (Fvertical_motion): If moving forward starting from a
7317 multi-line string, move the iterator to the last line of that string.
7318
7319 2008-08-25 Eli Zaretskii <eliz@gnu.org>
7320
7321 * frame.c (do_switch_frame): Mark previously displayed frame as
7322 obscured for FRAME_MSDOS_P frames as well.
7323
7324 2008-08-24 Eli Zaretskii <eliz@gnu.org>
7325
7326 * frame.c (make_terminal_frame): Initialize f->terminal,
7327 f->terminal->reference_count, and scroll bars on MS-DOS as well.
7328 Set the top frame to newly created frame.
7329 (Fmake_terminal_frame): Reuse the_only_display_info.
7330
7331 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
7332 estimating available memory.
7333
7334 2008-08-23 David Reitter <david.reitter@gmail.com>
7335
7336 * nsterm.m (ns_draw_window_cursor): Don't call
7337 NSDisableScreenUpdates and NSEnableScreenUpdates on
7338 non-NS_IMPL_COCOA systems.
7339
7340 2008-08-23 Andreas Schwab <schwab@suse.de>
7341
7342 * process.c (procfs_system_process_attributes): Fix use of
7343 uninitialized variables.
7344
7345 2008-08-23 Eli Zaretskii <eliz@gnu.org>
7346
7347 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
7348
7349 * dispnew.c (init_display): Remove MS-DOS specific conditions for
7350 calling tty-set-up-initial-frame-faces.
7351
7352 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
7353 Allow MSDOS frames along with X frames.
7354
7355 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
7356 addition to output_termcap.
7357
7358 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
7359
7360 * termchar.h (FRAME_TTY): Support output_msdos_raw.
7361 (struct tty_display_info) [MSDOS]: Add fields related to mouse
7362 highlight.
7363
7364 * process.c [!subprocesses]: Define QCname.
7365 (syms_of_process): Intern and staticpro it.
7366
7367 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
7368 Adjust for changes in encoding/decoding routines.
7369 Use encode_coding_object and decode_coding_object instead of
7370 encode_coding and decode_coding.
7371
7372 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
7373
7374 * dosfns.c: Include frame.h before termhooks.h.
7375 (dos_cleanup): Use CURTTY ()->termscript instead of a global
7376 variable termscript.
7377
7378 * s/msdos.h (USER_FULL_NAME): Define.
7379 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
7380
7381 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
7382 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
7383 pw->pw_gecos.
7384
7385 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
7386 SELECTED_FRAME as additional (1st) argument.
7387 (tty_read_avail_input): Handle output_msdos_raw in
7388 addition to output_termcap.
7389
7390 * msdos.c: Include frame.h before termhooks.h.
7391 (mouse_on, mouse_off, mouse_moveto, mouse_init)
7392 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
7393 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
7394 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
7395 (IT_set_terminal_modes, IT_reset_terminal_modes)
7396 (IT_set_frame_parameters): Use tty->termscript instead of a global
7397 variable termscript.
7398 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
7399 global variable terminal_coding. Don't refer to
7400 Vnonascii_translation_table.
7401 (internal_terminal_init): Set Vwindow_system in current_kboard.
7402 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
7403 Announce date and time of session start, if termscript is open.
7404 Don't zero out the_only_display_info (it is done in
7405 term.c:init_tty). Open termscript only of not already open.
7406 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
7407 here instead of dos_ttraw. Don't initialize display if this is an
7408 initial tty. Don't set FRAME_FONT.
7409 (Vwindow_system_version): Bump to 23.
7410 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
7411 is available, set up mouse_position_hook.
7412 (dos_ttraw, IT_set_terminal_modes): If called with initial
7413 terminal, do nothing.
7414 (IT_set_frame_parameters): Handle the Qtty_type frame
7415 parameter by calling internal_terminal_init.
7416 (dos_set_window_size, show_mouse_face)
7417 (clear_mouse_face, IT_note_mode_line_highlight)
7418 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
7419 (dos_rawgetc): Use tty_display_info instead of x_display_info.
7420 (initialize_msdos_display): New function.
7421 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
7422 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
7423 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
7424 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
7425 Accept additional argument: a pointer to a frame. Update all callers.
7426 (request_sigio, unrequest_sigio): Don't define, now defined on
7427 sysdep.c.
7428 (IT_write_glyphs): Rewrite to use encode_terminal_code.
7429
7430 * term.c [MSDOS]: Include msdos.h.
7431 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
7432 conditional to DOS_NT. Allow only one call to this function in a
7433 session. Don't allocate a new struct tty_display_info; instead,
7434 reuse the_only_display_info. Call get_tty_size to get screen
7435 dimensions. Call init_baud_rate to set bad_rate.
7436 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
7437 (Fsuspend_tty) [MSDOS]: Don't close input and output.
7438 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
7439 (get_tty_terminal, get_named_tty, Ftty_type)
7440 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
7441 output_termcap.
7442 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
7443 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
7444 only when subprocesses are supported.
7445
7446 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
7447 f->output_data.x.
7448 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
7449 terminal devices.
7450
7451 * msdos.h: Remove definition of struct x_display_info and struct
7452 x_output.
7453 (FRAME_FONT): Use output_data.tty.
7454 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
7455 (struct x_display_info): Rename from display_info. Update all users in
7456 msdos.c.
7457 (struct x_output): Remove background_pixel and foreground_pixel.
7458 (the_only_display_info): Rename from the_only_x_display.
7459 (dos_ttraw): Update prototype.
7460
7461 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
7462 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
7463
7464 2008-08-23 Jason Rumney <jasonr@gnu.org>
7465
7466 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
7467 (fn_TIFFSetDirectory): New library function used.
7468 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
7469 (tiff_load): Use :index to select among multiple images. Set count
7470 property when multiple images exist.
7471 (gif_format): Use :index, not :image.
7472
7473 2008-08-23 Chong Yidong <cyd@stupidchicken.com>
7474
7475 * xdisp.c (try_scrolling): Check INT_MAX instead of
7476 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
7477 to obtain INT_MAX.
7478
7479 2008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
7480
7481 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
7482
7483 2008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
7484
7485 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
7486 GNUstep library location.
7487
7488 2008-08-21 Chong Yidong <cyd@stupidchicken.com>
7489
7490 * xfaces.c (x_update_menu_appearance): Check validity of menu font
7491 before using it.
7492
7493 * puresize.h (BASE_PURESIZE): Increase to 1250000.
7494
7495 2008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7496
7497 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
7498 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
7499 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
7500 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
7501 (EmacsApp-cursor_blink_handler): Remove declaration.
7502 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
7503 match 01 Feb 2008 changes in xterm.c.
7504 (ns_read_socket): Add cast to avoid warning.
7505 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
7506 GNUstep.
7507
7508 2008-08-20 Chong Yidong <cyd@stupidchicken.com>
7509
7510 * xselect.c (x_get_foreign_selection): Return nil if desired
7511 selection could not be obtained, instead of signalling an error.
7512
7513 2008-08-20 David Reitter <david.reitter@gmail.com>
7514
7515 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
7516 * nsterm.m: Remove ns-specific code for cursor blinking.
7517 (ns_draw_window_cursor): Clear cursor properly rather than
7518 redrawing the area. Respect width of bar cursors.
7519 These changes enable the use of generic blink-cursor-mode and
7520 generic cursor types in NS and support smooth cursor movements (do
7521 not blink off after command).
7522 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
7523 Nextstep, too.
7524
7525 2008-08-19 Kenichi Handa <handa@m17n.org>
7526
7527 * font.c (Vfont_log_deferred): New variable.
7528 (font_add_log): Check Vfont_log_deferred.
7529 (font_deferred_log): New function.
7530
7531 * font.h (font_deferred_log): Extern it.
7532
7533 * fontset.c (reorder_font_vector): Use encoding charset of fonts
7534 for sorting.
7535 (face_for_char): Use deferred log.
7536
7537 2008-08-18 Kenichi Handa <handa@m17n.org>
7538
7539 * fontset.c (face_for_char): Add font log.
7540
7541 * font.c (font_add_log): Add the font properties :script, :lang,
7542 and :otf in the log.
7543
7544 2008-08-17 Chong Yidong <cyd@stupidchicken.com>
7545
7546 * xdisp.c: Remove dead code.
7547 (handle_invisible_prop, next_overlay_string): Defer call to
7548 setup_for_ellipsis.
7549 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
7550
7551 2008-08-15 Chong Yidong <cyd@stupidchicken.com>
7552
7553 * xfaces.c (lookup_derived_face): Properly handle possible zero
7554 return value of get_lface_attributes.
7555 (merge_faces): Don't tell lookup_derived_face to signal an error
7556 if face is not found.
7557
7558 * dired.c (Fdirectory_files): Doc fix.
7559
7560 * process.c (make_process): Initialize kill_without_query struct
7561 member.
7562
7563 2008-08-15 Eli Zaretskii <eliz@gnu.org>
7564
7565 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
7566 Alternative calculation of totphys for Visual Studio 6.
7567
7568 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
7569
7570 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
7571 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
7572 All users changed.
7573 (stat): Only root directory passed to GetDriveType. Allow RAM
7574 disk as well as local fixed disk when w32-get-true-file-attributes
7575 is set to `local'.
7576 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
7577 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
7578 (w32_cached_id, w32_add_to_cache): New functions.
7579 (get_name_and_id): Look account names in the cache before calling
7580 lookup_account_sid.
7581 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
7582 New initialization flags.
7583 (globals_of_w32): Initialize them to zero.
7584 (w32_system_process_attributes): Use w32_cached_id and
7585 w32_add_to_cache.
7586
7587 2008-08-14 Lawrence Mitchell <wence@gmx.li>
7588
7589 * lread.c (Fread_char, Fread_char_exclusive): If no character
7590 event is read before timeout is reached, return nil, rather than
7591 converting to a number.
7592
7593 2008-08-14 Chong Yidong <cyd@stupidchicken.com>
7594
7595 * fns.c (use_dialog_box): Doc fix.
7596
7597 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
7598 on OS X.
7599
7600 2008-08-13 Chong Yidong <cyd@stupidchicken.com>
7601
7602 * frame.c (Qns_parse_geometry): New var.
7603 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
7604
7605 2008-08-11 Chong Yidong <cyd@stupidchicken.com>
7606
7607 * xdisp.c (x_produce_glyphs): Handle the case when font has no
7608 space character in calculating tabs.
7609
7610 2008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
7611
7612 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
7613
7614 2008-08-10 Glenn Morris <rgm@gnu.org>
7615
7616 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
7617 silence gcc "limited range of data type" warnings in some
7618 make_fixnum_or_float calls.
7619
7620 2008-08-09 Eli Zaretskii <eliz@gnu.org>
7621
7622 * w32.c (w32_system_process_attributes): If the process does not
7623 exist, return nil.
7624
7625 * w32.c: Include thelp32.h, psapi.h and coding.h.
7626 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
7627 declarations.
7628 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
7629 (Process32Next_Proc): New typedefs.
7630 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
7631 (g_b_init_process32_next, g_b_init_open_thread_token)
7632 (g_b_init_impersonate_self, g_b_init_revert_to_self)
7633 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
7634 (g_b_init_get_process_working_set_size)
7635 (g_b_init_global_memory_status_ex): New static variables.
7636 (globals_of_w32): Initialize them.
7637 (create_toolhelp32_snapshot, process32_first, process32_next)
7638 (open_thread_token, impersonate_self, revert_to_self)
7639 (get_process_memory_info, get_process_working_set_size)
7640 (global_memory_status, global_memory_status_ex): New wrapper
7641 functions.
7642 (w32_list_system_processes, w32_system_process_attributes)
7643 (enable_privilege, restore_privilege, ltime, process_times):
7644 New functions.
7645 (convert_time_raw): New function.
7646 (convert_time): Remove conversion of FILETIME into time in 100
7647 nsec units, call convert_time_raw instead.
7648
7649 * process.h (w32_list_system_processes, w32_system_process_attributes):
7650 Add prototypes.
7651 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
7652 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
7653 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
7654 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
7655
7656 * process.c (Fsystem_process_attributes): Doc fix.
7657
7658 2008-08-08 Chong Yidong <cyd@stupidchicken.com>
7659
7660 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
7661 a continued multi-char glyph; if so, advance to the actual glyph.
7662
7663 2008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7664
7665 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
7666
7667 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
7668 (.m.o): Use it.
7669 * config.in: Regenerate.
7670
7671 2008-08-07 Chong Yidong <cyd@stupidchicken.com>
7672
7673 * xdisp.c (redisplay_window): Revert last change.
7674 (try_window): Check bottom scroll margin too.
7675
7676 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7677
7678 * config.in: Regenerate.
7679
7680 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
7681 -list-load-path-shadows'.
7682 (nsgui.h): Reduce number of things depending on it.
7683
7684 2008-08-06 Chong Yidong <cyd@stupidchicken.com>
7685
7686 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
7687 instead of window-end which does the wrong thing at eob.
7688 (try_cursor_movement): Minor optimization.
7689 (redisplay_window): If scroll margin is defined, don't assume
7690 window doesn't need scrolling.
7691
7692 2008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7693
7694 * config.in: Regenerate.
7695
7696 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
7697 (mostlyclean): Don't delete *.d under NS.
7698
7699 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
7700
7701 2008-08-06 Kenichi Handa <handa@m17n.org>
7702
7703 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
7704
7705 2008-08-06 Andreas Schwab <schwab@suse.de>
7706
7707 * config.in: Regenerate.
7708
7709 2008-08-05 Chong Yidong <cyd@stupidchicken.com>
7710
7711 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
7712 forcing a window start.
7713
7714 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
7715 (auto_save_1): Update modtime when auto-save-list-file-name is on.
7716
7717 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7718
7719 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
7720 argument.
7721
7722 2008-08-05 Juanma Barranquero <lekktu@gmail.com>
7723
7724 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
7725 <scroll-down-aggressively, before-change-functions>:
7726 <after-change-functions>: Reflow docstrings.
7727
7728 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7729 Ken Raeburn <raeburn@gnu.org>
7730
7731 Dock menu customization, based on a patch by Ken Raeburn, plus some
7732 other fixes.
7733 * nsmenu.m (dockMenu): New variable.
7734 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
7735
7736 * nsterm.h (dockMenu): Declare.
7737
7738 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
7739 (ns_term_init): Initialize dockMenu.
7740 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
7741 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
7742 left.
7743
7744 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
7745
7746 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
7747
7748 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
7749
7750 * config.in: Regenerate.
7751
7752 2008-08-04 Seiji Zenitani <zenitani@mac.com>
7753
7754 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
7755
7756 2008-08-04 Chong Yidong <cyd@stupidchicken.com>
7757
7758 * nsterm.h (find_and_call_menu_selection): Fix prototype.
7759
7760 2008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
7761
7762 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
7763
7764 * keyboard.h: Comment an #endif.
7765
7766 * lisp.h (have_menus_p): Adjust comment.
7767
7768 * menu.c (find_and_return_menu_selection): Fix comparison with
7769 client_data.
7770
7771 * nsmenu.m (popup_activated_flag): New variable.
7772 (popup_activated): New function.
7773 (menu-or-popup-active-p): New exported lisp definition.
7774 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
7775 when popup done.
7776 (ns_popup_dialog): Set popup_activated_flag.
7777
7778 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
7779 version for GNUstep (handled by conditional typedef in nsterm.m).
7780 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
7781 in rgb.txt).
7782
7783 * process.c (init_process): Use DARWIN_OS, not DARWIN.
7784
7785 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
7786
7787 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
7788
7789 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
7790 shortcircuit if popup_activated like GTK and X toolkit.
7791
7792 * m/inter386.h: Change DARWIN to DARWIN_OS.
7793
7794 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
7795 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
7796 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
7797 comment on NO_SOCK_SIGIO.
7798
7799 2008-08-03 Chong Yidong <cyd@stupidchicken.com>
7800
7801 * nsterm.m (windowDidResize): Remove stopModal call.
7802
7803 2008-08-03 Andreas Schwab <schwab@suse.de>
7804
7805 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
7806 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
7807
7808 2008-08-02 Chong Yidong <cyd@stupidchicken.com>
7809
7810 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
7811 Don't use uninitialized pointer variable when using getrlimit.
7812
7813 2008-08-02 Jason Rumney <jasonr@gnu.org>
7814
7815 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
7816
7817 2008-08-02 Eli Zaretskii <eliz@gnu.org>
7818
7819 * alloc.c (NSTATICS): Bump to 0x640.
7820
7821 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
7822
7823 * lisp.h: Add prototype for directory_files_internal.
7824
7825 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
7826 New functions.
7827 (syms_of_process): Defsubr them. Add initializations for various
7828 Q* symbols used in procfs_system_process_attributes.
7829 (procfs_list_system_processes, procfs_system_process_attributes)
7830 [HAVE_PROCFS]: New functions.
7831 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
7832 (procfs_get_total_memory): New functions.
7833
7834 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
7835
7836 * xfaces.c (Fx_load_color_file): Fix previous change;
7837 it is #ifdef WINDOWSNT, not WINDOWS_NT.
7838
7839 2008-08-01 Michael Albinus <michael.albinus@gmx.de>
7840
7841 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
7842
7843 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7844
7845 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
7846
7847 2008-08-01 Chong Yidong <cyd@stupidchicken.com>
7848
7849 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
7850
7851 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
7852 define NSApplicationDelegateReplySuccess.
7853 (EmacsView -converstationIdentifier): Use long instead of
7854 NSInteger for GNUstep, since it doesn't have NSInteger.
7855
7856 * xmenu.c: Revert last change.
7857
7858 * keyboard.h: Fix last change.
7859
7860 2008-08-01 Juanma Barranquero <lekktu@gmail.com>
7861
7862 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
7863 on Windows.
7864
7865 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7866
7867 Warning clearing and clean-up in NS port.
7868 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
7869 Add prototypes.
7870 * nsgui.h (FACE_DEFAULT): Remove, unused.
7871 (XGCValues): Change colors to unsigned long.
7872 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
7873 nsterm.m.
7874 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
7875 (ns_list_fonts): Remove, unused.
7876 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
7877 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
7878 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
7879 (nsfont_draw): Compare face colors to 0, not nil.
7880 * nsmenu.m (struct widget_value): Drop unneeded declaration.
7881 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
7882 (-addSubmenuWithTitle:): Use NSMenuItem class.
7883 (ns_popup_menu): Use NO, not NULL, for enabled setting.
7884 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
7885 (ns_clip_to_row): Make gc arg a BOOL.
7886 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
7887 ns_clip_to_row() call.
7888 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
7889 used). Cast FRAME_FONT assignments.
7890 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
7891 (ns_string_to_lispmod): Change arg to const char.
7892 (ns_term_init): Use NSMenuItem class.
7893 (EmacsApp -openFile:): Move to different section of file.
7894 (EmacsApp -application:openFiles:): Don't return a value, call
7895 -replyToOpenOrPrint:.
7896 (EmacsView -keyDown:): Fix up cast.
7897 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
7898 (EmacsView -menuDown:): Cast tag in call to
7899 find_and_call_menu_selection().
7900 (ns_list_fonts): Remove, unused.
7901 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
7902 (ns_fontname_to_xlfd): Make static.
7903 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
7904 Remove prototypes (now in keyboard.h).
7905 (next_menubar_widget_id): Remove, unused.
7906 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
7907 Remove prototypes (now in keyboard.h).
7908 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
7909
7910 2008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
7911
7912 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
7913 (floatfns.o): Depend on syssignal.h.
7914 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
7915
7916 * systty.h: Fix previous change that removed BSD_TERMIOS.
7917 Add comments to #ifdefs.
7918
7919 2008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7920
7921 * w32fns.c (w32-load-color-file): Remove.
7922 (x-open-connection): Use renamed Fx_load_color_file.
7923 * xfaces.c (x-load-color-file): Add.
7924 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
7925 Emacs.clr.
7926 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
7927
7928 2008-07-31 Michael Albinus <michael.albinus@gmx.de>
7929
7930 * dbusbind.c (Fdbus_call_method_asynchronously)
7931 (Fdbus_method_error_internal): New defuns.
7932 (xd_read_message): Handle also reply messages.
7933 (Vdbus_registered_functions_table): Extend docstring.
7934
7935 2008-07-31 Juanma Barranquero <lekktu@gmail.com>
7936
7937 * keyboard.c (gobble_input): Fix previous change.
7938
7939 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7940
7941 * bitmaps/README:
7942 * xfns.c:
7943 * termcap.c:
7944 * term.c:
7945 * syswait.h:
7946 * systty.h:
7947 * systime.h:
7948 * syssignal.h:
7949 * sysdep.c:
7950 * process.h:
7951 * process.c:
7952 * print.c:
7953 * ndir.h:
7954 * lread.c:
7955 * keyboard.c:
7956 * getpagesize.h:
7957 * floatfns.c:
7958 * fileio.c:
7959 * emacs.c:
7960 * doc.c:
7961 * dispnew.c:
7962 * dired.c:
7963 * data.c:
7964 * callproc.c:
7965 * buffer.c:
7966 * README:
7967 * Makefile.in:
7968 * s/template.h:
7969 * s/msdos.h:
7970 * m/vax.h: Remove VMS support.
7971 * s/vms.h:
7972 * vlimit.h:
7973 * uaf.h:
7974 * temacs.opt:
7975 * param.h:
7976 * ioctl.h: Remove file.
7977
7978 2008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
7979
7980 * s/ms-w32.h (MULTI_KBOARD): Remove.
7981 * xterm.c:
7982 * xselect.c:
7983 * xfns.c:
7984 * window.c:
7985 * w32term.c:
7986 * w32fns.c:
7987 * terminal.c:
7988 * termhooks.h:
7989 * term.c:
7990 * sysdep.c:
7991 * keyboard.h:
7992 * keyboard.c:
7993 * frame.h:
7994 * frame.c:
7995 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
7996 * config.in: Regenerate.
7997
7998 2008-07-30 Jason Rumney <jasonr@gnu.org>
7999
8000 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
8001
8002 * w32font.c (w32font_encode_char): Leave as unicode if in range.
8003 (w32font_open_internal): Get unicode version of textmetrics.
8004 Don't enable or disable glyph indices here.
8005 (w32font_open): Disable use of glyph indices.
8006
8007 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
8008
8009 2008-07-30 Chong Yidong <cyd@stupidchicken.com>
8010
8011 * minibuf.c (Vread_buffer_function): Doc fix.
8012
8013 2008-07-30 John Paul Wallington <jpw@pobox.com>
8014
8015 * minibuf.c (read_buffer_completion_ignore_case): New var.
8016 (Fread_buffer): Use it.
8017
8018 2008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
8019
8020 * systty.h (sensemode): Remove empty #if. Remove reference to
8021 BSD_TERMIOS, unused.
8022
8023 * sysdep.c: Remove reference to DGUX.
8024 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
8025
8026 * config.in: Regenerate.
8027
8028 2008-07-30 Jason Rumney <jasonr@gnu.org>
8029
8030 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
8031
8032 2008-07-29 Jason Rumney <jasonr@gnu.org>
8033
8034 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
8035 is populated.
8036 (uniscribe_encode_char): Always use uniscribe.
8037 Avoid using context if cache is populated.
8038
8039 2008-07-29 Jan Djärv <jan.h.d@swipnet.se>
8040
8041 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
8042 open menu.
8043
8044 * gtkutil.c (menu_nav_ended): Remove.
8045 (create_menus): Remove signal connect for menu_nav_ended.
8046
8047 2008-07-28 Chong Yidong <cyd@stupidchicken.com>
8048
8049 * xdisp.c (redisplay_window): Check return value of
8050 compute_window_start_on_continuation_line before forcing a window
8051 start.
8052
8053 2008-07-28 Jason Rumney <jasonr@gnu.org>
8054
8055 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
8056
8057 * w32term.c (w32_enable_unicode_output, cleartype_active):
8058 Remove obsolete display options.
8059 (x_draw_glyph_string_background): Don't use old cleartype_active
8060 workaround.
8061 (w32_initialize): Remove cleartype_active initialization.
8062 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
8063
8064 2008-07-28 Andreas Schwab <schwab@suse.de>
8065
8066 * lisp.h (init_weak_hash_tables, syms_of_font)
8067 (xd_read_queued_messages, syms_of_dbusbind): Declare.
8068 (remove_hash_entry): Don't declare.
8069 * eval.c (maybe_call_debugger): Make static and move before use.
8070 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
8071 * xdisp.c: Include "gtkutil.h" if USE_GTK.
8072 * xterm.h (x_set_frame_alpha): Declare.
8073
8074 2008-07-28 Jan Djärv <jan.h.d@swipnet.se>
8075
8076 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
8077 (create_menus): Connect selection-done to menu_nav_ended.
8078
8079 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8080
8081 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
8082 Set Vx_resource_name to a fallback. Replace read of 'buffered'
8083 parameter with read of 'alpha' one.
8084 (Qns_frame_parameter): Remove.
8085 * nsselect.m (selection-coding-system)
8086 (next-selection-coding-system, Vselection_coding_system)
8087 (Vnext_selection_coding_system): Drop.
8088
8089 2008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8090
8091 * nsfns.m (do-applescript, do_applescript): Rename to
8092 ns-do-applescript, ns_do_applescript, and move within file.
8093
8094 2008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
8095
8096 Remove support for Mac Carbon.
8097 * mactoolbox.c:
8098 * macterm.h:
8099 * macterm.c:
8100 * macselect.c:
8101 * macmenu.c:
8102 * macgui.h:
8103 * macfns.c:
8104 * mac.c: Remove file.
8105 * s/darwin.h:
8106 * m/intel386.h:
8107 * xfaces.c:
8108 * xdisp.c:
8109 * window.c:
8110 * tparam.c:
8111 * termhooks.h:
8112 * termcap.c:
8113 * term.c:
8114 * syssignal.h:
8115 * sysselect.h:
8116 * sysdep.c:
8117 * process.c:
8118 * lread.c:
8119 * lisp.h:
8120 * keyboard.c:
8121 * image.c:
8122 * fringe.c:
8123 * frame.h:
8124 * frame.c:
8125 * fontset.c:
8126 * font.h:
8127 * font.c:
8128 * fns.c:
8129 * fileio.c:
8130 * emacs.c:
8131 * dispnew.c:
8132 * dispextern.h:
8133 * config.in:
8134 * atimer.c:
8135 * Makefile.in: Remove code for Carbon.
8136
8137 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8138
8139 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
8140
8141 2008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8142
8143 * macterm.h (kCGBitmapByteOrder32Host): New define for
8144 non-universal SDKs.
8145
8146 * image.c (mac_create_cg_image_from_image, image_load_image_io)
8147 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8148
8149 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
8150 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8151
8152 2008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
8153
8154 * w32inevt.c: Include dispextern.h.
8155
8156 2008-07-26 Andreas Schwab <schwab@suse.de>
8157
8158 * print.c (print_object): Fix off-by-one in last change.
8159
8160 2008-07-25 Juanma Barranquero <lekktu@gmail.com>
8161
8162 * term.c (syms_of_term): Don't initialize default_orig_pair,
8163 default_set_foreground and default_set_background on Windows.
8164
8165 2008-07-25 Jason Rumney <jasonr@gnu.org>
8166
8167 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
8168 ScriptItemize. Clean up return value checking. Remove unused
8169 variables.
8170 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
8171 shaping engine.
8172
8173 * w32font.c (w32font_has_char): Handle the case where we can't
8174 determine the script for a character.
8175
8176 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
8177
8178 * term.c (syms_of_term): Initialize default_orig_pair,
8179 default_set_foreground, and default_set_background.
8180
8181 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
8182 clash (bug#86).
8183 (getloadavg): Callers changed.
8184
8185 * image.c (svg_load_image): Fix last change.
8186 (svg_load_image): Use rsvg_handle_get_dimensions to check that
8187 image size is valid. Use g_object_unref instead of deprecated
8188 rsvg_handle_free to free rsvg handle.
8189 (x_from_xcolors): Don't initialize pixmap (silence compiler).
8190
8191 2008-07-25 Jason Rumney <jasonr@gnu.org>
8192
8193 * w32font.c (w32font_encode_char): Encode characters outside BMP as
8194 surrogates before looking up glyph index.
8195 (w32font_text_extents): Encode as surrogates if falling back to
8196 functions that need UTF-16 wide chars.
8197
8198 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
8199 BMP as surrogates before looking up glyph index.
8200
8201 2008-07-25 Chong Yidong <cyd@stupidchicken.com>
8202
8203 * image.c (svg_load_image): Check for failure in return value of
8204 rsvg_handle_get_pixbuf. Free rsvg handle when done.
8205
8206 2008-07-25 Jason Rumney <jasonr@gnu.org>
8207
8208 * w32font.c (Fx_select_font): Reverse sense of second arg.
8209
8210 2008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
8211
8212 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
8213 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
8214
8215 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
8216 (PURESIZE): Use it.
8217
8218 2008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
8219
8220 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
8221 * m/alpha.h (TEXT_END):
8222 * m/ibmrs6000.h (TEXT_END):
8223 * m/macppc.h (TEXT_END):
8224 * s/darwin.h (TEXT_END):
8225 * s/msdos.h (TEXT_END): Remove, unused.
8226 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
8227 * s/cygwin.h: Remove comment.
8228
8229 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
8230 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
8231 * m/intel386.h (DOT_GLOBAL_START):
8232 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
8233 (USG): Remove, file not used on USG platforms.
8234
8235 * Makefile.in (HAVE_X11): Remove empty #else.
8236
8237 2008-07-24 Andreas Schwab <schwab@suse.de>
8238
8239 * fileio.c (Finsert_file_contents): Properly adjust undo list
8240 after format conversion.
8241
8242 2008-07-24 Jan Djärv <jan.h.d@swipnet.se>
8243
8244 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
8245 (menu_nav_ended): Remove.
8246 (create_menus): Remove signal connect for menu_nav_ended.
8247 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
8248 create_menus.
8249 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
8250
8251 2008-07-23 Jason Rumney <jasonr@gnu.org>
8252
8253 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
8254 with opened font.
8255 (w32font_open): Set font type to gdi.
8256
8257 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
8258
8259 2008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
8260
8261 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
8262 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
8263 defines it.
8264 * unexec.c (ADDR_CORRECT): Define unconditionally.
8265
8266 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
8267
8268 * unexec.c: Remove code depending on !COFF and USG, the file is
8269 not used for such systems.
8270
8271 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
8272 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
8273 (LD_SWITCH_SYSTEM_1): Remove, update users.
8274
8275 * s/darwin.h (DATA_END):
8276 * m/intel386.h (DATA_END):
8277 * m/ibmrs6000.h (DATA_END):
8278 * m/alpha.h (DATA_END): Remove, unused.
8279
8280 * config.in: Regenerate.
8281 * s/ms-w32.h (subprocesses): Define unconditionally.
8282 * s/template.h (subprocesses): Update comment.
8283 * s/vms.h (subprocesses):
8284 * s/usg5-4.h (subprocesses):
8285 * s/hpux10-20.h (subprocesses):
8286 * s/gnu-linux.h (subprocesses):
8287 * s/cygwin.h (subprocesses):
8288 * s/bsd-common.h (subprocesses):
8289 * s/aix4-2.h (subprocesses):
8290 * s/darwin.h (subprocesses): Do not define, defined by default now.
8291
8292 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
8293 Remove all references.
8294 (temacs): Add GNUstep specific ld flags.
8295
8296 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
8297 similarly to what X does.
8298
8299 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8300
8301 * nsfns.m (x-list-fonts): Remove.
8302 (syms_of_nsfns): Drop the x-list-fonts declaration.
8303 * nsterm.m: Get rid of remaining "//" comments.
8304
8305 2008-07-22 Chong Yidong <cyd@stupidchicken.com>
8306
8307 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
8308
8309 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
8310 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
8311 (Fns_own_selection_internal, Fx_disown_selection_internal)
8312 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
8313
8314 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
8315 ... */' style of docstrings. Doc fixes.
8316
8317 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8318
8319 * terminfo.c (UP, BC, PC): Undo previous change.
8320
8321 * nsfns.m: Rename ns prefixed functions/variables to the
8322 corresponding x versions. Update references.
8323
8324 2008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
8325
8326 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
8327
8328 2008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8329
8330 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
8331 Remove forwarding functions.
8332 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
8333 non-static.
8334 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
8335 non-static.
8336 (ns_frame_parm_handlers): Use the new names.
8337 (syms_of_nsfns): Move to the end of file.
8338
8339 * nsterm.m (syms_of_nsterm): Move to the end of file.
8340
8341 * dispnew.c (init_display): Remove code for X10.
8342
8343 2008-07-22 Jason Rumney <jasonr@gnu.org>
8344
8345 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
8346 bare drive.
8347
8348 2008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8349
8350 * nsterm.m (syms_of_nsterm): Remove debugging println.
8351
8352 2008-07-22 David Reitter <david.reitter@gmail.com>
8353
8354 * nsfns.m (do_applescript, F_do_applescript): NS version of the
8355 Carbon implementation of the same functionality: execute arbitrary
8356 AppleScript code.
8357
8358 2008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8359
8360 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
8361 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
8362 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8363 (Fx_display_mm_height, Fx_display_mm_width)
8364 (Fx_display_backing_store, Fx_display_visual_class)
8365 (Fx_display_save_under, Fx_open_connection)
8366 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
8367 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
8368 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8369 (Fx_display_pixel_width, Fx_display_pixel_height)
8370 (Fx_display_usable_bounds, Fx_display_planes)
8371 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
8372 ... */' style of docstrings.
8373
8374 2008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
8375
8376 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
8377 on this platform.
8378 (mips):
8379 * m/iris4d.h (mips): Do not define.
8380 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
8381
8382 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
8383
8384 * image.c:
8385 * nsfns.m:
8386 * nsselect.m:
8387 * nsterm.h:
8388 * nsterm.m: Rename ns prefixed functions/variables to the
8389 corresponding x versions. Update references.
8390
8391 * m/ibms390x.h (NO_REMAP): Do not undefine.
8392
8393 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
8394
8395 2008-07-21 Chong Yidong <cyd@stupidchicken.com>
8396
8397 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
8398 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
8399 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
8400 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
8401 (Fns_display_mm_height, Fns_display_mm_width)
8402 (Fns_display_backing_store, Fns_display_visual_class)
8403 (Fns_display_save_under, Fns_open_connection)
8404 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
8405 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
8406 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8407 (Fns_display_pixel_width, Fns_display_pixel_height)
8408 (Fns_display_usable_bounds, Fx_display_planes)
8409 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
8410
8411 2008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
8412
8413 * print.c (print_object): Check print_depth before searching for
8414 circularities.
8415
8416 2008-07-21 Michael Albinus <michael.albinus@gmx.de>
8417
8418 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
8419 only sprintf.
8420
8421 2008-07-21 Kenichi Handa <handa@m17n.org>
8422
8423 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
8424
8425 2008-07-20 Andreas Schwab <schwab@suse.de>
8426
8427 * syntax.c (find_start_pos, find_start_value)
8428 (find_start_value_byte, find_start_begv, find_defun_start)
8429 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
8430
8431 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8432
8433 * s/sol2-3.h: Insert contents of s/sol2.h.
8434 (LD_SWITCH_SYSTEM): Remove redundant definition.
8435 * s/sol2.h: Remove, unused.
8436
8437 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8438
8439 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
8440
8441 2008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8442
8443 * Makefile.in (ns_appdir): Fix typo in find command.
8444
8445 2008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8446
8447 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
8448
8449 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
8450 added not supported anymore.
8451
8452 * s/usg5-4-2.h (LIBS_SYSTEM):
8453 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
8454
8455 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8456 * s/lynxos.h (GETPGRP_NO_ARG):
8457 * s/hpux10-20.h (NO_SIOCTL_H):
8458 * s/gnu.h (GETPGRP_NO_ARG):
8459 * s/gnu-linux.h (NO_SIOCTL_H):
8460 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8461 * s/cygwin.h (GETPGRP_NO_ARG):
8462 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
8463 (C_DEBUG_SWITCH): Remove duplicate definition.
8464
8465 * m/ibms390.h: Remove boilerplate comments.
8466
8467 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
8468
8469 * process.c (HAVE_SERIAL): Consolidate ifdefs.
8470 (wait_reading_process_output): Remove code for SunOS, platform not
8471 supported anymore. Use SOLARIS2 instead of sun.
8472
8473 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8474
8475 * font.c (font_open_by_name): Under NS, default lface height to zero.
8476 (font_open_for_lface): Under NS, set size based on frame fontsize.
8477 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
8478 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
8479
8480 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8481
8482 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
8483 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
8484 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
8485 YES/NO.
8486 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
8487 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
8488 * Makefile.in (clean): Clear out build destination dir.
8489
8490 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8491
8492 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
8493 xterm, xselect.
8494 * lisp.h: Remove declaration of hash_remove.
8495 * nsgui.h: Remove redefinitions of hash_remove.
8496 * fns.c (hash_remove): Rename to hash_remove_from_table.
8497
8498 2008-07-19 Seiji Zenitani <zenitani@mac.com>
8499
8500 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
8501 strdup() the family UTF8String before modifying it.
8502
8503 2008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8504
8505 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
8506 NS_FACE_BACKGROUND with 0 instead of nil.
8507 * nsfont.m (nsfont_draw): Same.
8508
8509 2008-07-19 Chong Yidong <cyd@stupidchicken.com>
8510
8511 * nsfns.m (ns_set_background_color): Fix crash.
8512
8513 2008-07-18 Chong Yidong <cyd@stupidchicken.com>
8514
8515 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
8516
8517 2008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
8518
8519 * puresize.h (BASE_PURESIZE): Increase to 1240000.
8520
8521 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8522
8523 * gtkutil.c: Include <config.h> instead of "config.h".
8524
8525 * lisp.h (Foverlay_buffer): Add EXFUN.
8526
8527 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
8528 child process to complete child_setup. Undo 2005-09-21 change.
8529
8530 * s/darwin.h: Mention setsid after vfork.
8531
8532 2008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8533
8534 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
8535 Depend on macgui.h.
8536
8537 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
8538 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
8539
8540 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
8541 and f19.
8542 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
8543
8544 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
8545 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
8546 Remove enumerators.
8547
8548 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
8549 Check if FACE_FROM_ID returns NULL.
8550
8551 2008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
8552
8553 * w32inevt.c (change_frame_size): Remove extern declaration.
8554 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
8555 change_frame_size.
8556
8557 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8558
8559 * getloadavg.c: Revert last change (2008-07-15).
8560
8561 2008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8562
8563 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
8564 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
8565 from configure.
8566
8567 2008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
8568
8569 * s/sol2.h:
8570 * s/sol2-4.h: Reorganize conditionals.
8571
8572 * ecrt0.c: Remove code depending on m68000, not used anymore.
8573
8574 * fns.c (hash_remove): Make static.
8575 * lisp.h (hash_remove): Don't prototype.
8576
8577 * m/ibmrs6000.h:
8578 * m/ibms390x.h:
8579 * m/macppc.h: Remove boilerplate comments.
8580
8581 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
8582 Solaris, which does not need them.
8583
8584 * m/vax.h: Remove comments about unsupported systems.
8585
8586 * s/darwin.h: Reorganize ifdefs.
8587
8588 2008-07-17 Andreas Schwab <schwab@suse.de>
8589
8590 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
8591
8592 2008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
8593
8594 Use SDATA. Follow coding convention of placing operators at
8595 beginning of next line rather than end of previous line, and placing
8596 spaces around infix operators.
8597
8598 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
8599 in case it was defined already.
8600 USE @GNUSTEP_MAKEFILES@ rather than envvars.
8601 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
8602 ns_default.
8603 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
8604 Lisp_Objects.
8605 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
8606 (ns_defined_color, ns_color_to_lisp): Declare.
8607 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
8608 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
8609 it's accepted even with USE_LISP_UNION_TYPE.
8610 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
8611 (update_frame_tool_bar): Remove apparently obsolete tests for
8612 non-integerness of f->tool_bar_lines.
8613 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
8614 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
8615 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
8616 (nsfont_open): Don't confuse NULL for Qnil.
8617 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
8618 * menu.h (find_and_call_menu_selection):
8619 * menu.c (find_and_call_menu_selection): Use just int for vector size.
8620 (find_and_return_menu_selection): Always return something.
8621 * frame.h: Include dispextern.h for Display_Info.
8622 (display_x_get_resource): Declare.
8623
8624 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
8625
8626 * syntax.c: Remove stdio.h include accidentally introduced in
8627 Emacs.app commit.
8628 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
8629 NS_IMPL_COCOA.
8630 * keyboard.c (handle_async_input, input_available_signal): Remove
8631 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
8632
8633 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8634
8635 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
8636 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
8637 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
8638 Use SDATA.
8639
8640 * keymap.c: Remove all NS-specific code.
8641 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
8642 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
8643 where_is_preferred_modifier, return a different value depending on how
8644 preferred is the binding.
8645 (where_is_internal): Adjust accordingly.
8646 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
8647 Adjust to new preferred_sequence_p.
8648 (syms_of_keymap): Declare `where-is-preferred-modifier'.
8649 * keyboard.c (parse_solitary_modifier): Not static any more.
8650 * keyboard.h (parse_solitary_modifier): Declare.
8651
8652 2008-07-16 Andreas Schwab <schwab@suse.de>
8653
8654 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
8655 of easymenu.
8656
8657 2008-07-16 Chong Yidong <cyd@stupidchicken.com>
8658
8659 * xdisp.c (move_it_in_display_line): Account for word wrap, so
8660 that we don't move off the line.
8661
8662 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8663
8664 * keyboard.c (Qsuper): Remove.
8665 (parse_menu_item): Don't call where_is_internal specially for NS.
8666
8667 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8668
8669 * s/gnu-linux.h: Remove boilerplate comments.
8670
8671 * m/alpha.h (__ELF__): Consolidate conditions.
8672
8673 * m/m68k.h (linux): Use GNU_LINUX instead.
8674 Remove boilerplate comments.
8675
8676 * m/intel386.h: Undo refactoring from previous change.
8677 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
8678 too, remove dead code.
8679 (linux): Use GNU_LINUX instead.
8680
8681 2008-07-16 Jason Rumney <jasonr@gnu.org>
8682
8683 * w32gui.h: Repeat 26 June changes lost by last change.
8684
8685 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8686
8687 * systty.h: Remove code for Aix on 386, unsupported platform.
8688
8689 * s/ms-w32.h: Remove boilerplate comments.
8690 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
8691
8692 * s/gnu-linux.h (TERM): Remove support.
8693 (HAVE_SYSVIPC): Remove, unused.
8694 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
8695 for this system.
8696
8697 * process.c: Remove support for IRIS, unused.
8698 Remove support for TERM, not relevant anymore.
8699
8700 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
8701 used with the definition.
8702
8703 * s/aix4-2.h (static): Do not undef.
8704
8705 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
8706 only used on Aix.
8707 (HAVE_SYSVIPC): Remove, unused.
8708
8709 * m/hp800.h (CANNOT_DUMP): Do not undef.
8710
8711 * m/alpha.h: Fix comment.
8712
8713 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
8714 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
8715 used by this configuration.
8716 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
8717 * unexec.c: Remove code depending on HPUX and
8718 USG_SHARED_LIBRARIES, not used with this file. Remove code
8719 depending on IRIS, unused. Remove if 0-ed code.
8720
8721 * s/template.h: Remove comments about static.
8722
8723 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
8724 Remove if 0-ed code.
8725 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
8726 were the same as the default.
8727 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
8728 Remove boilerplate comments.
8729 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
8730 (HAVE_SYSVIPC): Remove, unused.
8731 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
8732
8733 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8734 Remove boilerplate comments.
8735 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8736 Remove boilerplate comments.
8737 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
8738 Remove boilerplate comments.
8739 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
8740
8741 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
8742 USG systems which do not use DATA_SEG_BITS.
8743 Refactor code. Remove boilerplate comments.
8744
8745 * m/ibms390.h:
8746 * m/m68k.h:
8747 * s/bsd-common.h:
8748 * s/cygwin.h:
8749 * s/darwin.h:
8750 * s/freebsd.h:
8751 * s/gnu.h:
8752 * s/msdos.h: Remove boilerplate comments.
8753
8754 * m/iris4d.h: Remove boilerplate comments and code for systems that
8755 do not use this file.
8756 (IRIS_4D): Remove, unused.
8757
8758 * m/mips.h: Remove boilerplate comments and code for systems that
8759 do not use this file.
8760 (SIGN_EXTEND_CHAR):
8761 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
8762 * unexmips.c: Remove file, unused.
8763
8764 * editfns.c (Fuser_full_name): Replace the only use of
8765 USER_FULL_NAME with its value.
8766 * config.in: Regenerate.
8767
8768 2008-07-16 David Reitter <david.reitter@gmail.com>
8769
8770 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
8771 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
8772
8773 2008-07-16 Glenn Morris <rgm@gnu.org>
8774
8775 * emacs.c (system-type): Doc fix.
8776
8777 2008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
8778
8779 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
8780 If the cache doesn't work, let's fix it, rather than work around it.
8781
8782 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8783
8784 * Makefile.in: Correct additions for nsfont.o in last commit.
8785 * nsfont.m: New file (forgot last commit).
8786
8787 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8788
8789 * callproc.c (set_initial_environment): Initialize
8790 Vprocess_environment under CANNOT_DUMP (fixes crash when
8791 batch-compiling for bootstrap).
8792
8793 2008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
8794 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8795
8796 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
8797 fix crash due to different init order.
8798
8799 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8800
8801 Changes and additions for NeXTstep windowing system (Cocoa and
8802 GNUstep) support.
8803
8804 * Makefile.in:
8805 * config.in: Support defines and build commands for NS port.
8806 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
8807 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
8808 * dispextern.h: Include nsgui.h and add needed typedefs under NS
8809 windowing.
8810 (struct face): Add synth_ital field.
8811 * dispnew.c: Include nsterm.h when compiling under NS windowing.
8812 (init_display): Initialize Vinitial_window_system to "ns" when so
8813 compiled.
8814 * emacs.c: Include GSConfig.h when compiling under GNUstep.
8815 (display_arg): Use under NS.
8816 (main): Under NS, allocate autorelease pool and handle command line
8817 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
8818 (standard_args): Add NS-specific args.
8819 (shut_down_emacs): Shut down NS terminal if compiled under NS.
8820 * font.c (DEFAULT_ENCODING): New variable.
8821 (font_find_for_lface): Use it.
8822 (syms_of_font): Load syms_of_nsfont under NS.
8823 * font.h: Declare nsfont_driver when compiled under NS.
8824 * fontset.c: When compiling under NS, include nsterm.h.
8825 (fontset_from_font): Autoconstruct fontset under NS.
8826 * frame.c (various): Under NS, include nsterm.h, add Qns window system
8827 symbol, document and use it.
8828 (do_switch_frame): When for_deletion under Cocoa, add
8829 Fraise_frame(Qnil).
8830 (x_set_frame_parameters): Ensure font attribute changes are picked up.
8831 (x_get_arg): Allow "yes" and "no" as boolean values.
8832 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
8833 Qright under Cocoa.
8834 (focus-follows-mouse): Default to 0 under NS.
8835 * frame.h (enum output_method): Add output_ns.
8836 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
8837 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
8838 (FRAME_WINDOW_P): NS-specific definition.
8839 * fringe.c (max_used_fringe_bitmap): Make public.
8840 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
8841 (getloadavg): Use NeXT code under descendant OS's.
8842 * image.c (includes and header section, x_create_bitmap_from_data)
8843 (x_create_bitmap_from_file, free_bitmap_record, image_background)
8844 (image_background_transparent, x_clear_image_1)
8845 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
8846 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
8847 (x_to_xcolors, x_from_xcolors, x_disable_image)
8848 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
8849 other GUIs, including XPM support using code originally written for
8850 Carbon GUI.
8851 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
8852 using NS API.
8853 (image_ascent): Use font metrics macros instead of direct struct field
8854 access.
8855 * keyboard.c (includes): Add nsterm.h when compiling under NS.
8856 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
8857 Also, handle NS as GTK for menu bar purposes.
8858 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
8859 toolkit where they differ.
8860 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
8861 use cachelist, still needed under NS.
8862 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
8863 (struct widget_value): Define it here for menu.c.
8864 * keymap.c (includes): Include modifier internals.
8865 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
8866 NS.
8867 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
8868 support for preferring sequences using certain modifiers, specified by
8869 the FIRSTONLY argument.
8870 * lisp.h (hash_remove): Rename to avoid name clash when compiling
8871 under NS GNUstep implementation.
8872 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
8873 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
8874 * menu.c: Include nsterm.h under NS.
8875 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
8876 (free_menubar_widget_tree_value, update_submenu_strings)
8877 (find_and_call_menu_selection): Treat NS as X and NT.
8878 (find_and_return_menu_selection): New function, used for popup menus.
8879 * nsgui.h:
8880 * nsterm.h:
8881 * nsfns.m:
8882 * nsimage.m:
8883 * nsmenu.m:
8884 * nsselect.m:
8885 * nsterm.m: New files.
8886 * process.c (wait_reading_process_output): Under NS, call ns_select()
8887 instead of plain select().
8888 * syntax.c (char_quoted): Under NS, avoid a crash when called near
8889 beginning of buffer.
8890 * sysselect.h (init_process): Rename when compiling under Cocoa to
8891 avoid name conflict.
8892 * termhooks.h (display_info): Add ns_display_info to union.
8893 * terminal.c (Fterminal_live_p): Add ns to terminal types.
8894 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
8895 COCOA environment.
8896 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
8897 unexec() signature. (Note, this will dump, but the resulting file
8898 crashes; unexosx is used instead; keeping around for reference and
8899 possible aid in getting dump working under GNUstep.)
8900 * w32gui.h (button_type, widget_value): Remove definitions (now in
8901 keyboard.h).
8902 * window.c: Include nsterm.h when compiling under NS.
8903 * xdisp.c (includes): Include nsterm.h when compiling under NS.
8904 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
8905 other GUI windowing systems.
8906 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
8907 GTK.
8908 (x_consider_frame_title): Under NS, set icon type and frame
8909 modified-state indicator; use ns_set_name_as_filename() when using
8910 formatted title.
8911 (update_window_cursor): Make public when compiling under NS.
8912 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
8913 (hourglass_atimer, Vhourglass_delay
8914 * xfaces.c (header section, init_frame_faces, clear_font_table)
8915 (defined_color, unload_color, x_face_list_fonts)
8916 (prepare_face_for_display): Add NS support parallel to other GUIs.
8917 Emulate GCs like other non-X GUIs.
8918 (split_font_name): Don't lowercase font name under NS.
8919 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
8920 under NS.
8921 * s/darwin.h: Add support for compilation under NS.
8922
8923 2008-07-15 Jason Rumney <jasonr@gnu.org>
8924
8925 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
8926 (w32_show_hourglass): Rename from show_hourglass.
8927 (w32_hide_hourglass): Rename from hide_hourglass.
8928 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
8929 (Vhourglass_delay): Declare extern.
8930 (hourglass_started): Remove.
8931
8932 * xdisp.c (Vhourglass_delay): Remove static.
8933 (hourglass_started, start_hourglass, cancel_hourglass):
8934 Don't include these versions on WINDOWSNT.
8935
8936 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
8937
8938 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
8939 variables (formerly in xfns.c).
8940 (show_hourglass, hide_hourglass): New prototypes (same).
8941 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
8942 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
8943 in xfns.c).
8944 (syms_of_xdisp): Declare/initialize display-hourglass,
8945 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
8946 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
8947 formerly in xfns.c.
8948 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8949 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8950 (start_hourglass, cancel_hourglass): Remove.
8951 (show_hourglass, hide_hourglass): Remove prototypes and static
8952 modifiers.
8953 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
8954 hourglass_atimer, hourglass_shown_p declaration/initialization.
8955 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
8956 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
8957 (start_hourglass, cancel_hourglass): Remove.
8958 (show_hourglass, hide_hourglass): Remove prototypes and static
8959 modifiers.
8960 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
8961 hourglass_atimer, hourglass_shown_p declaration/initialization.
8962 * w32fns.c (display_hourglass_p, Vhourglass_delay)
8963 (DEFAULT_HOURGLASS_DELAY): Remove.
8964 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
8965 hourglass_shown_p declaration/initialization.
8966
8967 2008-07-14 Jason Rumney <jasonr@gnu.org>
8968
8969 * w32fns.c (w32_get_arg): Remove wrapper function.
8970 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
8971 directly.
8972 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
8973
8974 2008-07-14 Kenichi Handa <handa@m17n.org>
8975
8976 * xfont.c (xfont_open): Add workaround for X's bug.
8977
8978 2008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8979
8980 * fontset.c: Include <stdio.h> unconditionally.
8981
8982 2008-07-13 Michael Albinus <michael.albinus@gmx.de>
8983
8984 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
8985 for filtering.
8986
8987 2008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
8988
8989 * s/vms.h: Use __GNUC__ instead of _GNUC_.
8990
8991 * m/macppc.h:
8992 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
8993
8994 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
8995 (SPECIAL_EMACS_INT):
8996 * m/ia64.h (SPECIAL_EMACS_INT):
8997 * m/amdx86-64.h (SPECIAL_EMACS_INT):
8998 * s/gnu.h (NLIST_STRUCT):
8999 * s/aix4-2.h (X11R5_INHIBIT_I18N):
9000 * s/gnu-linux.h (LINUX):
9001 * s/msdos.h (HAVE_FACES):
9002 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
9003
9004 * systty.h:
9005 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
9006 anymore.
9007
9008 2008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
9009
9010 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
9011 always defined as int.
9012
9013 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
9014 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
9015 * s/gnu-linux.h (HAVE_WAIT_HEADER):
9016 * s/freebsd.h (HAVE_WAIT_HEADER):
9017 * s/bsd-common.h (HAVE_UNION_WAIT):
9018 * s/aix4-2.h (HAVE_WAIT_HEADER):
9019 * m/mips.h (HAVE_UNION_WAIT):
9020 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
9021 (COFF, static): Do not define, they are undefined later in the file.
9022
9023 * process.c (update_status): Don't use a union.
9024 (status_convert):
9025 (sigchld_handler): Use int instead of WAITTYPE.
9026
9027 2008-07-12 Chong Yidong <cyd@stupidchicken.com>
9028
9029 * indent.c (Fvertical_motion): Restore hscroll before moving to
9030 goal column.
9031
9032 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9033
9034 * lisp.h: Remove left over code.
9035
9036 2008-07-11 Andreas Schwab <schwab@suse.de>
9037
9038 * lisp.h: Fix logic in last change.
9039
9040 * menu.h: New file.
9041 * menu.c: Include it.
9042 * xmenu.c: Likewise.
9043 * Makefile.in: Update dependencies.
9044
9045 2008-07-11 Kenichi Handa <handa@m17n.org>
9046
9047 * fontset.c (fontset_from_font): Cancel the previous change.
9048
9049 2008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9050
9051 * lisp.h:
9052 * w32heap.c:
9053 * emacs.c:
9054 * alloc.c: Replace all references of NO_UNION_TYPE with
9055 USE_LISP_UNION_TYPE.
9056
9057 * m/xtensa.h (NO_UNION_TYPE):
9058 * m/vax.h (NO_UNION_TYPE):
9059 * m/template.h (NO_UNION_TYPE):
9060 * m/sparc.h (NO_UNION_TYPE):
9061 * m/mips.h (NO_UNION_TYPE):
9062 * m/macppc.h (NO_UNION_TYPE):
9063 * m/m68k.h (NO_UNION_TYPE):
9064 * m/iris4d.h (NO_UNION_TYPE):
9065 * m/intel386.h (NO_UNION_TYPE):
9066 * m/ibms390x.h (NO_UNION_TYPE):
9067 * m/ibms390.h (NO_UNION_TYPE):
9068 * m/ibmrs6000.h (NO_UNION_TYPE):
9069 * m/ia64.h (NO_UNION_TYPE):
9070 * m/hp800.h (NO_UNION_TYPE):
9071 * m/arm.h (NO_UNION_TYPE):
9072 * m/amdx86-64.h (NO_UNION_TYPE):
9073 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
9074 defining it the same.
9075
9076 2008-07-10 Chong Yidong <cyd@stupidchicken.com>
9077
9078 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
9079
9080 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9081
9082 * fileio.c:
9083 * sysdep.c
9084 * systty.h:
9085 * m/ibmrs6000.h:
9086 * m/iris4d.h:
9087 * s/aix4-2.h:
9088 * s/freebsd.h:
9089 * s/gnu-linux.h:
9090 * s/hpux10-20.h:
9091 * s/hpux11.h:
9092 * s/netbsd.h:
9093 * s/sol2-3.h:
9094 * s/sol2-4.h:
9095 * s/sol2.h:
9096 * s/usg5-4.h:
9097 * s/vms.h: Remove references to unused variables.
9098
9099 2008-07-10 Andreas Schwab <schwab@suse.de>
9100
9101 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
9102 pattern before matching the generic family.
9103
9104 2008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9105
9106 * unexec.c:
9107 * s/vms.h:
9108 * s/usg5-4-2.h:
9109 * s/sol2-5.h:
9110 * s/freebsd.h:
9111 * s/darwin.h: Remove dead code.
9112
9113 * m/template.h:
9114 * m/sparc.h:
9115 * m/mips.h:
9116 * m/m68k.h:
9117 * m/iris4d.h:
9118 * m/intel386.h:
9119 * m/ibms390x.h:
9120 * m/ibms390.h:
9121 * m/ia64.h:
9122 * m/hp800.h:
9123 * m/arm.h:
9124 * m/amdx86-64.h: Remove dead code and references to unused
9125 and compiler defined symbols.
9126
9127 * unexmips.c:
9128 * unexelf.c: Remove references to desupported systems.
9129
9130 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
9131
9132 * m/powermac.h: Remove boilerplate comments.
9133 (NO_REMAP): Remove unused definition.
9134
9135 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
9136 define them.
9137
9138 2008-07-10 Kenichi Handa <handa@m17n.org>
9139
9140 * xfont.c (xfont_open): Log the reason of failure.
9141
9142 2008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
9143
9144 * fontset.c (fontset_get_font_group):
9145 * font.c (font_check_otf): Specify argument types.
9146
9147 2008-07-09 Kenichi Handa <handa@m17n.org>
9148
9149 * coding.c (detect_coding_utf_8): Set detect_info->found only when
9150 non-ASCII char is found.
9151
9152 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
9153 (reorder_font_vector): Change the arg preferred_family to font.
9154 Prefer the spec matching with font.
9155 (fontset_get_font_group): New function.
9156 (fontset_find_font): Change the format of an element of a realized
9157 fontset. Use fontset_get_font_group.
9158 (fontset_font): Try the current fontset, the default fontset, the
9159 fallbacks of the current fontset, and the fallbacks of the default
9160 fontset in this order.
9161 (face_for_char): Delete the shortcut to use the current font.
9162 (fontset_from_font): Don't set fonts for Latin in the fontset.
9163
9164 * font.h (font_make_object, font_match_p): Adjust prototypes.
9165
9166 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
9167
9168 * font.c (font_make_object): New arg entity and pixelsize.
9169 (font_check_otf_features, font_check_otf): New functions.
9170 (font_match_p): Check :lang, :script, and :otf properties.
9171
9172 * xfont.c (xfont_open): Adjust it for the change of
9173 font_make_object.
9174 (xfont_text_extents): Fix initial setting of metrics.
9175
9176 * ftfont.c (struct ftfont_info): New member index, delete member
9177 fc_charset_idx. Make the member order compatible with struct
9178 xftfont_info.
9179 (fc_charset_table): Change charset names to registry names.
9180 (ftfont_pattern_entity): Delete the args registry and
9181 fc_charset_idx. Change the value of :font-entity property
9182 to (FONTNAME . INDEX). Always set :registry property to
9183 `iso10646-1'.
9184 (struct ftfont_cache_data): New struct.
9185 (ftfont_lookup_cache): New arg for_face.
9186 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
9187 (ftfont_driver): Set the member otf_capability.
9188 (ftfont_get_charset): Adjust it for the change of
9189 fc_charset_table.
9190 (OTF_TAG_SYM): New macro.
9191 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
9192 for the change of fc_charset_table.
9193 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
9194 ftfont_pattern_entity. Add FC_INDEX to objset.
9195 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
9196 and ftfont_pattern_entity.
9197 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
9198 font_make_object, struct ftfont_info.
9199 (ftfont_has_char): Use ftfont_get_fc_charset.
9200 (ftfont_otf_features, ftfont_otf_capability): New functions.
9201 (ftfont_shape): Use ftfont_get_otf.
9202 (ftfont_text_extents): Fix initial setting of metrics.
9203
9204 * xftfont.c (struct xftfont_info): New member ft_size. Make the
9205 member order compatible with struct ftfont_info.
9206 (xftfont_open): Add FC_CHARSET to the pattern. Set
9207 xftfont_info->ft_size. Don't unlock the face. Check BDF
9208 properties if appropriate.
9209 (xftfont_close): Unlock the face.
9210 (xftfont_anchor_point, xftfont_shape): Deleted.
9211 (syms_of_xftfont): Don't set members anchor_point and shape of
9212 xftfont_driver.
9213
9214 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
9215 font_make_object.
9216
9217 * w32font.c (w32font_open): Adjust it for the change of
9218 font_make_object.
9219 (w32font_open_internal): Don't set properties of font_object here.
9220
9221 2008-07-08 Chong Yidong <cyd@stupidchicken.com>
9222
9223 * macfns.c (x_create_tip_frame):
9224 * w32fns.c (x_create_tip_frame):
9225 * xfns.c (x_create_tip_frame): Pass parameter argument to
9226 face-set-after-frame-default.
9227
9228 * xfaces.c (Finternal_merge_in_global_face): Save merged
9229 attributes for the default face back into the face vector.
9230
9231 2008-07-08 Andreas Schwab <schwab@suse.de>
9232
9233 * fontset.h: Declare fontset_from_font. Don't declare
9234 new_fontset_from_font and fontset_from_font_name.
9235 * xterm.c: Include "fontset.h".
9236 * Makefile.in (xterm.o): Update dependencies.
9237
9238 2008-07-08 Glenn Morris <rgm@gnu.org>
9239
9240 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
9241 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
9242
9243 2008-07-07 Chong Yidong <cyd@stupidchicken.com>
9244
9245 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
9246 (x_set_frame_parameters): Don't bind it.
9247
9248 2008-07-07 Juanma Barranquero <lekktu@gmail.com>
9249
9250 * w32fns.c (map_w32_filename): Declare extern.
9251
9252 2008-07-07 Jason Rumney <jasonr@gnu.org>
9253
9254 * w32term.c (WS_EX_LAYERED): Define if not already.
9255
9256 2008-07-06 Chong Yidong <cyd@stupidchicken.com>
9257
9258 * xfaces.c (set_font_frame_param): Don't try to set the font
9259 parameter if it is still unspecified in the lface.
9260
9261 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
9262
9263 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
9264 face if it didn't already exist.
9265
9266 * xdisp.c (try_window_id): Give up if word-wrapping is on.
9267
9268 2008-07-05 Andreas Schwab <schwab@suse.de>
9269
9270 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
9271
9272 2008-07-05 Chong Yidong <cyd@stupidchicken.com>
9273
9274 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
9275 word-wrapping.
9276 (IT_DISPLAYING_WHITESPACE): New macro.
9277 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
9278 when word-wrapping. Simplify word-wrapping logic. Use correct
9279 pixel positions when saving copies of the iterator.
9280 (display_line): Use proper wrap point if the last character on a
9281 line was preceded by whitespace.
9282
9283 2008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
9284
9285 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
9286
9287 2008-07-04 Kenichi Handa <handa@m17n.org>
9288
9289 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
9290
9291 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
9292
9293 2008-07-02 Jason Rumney <jasonr@gnu.org>
9294
9295 * xfns.c (syms_of_xfns): Only define x-select-font when both
9296 HAVE_FREETYPE and USE_GTK.
9297
9298 * xdisp.c (next_element_from_display_vector): Move assignment out
9299 of if statement.
9300
9301 2008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
9302
9303 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
9304
9305 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
9306 (syms_of_fileio): Initialize and export them.
9307 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
9308
9309 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
9310 (Fsystem_move_file_to_trash): New function.
9311 (syms_of_w32fns): Export it to lisp.
9312
9313 2008-07-01 Jason Rumney <jasonr@gnu.org>
9314
9315 * w32font.c (w32font_text_extents): Don't count overhang as part
9316 of width.
9317
9318 2008-06-30 Miles Bader <miles@gnu.org>
9319
9320 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
9321 Add `avoid_cursor_p' field.
9322
9323 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
9324 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
9325 (append_glyph, append_composite_glyph, produce_image_glyph)
9326 (append_stretch_glyph): Initialize avoid_cursor_p.
9327 (get_it_property): Rename from `get_line_height_property'.
9328 (x_produce_glyphs): Use get_it_property.
9329 (handle_line_prefix, push_display_prop): New functions.
9330 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
9331 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
9332 New variables.
9333 (syms_of_xdisp): Initialize them.
9334
9335 2008-06-30 Kenichi Handa <handa@m17n.org>
9336
9337 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
9338 XftDefaultSubstitute (they are called in XftFontMatch).
9339 (xftfont_open): Fix args to ftfont_font_format.
9340
9341 * ftfont.c (fc_charset_table): New member lang.
9342 (ftfont_resolve_generic_family): New arg pattern.
9343 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
9344 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
9345 (ftfont_open): Fix args to ftfont_font_format.
9346 (ftfont_font_format): New arg filename.
9347
9348 2008-06-30 Chong Yidong <cyd@stupidchicken.com>
9349
9350 * xfaces.c (Finternal_merge_in_global_face): If default face was
9351 modified, realize it again. Update the font face attribute.
9352
9353 2008-06-29 Jason Rumney <jasonr@gnu.org>
9354
9355 * w32term.c (x_set_frame_alpha): Fix logic.
9356
9357 2008-06-29 Kenichi Handa <handa@m17n.org>
9358
9359 * fontset.c (Finternal_char_font): Return font-object instead of
9360 font-name.
9361
9362 * composite.c (get_composition_id): Fix the width calculation for TAB.
9363
9364 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
9365
9366 * indent.c (Fvertical_motion): Properly handle float column arg.
9367
9368 2008-06-28 Jason Rumney <jasonr@gnu.org>
9369
9370 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
9371 (pfnSetLayeredWindowAttributes): New function pointer.
9372 (w32_initialize): Initialize it when supported.
9373 (x_set_frame_alpha): New function.
9374
9375 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
9376 (w32_frame_parm_handlers): Set alpha handler.
9377
9378 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
9379
9380 2008-06-27 Jason Rumney <jasonr@gnu.org>
9381
9382 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
9383 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
9384 (w32_to_x_charset, x_to_w32_charset)
9385 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9386 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9387 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9388 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9389 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9390 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9391 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
9392 (Qw32_charset_unicode): Remove.
9393 (syms_of_w32fns): Update for above changes.
9394
9395 * w32font.c (w32_to_x_charset, x_to_w32_charset)
9396 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9397 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9398 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9399 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9400 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9401 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9402 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
9403 (syms_of_w32font): Update for above changes.
9404
9405 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
9406
9407 * s/usg5-4.h: Fix previous change: keep the correct branch of a
9408 removed #if.
9409 (USG_SHARED_LIBRARIES): Remove duplicate definition.
9410
9411 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
9412 Eli Zaretskii <eliz@gnu.org>
9413
9414 * makefile.w32-in (LOCAL_FLAGS):
9415 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
9416
9417 * sysdep.c (_spawnlp, _getpid):
9418 Declare with explicit _cdecl instead of _CRTAPI1.
9419
9420 * editfns.c (Fget_internal_run_time):
9421 Check for WINDOWSNT with #ifdef, not #if.
9422
9423 2008-06-26 Jason Rumney <jasonr@gnu.org>
9424
9425 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
9426
9427 * w32term.c (x_draw_glyph_string_foreground)
9428 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
9429 Use FONT_HANDLE macro.
9430 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
9431
9432 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9433 (uniscribe_encode_char): Use FONT_HANDLE macro.
9434
9435 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
9436 (w32font_text_extents): Use precast w32_font.
9437 (w32font_close): Free cached metrics.
9438 (w32font_open_internal): Allocate space for name on stack.
9439
9440 2008-06-26 Chong Yidong <cyd@stupidchicken.com>
9441
9442 * xdisp.c (extend_face_to_end_of_line): Fix last change.
9443
9444 2008-06-26 Jason Rumney <jasonr@gnu.org>
9445
9446 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
9447 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
9448
9449 2008-06-26 Juanma Barranquero <lekktu@gmail.com>
9450
9451 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
9452
9453 2008-06-26 Jason Rumney <jasonr@gnu.org>
9454
9455 * w32bdf.c, w32bdf.h: Remove obsolete files.
9456
9457 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
9458
9459 * w32gui.h: Don't include w32bdf.h.
9460 (XCharStruct, enum w32_char_font_type, W32FontStruct):
9461 Remove obsolete font support.
9462
9463 * w32font.h (struct w32font_info): Remove compat_w32_font.
9464 Add hfont member.
9465 (FONT_COMPAT): Remove obsolete macro.
9466
9467 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
9468 (w32font_encode_char, w32font_text_extents): Use new hfont member.
9469 (w32font_open_internal): Remove compat code. Set new hfont member.
9470 (Fx_select_font): Use new hfont member.
9471
9472 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9473 (uniscribe_encode_char): Use new hfont member.
9474
9475 * w32term.c (x_draw_glyph_string_foreground)
9476 (x_draw_composite_glyph_string_foreground): Use new hfont member.
9477 (x_draw_glyph_string): Use metrics in w32font_info.
9478
9479 2008-06-26 Kenichi Handa <handa@m17n.org>
9480
9481 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
9482
9483 2008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
9484
9485 * unexnext.c:
9486 * m/ews4800.h:
9487 * m/hp9000s300.h:
9488 * m/ibm370aix.h:
9489 * m/mips-siemens.h:
9490 * m/ncr386.h:
9491 * m/next.h:
9492 * m/pmax.h:
9493 * m/powerpcle.h:
9494 * m/tandem-s2.h:
9495 * s/386bsd.h:
9496 * s/bsd386.h:
9497 * s/bsd4-1.h:
9498 * s/bsd4-2.h:
9499 * s/bsdos2-1.h:
9500 * s/bsdos2.h:
9501 * s/bsdos3.h:
9502 * s/bsdos4.h:
9503 * s/nextstep.h:
9504 * s/ultrix4-3.h:
9505 * s/usg5-0.h:
9506 * s/usg5-2-2.h:
9507 * s/usg5-2.h:
9508 * s/usg5-4-3.h:
9509 * s/ux4800.h:
9510 * s/uxpds.h:
9511 * s/uxpv.h: Remove support for obsolete systems.
9512 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
9513 Remove, insert contents in s/hpux10-20.h.
9514 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
9515 Remove, insert contents in s/aix4-2.h.
9516 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
9517 * s/bsd4-3.h: Rename to ...
9518 * s/bsd-common.h: ... this.
9519 * data.c:
9520 * doc.c:
9521 * ecrt0.c:
9522 * emacs.c:
9523 * fileio.c:
9524 * floatfns.c:
9525 * keyboard.c:
9526 * mem-limits.h:
9527 * print.c:
9528 * process.c:
9529 * sysdep.c:
9530 * syssignal.h:
9531 * systty.h:
9532 * syswait.h:
9533 * term.c:
9534 * unexec.c:
9535 * unexelf.c:
9536 * unexhp9k800.c:
9537 * m/hp800.h:
9538 * m/ibmrs6000.h:
9539 * m/mips.h:
9540 * m/vax.h:
9541 * s/darwin.h:
9542 * s/freebsd.h:
9543 * s/gnu.h:
9544 * s/ms-w32.h:
9545 * s/msdos.h:
9546 * s/netbsd.h:
9547 * s/template.h: Remove references to obsolete variables.
9548
9549 * Makefile.in: Add dependencies for all unexec files.
9550 (admindir): Remove unused variable.
9551 (UNEXEC_SRC): Remove references.
9552
9553 2008-06-25 Chong Yidong <cyd@stupidchicken.com>
9554
9555 * xfns.c (x_default_font_parameter): If Xft is available, first
9556 try Monospace-12 for the default font.
9557
9558 2008-06-25 Jason Rumney <jasonr@gnu.org>
9559
9560 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
9561
9562 2008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
9563
9564 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
9565
9566 * buffer.c (syms_of_buffer): Remove default-word-wrap.
9567
9568 2008-06-25 Juanma Barranquero <lekktu@gmail.com>
9569
9570 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
9571 <scroll-conservatively>: Fix typo in docstring.
9572
9573 * xselect.c (Fx_send_client_event): Doc fix.
9574
9575 2008-06-25 Kenichi Handa <handa@m17n.org>
9576
9577 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
9578
9579 * font.c (font_parse_fcname): Remove unused variables.
9580 (font_sort_entites): Delete the arg SPEC. Caller changed.
9581 Fix for the case of ! best_only.
9582 (font_delete_unmatched): Check DPI and AVGWIDTH too.
9583
9584 * lisp.h (Fstring_to_unibyte): EXFUN it.
9585
9586 * character.h (str_to_unibyte): Extern it.
9587
9588 * character.c (str_to_unibyte): New function.
9589
9590 * fns.c (Fstring_to_unibyte): New function.
9591 (syms_of_fns): Defsubr it.
9592
9593 2008-06-24 Kenichi Handa <handa@m17n.org>
9594
9595 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
9596 DPI too.
9597 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
9598
9599 2008-06-24 Andreas Schwab <schwab@suse.de>
9600
9601 * Makefile.in (${lispsource}loaddefs.el): Rename from
9602 ../lisp/loaddefs.el.
9603 (bootstrap-clean): Do what distclean does but don't remove
9604 Makefile.
9605 (distclean): Depend on bootstrap-clean and remove Makefile.
9606
9607 2008-06-24 Chong Yidong <cyd@stupidchicken.com>
9608
9609 * buffer.h (struct buffer): New member word_wrap.
9610
9611 * buffer.c (syms_of_buffer): New variables default-word-wrap and
9612 word-wrap.
9613 (init_buffer_once): Initialize them.
9614
9615 * dispextern.h (struct it): Replace bool truncate_lines_p with a
9616 line_wrap enum possessing three possible values.
9617
9618 * termopts.h: Replace truncate_partial_width_windows with
9619 Vtruncate_partial_width_windows.
9620
9621 * dispnew.c (direct_output_for_insert): Avoid direct output when
9622 inserting a space with word wrap on.
9623
9624 * indent.c (compute_motion): Obey integer values of
9625 truncate-partial-width-windows.
9626
9627 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
9628 replacing truncate_partial_width_windows.
9629 (init_iterator): If Vtruncate_partial_width_windows is an integer,
9630 truncate only if the window width is below that integer.
9631 (start_display, resize_mini_window, produce_stretch_glyph)
9632 (display_string, move_it_in_display_line_to): Use line_wrap.
9633 (back_to_previous_visible_line_start, reseat_1): Reset
9634 string_from_display_prop_p.
9635 (display_line): Extend default face to end of line when wrapping.
9636
9637 2008-06-24 Kim F. Storm <storm@cua.dk>
9638
9639 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
9640 to wrap continued lines at word boundaries.
9641
9642 2008-06-24 Jason Rumney <jasonr@gnu.org>
9643
9644 * font.c (Ffont_face_attributes): Multiply pixel size before point
9645 conversion to avoid multiplying rounding error.
9646
9647 2008-06-23 Jason Rumney <jasonr@gnu.org>
9648
9649 * w32term.c (x_draw_glyph_string_background)
9650 (x_draw_glyph_string): Remove old bdf font code.
9651
9652 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
9653
9654 2008-06-22 Kenichi Handa <handa@m17n.org>
9655
9656 * font.c (font_find_for_lface): Try the adstyle specified in
9657 the property of LFACE_FONT of LFACE (if any).
9658
9659 2008-06-21 Seiji Zenitani <zenitani@mac.com>
9660 Ryo Yoshitake <ryo@shiftmode.net>
9661
9662 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
9663
9664 2008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
9665
9666 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
9667 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
9668 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
9669 (witness-emacs): Remove.
9670 (lisp, shortlisp): Move loaddefs.el earlier.
9671 (mostlyclean): Forget about witness-emacs.
9672
9673 2008-06-22 Glenn Morris <rgm@gnu.org>
9674
9675 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
9676 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
9677
9678 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9679
9680 * Makefile.in (PRECOMP): Remove.
9681 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
9682 (witness-emacs): Run `compile-first'.
9683 (.el.elc): Use the new compile-onefile target.
9684
9685 2008-06-21 Kenichi Handa <handa@m17n.org>
9686
9687 * xftfont.c (xftfont_open): Handle QCembolden only when
9688 FC_EMBOLDEN is defined.
9689
9690 2008-06-21 Andreas Schwab <schwab@suse.de>
9691
9692 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
9693 (.el.elc): Likewise.
9694
9695 2008-06-21 Miles Bader <miles@gnu.org>
9696
9697 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
9698 build dir, not the lisp source dir.
9699
9700 2008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9701
9702 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
9703 (bootstrapclean): Remove.
9704 (.el.elc): New rule.
9705 (PRECOMP): New var.
9706 (../lisp/subdirs.el): Remove.
9707 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
9708 (witness-emacs): New target.
9709 (mostlyclean): Remove witness-emacs as well.
9710 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
9711 Add witness-emacs dependency.
9712
9713 2008-06-20 Chong Yidong <cyd@stupidchicken.com>
9714
9715 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
9716 defined by the font.
9717
9718 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9719
9720 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
9721 (bootstrap-clean): New target that keeps TAGS around.
9722 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
9723 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
9724
9725 2008-06-20 Jason Rumney <jasonr@gnu.org>
9726
9727 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
9728 Remove obsolete font code.
9729
9730 * w32font.c (font_matches_spec): Use csb bitfield from font signature
9731 to determine language support.
9732
9733 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9734
9735 * sysdep.c (cfsetspeed): New fun extracted from the code.
9736 (cfmakeraw): Move before first use.
9737
9738 2008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
9739
9740 * sysdep.c (cfmakeraw): Provide fallback implementation.
9741 (serial_configure): Provide fallback implementation of cfsetspeed.
9742
9743 2008-06-20 Kenichi Handa <handa@m17n.org>
9744
9745 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
9746 the pattern.
9747
9748 * fontset.c (fontset_from_font): Copy font_spec before changing
9749 the elements.
9750
9751 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
9752
9753 2008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
9754
9755 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
9756 for explicit `font' parameters.
9757
9758 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
9759
9760 2008-06-19 Kenichi Handa <handa@m17n.org>
9761
9762 * frame.c: Include <ctype.h>.
9763 (x_set_font_backend): Allow spacing characters in the X resource
9764 for FontBackend.
9765
9766 2008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
9767
9768 * w32fns.c, xfns.c (Qfont_param): New var.
9769 (syms_of_w32fns): Initialize it.
9770 (x_default_font_parameter): Record explicit `font' into
9771 `font-parameter'.
9772
9773 2008-06-18 Kenichi Handa <handa@m17n.org>
9774
9775 * font.c (font_parse_xlfd): Fix previous change.
9776 (font_parse_fcname): Don't use :fc-unknown-spec.
9777 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
9778 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
9779 (font_add_log): Prepend the driver name to the resulting fonts.
9780
9781 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
9782 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
9783 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
9784
9785 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
9786 (QCembolden): New variables.
9787 (syms_of_xftfont): DEFSYM them.
9788 (xftfont_open): Call XftFontMatch. Don't trust the result of
9789 XftTextExtents8 if the pixel_size is less than 5.
9790
9791 2008-06-18 Andreas Schwab <schwab@suse.de>
9792
9793 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
9794 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
9795
9796 2008-06-18 Jason Rumney <jasonr@gnu.org>
9797
9798 * w32font.c (w32font_list, w32font_match): Add logging.
9799
9800 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
9801
9802 2008-06-17 Chong Yidong <cyd@stupidchicken.com>
9803
9804 * font.c (font_parse_fcname): Store divider characters for
9805 unknown-spec list. For known key symbols, intern using correct
9806 symbol name.
9807
9808 2008-06-17 Kenichi Handa <handa@m17n.org>
9809
9810 * xfaces.c (realize_default_face): If the frame is not on window
9811 system, set the fontset of face to nil.
9812
9813 2008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9814
9815 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
9816
9817 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
9818
9819 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
9820 (build_font_name_from_vector): Delete externs.
9821
9822 * xfaces.c (struct font_name): Don't declare.
9823
9824 2008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
9825
9826 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
9827
9828 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
9829
9830 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
9831
9832 2008-06-16 Juanma Barranquero <lekktu@gmail.com>
9833
9834 * font.c (Ffont_spec): Fix usage in docstring.
9835 (Ffont_face_attributes): Doc fix.
9836
9837 2008-06-16 Andreas Schwab <schwab@suse.de>
9838
9839 * font.c (Ffont_face_attributes): Fix definition.
9840
9841 2008-06-16 Jason Rumney <jasonr@gnu.org>
9842
9843 * font.h (font_style_symbolic_from_value): Remove.
9844
9845 * font.c (font_style_symbolic_from_value): Remove.
9846 (font_style_symbolic): Revert to pre 2008-06-13 version.
9847
9848 * w32font.c (w32_to_fc_weight): New function.
9849 (w32font_full_name, logfont_to_fcname): Use it.
9850
9851 2008-06-16 Kenichi Handa <handa@m17n.org>
9852
9853 * font.c (font_check_object): Delete it.
9854 (font_clear_cache): Check if a font-object is alive.
9855 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
9856 font-object to nil.
9857 (font_close_object): Don't check FONT_CLOSE_OBJECT.
9858 (font_at): Don't call font_check_object.
9859 (Ffont_get): Return a symbol for :weight, :slant, and :width.
9860
9861 2008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
9862
9863 * puresize.h (BASE_PURESIZE): Increase to 1230000.
9864
9865 2008-06-16 Chong Yidong <cyd@stupidchicken.com>
9866
9867 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
9868
9869 2008-06-15 Chong Yidong <cyd@stupidchicken.com>
9870
9871 * font.c (font_parse_fcname): Only one decimal point.
9872 (font_unparse_fcname): Handle data in family and foundry indices
9873 as symbols, not strings.
9874 (font_unparse_gtkname, Ffont_face_attributes): New functions.
9875
9876 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
9877
9878 * font.h (font_unparse_gtkname): Add prototype.
9879
9880 2008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
9881
9882 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
9883
9884 2008-06-15 Andreas Schwab <schwab@suse.de>
9885
9886 * font.c (font_update_drivers): Fix crash when no drivers match.
9887
9888 2008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
9889
9890 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
9891 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
9892
9893 2008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
9894
9895 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
9896
9897 2008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
9898
9899 * process.c (Fserial_process_configure, Fprocess_send_eof):
9900 Use EQ to compare Lisp_Objects.
9901
9902 2008-06-13 Jason Rumney <jasonr@gnu.org>
9903
9904 * w32fns.c (Fw32_select_font): Remove old font API function.
9905
9906 * w32font.c (logfont_to_fcname): New function.
9907 (Fx_select_font): New font dialog function compatible with
9908 GTK/fontconfig version.
9909
9910 * font.c (font_style_symbolic_from_value): New function.
9911 (font_style_symbolic): Use it.
9912
9913 * font.h (font_style_symbolic_from_value): Declare new function.
9914
9915 2008-06-13 Juanma Barranquero <lekktu@gmail.com>
9916
9917 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
9918 <font-width-table>: Fix typos in docstrings.
9919
9920 2008-06-13 Daniel Engeler <engeler@gmail.com>
9921
9922 These changes add serial port access.
9923 * process.c: Add HAVE_SERIAL.
9924 (Fdelete_process, Fprocess_status, Fset_process_buffer)
9925 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
9926 (list_processes_1, select_wrapper, Fstop_process)
9927 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
9928 (status_notify): Modify to handle serial processes.
9929 [HAVE_SERIAL] (Fserial_process_configure)
9930 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
9931 New functions.
9932 * process.h (struct Lisp_Process): Add `type'.
9933 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
9934 New functions.
9935 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
9936 serial ports.
9937 (serial_open, serial_configure): New functions.
9938 * w32.h: Add FILE_SERIAL.
9939 (struct _child_process): Add ovl_read, ovl_write.
9940
9941 2008-06-13 Kenichi Handa <handa@m17n.org>
9942
9943 * dispextern.h (enum lface_attribute_index): New member
9944 LFACE_FOUNDRY_INDEX.
9945
9946 * font.c (font_score): Delete arg alternate_families. Check only
9947 weight, slant, width, and size. Ignore the difference of alias
9948 style symbols.
9949 (font_sort_entites): Adjust for the above change. Reflect the
9950 order of font-driver to scores.
9951 (font_list_entities): Don't check alternate_familes here.
9952 (font_clear_prop): Handle foundry.
9953 (font_update_lface): Don't parse "foundry-family" form here.
9954 Handle FONT_FOUNDRY_INDEX.
9955 (font_find_for_lface): Likewise. Handle alternate families here.
9956 If registry is nil, try iso8859-1 and ascii-0.
9957 (font_open_for_lface): Pay attention to size in ENTITY.
9958 (font_open_by_name): Simplify by calling font_load_for_lface.
9959 (free_font_driver_list): Delete it.
9960 (font_update_drivers): Preserve the order of backends.
9961 (syms_of_font): Setting of sort_shift_bits adjusted for the change
9962 of font_score and font_sort_entites.
9963 (font_update_sort_order): Likewise.
9964
9965 * xfaces.c (LFACE_FOUNDRY): New macro.
9966 (check_lface_attrs): Check foundry.
9967 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
9968 (merge_face_vectors): Check foundry.
9969 (merge_face_ref): Likewise.
9970 (Finternal_set_lisp_face_attribute): Likewise.
9971 (x_update_menu_appearance): Likewise.
9972 (Finternal_get_lisp_face_attribute): Likewise.
9973 (lface_hash): Likewise.
9974 (lface_same_font_attributes_p): Likewise.
9975 (x_supports_face_attributes_p): Likewise.
9976 (tty_supports_face_attributes_p): Likewise.
9977 (Finternal_set_alternative_font_family_alist): Intern strings.
9978 (Finternal_set_alternative_font_registry_alist): Downcase strings.
9979 (realize_default_face): Set LFACE_FOUNDRY (lface).
9980
9981 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
9982 font-driver at first.
9983
9984 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
9985
9986 2008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9987
9988 * lread.c (Fload): Use xfree, not free on saved_doc_string.
9989
9990 2008-06-12 Jim Meyering <meyering@redhat.com>
9991
9992 Make unexec_free handle NULL the same way free does.
9993 * unexmacosx.c (unexec_free): Ignore a NULL argument.
9994
9995 2008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
9996
9997 * character.h (CHAR_TO_BYTE_SAFE): New macro.
9998 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
9999 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
10000 (WEAK_ALIAS): Simplify.
10001 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
10002 when searching a unibyte buffer.
10003
10004 2008-06-12 Chong Yidong <cyd@stupidchicken.com>
10005
10006 * xfns.c (Fx_select_font): Rename from x-font-dialog.
10007
10008 2008-06-12 Juanma Barranquero <lekktu@gmail.com>
10009
10010 * w32font.c: Include ctype.h.
10011
10012 2008-06-11 Jason Rumney <jasonr@gnu.org>
10013
10014 * w32font.c (w32font_encode_char): Detect missing glyphs that are
10015 misreported as space.
10016 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
10017 as aliases for registry iso10646-1.
10018
10019 2008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
10020
10021 * buffer.c (clone_per_buffer_values): Skip `name'.
10022
10023 2008-06-11 Chong Yidong <cyd@stupidchicken.com>
10024
10025 * font.c (font_parse_fcname): Fix last change; accept decimal
10026 points in font size.
10027
10028 2008-06-10 Jason Rumney <jasonr@gnu.org>
10029
10030 * w32uniscribe.c (add_opentype_font_name_to_list):
10031 Skip non unicode fonts.
10032
10033 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
10034
10035 * xfns.c (Fx_font_dialog): New function.
10036
10037 * gtkutil.c (xg_dialog_response_cb): Rename from
10038 xg_file_response_callback.
10039 (pop_down_dialog): Rename from pop_down_file_dialog.
10040 (xg_get_file_name): Callers changed.
10041 (xg_get_font_name): New function.
10042
10043 * gtkutil.h (xg_get_font_name): Insert prototype.
10044
10045 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10046
10047 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
10048 x_underline_minimum_display_offset.
10049 (syms_of_xdisp): Declare it here rather than in xterm.c.
10050 * dispextern.h (underline_minimum_offset): Declare it.
10051 * w32term.c (x_draw_glyph_string): Use it.
10052 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
10053 (syms_of_xterm): Don't declare it any more.
10054 (x_draw_glyph_string): Adjust to the new name.
10055
10056 2008-06-10 David De La Harpe Golden <david@harpegolden.net>
10057
10058 * xterm.c (x_underline_minimum_display_offset): New var.
10059 (x_draw_glyph_string): Use it.
10060 (syms_of_xterm): Declare it.
10061
10062 2008-06-10 Chong Yidong <cyd@stupidchicken.com>
10063
10064 * font.c (font_parse_fcname): Accept GTK-style font names too.
10065
10066 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10067
10068 * dired.c (file_name_completion): Don't return t if the match is exact
10069 but with different capitalization.
10070 * minibuf.c (Ftry_completion): Simplify.
10071
10072 * window.c (Vwindow_point_insertion_type): New var.
10073 (set_window_buffer): Use it.
10074 (syms_of_window): Init and export it to Lisp.
10075
10076 2008-06-10 Kenichi Handa <handa@m17n.org>
10077
10078 * font.h (font_intern_prop): Prototype adjusted.
10079
10080 * font.c (font_intern_prop): New arg force_symbol.
10081 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
10082 Adjust for the change of font_intern_prop.
10083
10084 * ftfont.c (ftfont_pattern_entity):
10085 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
10086 (w32_registry):
10087 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
10088 the change of font_intern_prop.
10089
10090 2008-06-09 Juanma Barranquero <lekktu@gmail.com>
10091
10092 * w32menu.c (digest_single_submenu): Declare extern.
10093
10094 2008-06-09 Jason Rumney <jasonr@gnu.org>
10095
10096 * w32term.c (x_make_frame_visible): Use alternate restore flags.
10097
10098 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
10099 (parse_single_submenu): Remove.
10100 (digest_single_submenu): Remove.
10101 (syms_of_w32menu): Don't initialise variables that have moved
10102 to menu.c.
10103 (set_frame_menubar): Sync with version in xmenu.c.
10104 (w32_menu_show): Sync with xmenu_show in xmenu.c.
10105
10106 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
10107 Make static again.
10108
10109 2008-06-09 Jason Rumney <jasonr@gnu.org>
10110
10111 Changes to w32 files related to the move of common menu code
10112 to menu.c on 2008-06-08 by Chong Yidong.
10113
10114 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
10115 defs to w32gui.h.
10116 (single_keymap_panes, push_menu_item, push_menu_pane):
10117 Make globally visible.
10118
10119 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
10120 (local_free, malloc_widget_value, free_widget_value)
10121 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
10122 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
10123 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
10124 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
10125 (menu_items, menu_items_allocated, menu_items_used)
10126 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
10127 (init_menu_items, finish_menu_items, discard_menu_items)
10128 (grow_menu_items, push_submenu_start, push_submenu_end)
10129 (push_left_right_boundary, push_menu_pane, push_menu_item)
10130 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
10131 (free_menubar_widget_tree_value, parse_single_submenu)
10132 (update_submenu_strings): Remove functions.
10133 (xmalloc_widget_value): Remove and declare extern.
10134
10135 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
10136 (OBJ1): Build it.
10137
10138 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
10139 (local_heap, local_alloc, local_free, malloc_widget_value)
10140 (free_widget_value): Define here.
10141
10142 2008-06-09 Kenichi Handa <handa@m17n.org>
10143
10144 * font.h (Qascii_0): Extern it.
10145
10146 * font.c (Qascii_0): New variable.
10147 (syms_of_font): DEFSYM it.
10148 (font_open_by_name): If the registry "iso8859-1" fails, try also
10149 "ascii-0".
10150
10151 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
10152
10153 2008-06-08 Kenichi Handa <handa@m17n.org>
10154
10155 * .gdbinit (xfont): New command.
10156
10157 2008-06-08 Andreas Schwab <schwab@suse.de>
10158
10159 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
10160 * Makefile.in (menu.o): Update dependencies.
10161
10162 * Makefile.in (obj): Always add menu.o.
10163 * emacs.c (main): Always call syms_of_menu.
10164 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
10165
10166 2008-06-08 Chong Yidong <cyd@stupidchicken.com>
10167
10168 * Makefile.in: Compile menu.c.
10169
10170 * lisp.h: Declare syms_of_menu.
10171
10172 * emacs.c (main): Call syms_of_menu.
10173
10174 * keyboard.h: Relocate platform-independent menu definitions from
10175 xmenu.c.
10176
10177 * menu.c: New file. Relocate platform-independent menu
10178 definitions from xmenu.c. Suggested by Adrian Robert.
10179
10180 * xmenu.c: Remove platform-independent menu definitions.
10181 (menu_items menu_items_inuse, menu_items_allocated)
10182 (menu_items_used, menu_items_n_panes)
10183 (menu_items_submenu_depth): Move to keyboard.h.
10184 (init_menu_items, finish_menu_items, unuse_menu_items)
10185 (discard_menu_items, restore_menu_items, save_menu_items)
10186 (grow_menu_items, push_submenu_start, push_submenu_end)
10187 (push_left_right_boundary, push_menu_pane, push_menu_item)
10188 (keymap_panes, single_keymap_panes, single_menu_item)
10189 (list_of_panes, list_of_items, find_and_call_menu_selection)
10190 (xmalloc_widget_value, free_menubar_widget_value_tree)
10191 (parse_single_submenu, digest_single_submenu)
10192 (update_submenu_strings): Move to menu.c.
10193
10194 2008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
10195
10196 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
10197
10198 2008-06-06 Miles Bader <miles@gnu.org>
10199
10200 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
10201 face, not frame default.
10202
10203 2008-06-05 Martin Rudalics <rudalics@gmx.at>
10204
10205 * window.c (pop_up_windows, pop_up_frames)
10206 (display_buffer_reuse_frames, Vpop_up_frame_function)
10207 (Vdisplay_buffer_function, Veven_window_heights)
10208 (Vspecial_display_buffer_names, Vspecial_display_regexps)
10209 (Vspecial_display_function, Vsame_window_buffer_names)
10210 (Vsame_window_regexps, split_height_threshold)
10211 (Vsplit_window_preferred_function): Move those vars to window.el.
10212 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
10213 (Fdisplay_buffer): Move those functions to window.el.
10214 (syms_of_window): Remove corresponding declarations.
10215 (display_buffer): New function.
10216 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
10217 * dispnew.c (Flast_nonminibuf_frame): New function.
10218 * buffer.c (Fpop_to_buffer): Move to window.el.
10219
10220 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10221
10222 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
10223
10224 2008-06-05 Kenichi Handa <handa@m17n.org>
10225
10226 * coding.c (detect_coding): Fix previous change.
10227 (detect_coding_system): Likewise.
10228
10229 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10230
10231 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
10232
10233 * keymap.c (Vminibuffer_local_filename_must_match_map):
10234 Rename from Vminibuffer_local_must_match_filename_map.
10235 (syms_of_keymap):
10236 * minibuf.c (Fcompleting_read): Adjust accordingly.
10237 * commands.h: Rename declaration as well.
10238
10239 2008-06-05 Kenichi Handa <handa@m17n.org>
10240
10241 * font.c (Ffont_spec): Don't use font_parse_family_registry for
10242 family name.
10243 (Ffont_put): Likewise.
10244
10245 * fontset.c (fontset_find_font): Call font_open_for_lface with the
10246 current font-spec.
10247
10248 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
10249 is unspecified.
10250
10251 * xfaces.c (realize_x_face): If the font-related face attributes
10252 are the same as those of default face, realize a new fontset from
10253 default->fontset.
10254 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
10255
10256 2008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10257
10258 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
10259 (move_it_in_display_line): New wrapper.
10260
10261 * window.c (window_scroll_pixel_based_preserve_x)
10262 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
10263 (window_scroll_pixel_based, window_scroll_line_based):
10264 Use them to preserve column positions.
10265 (syms_of_window): Initialize them.
10266
10267 * indent.c (Fvertical_motion): Extend first arg to allow passing an
10268 (HPOS . VPOS) pair.
10269
10270 * dispextern.h (move_it_in_display_line): Declare.
10271
10272 2008-06-05 Juanma Barranquero <lekktu@gmail.com>
10273
10274 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
10275 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
10276 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
10277
10278 2008-06-04 Juanma Barranquero <lekktu@gmail.com>
10279
10280 * window.c (Fset_window_parameter): Doc fix.
10281 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
10282
10283 2008-06-04 Joakim Verona <joakim@verona.se>
10284
10285 * window.h (struct window): Add new member window_parameters.
10286
10287 * window.c (Fwindow_parameters, Fwindow_parameter)
10288 (Fset_window_parameter): New defuns.
10289 (syms_of_window): Defsubr the new defuns.
10290 (make_window): Initialize window_parameters to nil.
10291
10292 2008-06-04 John Paul Wallington <jpw@pobox.com>
10293
10294 * eval.c (Fdefmacro): Doc fix.
10295
10296 2008-06-04 Kenichi Handa <handa@m17n.org>
10297
10298 * coding.c (detect_coding): Fix handling of coding->head_ascii.
10299 Be sure to call setup_coding_system when we find a proper coding system.
10300 (detect_coding_system): Fix handling of coding->head_ascii.
10301
10302 2008-06-03 Andreas Schwab <schwab@suse.de>
10303
10304 * font.c (font_prop_validate_spacing): Fix last change.
10305
10306 2008-06-03 Kenichi Handa <handa@m17n.org>
10307
10308 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
10309 (font_parse_fcname): Fix handling of unknown key.
10310
10311 * xfont.c (xfont_list): Try an alias.
10312
10313 * charset.c (char_charset): Return NULL if the arg charset_list is
10314 specified and C doesn't belong to any of them.
10315
10316 2008-06-02 Chip Coldwell <coldwell@redhat.com>
10317
10318 * font.c (font_pixel_size): Don't take cdr of an integer.
10319
10320 2008-06-02 Jim Meyering <meyering@redhat.com>
10321
10322 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
10323 * alloc.c (xfree): Return right away for a NULL arg.
10324 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
10325 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
10326 * mac.c (create_apple_event_from_event_ref): Likewise.
10327 (create_apple_event_from_drag_ref, cfstring_create_normalized):
10328 Likewise.
10329 * doprnt.c (doprnt1): Likewise.
10330 * frame.c (frame): Likewise.
10331 * keyboard.c (wipe_kboard): Likewise.
10332 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
10333 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
10334 * term.c (tty_default_color_capabilities, maybe_fatal)
10335 (delete_tty): Likewise.
10336 * w16select.c (string): Likewise.
10337 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
10338 * w32bdf.c (w32_free_bdf_font): Likewise.
10339 * w32fns.c (w32_unload_font): Likewise.
10340 * w32font.c (w32font_close): Likewise.
10341 * window.c (size_window): Likewise.
10342 * xselect.c (receive_incremental_selection): Likewise.
10343 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
10344 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
10345 * w32.c (stat): Likewise.
10346
10347 Remove useless if-before-free tests.
10348 * editfns.c (Fset_time_zone_rule): Likewise.
10349 * lread.c (nosuffix): Likewise.
10350 * ralloc.c (get_bloc): Likewise.
10351 * regex.c (reg_free): Likewise.
10352 * xftfont.c (xftfont_open, xftfont_close): Likewise.
10353 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
10354 * xsmfns.c (smc_save_yourself_CB): Likewise.
10355
10356 2008-06-02 Kenichi Handa <handa@m17n.org>
10357
10358 * font.c (font_find_for_lface): Handle float font size.
10359 (font_open_for_lface): Likewise.
10360
10361 * xfaces.c (x_supports_face_attributes_p): Check face->font before
10362 comparing the properties.
10363
10364 2008-06-01 Jason Rumney <jasonr@gnu.org>
10365
10366 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
10367 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
10368 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
10369 Don't add empty script list.
10370 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
10371
10372 2008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
10373
10374 * Makefile.in (dot, dotdot): Remove, update users.
10375 ".." has been used elsewhere in the file for a long time.
10376 (LIBXT_STATIC): Remove conditional based on unused variable.
10377
10378 2008-06-01 Miles Bader <miles@gnu.org>
10379
10380 * xfaces.c (Vface_remapping_alist): New variable.
10381 (syms_of_xfaces): Initialize it.
10382 (enum named_merge_point_kind): New type.
10383 (struct named_merge_point): Add `named_merge_point_kind' field.
10384 (push_named_merge_point): Make cycle detection respect different
10385 named-merge-point kinds.
10386 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
10387 Remove face-name alias resolution.
10388 (lface_from_face_name): New definition using
10389 `lface_from_face_name_no_resolve'.
10390 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
10391 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
10392 (get_lface_attributes): New definition that layers face-remapping on
10393 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
10394 (lookup_basic_face): New function.
10395 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
10396 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
10397 `get_lface_attributes'.
10398 (face_at_buffer_position): Use `lookup_basic_face' to lookup
10399 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
10400 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
10401
10402 * xdisp.c (init_iterator): Pass base_face_id through
10403 `lookup_basic_face' when we actually use it as a face-id.
10404 (handle_single_display_prop): Use `lookup_basic_face' to lookup
10405 DEFAULT_FACE_ID.
10406
10407 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
10408 lookup the initial face-id.
10409
10410 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
10411
10412 2008-06-01 Juanma Barranquero <lekktu@gmail.com>
10413
10414 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
10415 (Fremove_text_properties): Fix typos in docstrings.
10416
10417 2008-05-31 Kenichi Handa <handa@m17n.org>
10418
10419 * font.c (font_list_entities): Fix the car part of data to be
10420 stored in the cache.
10421
10422 * ftfont.c (ftfont_font_format): Don't use strcasestr.
10423
10424 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10425
10426 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
10427 Add a `test' argument so another predicate than `equal' can be used.
10428 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
10429 (map_char_table): Remove unused vars `c' and `i'.
10430 * lisp.h (Foptimize_char_table): Adjust declaration.
10431 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
10432
10433 2008-05-30 Kenichi Handa <handa@m17n.org>
10434
10435 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
10436 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
10437 defined.
10438
10439 2008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10440
10441 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
10442 (Fmake_variable_frame_local): Disallow mixing buffer-local and
10443 frame-local settings for the same variable.
10444
10445 2008-05-30 Kenichi Handa <handa@m17n.org>
10446
10447 * fontset.c (Ffont_info): Move to font.c.
10448 (syms_of_fontset): Delete defsubr of Sfont_info.
10449
10450 * font.c (font_style_to_value, font_score): Delete casting of the
10451 args to xstcasecmp.
10452 (register_font_driver): Increment num_font_drivers only when
10453 registering the driver globally.
10454 (Ffont_info): Move from fontset.c. Handle a font object too.
10455 (syms_of_font): Defsubr Sfont_info.
10456
10457 2008-05-29 Kenichi Handa <handa@m17n.org>
10458
10459 * coding.h (enum define_coding_utf8_arg_index): New enum.
10460 (enum coding_attr_index): Change coding_attr_utf_16_bom to
10461 coding_attr_utf_bom.
10462 (enum utf_bom_type): Rename from utf_16_bom_type.
10463 (struct utf_16_spec): Adjust for the above change.
10464 (struct coding_system): Add utf_8_bom in `spec' union.
10465
10466 * coding.c (CODING_UTF_8_BOM): New macro.
10467 (enum coding_category): Delete coding_category_utf_8, add
10468 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
10469 coding_category_utf_8_sig.
10470 (CATEGORY_MASK_UTF_8): Delete it.
10471 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
10472 (CATEGORY_MASK_UTF_8_SIG): New macros.
10473 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
10474 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
10475 CATEGORY_MASK_UTF_8_SIG.
10476 (CATEGORY_MASK_UTF_8): New macro.
10477 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
10478 (detect_coding_utf_8): Check BOM.
10479 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
10480 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
10481 (encode_coding_utf_16): Likewise.
10482 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
10483 (detect_coding, detect_coding_system): Handle utf-8-auto.
10484 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
10485 (syms_of_coding): Fix setting up of Vcoding_category_table.
10486
10487 2008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
10488
10489 * process.c (Faccept_process_output): If `millisec' is non-nil,
10490 `seconds' default to 0.
10491 (wait_reading_process_output): Also return non-nil if we read output
10492 from a non-running process.
10493
10494 2008-05-29 Jason Rumney <jasonr@gnu.org>
10495
10496 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
10497 `raster' specified.
10498 (add_font_entity_to_list): Allow non-opentype truetype fonts back
10499 in the uniscribe backend, but disallow any font that has no
10500 unicode subrange support.
10501
10502 2008-05-29 Juanma Barranquero <lekktu@gmail.com>
10503
10504 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
10505 Fix typos in docstrings.
10506
10507 2008-05-29 Kenichi Handa <handa@m17n.org>
10508
10509 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
10510 (Fx_family_fonts): Set frame correctly.
10511
10512 2008-05-28 Jason Rumney <jasonr@gnu.org>
10513
10514 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
10515
10516 2008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
10517
10518 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
10519 calling build_annotations.
10520
10521 2008-05-28 Juanma Barranquero <lekktu@gmail.com>
10522
10523 * coding.c (Fdecode_coding_region, Fencode_coding_region)
10524 (Fencode_coding_string):
10525 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
10526 <latin-extra-code-table>: Fix typos in docstrings.
10527 (syms_of_coding) <coding-system-alist>: Doc fix.
10528 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
10529
10530 2008-05-28 Kenichi Handa <handa@m17n.org>
10531
10532 * fontset.c (Ffont_info): Don't call font_close_object.
10533
10534 * font.c (font_parse_family_registry): Use Ffont_put to validate
10535 foundry and family.
10536 (font_delete_unmatched): Don't check spacing.
10537 (font_list_entities): Add spacing to the spec to list fonts.
10538
10539 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
10540 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
10541
10542 * coding.c (encode_coding_raw_text): Fix previous change.
10543 (encode_coding_object): When the dst_object is a buffer and is
10544 different from src_object, move gap to PT.
10545
10546 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
10547
10548 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
10549
10550 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10551
10552 * coding.c (encode_coding_raw_text): Set coding->produced_char for
10553 all branches. Compute it differently.
10554
10555 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
10556
10557 2008-05-27 Juanma Barranquero <lekktu@gmail.com>
10558
10559 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
10560 into "else if () ... else ...".
10561
10562 2008-05-27 Jason Rumney <jasonr@gnu.org>
10563
10564 * w32font.c (w32font_open_internal): Determine if glyph indices
10565 are likely to work here.
10566
10567 2008-05-27 Chong Yidong <cyd@stupidchicken.com>
10568
10569 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
10570 draw overlap glyphs with appropriate highlighting.
10571
10572 2008-05-27 Kenichi Handa <handa@m17n.org>
10573
10574 * xfont.c (xfont_open): Fix calculation of font->average_width.
10575
10576 2008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10577
10578 * casefiddle.c (casify_object): Try to guess better whether the
10579 argument is a byte or a char.
10580
10581 2008-05-26 Andreas Schwab <schwab@suse.de>
10582
10583 * xselect.c (x_reply_selection_request): Properly handle format == 32.
10584 Always send multiples of format size.
10585
10586 * xterm.c (x_set_frame_alpha): Fix type mismatch.
10587
10588 2008-05-26 Jason Rumney <jasonr@gnu.org>
10589
10590 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
10591 (compute_metrics): Don't set failure if we just cleared the cache.
10592 (w32_weight_table): Remove unused variable.
10593 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
10594 backwards compatibility.
10595
10596 2008-05-25 Kenichi Handa <handa@m17n.org>
10597
10598 * w32term.c (x_draw_glyph_string):
10599 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
10600
10601 * xfaces.c: Delete unused function prototypes.
10602 (xstrlwr, font_frame): Delete them.
10603 (clear_face_cache): Delete unused variable.
10604
10605 * xftfont.c (xftfont_open): Delete unused variable.
10606 If underline_thickness is not 1, adjust underline_position.
10607
10608 * ftxfont.c (ftxfont_open): Delete unused variable.
10609
10610 * fontset.c (face_for_char): Optimize for the case of no charset
10611 property.
10612
10613 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
10614 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
10615 (otf_open, font_otf_capability, generate_otf_features)
10616 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
10617 Comment out by surrounding "#if 0" and "#endif" for the moment.
10618 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
10619 (syms_of_font): Codes for accessing above commented out.
10620
10621 2008-05-24 Eli Zaretskii <eliz@gnu.org>
10622
10623 * w32proc.c: Include dispextern.h.
10624
10625 * w32.c: Include dispextern.h.
10626
10627 2008-05-23 Juanma Barranquero <lekktu@gmail.com>
10628
10629 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
10630 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
10631 Fix typos in docstrings.
10632
10633 2008-05-23 Jason Rumney <jasonr@gnu.org>
10634
10635 * xsmfns.c: Remove includes that are already included by config.h.
10636
10637 2008-05-23 Kenichi Handa <handa@m17n.org>
10638
10639 * charset.c (Qemacs, charset_emacs): New variables.
10640 (char_charset): Fix for non-Unicode characters.
10641 (syms_of_charset): Define charset_emacs.
10642
10643 * w32term.c (x_draw_glyph_string): Be sure to update
10644 s->underline_thickness and s->underline_position. Be sure to draw
10645 underline within the current line area.
10646
10647 * xterm.c (x_draw_glyph_string): Be sure to update
10648 s->underline_thickness and s->underline_position. Be sure to draw
10649 underline within the current line area.
10650
10651 * fontset.c: Delete unused variables and add casting for char *
10652 throughout the file.
10653 (fontset_font): Try the fallback fonts of the current fontset
10654 before consulting the default fontset.
10655
10656 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
10657
10658 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
10659
10660 2008-05-22 Jason Rumney <jasonr@gnu.org>
10661
10662 * font.c: Don't include strings.h.
10663
10664 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
10665
10666 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
10667 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
10668 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
10669 to call xstrcasecmp.
10670
10671 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
10672
10673 * fontset.c (fs_query_fontset): Use xstrcasecmp.
10674
10675 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
10676
10677 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
10678
10679 2008-05-22 Kenichi Handa <handa@m17n.org>
10680
10681 * puresize.h (BASE_PURESIZE): Increase to 1220000.
10682
10683 * font.c (font_prop_validate_style): Adjust for the format
10684 change of font_style_table.
10685
10686 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
10687 two args.
10688
10689 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
10690 two args.
10691
10692 2008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
10693
10694 * minibuf.c (keys_of_minibuf): Delete.
10695 * lisp.h (keys_of_minibuf): Delete.
10696 * emacs.c (main): Don't call keys_of_minibuf.
10697
10698 2008-05-22 Kenichi Handa <handa@m17n.org>
10699
10700 * ftfont.c (ftfont_resolve_generic_family): Rename from
10701 ftfont_list_generic_family. Return a single family for each
10702 generic family.
10703 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
10704 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
10705 Call font_add_log.
10706 (ftfont_match): Call font_add_log.
10707
10708 * font.h (Ffont_xlfd_name): EXFUN adjusted.
10709 (FONT_DEBUG): Define it.
10710 (font_add_log): Extern it.
10711 (font_assert): Rename from xassert.
10712
10713 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
10714 (xfont_list_family): Call font_add_log.
10715 (xfont_match): Likewise.
10716 (memq_no_quit): Delete.
10717
10718 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
10719 call of Ffont_xlfd_name.
10720
10721 * xfaces.c (struct table_entry, slant_table, weight_table)
10722 (swidth_table): Move to font.c.
10723
10724 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
10725 xassert are changed to font_assert. Delete many unused variables.
10726 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
10727 New variables.
10728 (struct table_entry): Move from xfaces.c and modified.
10729 (weight_table, slant_table, width_table): Move from xfaces.c and
10730 contents adjusted for the change of struct table_entry.
10731 (font_style_to_value, font_style_symbolic): Adjust for the
10732 format change of font_style_table.
10733 (font_parse_family_registry): Don't overwrite existing foundry and
10734 family of font_spec.
10735 (font_score): Fix calculation of diff for sizes.
10736 (font_sort_entites): Call font_add_log.
10737 (font_delete_unmatched): Return a newly created list.
10738 (font_list_entities): Fix previous change. Call font_add_log.
10739 (font_matching_entity, font_open_entity, font_close_entity):
10740 Call font_add_log.
10741 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
10742 (Finternal_set_font_style_table): Delete.
10743 (BUILD_STYLE_TABLE): New macro.
10744 (build_style_table): New function.
10745 (Vfont_log, font_log_env_checked): New variables.
10746 (font_add_log): New function.
10747 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
10748 Declare Lisp variables "font-weight-table", "font-slant-table",
10749 "font-width-table", and "font-log". Initialize font_style_table.
10750
10751 2008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
10752
10753 * xterm.c (x_set_frame_alpha): Move declarations before statements.
10754
10755 2008-05-21 Seiji Zenitani <zenitani@mac.com>
10756 Ryo Yoshitake <ryo@shiftmode.net>
10757
10758 * frame.c (Qalpha): Add a new frame parameter `alpha'.
10759 (Vframe_alpha_lower_limit): New variable.
10760 (x_set_alpha): New function.
10761
10762 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
10763
10764 * xfns.c (x-create-frame, Qalpha):
10765 Initialize the frame parameter `alpha'.
10766 * xterm.c (OPAQUE, OPACITY): New.
10767 (x_set_frame_alpha): New function.
10768 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
10769
10770 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
10771 * w32fns.c (w32_frame_parm_handlers): Likewise.
10772
10773 2008-05-20 Jason Rumney <jasonr@gnu.org>
10774
10775 * w32font.c (add_font_entity_to_list): Don't add non-opentype
10776 truetype fonts to opentype list.
10777
10778 2008-05-20 Juanma Barranquero <lekktu@gmail.com>
10779
10780 * fontset.c (Ffontset_info): Doc fix.
10781 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
10782 <ignore-relative-composition>: Fix typos in docstrings.
10783
10784 * font.c (syms-of-font) <font-encoding-alist>:
10785 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
10786 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
10787 (Ffont_otf_alternates): Doc fixes.
10788
10789 2008-05-20 Kenichi Handa <handa@m17n.org>
10790
10791 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
10792 font.h through out the file.
10793 (FONT_DRIVERS): Rename from FONTOBJ.
10794 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
10795 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
10796
10797 * emacs.c (main): Call syms_of_font unconditionally.
10798
10799 * font.h (find_font_encoding): Extern it.
10800
10801 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
10802 fontset.c.
10803 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
10804 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
10805 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
10806 only when HAVE_WINDOW_SYSTEM is defined.
10807 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
10808 when HAVE_WINDOW_SYSTEM is defined.
10809
10810 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
10811 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
10812
10813 * xfaces.c: Include font.h unconditionally.
10814 (merge_face_ref, merge_face_vectors)
10815 (Finternal_set_lisp_face_attribute): Cancel the previous change.
10816
10817 2008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
10818
10819 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
10820 indirect_variable.
10821 * eval.c (lisp_indirect_variable): New fun.
10822 (Fuser_variable_p): Use it.
10823
10824 2008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
10825
10826 * lisp.h (indirect_variable):
10827 * data.c (indirect_variable, let_shadows_buffer_binding_p):
10828 Use Lisp_Symbol pointers rather than Lisp_Object.
10829 Adjust callers.
10830 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
10831 To this end, change calling-convention.
10832
10833 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
10834 if some non-hidden buffers are selected by string&pred.
10835
10836 2008-05-19 Chong Yidong <cyd@stupidchicken.com>
10837
10838 * process.c (wait_reading_process_output): Always check status
10839 when in batch mode.
10840
10841 2008-05-19 Kenichi Handa <handa@m17n.org>
10842
10843 * font.c (font_list_entities): Fix handling of cache.
10844 (font_matching_entity): Likewise.
10845
10846 * ftfont.c (cs_iso8859_1): Delete.
10847 (ft_face_cache): New variable.
10848 (struct ftfont_info): New member fc_charset_idx.
10849 (ftfont_build_basic_charsets): Delete.
10850 (fc_charset_table): New variable.
10851 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
10852 . FC_CHARSET_IDX) as :font-entity property in the font entity.
10853 Callers changed.
10854 (ftfont_lookup_cache, ftfont_get_charset): New functions.
10855 (ftfont_spec_pattern): New argument fc_charset_idx.
10856 Check registry more rigidly. Change callers.
10857 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
10858 change of :font-entity property of the font.
10859
10860 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
10861 property of the font.
10862
10863 2008-05-18 Juanma Barranquero <lekktu@gmail.com>
10864
10865 * coding.c (Fcoding_system_p): Rename argument to match docstring.
10866 (Funencodable_char_position, Fcheck_coding_systems_region)
10867 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
10868 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
10869 (Ffind_operation_coding_system, Fset_coding_system_priority)
10870 (Fcoding_system_eol_type): Doc fixes.
10871
10872 2008-05-17 Glenn Morris <rgm@gnu.org>
10873
10874 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
10875
10876 2008-05-16 Eli Zaretskii <eliz@gnu.org>
10877
10878 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
10879 and st_gid.
10880
10881 * frame.c (Fdelete_frame): Don't call font_update_drivers if
10882 HAVE_WINDOW_SYSTEM is not defined.
10883
10884 * xfaces.c (merge_face_ref, merge_face_vectors)
10885 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
10886 HAVE_WINDOW_SYSTEM is defined.
10887 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
10888
10889 2008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
10890
10891 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
10892
10893 2008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10894
10895 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
10896
10897 2008-05-15 Kenichi Handa <handa@m17n.org>
10898
10899 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
10900 preference.
10901
10902 2008-05-15 Glenn Morris <rgm@gnu.org>
10903
10904 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
10905
10906 2008-05-15 Chong Yidong <cyd@stupidchicken.com>
10907
10908 * fns.c (init_fns): Don't initialize weak_hash_tables here.
10909 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
10910
10911 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
10912
10913 2008-05-15 Kenichi Handa <handa@m17n.org>
10914
10915 * ftfont.c (ftfont_list): Downcase family name to check generic
10916 families.
10917
10918 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
10919 font-spec for QCfont value.
10920
10921 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
10922 buffer. Check the return value of it.
10923
10924 2008-05-14 Jason Rumney <jasonr@gnu.org>
10925
10926 * w32term.c (w32_get_glyph_overhangs): Remove.
10927 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
10928
10929 2008-05-14 Kenichi Handa <handa@m17n.org>
10930
10931 * font.c (font_prop_validate): Make nil a valid value.
10932 (font_clear_cache): Check if the cached vector of entities is nil
10933 or not.
10934
10935 2008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10936
10937 * emacs.c (main_thread): Conditionalize on
10938 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10939 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
10940
10941 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
10942 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
10943 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
10944
10945 2008-05-14 Kenichi Handa <handa@m17n.org>
10946
10947 * coding.c (detect_coding_iso_2022): Ignore a coding category that
10948 has no corresponding coding system.
10949
10950 2008-05-14 Jason Rumney <jasonr@gnu.org>
10951
10952 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
10953
10954 * w32font.h (w32font_open_internal): Update declaration.
10955
10956 * w32font.c (w32font_open_internal): Change last argument from
10957 w32font_info struct to font object. Fill in font object from
10958 font_entity. Get Outline metrics if possible. Use them to
10959 calculate underline position and thickness. Use xlfd name as name
10960 property. Don't set codepage.
10961 (w32font_open): Pass font_object to w32font_open_internal. Don't
10962 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
10963 (w32font_draw): Use s->font.
10964 (clear_cached_metrics): Don't clear non-existent blocks.
10965
10966 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
10967 font was not found.
10968 (x_draw_glyph_string): Use underline position and thickness from font.
10969
10970 * w32uniscribe.c (uniscribe_open): Pass font_object to
10971 w32font_open_internal.
10972
10973 2008-05-14 Kenichi Handa <handa@m17n.org>
10974
10975 These changes are to delete all legacy font-handling codes, and
10976 make Emacs use only font-backends.
10977
10978 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
10979 (frame.o, image.o, print.o): Depend on $(FONTSRC).
10980
10981 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
10982
10983 * charset.h (Vcharset_non_preferred_head)
10984 (Vcurrent_iso639_language): Extern them.
10985
10986 * charset.c (Vcharset_non_preferred_head): New variable.
10987 (Vcurrent_iso639_language): New variable.
10988 (syms_of_charset): Declare it as a Lisp variable.
10989 (char_charset): Don't check non preferred charsets. As a last
10990 resort, return charset_unicode.
10991 (Fset_charset_priority): Update Vcharset_non_preferred_head.
10992
10993 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
10994 conditionals. Don't check enable_font_backend. Delete all codes
10995 used only when USE_FONT_BACKEND is not defined.
10996
10997 * dispextern.h (struct glyph_string): Change type of `font' to
10998 `struct font *'.
10999 (struct glyph_string): New member underline_position and
11000 underline_thickness.
11001 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
11002 (struct face): Change type of `font' to `struct font *'. Remove
11003 members `font_name', `font_info_id'.
11004 (per_char_metric, encode_char): Delete externs.
11005 (calc_pixel_width_or_height): Adjust the prototype.
11006
11007 * emacs.c (enable_font_backend): Delete extern.
11008 (main): Don't set enable_font_backend. Don't check the command
11009 line argument "-disable-font-backend".
11010
11011 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
11012 (enum font_property_index): New members FONT_DPI_INDEX,
11013 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
11014 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
11015 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
11016 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
11017 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
11018 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
11019 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
11020 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
11021 (struct font_spec, struct font_entity): New structs.
11022 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
11023 (struct font): Many members from old "struct font_info" moved to
11024 here. Members font and entity deleted.
11025 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
11026 the new font-related objects.
11027 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
11028 (CHECK_FONT_GET_OBJECT): Likewise.
11029 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
11030 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
11031 (struct font_driver): New members case_sensitive anc check. Type
11032 of the member list and open changed.
11033 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
11034 (font_symbolic_width, font_find_object, font_get_spec)
11035 (font_set_lface_from_name): Delete extern.
11036 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
11037
11038 * font.c: Include <strings.h>.
11039 (enable_font_backend): Delete it.
11040 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
11041 (CHECK_VALIDATE_FONT_SPEC): Delete it.
11042 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
11043 (null_string): Delete it.
11044 (null_vector): Make it static.
11045 (font_family_alist): Delete it.
11046 (Qnormal): Extern it.
11047 (QCextra, QClanguage): Delete it.
11048 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
11049 (font_make_spec, font_make_entity, font_make_object)
11050 (font_intern_prop): Renamed from intern_downcase. Don't downcase
11051 the string. Callers changed.
11052 (font_pixel_size): Adjusted for the format change of font-related
11053 objects.
11054 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
11055 (font_style_to_value, font_style_symbolic): New function.
11056 (build_font_family_alist): Delete it.
11057 (font_registry_charsets): Use Fassoc_string instead of
11058 assq_no_quit.
11059 (font_prop_validate_symbol): Don't return null_string.
11060 (font_prop_validate_style): Adjusted for the change of
11061 style-related values in a font vector.
11062 (font_property_table): Delete entries for QClanguage and
11063 QCantialias, add entries for QCavgwidth.
11064 (get_font_prop_index): Delete the 2nd argument FROM.
11065 (font_prop_validate): Arguments changed.
11066 (font_put_extra): Adjusted for the change of font-related objects.
11067 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
11068 (font_parse_fcname, font_unparse_fcname)
11069 (font_prepare_composition): Likewise.
11070 (font_parse_family_registry): Renamed from font_merge_old_spec.
11071 (otf_open): Delete the 1st arg entity.
11072 (font_otf_capability): Adjusted for the above change.
11073 (font_score): New arg alternate_families. Adjusted for the change
11074 of font-related objects.
11075 (font_sort_entites): New arg best_only.
11076 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
11077 Delete them.
11078 (font_match_p): Check alternate families.
11079 (font_find_object): Delete it.
11080 (font_check_object): New function.
11081 (font_clear_cache): Adjusted for the change of font-related objects.
11082 (font_delete_unmatched): New arg.
11083 (font_list_entities): Call font_driver->list with a spec that
11084 doesn't specify style-related properties.
11085 (font_matching_entity): Arguments changed. Caller changed.
11086 (font_open_entity): Adjusted for the change of font-related objects.
11087 (font_close_object, font_has_char, font_encode_char)
11088 (font_get_name, font_get_spec): Likewise.
11089 (font_spec_from_name, font_clear_prop, font_update_lface):
11090 New functions.
11091 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
11092 (font_prepare_for_face, font_done_for_face, font_open_by_name)
11093 (font_at): Adjusted for the change of font-related objects.
11094 (font_range): New function.
11095 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
11096 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
11097 (Fcopy_font_spec, Fmerge_font_spec): New function.
11098 (Ffont_family_list): Renamed from list-families.
11099 (Finternal_set_font_style_table): Arguments changed.
11100 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
11101 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
11102 change of font-related objects.
11103 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
11104
11105 * fontset.h (struct font_info): Delete it. Most members go to
11106 struct font.
11107 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
11108 (enum FONT_SPEC_INDEX): Delete it.
11109 (font_info, list_fonts_func, load_font_func, query_font_func)
11110 (set_frame_fontset_func, find_ccl_program_func)
11111 (get_font_repertory_func, new_fontset_from_font_name): Delete
11112 externs.
11113 (fontset_from_font_name): Extern it.
11114 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
11115 (FONT_INFO_FROM_FACE): Deleted.
11116 (face_for_font): Adjust prototype.
11117
11118 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
11119 conditionals. Don't check enable_font_backend. Delete all codes
11120 used only when USE_FONT_BACKEND is not defined.
11121 (get_font_info_func, list_font_func, load_font_func)
11122 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
11123 (get_font_repertory_func): Delete them.
11124 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
11125 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
11126 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
11127 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
11128 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
11129 (fontset_compare_rfontdef): New function.
11130 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
11131 rfont-defs by qsort. Adjusted for the change of font-group vector.
11132 (load_font_get_repertory): Deleted.
11133 (fontset_find_font): Use new macros to ref/set elements of
11134 font-def and rfont-def.
11135 (fontset_font): Fix the timing of remembering that no font for C.
11136 (free_face_fontset): Do nothing if the face has no fontset.
11137 (face_suitable_for_char_p): Use new macros to ref/set elements of
11138 rfont-def.
11139 (face_for_char): Likewise. Call face_for_char with font_object.
11140 (fs_load_font): Delete. Delete #pragma surrounding it.
11141 (fs_query_fontset): Use strcasecmp instead of strcmp.
11142 (generate_ascii_font_name): Adjusted for the format change of
11143 font-spec.
11144 (Fset_fontset_font): Likewise. Use new macros to set elements of
11145 font-def.
11146 (Fnew_fontset): Use font_unparse_xlfd to generate
11147 FONTSET_ASCII (fontset).
11148 (new_fontset_from_font_name): Deleted.
11149 (fontset_from_font): Renamed from new_fontset_from_font. Check if
11150 a fontset is already created for the font. FIx updating of
11151 Vfontset_alias_alist.
11152 (fontset_ascii_font): Deleted.
11153 (Ffont_info): Adjusted for the format change of font-spec.
11154 (Finternal_char_font): Likewise.
11155 (Ffontset_info): Likewise.
11156 (syms_of_fontset): Don't check load_font_func.
11157
11158 * fns.c (internal_equal): Handle PREV_FONT.
11159
11160 * frame.h: Delete USE_FONT_BACKEND conditional.
11161
11162 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
11163 conditionals. Don't check enable_font_backend. Delete all codes
11164 used only when USE_FONT_BACKEND is not defined.
11165 (x_set_font): Call x_new_font, not x_new_fontset2.
11166 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
11167 already set for the frame.
11168
11169 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
11170 a font-entity by font_make_entity. Use font_intern_prop instead
11171 of intern_downcase. Use FONT_SET_STYLE to set a style-related
11172 font property. If a font is scalable, set avgwidth property to 0.
11173 Set font-entity property by font_put_extra.
11174 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
11175 (ffont_driver): Adjusted for the change of struct font_driver.
11176 (ftfont_spec_pattern): New function.
11177 (ftfont_list): Return a list, not vector.
11178 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
11179 (ftfont_list_family): Don't downcase names.
11180 (ftfont_free_entity): Deleted.
11181 (ftfont_open): Return a font-object. Adjusted for the change of
11182 struct font. Get underline_thickness and underline_position from
11183 font property. Don't update dpyinfo->smallest_font_height and
11184 dpyinfo->smallest_char_width.
11185 (ftfont_close): Don't free `struct font'.
11186 (ftfont_has_char): Adjusted for the format change of font-entity.
11187 (ftfont_encode_char, ftfont_text_extents): Likewise.
11188
11189 * ftxfont.c (ftxfont_list): Return a list, not vector.
11190 (ftxfont_open): Return a font-object. Adjusted for the change of
11191 struct font. Get underline_thickness and underline_position from
11192 font property. Don't update dpyinfo->smallest_font_height and
11193 dpyinfo->smallest_char_width.
11194 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
11195 (ftxfont_draw): Adjusted for the change of struct font.
11196
11197 * image.c (image_ascent): Don't include "charset.h". Include
11198 "character.h" and "font.h".
11199
11200 * lisp.h (enum pvec_type): New member PREV_FONT.
11201 (Fassoc_string): EXFUN it.
11202
11203 * print.c: Include font.h.
11204 (print_object): Handle font-related objects.
11205
11206 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
11207 conditionals. Don't check enable_font_backend. Delete all codes
11208 used only when USE_FONT_BACKEND is not defined.
11209 (handle_auto_composed_prop): Do nothing if it->f is not on a
11210 window system. Check how many following characters can be
11211 displayed by the same font.
11212 (calc_pixel_width_or_height): Type of the 4th arg is changed to
11213 'struct font *'.
11214 (get_char_face_and_encoding): Assign the whole encoding task to
11215 the `encode-char' method of a font driver.
11216 (fill_composite_glyph_string): Adjusted for the change of `struct
11217 face' and `struct glyph_string'.
11218 (fill_glyph_string): Likewise.
11219 (get_per_char_metric): Arguments changed.
11220 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
11221 and `struct glyph_string'.
11222 (produce_stretch_glyph, calc_line_height_property)
11223 (x_produce_glyphs): Likewise.
11224
11225 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
11226 conditionals. Don't check enable_font_backend. Delete all codes
11227 used only when USE_FONT_BACKEND is not defined. Use
11228 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
11229 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
11230 (Qp): Extern them.
11231 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
11232 Deleted.
11233 (struct font_name): Deleted.
11234 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
11235 (compare_fonts_by_sort_order): New function.
11236 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
11237 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
11238 Deleted.
11239 (Fx_family_fonts): Use font_list_entities, and sort fonts by
11240 compare_fonts_by_sort_order.
11241 (Fx_font_family_list): Call Ffont_family_list.
11242 (face_numeric_value, face_numeric_weight, face_numeric_slant)
11243 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
11244 (face_symbolic_slant, face_symbolic_swidth)
11245 (split_font_name_into_vector, build_font_name_from_vector)
11246 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
11247 (font_rescale_ratio, split_font_name, build_font_name)
11248 (free_font_names, sort_fonts, x_face_list_fonts)
11249 (face_font_available_p, sorted_font_list, cmp_font_names)
11250 (font_list_1, concat_font_list, font_list, remove_duplicates):
11251 Deleted.
11252 (Fx_list_fonts): Use Ffont_list.
11253 (LFACE_AVGWIDTH): Deleted.
11254 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
11255 by FONTP.
11256 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
11257 (set_lface_from_font_name): Delete it.
11258 (set_lface_from_font): Renamed from
11259 set_lface_from_font_and_fontset. Caller changed. Don't set
11260 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
11261 for face.
11262 (merge_face_vectors): Copy font-spec if necessary.
11263 Clear properties of the font-spec if necessary.
11264 (merge_face_ref): Clear properties of the font-spec if necessary.
11265 (Finternal_set_lisp_face_attribute): Likewise.
11266 (set_font_frame_param): Use font_load_for_lface to load a
11267 font-object, and call Fmodify_frame_parameters with it.
11268 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
11269 font name by Ffont_xlfd_name.
11270 (Finternal_lisp_face_attribute_values): Don't check QCweight,
11271 QCslant, and QCwidth.
11272 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
11273 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
11274 Compare fonts by EQ.
11275 (lookup_non_ascii_face): Deleted.
11276 (face_for_font): The 2nd argument changed.
11277 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
11278 Check atomic font properties by case insensitive.
11279 (realize_non_ascii_face): Set face->overstrike correctly.
11280 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
11281 (dump_realized_face): Get font name from
11282 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
11283
11284 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
11285 conditionals. Don't check enable_font_backend. Delete all codes
11286 used only when USE_FONT_BACKEND is not defined.
11287 (xic_create_xfontset): Original code deleted and renamed from
11288 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
11289 (x_make_gc): Don't set GCFont in GCs.
11290 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
11291 opened by "fixed".
11292 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
11293 find_ccl_program_func, query_font_func, set_frame_fontset_func,
11294 get_font_repertory_func.
11295
11296 * xfont.c: Include <stdlib.h> and "ccl.h".
11297 (struct xfont_info): New structure.
11298 (xfont_query_font): Deleted.
11299 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
11300 moved from xterm.c.
11301 (xfont_driver): Adjusted for the change of struct font_driver.
11302 (compare_font_names): New function.
11303 (xfont_list_pattern): Sort font names case insensitively. Make
11304 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
11305 (xfont_list): Return a list, not vector.
11306 (xfont_match): If the font doesn't have QCname property, generate
11307 a name from the other font properties.
11308 (xfont_open): Return a font-object. Adjusted for the change of
11309 struct font. Get underline_thickness and underline_position from
11310 font property. Don't update dpyinfo->smallest_font_height and
11311 dpyinfo->smallest_char_width.
11312 (xfont_close): Don't free struct font.
11313 (xfont_prepare_face): Adjusted for the change of struct font.
11314 (xfont_done_face): Deleted.
11315 (xfont_has_char): Adjusted for the change of struct font.
11316 (xfont_encode_char, xfont_draw): Likewise.
11317 (xfont_check): New function.
11318
11319 * xftfont.c (xftfont_list): Adjusted for the change of `list'
11320 callback function.
11321 (xftfont_match): Adjusted for the format change of font-entity.
11322 (xftfont_open): Adjusted for the format change of font-entity and
11323 font-object. Adjusted for the change of struct font. Return a
11324 font-object. Don't update dpyinfo->smallest_font_height and
11325 dpyinfo->smallest_char_width.
11326 (xftfont_close): Block input while calling XftFontClose.
11327 (xftfont_prepare_face): Don't block input while calling
11328 xftfont_get_colors. Adjusted for the change of struct font.
11329 (xftfont_shape): Return value of error case fixed.
11330
11331 * xrdb.c (x_load_resources): Don't setup a fontset resource.
11332
11333 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
11334 conditionals.
11335 (FONT_WIDTH): Return (f)->max_width.
11336 (struct x_display_info): Delete member `font'.
11337 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
11338 (x_find_ccl_program, x_get_font_repertory): Delete externs.
11339 (struct x_output): Change type of `font' to `struct font *'.
11340
11341 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
11342 conditionals. Don't check enable_font_backend. Delete all codes
11343 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
11344 (x_per_char_metric, x_encode_char): Deleted.
11345 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
11346 (x_compute_glyph_string_overhangs): Adjusted for the change of
11347 `struct face'.
11348 (x_draw_glyph_string_foreground)
11349 (x_draw_composite_glyph_string_foreground): Likewise.
11350 (x_draw_glyph_string): Likewise. Use font->underline_position and
11351 font->underline_thickness.
11352 (x_new_font): Renamed from x_new_fontset2.
11353 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
11354 (x_check_font): Call `check' method of a font driver.
11355 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
11356 (x_query_font, x_get_font_repertory): Deleted.
11357 (x_find_ccl_program): Renamed and moved to xfont.c.
11358 (x_redisplay_interface): Adjusted for the change of `struct
11359 redisplay_interface'.
11360
11361 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
11362 conditionals. Don't check enable_font_backend. Delete all codes
11363 used only when USE_FONT_BACKEND is not defined. Surround non-used
11364 code by "#ifdef OLD_FONT" and "endif".
11365 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
11366
11367 * w32font.h (struct w32font_info): New member.
11368 (FONT_COMPAT): New macro.
11369 (w32font_open_internal): Prototype adjusted.
11370
11371 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
11372 OLD_FONT" and "endif".
11373
11374 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
11375 conditionals. Don't check enable_font_backend. Delete all codes
11376 used only when USE_FONT_BACKEND is not defined.
11377 (w32font_open): Return a font-object. Make a font-object by
11378 font_make_object. Adjusted for the change of struct w32font_info.
11379 (w32font_close): Don't free struct font. Adjusted for the change
11380 of struct w32font_info.
11381 (w32font_encode_char, w32font_text_extents, w32font_draw):
11382 Adjusted for the change of struct w32font_info.
11383 (w32font_draw): Likewise.
11384 (w32font_list_internal): Return a list, not vector.
11385 (w32font_open_internal): Change the 4th arg to font-object.
11386 Adjusted for the change of struct w32font_info and font-object format.
11387 (add_font_name_to_list): Don't downcase names.
11388 (w32_enumfont_pattern_entity): Make a font-entity by
11389 font_make_entity. Adjusted for the format change of font-entity.
11390 Use FONT_SET_STYLE to set a style-related font property. If a
11391 font is scalable, set avgwidth property to 0. Set font-entity
11392 property by font_put_extra.
11393 (font_matches_spec): Adjusted for the format change of font-entity.
11394 (w32_weight_table, w32_decode_weight): New variables.
11395 (w32_encode_weight): New function.
11396 (fill_in_logfont): Adjusted for the format change of font-spec.
11397 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
11398 weight value.
11399 (w32font_driver): Adjusted for the change of struct font_driver.
11400
11401 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
11402 conditionals. Don't check enable_font_backend. Surround non-used
11403 code by "#ifdef OLD_FONT" and "endif".
11404 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
11405 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
11406
11407 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
11408 conditionals. Don't check enable_font_backend. Delete all codes
11409 used only when USE_FONT_BACKEND is not defined. Surround non-used
11410 code by "#ifdef OLD_FONT" and "endif".
11411
11412 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
11413 (uniscribe_open): Return value changed to font-object.
11414 Adjusted for the format change of font-object.
11415 (uniscribe_otf_capability): Adjusted for the change of struct font.
11416 (add_opentype_font_name_to_list): Don't downcase names.
11417 (uniscribe_font_driver): Adjusted for the change of struct
11418 font_driver.
11419
11420 2008-05-13 Chong Yidong <cyd@stupidchicken.com>
11421
11422 * dispnew.c (update_frame_1): Check if tty output is still valid
11423 before flushing it.
11424
11425 2008-05-13 Jan Djärv <jan.h.d@swipnet.se>
11426
11427 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
11428 to Gtk+ menus.
11429
11430 2008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
11431
11432 * dired.c (file_name_completion): Tweak the code so as to always do it
11433 in a single pass. Tighten the scope of some variables.
11434
11435 * dired.c (Qdefault_directory): New var.
11436 (file_name_completion): Use it instead of Fexpand_file_name.
11437 (syms_of_dired): Initialize it.
11438
11439 2008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
11440
11441 * fileio.c (double_dollars): Remove dead code.
11442
11443 2008-05-10 Eli Zaretskii <eliz@gnu.org>
11444
11445 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
11446 Mention w32-get-true-file-attributes in doc string.
11447
11448 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
11449
11450 2008-05-09 Glenn Morris <rgm@gnu.org>
11451
11452 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
11453 2008-04-23.
11454
11455 2008-05-09 Eli Zaretskii <eliz@gnu.org>
11456
11457 Support for reporting owner and group of each file on MS-Windows:
11458 * dired.c (stat_uname, stat_gname): New functions, with special
11459 implementation for w32.
11460 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
11461
11462 * w32.c: Rename the_passwd_* to dflt_passwd_*.
11463 (dflt_group_name): New static variable.
11464 (dflt_group): Rename from the_group.
11465 (init_user_info): Init dflt_group fields. Get user's group name
11466 from LookupAccountSid.
11467 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
11468 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
11469 New initialization states.
11470 (globals_of_w32): Initialize them to zero. Initialize the default
11471 group name to "None".
11472 (GetFileSecurity_Name): New global var, the name of the function
11473 to call for GetFileSecurity.
11474 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
11475 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
11476 (get_file_security, get_security_descriptor_owner)
11477 (get_security_descriptor_group, is_valid_sid)
11478 (get_file_security_desc, get_rid, get_name_and_id)
11479 (get_file_owner_and_group): New functions.
11480 (stat): Use get_file_security_desc and get_file_owner_and_group to
11481 report the owner and primary group of each file. Don't ignore the
11482 high 32 bits of file's size, now that st_size is 64-bit wide.
11483 Fix test when to get true file attributes.
11484 (init_user_info): Use get_rid instead of equivalent inline code.
11485 (fstat): Don't ignore the high 32 bits of file's size.
11486
11487 2008-05-09 Chong Yidong <cyd@stupidchicken.com>
11488
11489 * image.c (png_load): Use correct bit-depth for setting background
11490 color.
11491
11492 2008-05-08 Eli Zaretskii <eliz@gnu.org>
11493
11494 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
11495 epa-hook.elc.
11496
11497 2008-05-08 Juanma Barranquero <lekktu@gmail.com>
11498
11499 * font.c (Ffont_match_p): Don't use `iff' in docstring.
11500
11501 2008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
11502
11503 * macfns.c (Fx_create_frame): Make a copy of frame parameters
11504 because the original parameters are in pure storage now.
11505 (mac_window): Remove unused params. Update callers.
11506
11507 2008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
11508
11509 * lread.c (substitute_object_recurse): Use lower-level primitives.
11510 Don't signal errors when traversing sub-char-tables.
11511 Don't loop over all the possible characters when traversing char-tables.
11512
11513 * print.c (print_preprocess): Add sub-char-tables to the print-table,
11514 just like we do in print.c.
11515
11516 2008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
11517
11518 * minibuf.c (Ftry_completion): Remove code left over from when we used
11519 scmp instead of Fcompare_strings.
11520
11521 2008-05-04 Juanma Barranquero <lekktu@gmail.com>
11522
11523 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
11524
11525 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11526
11527 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
11528 Create bitmap context in native byte order.
11529
11530 * macterm.c (XDrawLine)
11531 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
11532 context in native byte order.
11533
11534 2008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11535
11536 * config.in: Regenerate.
11537
11538 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
11539 New definitions for Image I/O support.
11540 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
11541 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
11542 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11543 (mac_data_provider_release_data, image_load_image_io)
11544 [USE_MAC_IMAGE_IO]: New functions.
11545 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
11546 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
11547 (init_image_func_pointer) [MAC_OSX]: Remove function.
11548 (image_load_quartz2d) [MAC_OSX]: Check availability of
11549 CGImageCreateWithPNGDataProvider at compile time.
11550 Use lowercase `false' for boolean constant.
11551 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
11552 Use image_load_image_io.
11553 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
11554 Don't check MyCGImageCreateWithPNGDataProvider.
11555 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
11556 Don't call init_image_func_pointer.
11557
11558 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
11559
11560 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
11561 Make variable non-static.
11562 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
11563 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11564
11565 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
11566 (RED_FROM_ULONG): Mask off higher bits.
11567 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
11568
11569 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
11570 Include AvailabilityMacros.h.
11571 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
11572 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
11573
11574 2008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
11575
11576 * chartab.c (Fset_char_table_range): If range is t, really set all
11577 chars to that value.
11578
11579 2008-05-03 Eli Zaretskii <eliz@gnu.org>
11580
11581 * dired.c (Ffile_attributes): Don't allow the device number become
11582 negative.
11583
11584 2008-05-02 Daiki Ueno <ueno@unixuser.org>
11585
11586 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
11587
11588 2008-05-02 Juri Linkov <juri@jurta.org>
11589
11590 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
11591 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
11592 DEFAULT argument as a list of default values in docstrings.
11593
11594 2008-05-01 Chong Yidong <cyd@stupidchicken.com>
11595
11596 * puresize.h (BASE_PURESIZE): Increase to 1210000.
11597
11598 2008-05-01 Martin Rudalics <rudalics@gmx.at>
11599
11600 * dispnew.c (change_frame_size_1): Preserve small windows when
11601 shrinking frames by calling set_window_height|width with third
11602 arg 2.
11603
11604 * window.h (struct window): Replace field too_small_ok by field
11605 resize_proportionally.
11606
11607 * window.c (make_window): Initialize resize_proportionally.
11608 (enlarge_window): Temporarily set resize_proportionally to make
11609 sure that shrink_windows does scale the window proportionally.
11610 (shrink_windows): When window has resize_proportionally set try
11611 to shrink it proportionally by stealing from other windows.
11612 (struct saved_window, Fset_window_configuration)
11613 (compare_window_configurations): Handle resize_proportionally.
11614 (WINDOW_TOTAL_SIZE): New macro.
11615 (window_min_size, shrink_windows, size_window): Use it.
11616 (check_min_window_sizes): Remove. Invalid values of
11617 window-min-height|width are handled by window_min_size_2 now.
11618 (size_window, Fsplit_window, enlarge_window)
11619 (adjust_window_trailing_edge, grow_mini_window): Don't call
11620 check_min_window_sizes.
11621 (window_min_size_2, window_min_size_1, window_min_size):
11622 New argument safe_p for retrieving "safe" minimum sizes.
11623 (Fdisplay_buffer, Fsplit_window, enlarge_window)
11624 (adjust_window_trailing_edge, grow_mini_window):
11625 Adjust arguments of window_min_size... functions.
11626 (shrink_windows): Argument min_size removed. New argument
11627 safe_p allows shrinking windows to their safe minimum sizes.
11628 Calculate minimum size and decide whether a window shall be
11629 deleted for each window individually.
11630 (size_window): When nodelete_p equals 2, tell shrink_windows to
11631 delete windows only if their new minimum size is no more safe.
11632 (shrink_window_lowest_first): Call window_min_size_1 to make
11633 sure to preserve modeline of bottom-most window when resizing
11634 the minibuffer.
11635 (Fset_window_configuration, Fcurrent_window_configuration)
11636 (compare_window_configurations): Do not handle
11637 window-min-height|width any more.
11638 (syms_of_window): Clarify window-min-height|width doc-strings.
11639
11640 2008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
11641
11642 * dired.c (file_name_completion): Fix up the encoding/decoding issue
11643 some more. Copy some of the code from Ftry_completions.
11644 Remove special case code that dates back to initial revision when the
11645 slash was only added when necessary and that can't trigger nowadays.
11646
11647 2008-04-27 Kenichi Handa <handa@m17n.org>
11648
11649 * font.c (font_prop_validate): Signal `error' instead of `font'.
11650
11651 2008-04-29 Jason Rumney <jasonr@gnu.org>
11652
11653 * w32fns.c (Fw32_battery_status): New defun.
11654 (syms_of_w32fns): Defsubr it.
11655
11656 2008-04-28 Andreas Schwab <schwab@suse.de>
11657
11658 * dired.c (file_name_completion): Fix another mixing of encoded
11659 and decoded names.
11660
11661 2008-04-28 Juanma Barranquero <lekktu@gmail.com>
11662
11663 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
11664
11665 2008-04-27 Juanma Barranquero <lekktu@gmail.com>
11666
11667 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
11668
11669 2008-04-27 Andreas Schwab <schwab@suse.de>
11670
11671 * dired.c (file_name_completion): Fix inappropriate mixing of
11672 encoded and decoded names.
11673
11674 * xterm.c (XTread_socket): Fix use of uninitialized variable.
11675
11676 * puresize.h (BASE_PURESIZE): Increase to 1200000.
11677
11678 2008-04-26 Eli Zaretskii <eliz@gnu.org>
11679
11680 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
11681 2008-03-31, it's not needed anymore with `struct stat' definition
11682 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
11683 for the same reasons.
11684
11685 2008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
11686
11687 * m/sparc.h: Additional redefinitions for GNU/Linux.
11688
11689 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11690
11691 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
11692 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
11693 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
11694 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
11695 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11696 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
11697 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11698 Likewise.
11699
11700 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
11701 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
11702 (mac_ax_number_of_characters): Add externs.
11703 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11704 [USE_MAC_TSM]: Likewise.
11705 (mac_handle_text_input_event) [MAC_OSX]:
11706 Handle kEventTextInputOffsetToPos for no active input area case.
11707 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11708 (mac_handle_document_access_event)
11709 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
11710 (install_application_handler) [MAC_OSX]: Register handlers for
11711 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
11712 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11713 Register mac_handle_document_access_event.
11714
11715 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
11716 Make functions non-static.
11717
11718 2008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
11719
11720 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
11721 (read_file_name_completion_ignore_case, insert_default_directory)
11722 (Qdefault_directory): Move to minibuffer.el.
11723 (Fread_file_name): Call the new `read-file-name' instead.
11724
11725 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11726
11727 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
11728 Make function non-static.
11729 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
11730 Remove function.
11731 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11732 Move to mactoolbox.c.
11733 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
11734
11735 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
11736 (mac_rect_make): New macro.
11737
11738 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
11739 instead of float.
11740 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11741 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
11742 (XSetBackground) [USE_CG_DRAWING]: Likewise.
11743 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
11744 CGRectMake.
11745 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
11746 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
11747 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
11748 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11749 instead of WindowRef in argument type.
11750 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
11751 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
11752 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
11753 instead of DISPLAY. All uses changed.
11754 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
11755 (x_calc_absolute_position): Simplify so as not to use
11756 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
11757
11758 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
11759 instead of WindowRef in argument type.
11760 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
11761 [TARGET_API_MAC_CARBON]: Remove externs.
11762 (create_apple_event, mac_event_parameters_to_lisp)
11763 [TARGET_API_MAC_CARBON]: Add externs.
11764
11765 * mactoolbox.c (Vmac_ts_script_language_on_focus)
11766 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
11767 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
11768 is clicked.
11769 (x_activate_menubar): Remove extern for saved_menu_event_location.
11770 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
11771 Move from mac.c.
11772
11773 2008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11774
11775 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
11776 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
11777
11778 2008-04-23 Jason Rumney <jasonr@gnu.org>
11779
11780 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
11781 attributes only for local files.
11782
11783 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
11784 default to Qlocal.
11785
11786 2008-04-22 Juri Linkov <juri@jurta.org>
11787
11788 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
11789 read-buffer-to-switch instead of using the letter "B".
11790
11791 2008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
11792
11793 * fileio.c (Qdefault_directory): New variable.
11794 (Fread_file_name): Use it to pass `dir' to the completion functions.
11795
11796 2008-04-20 Chong Yidong <cyd@stupidchicken.com>
11797
11798 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
11799
11800 2008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
11801
11802 * keyboard.c (Vpre_help_message): Remove.
11803 (show_help_echo): Remove default C code.
11804
11805 * dired.c (directory_files_internal, file_name_completion):
11806 Only call ENCODE_FILE if the string is indeed decoded.
11807
11808 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11809
11810 * Makefile.in (TOOLKIT_DEFINES): Remove.
11811 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
11812
11813 2008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11814
11815 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
11816 (mactoolbox.o): New target.
11817
11818 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
11819 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
11820
11821 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
11822 Use mac_set_frame_window_background instead of XSetWindowBackground.
11823 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
11824 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
11825 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
11826 instead of SetWindowTitleWithCFString.
11827 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
11828 Move function to mactoolbox.c.
11829 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
11830 Use mac_set_window_modified instead of SetWindowModified.
11831 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
11832 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
11833 (Fx_focus_frame): Use mac_front_non_floating_window instead of
11834 FrontNonFloatingWindow. Use mac_activate_window instead of
11835 ActivateWindow. Use mac_active_non_floating_window instead of
11836 ActiveNonFloatingWindow.
11837 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
11838 Use mac_show_hourglass and mac_hide_hourglass.
11839 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
11840 instead of GetGlobalMouse.
11841 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
11842 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
11843 Use mac_bring_window_to_front instead of BringToFront.
11844 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
11845 mactoolbox.c.
11846 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
11847 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
11848 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
11849 mactoolbox.c.
11850
11851 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
11852 (XtPointer): Move typedef from macmenu.c.
11853 (enum button_type): Move enum from macmenu.c.
11854 (widget_value): Move typedef from macmenu.c.
11855 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
11856 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11857 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11858 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11859 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11860 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11861 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11862 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
11863 (Selection): Move typedef from macselect.c.
11864 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
11865 macterm.c.
11866 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
11867 (mac_is_window_collapsed, mac_bring_window_to_front)
11868 (mac_send_window_behind, mac_hide_window, mac_show_window)
11869 (mac_collapse_window, mac_front_non_floating_window)
11870 (mac_active_non_floating_window, mac_activate_window)
11871 (mac_move_window_structure, mac_move_window, mac_size_window)
11872 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
11873
11874 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
11875 (enum mac_menu_kind): Move enum to mactoolbox.c.
11876 (min_menu_id): Move variable to mactoolbox.c.
11877 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
11878 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
11879 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
11880 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
11881 [TARGET_API_MAC_CARBON]: Likewise.
11882 (XtPointer): Move typedef to macgui.h.
11883 (enum button_type): Move enum to macgui.h.
11884 (widget_value): Move typedef to macgui.h.
11885 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
11886 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
11887 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
11888 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
11889 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
11890 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
11891 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
11892 (popup_activated_flag): Make variable non-static.
11893 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
11894 (add_menu_item, fill_menu, dispose_menus):
11895 Move functions to mactoolbox.c.
11896 (restore_show_help_function, menu_target_item_handler)
11897 (install_menu_target_item_handler, mac_handle_dialog_event)
11898 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
11899 [TARGET_API_MAC_CARBON]: Likewise.
11900 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
11901 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11902 (find_and_call_menu_selection, name_is_separator): Make function
11903 non-static.
11904 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
11905 to mactoolbox.c.
11906 (set_frame_menubar): Don't call install_menu_quit_handler.
11907 (menu_item_selection): New variable.
11908 (mac_menu_show): Use create_and_show_popup_menu.
11909 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
11910 selection but set variable menu_item_selection. All uses changed.
11911 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
11912 Call install_menu_quit_handler. Move to mactoolbox.c.
11913
11914 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
11915 (Selection): Move typedef to macgui.h.
11916 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
11917 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
11918 Make variables non-static.
11919 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11920 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
11921 Make functions non-static.
11922 (Vmac_service_selection) [MAC_OSX]: Likewise.
11923 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
11924 (mac_valid_selection_target_p, mac_clear_selection)
11925 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11926 (mac_put_selection_value, mac_selection_has_target_p)
11927 (mac_get_selection_value, mac_get_selection_target_list)
11928 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
11929 Move functions to mactoolbox.c.
11930 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
11931 Likewise.
11932 (copy_scrap_flavor_data, mac_handle_service_event)
11933 (install_service_handler) [MAC_OSX]: Likewise.
11934 (syms_of_macselect) <Vmac_dnd_known_types>:
11935 Use mac_dnd_default_known_types.
11936
11937 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
11938 Move to mactoolbox.c.
11939 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
11940 (Fx_selection_owner_p): Add EXFUN.
11941 (install_window_handler, remove_window_handler, XSetWindowBackground):
11942 Remove externs.
11943 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
11944 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
11945 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
11946 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
11947 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
11948 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
11949 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
11950 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
11951 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
11952 (create_and_show_popup_menu, mac_get_selection_from_symbol)
11953 (mac_valid_selection_target_p, mac_clear_selection)
11954 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
11955 (mac_put_selection_value, mac_selection_has_target_p)
11956 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
11957 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
11958 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
11959 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
11960 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
11961 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
11962 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
11963 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11964 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
11965
11966 * mactoolbox.c: New file.
11967
11968 2008-04-18 Jason Rumney <jasonr@gnu.org>
11969
11970 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
11971
11972 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
11973
11974 * character.c (Fmultibyte_char_to_unibyte):
11975 Return latin1 chars unchanged.
11976
11977 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
11978 relocated if it points to `name'.
11979
11980 2008-04-17 Kenichi Handa <handa@m17n.org>
11981
11982 * data.c (Faset): Allow setting a multibyte character in an
11983 ASCII-only unibyte string.
11984
11985 * lisp.h (STRING_SET_MULTIBYTE): New macro.
11986
11987 2008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
11988
11989 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
11990 done in config.h.
11991
11992 2008-04-16 Juanma Barranquero <lekktu@gmail.com>
11993
11994 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
11995 (Fchar_direction): Add usage in the docstring.
11996
11997 2008-04-15 Chong Yidong <cyd@stupidchicken.com>
11998
11999 * keyboard.c (read_key_sequence): Remove always-true checks.
12000
12001 2008-04-14 Jason Rumney <jasonr@gnu.org>
12002
12003 * w32font.c (w32font_open_internal): Set max_bounds.descent in
12004 compatibility struct, for better underline positioning.
12005
12006 2008-04-13 David Hansen <david.hansen@gmx.net>
12007
12008 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
12009 string.
12010
12011 2008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
12012
12013 * m/hp800.h (XUINT, XSET): Remove.
12014
12015 2008-04-12 Juanma Barranquero <lekktu@gmail.com>
12016
12017 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
12018 previous change.
12019
12020 2008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
12021
12022 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
12023 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
12024
12025 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12026
12027 * keymap.h (map_keymap_canonical): Declare.
12028 * xmenu.c (single_keymap_panes): Use it.
12029
12030 2008-04-11 Glenn Morris <rgm@gnu.org>
12031
12032 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
12033 set the target's value to that of the alias.
12034
12035 2008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12036
12037 * term.c (set_tty_color_mode): Left over typo.
12038
12039 2008-04-10 Michael Albinus <michael.albinus@gmx.de>
12040
12041 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
12042 only after check for file name handler functions. Signal, when
12043 native functionality is not supported.
12044 (syms_of_fileio): Declare it unconditionally.
12045
12046 2008-04-10 Jason Rumney <jasonr@gnu.org>
12047
12048 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
12049 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
12050
12051 * w32.c (logon_network_drive): Also logon to remote drives that
12052 are mapped to drive letters.
12053
12054 2008-04-10 Glenn Morris <rgm@gnu.org>
12055
12056 * xdisp.c (truncate-partial-width-windows): Doc fix.
12057
12058 2008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
12059
12060 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
12061 Move functions to minibuffer.el.
12062 (syms_of_fileio): Don't declare them.
12063
12064 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12065
12066 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
12067 (syms_of_minibuf): Remove its initialization.
12068
12069 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
12070
12071 2008-04-09 Juanma Barranquero <lekktu@gmail.com>
12072
12073 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
12074
12075 2008-04-09 Jason Rumney <jasonr@gnu.org>
12076
12077 * makefile.w32-in (distclean): Delete makefile too.
12078 (maintainer-clean): New target.
12079
12080 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
12081
12082 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
12083 for new font backend and composite cases.
12084
12085 2008-04-09 Jan Djärv <jan.h.d@swipnet.se>
12086
12087 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
12088 Most of the code moved to run_timers.
12089 (do_pending_atimers): Call run_timers.
12090 (run_timers): New function.
12091
12092 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
12093 run atimers.
12094
12095 * process.c (wait_reading_process_output): The same as above.
12096
12097 2008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12098
12099 * minibuf.c (last_exact_completion): Remove variable.
12100 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
12101 (complete_and_exit_1, complete_and_exit_2)
12102 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
12103 (Fdisplay_completion_list, display_completion_list_1)
12104 (Fminibuffer_completion_help, Fself_insert_and_exit)
12105 (Fexit_minibuffer, Fminibuffer_message): Move functions to
12106 minibuffer.el.
12107 (syms_of_minibuf): Remove corresponding initializations.
12108
12109 * keyboard.c (Qdeactivate_mark): New var.
12110 (command_loop_1): Use it to call `deactivate-mark'.
12111 (syms_of_keyboard): Initialize it.
12112
12113 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
12114 to another frame.
12115 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
12116 Don't call set_tty_color_mode.
12117 (store_frame_param): Reset previous_frame rather than call
12118 set_tty_color_mode.
12119 * term.c (set_tty_color_mode): Rewrite.
12120 * dispextern.h (set_tty_color_mode): New type.
12121 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
12122
12123 2008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
12124
12125 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
12126 for generic chars, which do not exist any more in emacs-unicode.
12127
12128 2008-04-08 Michael Albinus <michael.albinus@gmx.de>
12129
12130 * coding.c (detect_coding_emacs_mule)
12131 (Ffind_operation_coding_system): Fix typo.
12132
12133 2008-04-08 Jason Rumney <jasonr@gnu.org>
12134
12135 * w32uniscribe.c (SNAME): Extract only symbol name.
12136
12137 * w32font.h (struct w32_metric_cache): New struct.
12138 (w32font_info): Use it.
12139 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
12140 (CACHE_BLOCKSIZE): New constants.
12141
12142 * w32font.c (Qja, Qko, Qzh): New symbols.
12143 (syms_of_w32font): Initialise them.
12144 (font_matches_spec): Use them to filter by language.
12145 (recompute_cached_metrics): Remove function.
12146 (compute_metrics, clear_cached_metrics): New functions.
12147 (w32font_encode_char): Use them to manage metric cache.
12148 (w32font_text_extents): Cache metrics for all glyphs on demand.
12149 Delay converting glyph indices to WORD until needed.
12150 (w32font_open_internal): Initialize metric cache to empty.
12151 (registry_to_w32_charset): Charset should always be a symbol.
12152 (fill_in_logfont, list_all_matching_fonts): Family should
12153 always be a symbol.
12154
12155 2008-04-06 Jason Rumney <jasonr@gnu.org>
12156
12157 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
12158 Give up if glyph indices not supported. Use uniscribe obtained
12159 ABC widths for individual metrics. Map glyph clusters back to
12160 characters using fClusterStart flag. Return number of glyphs
12161 produced, not chars processed.
12162 (uniscribe_shape): Map char at FROM to current glyph.
12163
12164 2008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12165
12166 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
12167 Use SetMenuItemHierarchicalMenu.
12168
12169 2008-04-05 Jason Rumney <jasonr@gnu.org>
12170
12171 * image.c (pbm_load): Allow color values up to 65535.
12172 Throw an error if max_color_idx is outside the supported range.
12173 Report an error when image size is invalid.
12174 Read two bytes at a time when raw images have max_color_idx above 255.
12175
12176 2008-04-05 Eli Zaretskii <eliz@gnu.org>
12177
12178 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12179 cFileName a file name that includes `?' characters, use the 8+3
12180 alias in cAlternateFileName instead.
12181
12182 2008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
12183
12184 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
12185 append "CCL: Quitted" when the CCL program is quitted.
12186 (setup_ccl_program): Initialize ccl->quit_silently to zero.
12187
12188 * ccl.h (struct ccl_program): New member quit_silently.
12189
12190 2008-04-05 Chong Yidong <cyd@stupidchicken.com>
12191
12192 * search.c (compile_pattern_1): Treat non-nil and non-string of
12193 search-spaces-regexp as nil.
12194
12195 * minibuf.c (Fassoc_string): Tweak docstring.
12196
12197 2008-04-05 Eli Zaretskii <eliz@gnu.org>
12198
12199 * dired.c (Ffile_attributes): Support inode numbers wider than 32
12200 bits. Remove ugly WINDOWSNT-specific kludge introduced on
12201 2008-03-14 to force inode be positive.
12202
12203 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
12204 _S_* ones, since we now use our own sys/stat.h.
12205 (stat, fstat): Don't mangle the inode number.
12206 (init_user_info): Don't restrict UID and GID to 0-60000 range.
12207
12208 2008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
12209
12210 * frame.h (struct frame): Give one more bit to `visible' since we use
12211 values larger than 1 to indicate obscured frames on ttys.
12212
12213 * keymap.c (Qkeymap_canonicalize): New var.
12214 (Fmap_keymap_internal): New fun.
12215 (describe_map): Use keymap-canonicalize.
12216
12217 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
12218 (Fundo_boundary): Set them.
12219 (syms_of_undo): Initialize them.
12220 (record_point): Use them instead of last_point_position*.
12221 (last_undo_buffer): Change type.
12222
12223 2008-04-04 Jason Rumney <jasonr@gnu.org>
12224
12225 * w32font.c (w32font_text_extents): Use font's ascent and descent.
12226 (recompute_cached_metrics): Don't set ascent and descent per char.
12227
12228 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
12229 (uniscribe_check_otf): Add GC protection before consing.
12230 Rearrange loop for counting features.
12231
12232 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
12233
12234 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
12235 buffer with byte-size of source buffer.
12236
12237 2008-04-03 Chong Yidong <cyd@stupidchicken.com>
12238
12239 * callint.c (Fcall_interactively): Handle temporary region even
12240 when shift-select-mode is off.
12241
12242 2008-04-03 Jason Rumney <jasonr@gnu.org>
12243
12244 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
12245
12246 2008-04-03 Kenichi Handa <handa@m17n.org>
12247
12248 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
12249 (CATEGORY_MASK_UTF_16): Likewise.
12250 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
12251 binary file.
12252 (detect_coding): Add null-byte detection for a binary file.
12253 (detect_coding_system): Likewise.
12254
12255 2008-04-03 Jason Rumney <jasonr@gnu.org>
12256
12257 * w32uniscribe.c: New file.
12258
12259 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
12260
12261 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
12262
12263 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
12264 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
12265 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
12266 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
12267 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
12268 (Qphonetic): New symbols.
12269 (syms_of_w32font): Initialize them.
12270 (font_supported_scripts): Use them.
12271 (w32font_list_family): List all charsets.
12272 (w32font_text_extents, recompute_cached_metrics): Fix metric
12273 calculations.
12274 (w32_enumfont_pattern_entity): Make full_type a DWORD.
12275 Give opentype fonts their own format.
12276 (font_matches_spec): New arguments backend and logfont.
12277 Handle :otf spec for uniscribe backend.
12278 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
12279 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
12280
12281 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
12282 font backend.
12283 (globals_of_w32fns): Initialize uniscribe font backend.
12284
12285 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
12286 dependencies.
12287 (w32uniscribe.$(O)): New file to build.
12288 (FONT_OBJ): Include w32uniscribe.$(O).
12289 (LIBS): Add uniscribe libraries.
12290
12291 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
12292
12293 2008-04-02 Chong Yidong <cyd@stupidchicken.com>
12294
12295 * callint.c (Vshift_select_mode): New var.
12296 (Finteractive): Document new ^ spec.
12297 (Fcall_interactively): Call handle-shift-selection if the ^ spec
12298 is present.
12299
12300 * keyboard.c (Vthis_command_keys_shift_translated): New var.
12301 (command_loop_1): Avoid running the direct display versions of
12302 forward-char and backward-char if shift-selection may occur.
12303 (read_key_sequence): Set Vthis_command_keys_shift_translated if
12304 shift-translation takes place.
12305
12306 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
12307 avoid clobbering by define-minor-mode.
12308
12309 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
12310 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
12311
12312 * syntax.c (Fforward_word): Add ^ interactive spec.
12313
12314 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
12315 (Fscroll_right): Add ^ interactive spec.
12316
12317 2008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
12318
12319 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
12320
12321 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
12322
12323 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
12324
12325 2008-03-31 Juri Linkov <juri@jurta.org>
12326
12327 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
12328
12329 2008-03-30 Jan Djärv <jan.h.d@swipnet.se>
12330
12331 * gtkutil.c (xg_set_geometry): Fix indentation.
12332 (xg_resize_outer_widget): Remove.
12333 (x_wm_size_hint_off): Fix indentation.
12334 (xg_frame_set_char_size): Call flush_and_sync after
12335 gtk_window_resize.
12336 (x_wm_set_size_hint): Pass NULL as geometry window to
12337 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
12338 Add menu bar and tool bar height to base height.
12339 (xg_update_frame_menubar, free_frame_menubar)
12340 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
12341 (update_frame_tool_bar, free_frame_tool_bar):
12342 Change xg_resize_outer_widget to xg_frame_set_char_size.
12343
12344 2008-03-30 Michael Albinus <michael.albinus@gmx.de>
12345
12346 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
12347 (Fdbus_call_method): New parameter TIMEOUT.
12348 (dbus-send-signal): Optimize UNGCPRO call.
12349
12350 2008-03-29 Juri Linkov <juri@jurta.org>
12351
12352 * window.c (Fdisplay_buffer): Move call to
12353 Vsplit_window_preferred_function out of conditions that check
12354 if window is eligible for vertical splitting.
12355 When Vsplit_window_preferred_function is non-nil, call it and use
12356 its non-nil return value as window. Otherwise, continue doing
12357 vertical splitting using Fsplit_window with arg horflag=nil.
12358 (syms_of_window) <Vsplit_window_preferred_function>: Change the
12359 default value from `split-window' to nil.
12360
12361 2008-03-29 Juri Linkov <juri@jurta.org>
12362
12363 * callint.c (Fcall_interactively): Revert 2008-03-16 change
12364 for interactive code letters 'b' and 'B'.
12365
12366 2008-03-29 Eli Zaretskii <eliz@gnu.org>
12367
12368 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
12369 multibyte string.
12370
12371 2008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
12372
12373 * keyboard.c (pending_funcalls): New var.
12374 (timer_check): Run it.
12375 (syms_of_keyboard): Initialize it.
12376 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
12377 (Vdelete_terminal_functions): New vars.
12378 (syms_of_terminal): Initialize them.
12379 (Fdelete_terminal): Run delete-terminal-functions.
12380 * xdisp.c (safe_eval): Rewrite.
12381 (safe_call2): New fun.
12382 * frame.c (Qdelete_frame_functions): New var.
12383 (syms_of_frame): Initialize it.
12384 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
12385 * lisp.h (safe_call2, pending_funcalls): Declare.
12386
12387 2008-03-28 Andreas Schwab <schwab@suse.de>
12388
12389 * indent.c (Fmove_to_column): Move declaration before statements.
12390
12391 2008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
12392
12393 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
12394 (struct frame): Use bit fields for boolean vars.
12395
12396 * process.c (server_accept_connection): Simplify naming.
12397 (emacs_get_tty_pgrp): Use SDATA.
12398
12399 * coding.c (decode_coding_object): Fix last change.
12400
12401 2008-03-27 Jason Rumney <jasonr@gnu.org>
12402
12403 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
12404
12405 2008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
12406
12407 * charset.c (Fdefine_charset_internal): Change the way of
12408 registering charsets in Vcharset_order_list.
12409 (syms_of_charset): Make the charset `eight-bit' supplementary.
12410
12411 2008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
12412
12413 * regex.c (EXTEND_BUFFER): Change order of pointer addition
12414 operations, to avoid having the difference between pointers
12415 overflow.
12416
12417 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
12418
12419 * indent.c (check_display_width): New fun.
12420 (scan_for_column): Use it.
12421
12422 * data.c (syms_of_data): Mark most-positive-fixnum and
12423 most-negative-fixnum as constants.
12424
12425 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
12426
12427 * indent.c (scan_for_column): Extract from current_column_1.
12428 Merge with the same code from Fmove_to_column.
12429 (current_column_1, Fmove_to_column): Use it.
12430
12431 2008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
12432
12433 * keymap.c (map_keymap_internal): New fun.
12434 (map_keymap): Use it.
12435 (Fmap_keymap_internal): New fun.
12436 (Fmap_keymap): Remove left-out test from before make_save_value.
12437
12438 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
12439
12440 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
12441 Use XCAR/XCDR.
12442
12443 * process.h (struct Lisp_Process): Remove filter_multibyte.
12444 * process.c (QCfilter_multibyte): Remove.
12445 (setup_process_coding_systems): Don't use filter_multibyte.
12446 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
12447 (read_process_output): Don't adjust multibyteness to filter_multibyte.
12448 (Fset_process_filter_multibyte): Change the coding-system to
12449 approximate the previous behavior.
12450 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
12451 coding-system.
12452
12453 * coding.c (decode_coding_object): When not decoding into a buffer,
12454 obey the coding system's preference of (uni|multi)byte.
12455
12456 2008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
12457
12458 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
12459 every char is changed and has a different byte-length.
12460 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
12461 Fix int -> EMACS_INT.
12462
12463 2008-03-23 David Hansen <david.hansen@gmx.net>
12464
12465 * dbusbind.c (xd_read_message): Remove extra copying of message
12466 strings. Check for NULL `interface' or `member'.
12467
12468 2008-03-22 Eli Zaretskii <eliz@gnu.org>
12469
12470 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12471 cFileName a file name that includes `?' characters, use the 8+3
12472 alias in cAlternateFileName instead.
12473
12474 2008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
12475
12476 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
12477
12478 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12479
12480 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
12481 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
12482 work on current_buffer only instead (that was already the case
12483 for some of the code anyway).
12484 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
12485 (temp_set_point, temp_set_point_both): Use EMACS_INT.
12486 (SET_PT, SET_PT_BOTH): Adjust.
12487 * intervals.h (set_point, temp_set_point, set_point_both)
12488 (temp_set_point_both): Remove redundant declarations.
12489
12490 2008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12491
12492 * fileio.c (Finsert_file_contents):
12493 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
12494 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
12495 when buffer != current_buffer anyway.
12496
12497 2008-03-20 Andreas Schwab <schwab@suse.de>
12498
12499 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
12500 as default.
12501
12502 2008-03-19 Jason Rumney <jasonr@gnu.org>
12503
12504 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
12505 (syms_of_w32fns): Initialize them.
12506 (HOURGLASS_ID): New constant.
12507 (x_window_to_frame): Don't check hourglass_window.
12508 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
12509 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
12510 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
12511 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
12512 Only change the cursor if hourglass is not active.
12513 (Fx_create_frame): Initialize frame's current_cursor.
12514 (hourglass_atimer): Remove.
12515 (hourglass_started): New function.
12516 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
12517 (show_hourglass): Adapt to w32, changing argument to frame.
12518
12519 * w32term.h (struct w32_output): Remove hourglass_window.
12520 Add current_cursor.
12521
12522 * eval.c (call_debugger, Fsignal):
12523 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
12524 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
12525 (Fexecute_extended_command, cancel_hourglass_unwind):
12526 * minibuf.c (read_minibuf):
12527 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
12528
12529 2008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
12530
12531 * window.c (run_funs): New fun.
12532 (run_window_configuration_change_hook): Use it to run the buffer-local
12533 and the global part of the hook.
12534
12535 * xdisp.c (format_mode_line_unwind_data): Add window argument.
12536 (unwind_format_mode_line): Restore selected window.
12537 (x_consider_frame_title, Fformat_mode_line): Set selected window.
12538
12539 2008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
12540
12541 * editfns.c (Fchar_equal): Check they are valid characters.
12542
12543 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
12544
12545 2008-03-17 Andreas Schwab <schwab@suse.de>
12546
12547 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
12548 against a charset.
12549
12550 * lisp.h (Fbuffer_list): Declare.
12551
12552 2008-03-17 Jan Djärv <jan.h.d@swipnet.se>
12553
12554 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
12555 handlebox_widget is != 0.
12556
12557 2008-03-16 Juri Linkov <juri@jurta.org>
12558
12559 * callint.c (Fcall_interactively): For interactive code letters
12560 'b' and 'B' put the buffer list into the list of default "future"
12561 values of the minibuffer.
12562
12563 2008-03-16 Andreas Schwab <schwab@suse.de>
12564
12565 * keyboard.c (read_key_sequence): Fix downcasing of letters with
12566 modifiers.
12567
12568 * regex.c (re_match_2_internal): Correct matching of a charset
12569 against latin-1 characters.
12570
12571 2008-03-16 Kenichi Handa <handa@m17n.org>
12572
12573 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
12574 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
12575 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
12576 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
12577 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
12578 CHAR_STRING_ADVANCE.
12579 (produce_chars): Fix for the case that the source and the
12580 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
12581 instead of CHAR_STRING_ADVANCE.
12582 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
12583 STRING_CHAR_ADVANCE.
12584
12585 2008-03-15 Andreas Schwab <schwab@suse.de>
12586
12587 * regex.c (re_match_2_internal): Correct matching of eight bit
12588 characters in unibyte strings.
12589
12590 2008-03-15 Martin Rudalics <rudalics@gmx.at>
12591
12592 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
12593 at end of range when it coincides with the end of the buffer.
12594
12595 2008-03-14 Eli Zaretskii <eliz@gnu.org>
12596
12597 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
12598
12599 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
12600
12601 2008-03-14 Jason Rumney <jasonr@gnu.org>
12602
12603 * editfns.c (initial_tz): New variable.
12604 (syms_of_editfns): Initialize it.
12605 (Fset_time_zone_rule): Set it when first called.
12606 Use it when TZSTRING is nil.
12607
12608 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
12609 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
12610 (monitor_from_point_fn, get_monitor_info_fn): New globals.
12611 (globals_of_w32fns): Initialize them.
12612 (compute_tip_xy): Use them to position tooltips.
12613
12614 2008-03-14 Glenn Morris <rgm@gnu.org>
12615
12616 * emacs.c (main): Revert previous change.
12617 (standard_args): Revert -internal-script back to -scriptload,
12618 and remove the long-option form.
12619
12620 2008-03-13 Glenn Morris <rgm@gnu.org>
12621
12622 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
12623 Remove option -enable-font-backend.
12624
12625 2008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
12626
12627 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
12628
12629 2008-03-11 Jan Djärv <jan.h.d@swipnet.se>
12630
12631 * xterm.c (x_connection_closed): For GTK: If this is the last
12632 terminal just exit without closing the display.
12633
12634 2008-03-11 Jason Rumney <jasonr@gnu.org>
12635
12636 * w32font.c (w32font_full_name): Use floor to round.
12637
12638 2008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
12639
12640 * sound.c (alsa_configure): Declare vol at beginning of block.
12641
12642 * fontset.c (Ffontset_info): Remove extra semicolon.
12643
12644 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
12645
12646 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
12647 size of resulting string.
12648
12649 2008-03-10 Jason Rumney <jasonr@gnu.org>
12650
12651 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
12652
12653 2008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12654
12655 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
12656 Don't pretend as if characters with display property haven't been
12657 consumed for string-replacing-string case.
12658
12659 2008-03-08 Kim F. Storm <storm@cua.dk>
12660
12661 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
12662 (get_next_display_element, next_element_from_string)
12663 (next_element_from_ellipsis, next_element_from_buffer): Use it.
12664
12665 2008-03-08 Andreas Schwab <schwab@suse.de>
12666
12667 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
12668
12669 2008-03-06 Jason Rumney <jasonr@gnu.org>
12670
12671 * w32font.c (w32_registry): Take font_type argument. Use ANSI
12672 when charset not specified. Only translate ANSI to unicode when
12673 font_type is truetype.
12674 (w32font_coverage_ok): New function.
12675 (add_font_entity_to_list): Use it to filter unsuitable fonts.
12676
12677 2008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
12678
12679 * lread.c (Fread_char): Resolve modifiers.
12680 (Fread_char_exclusive): Likewise.
12681
12682 * character.c (char_resolve_modifier_mask): New function.
12683 (char_string): Use char_resolve_modifier_mask.
12684 (Fchar_resolve_modifiers): New function.
12685 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
12686 function.
12687
12688 2008-03-04 Jason Rumney <jasonr@gnu.org>
12689
12690 * makefile.w32-in: Always include w32font.c in the build.
12691 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
12692
12693 2008-03-04 Andreas Schwab <schwab@suse.de>
12694
12695 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
12696 (versionclean): Likewise.
12697
12698 2008-03-04 Juanma Barranquero <lekktu@gmail.com>
12699
12700 * .cvsignore: Add oo.
12701
12702 2008-03-03 Andreas Schwab <schwab@suse.de>
12703
12704 * coding.c (decode_coding_object): Inhibit gap shrinking while
12705 decoding in place.
12706
12707 2008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
12708
12709 * w32term.c: Remove unused include "gnu.h".
12710 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
12711
12712 * gnu.h: Rename to ...
12713 * emacs-icon.h: ... this.
12714 * xterm.c: Use emacs-icon.h instead of gnu.h.
12715 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
12716
12717 2008-03-03 Juanma Barranquero <lekktu@gmail.com>
12718
12719 * w32font.c: Include math.h.
12720
12721 2008-03-03 Jason Rumney <jasonr@gnu.org>
12722
12723 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
12724 Compute options separately.
12725 (w32font_open_internal): Set glyph_idx before caching metrics.
12726
12727 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
12728 Define if system headers don't.
12729 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
12730 (w32font_encode_char): Don't declare here.
12731
12732 * w32font.c (Quniscribe, QCformat): New symbols.
12733 (syms_of_w32font): Define them.
12734 (w32font_has_char): Indicate uncertainty.
12735 (w32font_encode_char): Encode as glyph point. Make static.
12736 (recompute_cached_metrics): New function.
12737 (w32font_open_internal): Use it. Set font to use glyph points
12738 initially. Set format based on type of font.
12739 (w32font_text_extents, w32font_draw): Optionally use glyph points.
12740 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
12741 on it. Set format based on information available here.
12742 (add_font_entity_to_list): Identify backend based on opentype_only.
12743
12744 2008-03-02 Andreas Schwab <schwab@suse.de>
12745
12746 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
12747
12748 * coding.c (decode_coding_big5, produce_chars):
12749 Fix typos in last change.
12750
12751 2008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
12752
12753 * gnu.h: New icon.
12754
12755 2008-03-02 Kenichi Handa <handa@m17n.org>
12756
12757 * coding.c (decode_coding_utf_8): When eol-type of CODING is
12758 `dos', don't decode '\r' if that is the last in the source.
12759 (decode_coding_utf_16, decode_coding_emacs_mule)
12760 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12761 (decode_coding_raw_text, decode_coding_charset): Likewise.
12762 (produce_chars): Don't decode EOL here. Use EMACS_INT.
12763
12764 2008-03-01 Jason Rumney <jasonr@gnu.org>
12765
12766 * w32font.c (w32font_full_name): Report point size for scalable fonts.
12767
12768 2008-03-01 Kim F. Storm <storm@cua.dk>
12769
12770 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
12771
12772 2008-03-01 Jason Rumney <jasonr@gnu.org>
12773
12774 * w32font.c (w32font_full_name): New function.
12775 (w32font_open_internal): Use it.
12776
12777 2008-03-01 Kim F. Storm <storm@cua.dk>
12778
12779 * dispnew.c (line_draw_cost): Fix invalid glyph check.
12780
12781 2008-03-01 Jason Rumney <jasonr@gnu.org>
12782
12783 * font.c (font_unparse_fcname): Increase len when style is a symbol.
12784
12785 2008-03-01 Jan Djärv <jan.h.d@swipnet.se>
12786
12787 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
12788 xg_frame_resized when the event is for the edit widget.
12789
12790 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
12791
12792 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
12793 set_char_size.
12794 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
12795 operations on widgets here. Just set frame size if needed.
12796 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
12797 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
12798 (x_wm_set_size_hint): Set size hints on the edit widget only, not
12799 the whole frame.
12800 (xg_create_tool_bar): Move attachment of the tool bar to
12801 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
12802 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
12803
12804 2008-03-01 Jason Rumney <jasonr@gnu.org>
12805
12806 * w32fns.c (w32_msg_pump): Disable debug code.
12807
12808 2008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12809
12810 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
12811
12812 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
12813
12814 * xdisp.c (next_overlay_string): Don't set
12815 overlay_strings_at_end_processed_p if we're currently reading from
12816 a display string.
12817
12818 2008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
12819
12820 * xdisp.c (get_overlay_strings_1): Fix typo.
12821
12822 2008-02-29 Chong Yidong <cyd@stupidchicken.com>
12823
12824 * xdisp.c (get_overlay_strings_1): Add missing argument type.
12825
12826 2008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
12827
12828 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
12829
12830 * xdisp.c (display_mode_element): Cancel the previous change.
12831 (decode_mode_spec): Likewise.
12832 (handle_auto_composed_prop): Don't make composition if it->string
12833 is a string.
12834
12835 2008-02-27 Kim F. Storm <storm@cua.dk>
12836
12837 * lisp.h (GLYPH): Change type from int to struct with separate char
12838 and face_id members.
12839 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
12840 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
12841 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
12842 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
12843 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
12844 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
12845 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
12846 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
12847 handle new Lisp glyph code encoding, either an integer or a cons.
12848
12849 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
12850 (GLYPH_ALIAS): Delete.
12851 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
12852 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
12853 (GLYPH_FROM_CHAR): Replace macro by ...
12854 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
12855
12856 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
12857 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
12858 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
12859 (GLYPH_INVALID_P): New macro.
12860 (spec_glyph_lookup_face): Update prototype.
12861
12862 * dispnew.c (line_draw_cost): Adapt to new glyph type.
12863 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
12864 new glyph code encoding.
12865 (spec_glyph_lookup_face): No return value; update passed glyph instead.
12866 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
12867
12868 * xdisp.c (get_next_display_element, next_element_from_display_vector):
12869 Adapt to new glyph type and new glyph code encoding.
12870
12871 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
12872
12873 * indent.c (current_column, current_column_1, Fmove_to_column)
12874 (compute_motion): Adapt to new glyph code encoding.
12875
12876 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
12877
12878 2008-02-27 Chong Yidong <cyd@stupidchicken.com>
12879
12880 * process.c (wait_reading_process_output): Check for window
12881 changes caused by timers.
12882 Suggested by Johan Bockgård.
12883
12884 2008-02-27 Glenn Morris <rgm@gnu.org>
12885
12886 * emacs.c (USAGE1): Add `--disable-font-backend'.
12887
12888 2008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
12889
12890 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
12891 is made to the buffer.
12892
12893 2008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
12894
12895 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
12896 (face_at_string_position):
12897 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
12898 (face_at_string_position):
12899 * xdisp.c (display_string, next_overlay_change):
12900 * buffer.h (overlays_at):
12901 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
12902 Update callers.
12903
12904 2008-02-26 Chong Yidong <cyd@stupidchicken.com>
12905
12906 * editfns.c (Fformat): Doc fix.
12907
12908 2008-02-26 Juanma Barranquero <lekktu@gmail.com>
12909
12910 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
12911 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
12912 (Ffont_otf_alternates, Fquery_font): Doc fixes.
12913
12914 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12915
12916 * buffer.c (Fbuffer_swap_text): New function.
12917 (syms_of_buffer): Defsubr it.
12918
12919 2008-02-25 Chong Yidong <cyd@stupidchicken.com>
12920
12921 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
12922
12923 2008-02-25 Jason Rumney <jasonr@gnu.org>
12924
12925 * w32font.c (w32font_draw): Draw one character at a time when padding.
12926
12927 2008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
12928
12929 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
12930 Handle a nil arg. Use run_window_configuration_change_hook.
12931 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
12932 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
12933 Use run_window_configuration_change_hook.
12934
12935 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12936
12937 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
12938 1-pixel width.
12939
12940 2008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
12941
12942 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
12943 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
12944 if the glyph in the font is zero pixel with.
12945
12946 * dispextern.h (struct glyph_string): New member padding_p.
12947
12948 * w32font.c (w32font_draw): Pay attention to s->padding_p.
12949
12950 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
12951
12952 * xfont.c (xfont_draw): Pay attention to s->padding_p.
12953
12954 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
12955
12956 * font.c: If the font driver doesn't have `shape' function, return Qnil.
12957
12958 2008-02-25 Jason Rumney <jasonr@gnu.org>
12959
12960 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
12961
12962 2008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
12963
12964 Allow fine-grained image-cache flushing.
12965 * dispextern.h (struct image): Add `dependencies' field.
12966 (clear_image_caches): Change arg to Lisp_Object.
12967 * image.c (make_image): Initialize `dependencies' field.
12968 (clear_image_cache): Change arg to allow fine-grained flushing.
12969 Perform the flush even if image-cache-eviction-delay is nil.
12970 (clear_image_caches): Change arg to Lisp_Object.
12971 (Fclear_image_cache): Expand meaning of the argument.
12972 (mark_image): Mark `dependencies' field.
12973 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
12974 (lface_hash): Use XHASH rather than XFASTINT.
12975 (face_at_buffer_position): Fix int -> EMACS_INT position.
12976 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
12977 (select_frame_for_redisplay): Remove code duplication.
12978 (redisplay_internal): Adapt arg to call to clear_image_caches.
12979
12980 2008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
12981
12982 * s/vms4-0.h:
12983 * s/vms4-2.h:
12984 * s/vms4-4.h:
12985 * s/vms5-5.h: Remove, unused.
12986
12987 * s/irix5-2.h:
12988 * s/irix6-0.h:
12989 * s/riscos5.h:
12990 * s/mach-bsd4-3.h:
12991 * m/mips4.h: Remove files for obsolete systems.
12992
12993 * Makefile.in:
12994 * filelock.c:
12995 * unexmips.c:
12996 * m/hp9000s300.h:
12997 * m/iris4d.h:
12998 * s/aix3-1.h:
12999 * s/hpux.h:
13000 * s/msdos.h:
13001 * s/usg5-0.h:
13002 * s/usg5-2-2.h:
13003 * s/usg5-2.h:
13004 * s/usg5-3.h: Remove references to obsolete variables.
13005
13006 * s/irix5-0.h: Remove, move all the contents ...
13007 * s/irix6-5.h: ... here. Simplify.
13008 * config.in: Regenerate.
13009
13010 2008-02-24 Jason Rumney <jasonr@gnu.org>
13011
13012 * w32term.c (x_draw_glyph_string_background): Clear the background
13013 manually when cleartype is in use.
13014 (x_draw_glyph_string_foreground): Draw text transparently when
13015 cleartype is in use.
13016
13017 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
13018 a font into it unless we have to.
13019
13020 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13021
13022 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
13023 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
13024
13025 2008-02-18 Jason Rumney <jasonr@gnu.org>
13026
13027 * w32fns.c (Fw32_shell_execute): Encode parameters.
13028
13029 2008-02-09 Eli Zaretskii <eliz@gnu.org>
13030
13031 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
13032
13033 2008-02-05 Juanma Barranquero <lekktu@gmail.com>
13034
13035 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
13036
13037 2008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
13038
13039 * xterm.c (x_set_offset): Don't change the gravity if
13040 CHANGE_GRAVITY is -1.
13041
13042 2008-02-23 Chong Yidong <cyd@stupidchicken.com>
13043
13044 * fileio.c (auto_save_error_occurred): New var.
13045 (auto_save_error): Set it.
13046 (Fdo_auto_save): Don't overwrite the error message if an auto-save
13047 error occurred.
13048
13049 2008-02-23 Eli Zaretskii <eliz@gnu.org>
13050
13051 * w32.c (globals_of_w32): Add initializations for
13052 g_b_init_get_sid_sub_authority and
13053 g_b_init_get_sid_sub_authority_count.
13054
13055 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
13056
13057 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
13058 (font_parse_xlfd): Use them for sanity check.
13059 (Finternal_set_font_style_table): Make sure the table is bijective.
13060
13061 Consolidate the image_cache to the terminal struct.
13062 * termhooks.h (P_): Remove redundant def.
13063 (struct terminal): New field `image_cache'.
13064 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
13065 of FRAME_X_IMAGE_CACHE.
13066 * xterm.h (struct x_display_info): Remove image_cache field.
13067 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13068 * w32term.h (struct w32_display_info): Remove image_cache field.
13069 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13070 * macterm.h (struct mac_display_info): Remove image_cache field.
13071 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13072 * xterm.c (x_term_init):
13073 * w32term.c (w32_term_init):
13074 * macterm.c (mac_term_init): Set the image_cache in the terminal.
13075 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
13076 Remove declarations.
13077 (clear_image_caches, mark_image_cache): New declarations.
13078 * xfaces.c (clear_face_cache):
13079 * xdisp.c (redisplay_internal): Use clear_image_caches.
13080 * image.c (clear_image_cache): Don't check that a frame is on
13081 a window-system before checking if it shares the same cache.
13082 (clear_image_caches): New function.
13083 (Fclear_image_cache): Use it.
13084 (mark_image): Move from allo.c.
13085 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
13086 * alloc.c (mark_image, mark_image_cache): Move to image.c.
13087 (mark_object): Don't call mark_image_cache for frames.
13088 (mark_terminals): Call mark_image_cache.
13089
13090 * lisp.h (Fdelete_terminal): Declare.
13091
13092 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
13093 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
13094 wrong_type_argument.
13095
13096 2008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
13097
13098 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
13099 malayalam.el, and tamil.el. Add sinhala.el.
13100
13101 2008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
13102
13103 * xterm.c (x_connection_closed): Consolidate identical tests.
13104 (x_delete_terminal): Don't crash if called via x_connection_closed.
13105
13106 2008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
13107
13108 * xdisp.c (decode_mode_spec): New arg string.
13109 (display_mode_element): Adjust for the above change.
13110
13111 2008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13112
13113 * callint.c (Fcall_interactively): Use AREF.
13114
13115 2008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
13116
13117 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
13118
13119 2008-02-18 Jan Djärv <jan.h.d@swipnet.se>
13120
13121 * xfns.c (Fx_show_tip): Set string to " " if empty.
13122
13123 2008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
13124
13125 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
13126 with Qt.
13127
13128 2008-02-17 Kenichi Handa <handa@m17n.org>
13129
13130 * ftfont.c (ftfont_shape): Return Lispy number.
13131
13132 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
13133 for GCs.
13134 (Finternal_set_font_selection_order): Call font_update_sort_order
13135 only when enable_font_backend is set.
13136 (realize_x_face): Set face->font_info to that of default face only
13137 when enable_font_backend is set.
13138
13139 * xdisp.c (handle_composition_prop): Set it->c to the fist
13140 character of the composed region.
13141 (fill_composite_glyph_string): Set base_face->font_info to
13142 s->font_info. Get a face for ascii from base_face->ascii_face.
13143 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
13144 with a face already decided.
13145 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
13146 non-negative.
13147 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
13148 call font_prepare_composition unconditionally.
13149
13150 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
13151
13152 * xterm.h (struct x_display_info): New member font.
13153
13154 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
13155 (x_set_mouse_face_gc, x_new_font): Likewise.
13156 (x_term_init): Setup display_info->font.
13157 (x_delete_terminal): Free display_info->font.
13158
13159 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
13160
13161 * ftxfont.c (ftxfont_default_fid): Delete it.
13162 (ftxfont_open): Set xfont->fid to 0.
13163 (ftxfont_end_for_frame): Clear data specific to the frame and the
13164 font-driver.
13165
13166 * xftfont.c (xftfont_default_fid): Delete it.
13167 (xftfont_open): Set xfont->fid to 0.
13168
13169 * fontset.c (FONTSET_OBJLIST): New macro.
13170 (fontset_find_font): Update font-object list of the fontset.
13171 (free_realized_fontset): New function.
13172 (free_face_fontset): Call free_realized_fontset.
13173 (Ffont_info): Call font_close_object only when enable_font_backend
13174 is set.
13175
13176 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
13177 [HAVE_NTGUI]: Include w32term.h.
13178 [MAC_OS]: Include macterm.ch.
13179 (font_otf_ValueRecord): Use make_number.
13180 (font_finish_cache): Fix handling of reference count.
13181 (font_clear_cache): Update num_fonts.
13182 (font_open_entity): Update smallest_char_width and
13183 smallest_font_height of the frame.
13184 (font_close_object): Update num_fonts.
13185 (Fclear_font_cache): Fix finding the target cache data.
13186
13187 2008-02-16 Glenn Morris <rgm@gnu.org>
13188
13189 * fontset.c (Finternal_char_font): Fix compilation warning.
13190
13191 2008-02-16 Eli Zaretskii <eliz@gnu.org>
13192
13193 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
13194 instead of char arrays. Enlarge the size of array passed to
13195 get_token_information.
13196
13197 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
13198 warnings.
13199
13200 2008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
13201
13202 * .gdbinit: Don't set `args', it breaks gdb --args.
13203
13204 2008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
13205
13206 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
13207 within a narrowed buffer.
13208
13209 2008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
13210
13211 * coding.c (decode_coding_object, encode_coding_object):
13212 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
13213
13214 2008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
13215
13216 * coding.c (coding_set_destination): Use BEG_BYTE rather than
13217 hardcoding 1.
13218 (detect_coding_system):
13219 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
13220 (string_char_to_byte, string_byte_to_char, insert_from_gap):
13221 * insdel.c (insert_from_gap):
13222 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
13223 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
13224 (string_to_multibyte):
13225 * character.c (chars_in_text, multibyte_chars_in_text):
13226 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
13227
13228 * character.h (FETCH_STRING_CHAR_ADVANCE)
13229 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
13230 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
13231 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
13232
13233 * casefiddle.c (casify_region): Only call after-change and composition
13234 functions on the part of the region that was changed.
13235
13236 * keyboard.c (read_avail_input):
13237 * frame.c (Fdelete_frame): Call Fdelete_terminal.
13238
13239 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13240
13241 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
13242 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
13243
13244 2008-02-11 Juanma Barranquero <lekktu@gmail.com>
13245
13246 * w32menu.c (push_submenu_start, push_submenu_end)
13247 (push_left_right_boundary, push_menu_pane, push_menu_item):
13248 * keyboard.c (read_key_sequence): Don't pass args with side effects
13249 to AREF, it fails when compiling with -DENABLE_CHECKING.
13250
13251 2008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
13252
13253 * Makefile.in (${lispsource}international/charprop.el):
13254 Delete this target.
13255
13256 * search.c (boyer_moore): Fix incorrect synching of the trunk and
13257 emacs-unicode-2.
13258
13259 2008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13260
13261 * terminal.c (Fdelete_terminal): Clean up the `force' path.
13262
13263 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13264
13265 * frame.c (Qnoelisp): New symbol.
13266 (syms_of_frame): Initialize it.
13267 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
13268 harmless Elisp code, from a strong `force' from x_connection_closed.
13269 * frame.h (Qnoelisp): Declare.
13270 * xterm.c (x_connection_closed): Pass `noelisp'.
13271
13272 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
13273 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
13274 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
13275 rather than `int' for the type of `type'.
13276
13277 2008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
13278
13279 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
13280
13281 * Makefile.in (GNUC): Remove support for gcc-1.x.
13282
13283 2008-02-10 Richard Stallman <rms@gnu.org>
13284
13285 * lisp.h (ASET): Use AREF, not ASLOT.
13286
13287 2008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13288
13289 * lisp.h (ASET): Check bounds.
13290
13291 2008-02-10 Glenn Morris <rgm@gnu.org>
13292
13293 * buffer.c (mode-name): Doc fix.
13294
13295 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13296
13297 * Makefile.in:
13298 * emacs.c:
13299 * gmalloc.c:
13300 * keyboard.c:
13301 * lisp.h:
13302 * m/ibm370aix.h:
13303 * process.c:
13304 * regex.c:
13305 * s/hpux.h:
13306 * sysdep.c:
13307 * sysselect.h:
13308 * systty.h:
13309 * unexec.c:
13310 * w32term.c:
13311 * xsmfns.c:
13312 * xterm.c: Remove code that deals with obsolete variables.
13313
13314 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
13315
13316 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
13317 nothing else needs it anymore.
13318
13319 2008-02-09 Eli Zaretskii <eliz@gnu.org>
13320
13321 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
13322 instead of unibyte_char_to_multibyte.
13323
13324 2008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13325
13326 * s/gnu-linux.h: Remove commented out code.
13327
13328 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
13329
13330 * Makefile.in: Update what RMS says about using autoconf.
13331 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
13332 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
13333 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
13334 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
13335
13336 2008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
13337
13338 * keymap.c (Fkey_description): Move side effect outside of macro call.
13339
13340 * xfaces.c (Finternal_make_lisp_face):
13341 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
13342
13343 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
13344 (syms_of_fontset): Use ASET.
13345
13346 * fns.c (concat): Move side effect outside of macro call.
13347 (hash_clear): Use ASET.
13348
13349 2008-02-08 Richard Stallman <rms@gnu.org>
13350
13351 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
13352 If FORCE, and frame has a surrogate minibuffer for another frame,
13353 delete the other frame first.
13354
13355 2008-02-07 Timo Savola <timo.savola@iki.fi>
13356
13357 * xterm.c (x_detect_focus_change): Handle embed client message.
13358 (handle_one_xevent): Ditto.
13359 (handle_one_xevent): If embedded and we get a button press/release,
13360 request focus.
13361 (xembed_set_info, xembed_send_message): New functions.
13362 (x_make_frame_visible): Call xembed_set_info if embedded.
13363 (x_make_frame_invisible): Call xembed_set_info if embedded.
13364 (x_term_init): Initialize Xatom_XEMBED.
13365 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
13366 (x_iconify_frame): Ditto.
13367
13368 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
13369 (enum xembed_info, enum xembed_message, enum xembed_focus)
13370 (enum xembed_modifier, enum xembed_accelerator): New.
13371 (xembed_set_info, xembed_send_message): Declare.
13372 (FRAME_X_EMBEDDED_P): New.
13373
13374 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
13375 gtk_plug_new.
13376
13377 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
13378 window ID of a frame.
13379 (x_window): Reparent frame if embedded.
13380 (Fx_create_frame): Don't set border width if embedded.
13381
13382 * emacs.c (USAGE3): Add --parent-id.
13383 (standard_args): Ditto.
13384
13385 2008-02-07 Jan Djärv <jan.h.d@swipnet.se>
13386
13387 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
13388
13389 2008-02-07 Jim Meyering <meyering@redhat.com>
13390
13391 Use "do...while (0)", not "if (1)...else" in macro definitions.
13392 The latter provokes a warning from gcc about the empty else, when
13393 followed by ";". Also, without that trailing semicolon, it would
13394 silently swallow up any following statement.
13395 * syntax.h (SETUP_SYNTAX_TABLE)
13396 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
13397 * buffer.h (DECODE_POSITION): Likewise.
13398 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
13399 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
13400 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
13401 (FETCH_CHAR_ADVANCE): Likewise.
13402 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
13403
13404 2008-02-07 Jim Meyering <meyering@redhat.com>
13405
13406 * lread.c [lint]: Don't include <sys/inode.h>.
13407
13408 2008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
13409
13410 * xselect.c (x_handle_dnd_message):
13411 * xmenu.c (digest_single_submenu, xmenu_show):
13412 * xdisp.c (with_echo_area_buffer_unwind_data)
13413 (format_mode_line_unwind_data, unwind_format_mode_line)
13414 (display_menu_bar):
13415 * eval.c (Ffetch_bytecode):
13416 * doc.c (store_function_docstring):
13417 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
13418 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
13419 * buffer.c (add_overlay_mod_hooklist): Use ASET.
13420
13421 2008-02-07 Kenichi Handa <handa@m17n.org>
13422
13423 * ftxfont.c (ftxfont_open): Don't set
13424 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
13425
13426 * ftfont.c (ftfont_open): Fix previous change.
13427
13428 2008-02-06 Jason Rumney <jasonr@gnu.org>
13429
13430 * w32font.c (w32font_text_extents): Fill in lbearing metric.
13431 Use cached metrics for ASCII characters.
13432 (w32font_open_internal): Don't set font's owning_frame.
13433 Cache metrics for ASCII characters.
13434
13435 * w32font.h (struct w32font_info): Add ascii_metrics.
13436 Remove owning_frame.
13437
13438 2008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
13439
13440 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
13441 to negative value.
13442
13443 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
13444
13445 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
13446
13447 * charset.c (syms_of_charset): Set QCtest and Qeq.
13448
13449 2008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
13450
13451 * process.c (Fstart_process):
13452 * callproc.c (Fcall_process): Handle the case where
13453 Funhandled_file_name_directory returns nil.
13454
13455 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
13456 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
13457 * font.c (check_gstring): Use them and AREF to access the vector before
13458 we know it's really a gstring.
13459 (Ffont_shape_text): Fix typo.
13460 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
13461
13462 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
13463 Declare.
13464
13465 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
13466
13467 2008-02-05 Jason Rumney <jasonr@gnu.org>
13468
13469 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
13470 Set smallest_font_height and smallest_char_width in display info.
13471
13472 2008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
13473
13474 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
13475
13476 2008-02-05 Miles Bader <miles@gnu.org>
13477
13478 * xfaces.c (get_lface_attributes, merge_named_face)
13479 (lookup_named_face, lookup_derived_face, realize_named_face):
13480 Revert 2008-02-01 change by cyd@stupidchicken.com.
13481
13482 2008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
13483
13484 * fontset.c (Ffontset_info): Handle the case of inhibitting the
13485 fallback fonts.
13486 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
13487
13488 2008-02-04 Jason Rumney <jasonr@gnu.org>
13489
13490 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
13491 set full_name.
13492 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
13493
13494 2008-02-03 Jason Rumney <jasonr@gnu.org>
13495
13496 * makefile.w32-in (OBJ1): Include font.o here.
13497 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
13498
13499 2008-02-02 Jason Rumney <jasonr@gnu.org>
13500
13501 * makefile.w32-in (temacs): Bump EMHEAP to 21.
13502
13503 2008-02-01 Jason Rumney <jasonr@gnu.org>
13504
13505 * s/cygwin.h: Define VIRT_ADDR_VARIES.
13506
13507 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
13508
13509 2008-02-01 Andreas Schwab <schwab@suse.de>
13510
13511 * Makefile.in (shortlisp, lisp): Update for rename of
13512 ../lisp/language/myanmar.el.
13513
13514 2008-02-01 Chong Yidong <cyd@stupidchicken.com>
13515
13516 * xfaces.c (get_lface_attributes): Delete function.
13517 (merge_named_face, lookup_named_face, lookup_derived_face)
13518 (realize_named_face): Call lface_from_face_name directly, and use
13519 the fact that merge_face_vectors does not alter its FROM argument.
13520
13521 2008-02-01 Jason Rumney <jasonr@gnu.org>
13522
13523 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
13524 input in the default locale. Handle non-Unicode multibyte input.
13525
13526 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13527
13528 * fontset.c (reorder_font_vector): Exclude nil elements from the
13529 font group. Don't try multiple fonts.
13530 (fontset_font): Adjust for the above change.
13531 (Finternal_char_font): Return nil if the found font doesn't
13532 contain the character ch.
13533
13534 * Makefile.in (lisp, shortlisp): Add cham.el.
13535
13536 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13537
13538 * font.h (FONTP): Make it return 1 also for a font-object.
13539
13540 * .gdbinit (xfontset): New function.
13541
13542 * font.c (font_find_for_lface): Check if the character C is
13543 supported or not only for the first font.
13544
13545 * fontset.c (reorder_font_vector): Fix typo.
13546 (fontset_find_font): Don't add a font-spec specifying a script.
13547 Use 0 (not Qt) for the indication of empty font-group. Change the
13548 format of RFONT-DEF. Return Qt if no font in the font-group
13549 support the character.
13550 (fontset_font): Adjust for the above change. If no font was
13551 found the character, remember that.
13552 (face_for_char): Adjust for the change of RFONT-DEF.
13553 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
13554 no font for the target.
13555 (Finternal_char_font): Adjust for the change of RFONT-DEF.
13556
13557 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13558
13559 * font.c (font_load_for_face): Handle the case that the font in
13560 face->lface is a string.
13561
13562 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13563
13564 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
13565
13566 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13567
13568 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
13569 Fix previous change. If the frame is not on a window system,
13570 signal an error.
13571
13572 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13573
13574 * coding.c (decode_coding_object, encode_coding_object): Adjust
13575 marker positions after conversion.
13576
13577 * lisp.h (struct Lisp_Marker): New member need_adjustment.
13578
13579 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13580
13581 * font.c (font_find_for_lface): Fix the handling of the return
13582 value of font_has_char.
13583 (Ffont_shape_text): Fix previous change.
13584
13585 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
13586 (fontset_ref_and_range): Delete it.
13587 (fontset_find_font): Call char_table_ref_and_range instead of
13588 FONTSET_REF_AND_RANGE.
13589 (make_fontset): Don't setup font groups of Latin here.
13590 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
13591 (new_fontset_from_font): Make the specified font the default for
13592 all Latin characters.
13593
13594 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13595
13596 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
13597 is on a window system before accessing the fontset of the frame.
13598
13599 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13600
13601 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
13602
13603 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
13604 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
13605
13606 * font.c (Ffont_shape_text): If the font driver doesn't have a
13607 shaper function, make zero-width glyphs to have at least one-pixel
13608 width. Fix setting of `to' field of glyphs.
13609
13610 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13611
13612 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
13613 glyphs.
13614
13615 * font.h (struct font_driver): Improve docstring of member `shape'.
13616
13617 2008-02-01 Kenichi Handa <handa@m17n.org>
13618
13619 * composite.c (syms_of_composite): Fix docstring of
13620 auto-composition-function.
13621
13622 * font.h (LGLYPH_SIZE): New macro.
13623
13624 * font.c (Ffont_fill_gstring): Stop filling when a character not
13625 supported by the font is found.
13626 (Ffont_shape_text): When a shape callback function returns nil,
13627 try at most two more times with larger gstring.
13628 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
13629
13630 * xdisp.c (handle_auto_composed_prop): Change the argument to
13631 auto-composition-function.
13632
13633 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
13634 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
13635 Lispy glyph and store it in the lgstring.
13636
13637 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
13638
13639 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
13640
13641 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13642
13643 * font.c (Ffont_shape_text): Avoid unnecessary composition.
13644
13645 * fontset.c (Vfont_encoding_charset_alist): New variable.
13646 (syms_of_fontset): DEFVAR it.
13647 (reorder_font_vector, fontset_find_font): Optimize for the case of
13648 no need of reordering.
13649 (face_for_char): Map the charset property by
13650 Vfont_encoding_charset_alist.
13651
13652 2008-02-01 Jason Rumney <jasonr@gnu.org>
13653
13654 * w32font.c (logfonts_match): Don't check adstyle here.
13655 (font_matches_spec): Check here against physical font instead.
13656 (add_font_entity_to_list): Avoid some substitutions.
13657
13658 * font.c (font_parse_fcname): Default weight and slant to normal.
13659 (font_score): Prefer normal fonts if weight or slant unspecified.
13660 (font_score) [WINDOWSNT]: Scale weight difference down to closer
13661 match freetype scores.
13662
13663 2008-02-01 Jason Rumney <jasonr@gnu.org>
13664
13665 * w32font.c (w32font_text_extents): Don't use the frame stored in the
13666 font, as it may have been deleted.
13667 (w32_enumfont_pattern_entity): Map generic family to adstyle using
13668 most common hyphenless variation.
13669 (logfonts_match): Check generic family.
13670 (font_matches_spec): Don't check generic family here.
13671 (fill_in_logfont): Set generic family based on adstyle.
13672
13673 * w32font.h (w32font_get_cache): Update declaration.
13674
13675 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13676
13677 * ftfont.c (ftfont_get_cache): Adjust the argument type.
13678
13679 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
13680 If none of the new drivers are available, call font_update_drivers
13681 with the old drivers.
13682
13683 * w32font.c (w32font_get_cache): Adjust the argument type.
13684
13685 * xfont.c (xfont_get_cache): Adjust the argument type.
13686
13687 * font.h (struct font_driver): Change argument type of get_cache.
13688
13689 * xftfont.c (xftfont_start_for_frame): Delete prototype.
13690
13691 * font.c (Ffont_get): Fix arguments to Fassoc.
13692 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
13693 (font_clear_cache): New function.
13694 (font_list_entities, font_matching_entity): Use font_get_cache.
13695 (font_update_drivers): Call font_clear_cache when finishing a driver.
13696
13697 * fontset.c (fontset_find_font): Fix previous change.
13698
13699 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13700
13701 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
13702 dpyinfo->font_table.
13703 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
13704 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
13705
13706 * font.c (font_at): Handle the case that the arg C is negative.
13707 Handle the unibyte case.
13708 (Ffont_at): Call font_at with the arg C -1.
13709
13710 * xdisp.c (handle_auto_composed_prop): Don't get a character at
13711 the position here, and call font_at with the arg C -1.
13712 Don't check the range of the existing composition at the point.
13713
13714 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13715
13716 * fontset.c (fontset_add): New args charset_id and family.
13717 Change caller.
13718 (load_font_get_repertory, fontset_find_font): Assume that
13719 font_spec is always a font-spec object.
13720 (Fset_fontset_font): Always store a font-spec object in a fontset.
13721
13722 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
13723 instead of get_property_and_range.
13724
13725 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13726
13727 * xftfont.c (struct xftfont_info): Delete the member ft_face.
13728 (xftfont_open): Don't keep locking face.
13729 (xftfont_close): Don't unlock face.
13730 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
13731
13732 * fontset.c (fontset_find_font): Don't prefer a font of
13733 supplementary charset.
13734
13735 2008-02-01 Kenichi Handa <handa@m17n.org>
13736
13737 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
13738 script, langsys_tag to langsys, new member script.
13739 (OTF_TAG_STR): Terminate by '\0'.
13740 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
13741 listing to the script specified in that property. Fix arg to
13742 OTF_check_features.
13743
13744 2008-02-01 Jason Rumney <jasonr@gnu.org>
13745
13746 * w32font.h: New file.
13747
13748 * w32font.c: Include it.
13749 (struct w32font_info): Add owning_frame field. Move to w32font.h.
13750 (w32font_open): Set owning_frame.
13751 (w32font_text_extents): Use owning_frame.
13752 (struct font_callback_data): Add opentype_only field.
13753 (add_font_entity_to_list): Use it to filter fonts.
13754 Don't check against full name.
13755 (w32font_list_internal): New function.
13756 (w32font_list): Use it.
13757 (w32font_match_internal): New function.
13758 (w32font_match): Use it.
13759 (w32font_open_internal): New function.
13760 (w32font_open): Use it.
13761 (w32font_get_cache, w32font_close, w32font_has_char)
13762 (w32font_encode_char, w32font_text_extents, w32font_draw):
13763 Make non-static.
13764
13765 * makefile.w32-in (w32font.o): Depend on w32font.h.
13766
13767 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13768
13769 * charset.c (Fdefine_charset_internal): Record a supplementary
13770 charset at the tail of Vcharset_order_list.
13771
13772 * font.c (Ffont_shape_text): Fix the return value.
13773
13774 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
13775
13776 * xdisp.c (handle_auto_composed_prop): Fix previous change.
13777
13778 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13779
13780 * ftfont.c (struct OpenTypeSpec): New struct.
13781 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
13782 (ftfont_get_open_type_spec): New function.
13783 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
13784
13785 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
13786
13787 2008-02-01 Jason Rumney <jasonr@gnu.org>
13788
13789 * w32font.c (add_font_entity_to_list): Compare only the beginning
13790 of full name.
13791
13792 2008-02-01 Kenichi Handa <handa@m17n.org>
13793
13794 * xdisp.c (handle_auto_composed_prop): Simplify the code.
13795 Never return HANDLED_RECOMPUTE_PROPS.
13796
13797 2008-02-01 Kenichi Handa <handa@m17n.org>
13798
13799 * font.c (font_gstring_produce): Delete it.
13800
13801 * composite.h (COMPOSITION_METHOD):
13802 Handle COMPOSITION_WITH_GLYPH_STRING.
13803
13804 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13805
13806 * xfont.c (Qx): Delete.
13807 (syms_of_xfont): Don't initialize Qx.
13808
13809 * composite.h (enum composition_method):
13810 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
13811
13812 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13813
13814 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
13815 (choose_face_font): Accept new form of font-spec.
13816
13817 * frame.h (font_driver_list): Declare it unconditionally.
13818 (struct frame): Define members font_driver_list and font_data_list
13819 unconditionally.
13820
13821 * fontset.c: Include "font.h" unconditionally.
13822 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
13823 (Fset_fontset_font): Accept a font-spec object.
13824
13825 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
13826 PIXEL_SIZE part a wild card.
13827
13828 * dispextern.h (struct glyph_string): Define members clip and
13829 num_clips unconditionally.
13830 (struct face): Define members font_info and extra unconditionally.
13831
13832 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
13833 ftfont_info only when HAVE_LIBOTF is defined.
13834
13835 2008-02-01 Andreas Schwab <schwab@suse.de>
13836
13837 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
13838 and end.
13839
13840 2008-02-01 Jason Rumney <jasonr@gnu.org>
13841
13842 * w32font.c (w32font_driver): Add new fields.
13843
13844 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13845
13846 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
13847 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
13848 (LIBES): Add @M17N_FLT_CFLAGS@.
13849
13850 * composite.c (compose_text): Don't treat the new style
13851 composition specially.
13852
13853 * emacs.c (main): Call syms_of_font unconditionally.
13854
13855 * font.h (FONT_ENTITY_NOT_LOADABLE)
13856 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
13857 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
13858 (struct font_driver): New member shape.
13859 (font_registry_charsets): Extern it.
13860 (font_find_for_lface, font_prepare_composition): Adjust prototype.
13861 (font_otf_capability, font_drive_otf): Delete their externs.
13862
13863 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
13864 (font_charset_alist, font_registry_charsets): Move from xfont.c
13865 and rename.
13866 (font_prop_validate_otf): New function.
13867 (font_property_table): Register it for QCotf.
13868 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
13869 (font_drive_otf): Delete.
13870 (font_prepare_composition): New arg F. Adjust for the change of
13871 lispy gstring.
13872 (font_find_for_lface): New arg C.
13873 (font_load_for_face): Adjust for the change of font_find_for_lface.
13874 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
13875 lispy gstring.
13876 (Ffont_shape_text): New function.
13877 (Fopen_font): If the font size is not given, use 12-pixel.
13878 (Ffont_at): New arg STRING.
13879 (syms_of_font): Initalize font_charset_alist.
13880 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
13881 conditionally.
13882
13883 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
13884 fonts of the same font-spec. Change the format of RFONT-DEF.
13885 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
13886 Adjust for the change of RFONT-DEF.
13887 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
13888
13889 * ftfont.h: New file.
13890
13891 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
13892 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13893 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13894 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
13895 font_otf_capability and font_drive_otf, set ftfont_shape.
13896 (ftfont_list): Adjust for the change of :otf property value.
13897 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
13898 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
13899 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
13900 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13901 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
13902 (otf_gstring, gstring, m17n_flt_initialized): New variables.
13903
13904 * w32term.c (x_draw_composite_glyph_string_foreground):
13905 Adjust for the change of lispy gstring.
13906
13907 * xdisp.c (handle_composition_prop): Adjust for the change of
13908 lispy gstring. Call a function for auto-composition with the
13909 third arg it->window.
13910 (fill_composite_glyph_string): Adjust for the change of lispy string.
13911 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
13912
13913 * xfaces.c (set_font_frame_param): Adjust for the change of
13914 font_find_for_lface.
13915
13916 * xfont.c (x_font_charset_alist): Move to font.c and rename.
13917 (xfont_registry_charsets): Likewise. Change caller.
13918 (syms_of_xfont): Don't handle x_font_charset_alist.
13919
13920 * xftfont.c: Include "ftfont.h".
13921 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
13922 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
13923 (xftfont_close) [HAVE_LIBOTF]: Close otf.
13924 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
13925 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
13926 Set xftfont_driver.shape to xftfont_shape.
13927
13928 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
13929 the change of lispy gstring.
13930
13931 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13932
13933 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
13934
13935 2008-02-01 Jason Rumney <jasonr@gnu.org>
13936
13937 * w32font.c (w32font_draw): Fill background manually.
13938
13939 2008-02-01 Jason Rumney <jasonr@gnu.org>
13940
13941 * font.c (Qfontp): Remove unused symbol.
13942 (QCantialias): New symbol.
13943 (syms_of_font): Define it.
13944 (font_property_table): Set a validator for QCantialias.
13945
13946 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
13947 Define if not already.
13948 (QCfamily): Share with xfaces.c.
13949 (Qstandard, Qsubpixel, Qnatural): New symbols.
13950 (syms_of_w32font): Define them. Don't define QCfamily here.
13951 (w32_antialias_type, lispy_antialias_type): New functions.
13952 (w32_enumfont_pattern_entity): New arg requested_font.
13953 Set antialias parameter if non-default was requested.
13954 (fill_in_logfont): Fill in lfQuality if :antialias specified.
13955
13956 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13957
13958 * lread.c (read1): Undo the previous change.
13959
13960 2008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
13961
13962 * frame.c (Fdelete_frame): Call font_update_drivers only when
13963 USE_FONT_BACKEND is defined.
13964
13965 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13966
13967 * font.h (struct font_bitmap): New member bits_per_pixel.
13968 (struct font_driver): New members start_for_frame and end_for_frame.
13969 (struct font_data_list): New struct.
13970 (font_put_frame_data, font_get_frame_data): Extern them.
13971
13972 * frame.h (struct frame): New member font_data_list.
13973
13974 * font.c (font_update_drivers): Call driver->start_for_frame and
13975 driver->end_for_frame at proper timings.
13976 (font_put_frame_data, font_get_frame_data): New functions.
13977 (Ffont_spec): Add usage in the docstring.
13978
13979 * frame.c (make_frame): Initialize f->font_data_list to NULL.
13980 (Fdelete_frame): Call font_update_drivers.
13981
13982 * xftfont.c (struct xftface_info): Delete the member xft_draw.
13983 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
13984 (xftfont_get_xft_draw): New function.
13985 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
13986 (xftfont_end_for_frame): New function.
13987 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
13988
13989 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
13990 Change argument. Cache GCs in the per-frame data.
13991 (struct ftxfont_frame_data): New struct.
13992 (ftxfont_draw_bitmap): New arg gc_fore and flush.
13993 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
13994 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
13995 (ftxfont_end_for_frame): New function.
13996 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
13997
13998 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
13999
14000 2008-02-01 Kenichi Handa <handa@m17n.org>
14001
14002 * xselect.c (Vselection_coding_system)
14003 (Vnext_selection_coding_system): Delete them.
14004 (syms_of_xselect): Don't declare selection-coding-system and
14005 next-selection-coding-system. They are declared in select.el.
14006
14007 2008-02-01 Jason Rumney <jasonr@gnu.org>
14008
14009 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
14010
14011 * w32fns.c: Include imm.h.
14012 (get_composition_string_fn, get_ime_context_fn): New optional
14013 system functions.
14014 (globals_of_w32fns): Load them from imm32.dll.
14015 (ignore_ime_char): New flag.
14016 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
14017 WM_IME_ENDCOMPOSITION messages.
14018
14019 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
14020 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
14021
14022 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14023
14024 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
14025 (READCHAR_REPORT_MULTIBYTE): New macro.
14026 (readchar): New 2nd arg MULTIBYTE.
14027 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
14028 Make symbol's name multibyte according to the multibyteness of the
14029 source.
14030
14031 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14032
14033 * xfaces.c (face_for_overlay_string): Call lookup_face with
14034 correct arguments (fix of synching with the trunk).
14035
14036 2008-02-01 Kenichi Handa <handa@m17n.org>
14037
14038 * font.c (font_prop_validate_symbol, font_prop_validate_style)
14039 (font_prop_validate_non_neg, font_prop_validate_spacing):
14040 Delete argument prop_index.
14041 (font_property_table): Change arguments to validater. Change Callers.
14042 (font_lispy_object): Delete.
14043 (font_at): Use font_find_object instead fo font_lispy_object.
14044
14045 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14046
14047 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
14048 and file names.
14049
14050 2008-02-01 Jason Rumney <jasonr@gnu.org>
14051
14052 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
14053 (font_matches_spec): Remove debug output.
14054 (add_font_entity_to_list): Avoid using substituted fonts.
14055
14056 2008-02-01 Jason Rumney <jasonr@gnu.org>
14057
14058 * doc.c (Fsnarf_documentation):
14059 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
14060
14061 2008-02-01 Miles Bader <miles@gnu.org>
14062
14063 * dispextern.h (struct glyph_row): Only define "clip" field if
14064 HAVE_WINDOW_SYSTEM is defined.
14065
14066 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14067
14068 Fix up multi-tty merge.
14069
14070 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
14071 and indentation.
14072
14073 * xfaces.c (free_realized_face, clear_face_gcs):
14074 Include font_done_for_face in the input_blocked section, just in case.
14075
14076 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
14077 (get_char_face_and_encoding): Undo last change and remove the *other*
14078 duplicate definition (i.e. keep the one that's better scoped and that
14079 includes code for the font-backend).
14080
14081 * terminal.c (create_terminal): Default keyboard_coding to
14082 `no-conversion' and terminal_coding to `undecided'.
14083
14084 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
14085
14086 * fontset.c (free_realized_fontsets): Check that the table entry does
14087 contain a fontset before trying to compare it to `base'.
14088
14089 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
14090 syms_of_charset, and syms_of_coding earlier because init_window_once
14091 now needs Vcoding_system_hash_table to be setup.
14092
14093 * coding.h (default_buffer_file_coding): Remove.
14094
14095 * coding.c (default_buffer_file_coding): Remove.
14096 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
14097 than ->symbol, and use the terminal-local coding system.
14098 (syms_of_coding): Don't setup the coding-systems that are not
14099 terminal-local.
14100 (Fdefine_coding_system_internal): Use XCAR/XCDR.
14101
14102 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
14103 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
14104
14105 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
14106 in chartab.c and were re-added here by mistake.
14107 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
14108
14109 * doc.c (Fsnarf_documentation):
14110 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
14111 src to etc.
14112
14113 * ChangeLog.10: Add mistakenly removed entry.
14114
14115 2008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
14116
14117 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
14118
14119 2008-02-01 Miles Bader <miles@gnu.org>
14120
14121 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
14122 Add extra args to FACE_FOR_CHAR.
14123
14124 2008-02-01 Kenichi Handa <handa@m17n.org>
14125
14126 * keymap.c (where_is_internal_1): If key is a cons, store the copy
14127 in sequence.
14128
14129 * chartab.c (map_sub_char_table, map_char_table): If the range
14130 contains just one character, call the function with that character
14131 even if the depth is not 3.
14132
14133 2008-02-01 Jason Rumney <jasonr@gnu.org>
14134
14135 * w32font.c (w32font_text_extents): Calculate metrics for the
14136 whole string.
14137
14138 2008-02-01 Jason Rumney <jasonr@gnu.org>
14139
14140 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
14141
14142 2008-02-01 Jason Rumney <jasonr@gnu.org>
14143
14144 * w32term.c (x_set_glyph_string_clipping): Use
14145 get_glyph_string_clip_rects.
14146 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14147 Adjust for the change of struct glyph_string.
14148
14149 * w32font.c (w32font_draw): Do clipping here.
14150
14151 2008-02-01 Kenichi Handa <handa@m17n.org>
14152
14153 * xftfont.c (xftfont_draw): Adjust for the change of struct
14154 glyph_string.
14155
14156 * xterm.c (x_set_glyph_string_clipping): Use
14157 get_glyph_string_clip_rects.
14158 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14159 Adjust for the change of struct glyph_string.
14160
14161 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
14162 the resulting clip(s}.
14163 (expose_overlaps): Add arg r. Change callers. Set it to
14164 row->clip temporarily.
14165 (expose_window): Redraw rows overlapping the exposed area.
14166
14167 * dispextern.h (struct glyph_row): New member clip.
14168 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
14169 clip_height, new member clip, and num_clips.
14170
14171 2008-02-01 Kenichi Handa <handa@m17n.org>
14172
14173 * data.c (Fchar_or_string_p): Fix docstring.
14174
14175 2008-02-01 Kenichi Handa <handa@m17n.org>
14176
14177 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
14178 create a temporary XftDraw object.
14179
14180 2008-02-01 Kenichi Handa <handa@m17n.org>
14181
14182 * font.c (Ffontp): Fix docstring.
14183
14184 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
14185 strong evidence of ISO-2022.
14186
14187 2008-02-01 Kenichi Handa <handa@m17n.org>
14188
14189 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
14190 SYNTAX_ENTRY_FOLLOW_PARENT.
14191
14192 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14193
14194 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
14195 its type.
14196 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
14197 Update to the new type of weak_hash_tables and next_weak.
14198
14199 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
14200 a plain C pointer to Lisp_Hash_Table.
14201
14202 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
14203 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
14204 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
14205 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
14206 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
14207 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
14208 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
14209 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
14210 (GC_EQ): Remove since they've been identical to their non-GC_
14211 alter-egos ever since the markbit was eradicated.
14212
14213 * alloc.c:
14214 * buffer.c:
14215 * buffer.h:
14216 * data.c:
14217 * fileio.c:
14218 * filelock.c:
14219 * fns.c:
14220 * frame.h:
14221 * lisp.h:
14222 * macterm.c:
14223 * print.c:
14224 * process.c:
14225 * w32fns.c:
14226 * w32menu.c:
14227 * w32term.c:
14228 * xfns.c:
14229 * xmenu.c:
14230 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
14231
14232 2008-02-01 Kenichi Handa <handa@m17n.org>
14233
14234 * chartab.c (map_sub_char_table): Make it work for the top-level
14235 char-table. Fix handling of parent char-table.
14236 (map_char_table): Adjust for the above change.
14237
14238 2008-02-01 Jason Rumney <jasonr@gnu.org>
14239
14240 * w32font.c (Qgdi): Rename from Qw32.
14241
14242 2008-02-01 Jason Rumney <jasonr@gnu.org>
14243
14244 * w32bdf.c (get_quoted_string): Make function static.
14245
14246 2008-02-01 Kenichi Handa <handa@m17n.org>
14247
14248 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
14249 bigger ascent and descent than those of the font, use them as
14250 font's ascent and descent.
14251
14252 2008-02-01 Kenichi Handa <handa@m17n.org>
14253
14254 * Makefile.in (${lispsource}international/charprop.el): Move this
14255 target within "#ifdef HAVE_UNIDATA" and "#endif".
14256
14257 2008-02-01 Kenichi Handa <handa@m17n.org>
14258
14259 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
14260 (shortlisp): Add ../lisp/language/tai-viet.el.
14261
14262 2008-02-01 Ulrich Mueller <ulm@gentoo.org>
14263
14264 * Makefile.in (${lispsource}international/charprop.el): Depend on
14265 temacs${EXEEXT}.
14266
14267 2008-02-01 Jason Rumney <jasonr@gnu.org>
14268
14269 * w32font.c (w32font_close): Delete the GDI font object.
14270
14271 * w32menu.c: Include character.h.
14272
14273 * w32proc.c: Likewise.
14274
14275 * w32select.c: Likewise.
14276
14277 * makefile.w32-in (w32proc.o): Depend on character.h.
14278
14279 2008-02-01 Jason Rumney <jasonr@gnu.org>
14280
14281 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
14282
14283 * w32menu.c (syms_of_w32menu): Likewise.
14284
14285 * w32proc.c (syms_of_ntproc): Likewise.
14286
14287 * w32select.c (syms_of_w32select): Likewise.
14288
14289 * w32term.c (syms_of_w32term): Likewise.
14290
14291 2008-02-01 Jason Rumney <jasonr@gnu.org>
14292
14293 * w32font.c (w32font_draw): Delete brush after using it.
14294
14295 2008-02-01 Jason Rumney <jasonr@gnu.org>
14296
14297 * w32font.c (w32font_open): Don't set font_idx.
14298 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
14299 to font settings.
14300 (w32font_draw): Fill background explicitly.
14301
14302 2008-02-01 Jason Rumney <jasonr@gnu.org>
14303
14304 * w32term.c (w32_initialize): Don't call w32font_initialize.
14305
14306 * w32font.c (w32font_info): Remove subranges.
14307 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
14308 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
14309 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
14310 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
14311 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
14312 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
14313 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
14314 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
14315 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
14316 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
14317 New symbols.
14318 (font_callback_data): New struct.
14319 (w32font_list, w32font_match): Use it.
14320 (w32font_open): Don't populate subranges.
14321 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
14322 (w32font_encode_char): Always return unicode code-point as-is.
14323 (w32font_text_extents): Supply a transformation matrix to
14324 GetGlyphOutline. Never look up by glyph index. Avoid looping
14325 twice. Use unicode version of GetTexExtentPoint32 instead of
14326 glyph index version.
14327 (set_fonts_frame): Remove.
14328 (w32_enumfont_pattern_entity): Add frame parameter, use it to
14329 set frame parameter. Use backward compatible fake foundries.
14330 Save generic family in extra slot under QCfamily. Make width slot
14331 constant. Save QCspacing value. Save list of scripts instead of
14332 binary subranges.
14333 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
14334 (add_font_entity_to_list): Use font_callback_data struct. Filter
14335 unwanted fonts.
14336 (add_one_font_entity_to_list): Use font_callback_data struct.
14337 (w32_registry): Default to iso10646_1.
14338 (fill_in_logfont): Use dpi from extra slot. Don't bother with
14339 string font registries. Don't fill in font name if it is a generic
14340 family name, fill family instead. Use spacing, family and script
14341 extra info to fill pitch, family and charset fields.
14342 (list_all_matching_fonts): Use font_callback_data struct.
14343 (unicode_range_for_char): Remove.
14344 (font_supported_scripts): New function.
14345 (w32font_initialize): Remove.
14346 (syms_of_w32font): Update which symbols are defined.
14347
14348 2008-02-01 Jason Rumney <jasonr@gnu.org>
14349
14350 * font.c (font_pixel_size): Reverse assq_no_quit args.
14351
14352 * w32term.h (FONT_WIDTH): Report max width, not average.
14353 (FONT_MAX_WIDTH): Remove.
14354 (FONT_AVG_WIDTH): New macro.
14355
14356 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
14357 redefinition of FONT_WIDTH.
14358
14359 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
14360 (w32_cache_char_metrics): Use FONT_WIDTH.
14361
14362 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
14363
14364 2008-02-01 Jason Rumney <jasonr@gnu.org>
14365
14366 * w32font.c (w32font_open): Make lfHeight negative.
14367
14368 * w32fns.c (x_default_font_parameter): Use new style font name.
14369 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
14370
14371 2008-02-01 Jason Rumney <jasonr@gnu.org>
14372
14373 * w32font.c (QCsubranges): New symbol.
14374 (w32font_open, w32font_has_char): Get subranges from subproperty
14375 of extra.
14376 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
14377 (syms_of_w32font): Define :subranges symbol.
14378
14379 * font.c (font_put_extra): Expose externally.
14380
14381 * font.h (font_put_extra): Move declaration from font.c.
14382
14383 * font.c (Ffont_get): Use font driver to determine otf capability.
14384 (adjust_anchor): Check if driver defines anchor_point before using.
14385
14386 * w32font.c (w32font_open): Handle size, height and pixel_size better.
14387 (w32font_draw): Use options.
14388 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
14389 Fix detection of truetype fonts.
14390 (registry_to_w32_charset): Handle charsets other than iso8859-1
14391 expressed as lisp symbols.
14392 (w32_registry): Express charset as lisp symbol.
14393 (fill_in_logfont): Reverse pixel and point height logic.
14394 Don't set width here. Set quality to default.
14395
14396 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
14397 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
14398
14399 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14400 Remove redundant loop and allocation.
14401
14402 * makefile.w32-in (font.o, w32font.o): New objects.
14403 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
14404 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
14405
14406 * xdisp.c (fill_composite_glyph_string): Make the first arg to
14407 STORE_XCHARB a valid l-value.
14408
14409 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
14410 calculations for non-Truetype fonts.
14411 (x_draw_glyph_string): Sync with xterm.c.
14412 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14413 Remove redundant code.
14414 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
14415
14416 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
14417 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
14418
14419 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
14420 (x_to_w32_charset, w32_to_x_charset): Expose externally.
14421
14422 * w32font.c: New file for w32 font backend.
14423
14424 2008-02-01 Kenichi Handa <handa@m17n.org>
14425
14426 * term.c: Don't include "buffer.h" twice.
14427
14428 2008-02-01 Kenichi Handa <handa@m17n.org>
14429
14430 * character.c (Funibyte_string): New function.
14431 (syms_of_character): Defsubr it.
14432
14433 2008-02-01 Jason Rumney <jasonr@gnu.org>
14434
14435 * w32term.c [USE_FONT_BACKEND]:
14436 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
14437 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
14438 (x_draw_glyph_string, x_draw_glyph_string_foreground)
14439 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
14440 (x_free_frame_resources): Sync with xterm.c.
14441
14442 2008-02-01 Andreas Schwab <schwab@suse.de>
14443
14444 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
14445 char-table size.
14446
14447 2008-02-01 Kenichi Handa <handa@m17n.org>
14448
14449 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
14450
14451 2008-02-01 Kenichi Handa <handa@m17n.org>
14452
14453 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
14454 font_otf_gpos, add font_drive_otf.
14455
14456 * fontset.c (fontset_find_font): Pay attention to font size
14457 specified for a font.
14458 (reorder_font_vector): Check contents of font_def.
14459
14460 * font.c (struct otf_list): Delete it.
14461 (otf_list): Make it a lisp variable.
14462 (otf_open): Use lispy otf_list.
14463 (generate_otf_features): Rename from parse_gsub_gpos_spec.
14464 (check_otf_features): New function.
14465 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14466 New functions.
14467 (font_drive_otf): New function merging font_otf_gsub and
14468 font_otf_gpos.
14469 (font_open_for_lface): New arg spec. Change argument order.
14470 (font_load_for_face): Adjust for the change of font_open_for_lface.
14471 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
14472 Ffont_otf_gpos.
14473 (syms_of_font): Staticpro otf_list. Delete defsubr of
14474 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
14475
14476 * xfaces.c (set_font_frame_param): Adjust for the change of
14477 font_open_for_lface.
14478
14479 * font.h (font_open_for_lface): Adjust prototype.
14480 (struct font_driver): Delete members otf_gsub and otf_gpos, add
14481 member otf_drive.
14482 (font_otf_gsub, font_otf_gpos): Delete externs.
14483 (font_drive_otf): Extern it.
14484
14485 2008-02-01 Kenichi Handa <handa@m17n.org>
14486
14487 * font.c (font_at): If the window W is not on a window system,
14488 return Qnil.
14489
14490 * coding.c (produce_chars, encode_coding): Don't call
14491 insert_from_gap if no characters to produce.
14492
14493 2008-02-01 Kenichi Handa <handa@m17n.org>
14494
14495 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
14496 Fclear_face_cache.
14497
14498 * xfaces.c (face_for_font): Check also face->font==font->font.font.
14499
14500 2008-02-01 Miles Bader <miles@gnu.org>
14501
14502 * emacs.c (main): Change default value of `enable_font_backend' to 1.
14503 Parse "--disable-font-backend" option.
14504 (standard_args): Add "--disable-font-backend" option.
14505
14506 2008-02-01 Kenichi Handa <handa@m17n.org>
14507
14508 * fontset.c (fontset_find_font): New function.
14509 (fontset_font): Use fontset_find_font.
14510 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
14511 Register the specified font for all Latin characters.
14512 (new_fontset_from_font): Register the specified font for all Latin
14513 characters.
14514 (dump_fontset): For a realized fontset, include the base fontset
14515 name in the returned vector.
14516
14517 2008-02-01 Kenichi Handa <handa@m17n.org>
14518
14519 * character.h (CHAR_STRING): Cast C to unsigned on calling
14520 char_string.
14521
14522 * character.c (char_string): Type of arg C changed to unsigned.
14523 Signal an error if C is an invalid character code.
14524
14525 * editfns.c (general_insert_function, Fchar_to_string):
14526 Use CHARACTERP, not INTEGERP.
14527
14528 2008-02-01 Kenichi Handa <handa@m17n.org>
14529
14530 * character.h (MIN_MULTIBYTE_LEADING_CODE)
14531 (MAX_MULTIBYTE_LEADING_CODE): New macros.
14532
14533 * regex.c (analyse_first): Fix for multibyte characters in "case
14534 charset:" and "case categoryspec:".
14535
14536 2008-02-01 Andreas Schwab <schwab@suse.de>
14537
14538 * Makefile.in (LIBES): Move standard libraries to the end.
14539
14540 2008-02-01 Kenichi Handa <handa@m17n.org>
14541
14542 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
14543 nonzero, don't shrink the buffer nextb.
14544
14545 * buffer.h (struct buffer_text): New member inhibit_shrinking.
14546
14547 * coding.c (coding_alloc_by_making_gap): New arg offset.
14548 (alloc_destination): Call coding_alloc_by_making_gap with the arg
14549 offset.
14550 (decode_coding_iso_2022): Update coding->safe_charsets.
14551 (decode_coding_gap): Temporarily set
14552 current_buffer->text->inhibit_shrinking to 1.
14553
14554 2008-02-01 Kenichi Handa <handa@m17n.org>
14555
14556 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
14557 indexing into elements of s->cmp and s->char2b.
14558
14559 2008-02-01 Juanma Barranquero <lekktu@gmail.com>
14560
14561 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
14562
14563 2008-02-01 Kenichi Handa <handa@m17n.org>
14564
14565 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
14566 target_multibyte instead of multibyte.
14567 (re_match_2_internal): Call bcmp_translate with target_multibyte.
14568 (bcmp_translate): Change the argument name from multibyte to
14569 target_multibyte.
14570
14571 2008-02-01 Kenichi Handa <handa@m17n.org>
14572
14573 These changes are to compile a regexp into a pattern that can be
14574 used both for multibyte and unibyte targets.
14575
14576 * Makefile.in (search.o): Depend on charset.h.
14577
14578 * character.c (multibyte_char_to_unibyte_safe): New function.
14579
14580 * search.c: Include "charset.h".
14581 (compile_pattern_1): Delete argument multibyte. Don't set
14582 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
14583 (compile_pattern): Don't compare cp->buf.target_multibyte.
14584 Compare cp->buf.charset_unibyte.
14585 (compile_pattern): Set cp->buf.target_multibyte.
14586
14587 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
14588
14589 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
14590
14591 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
14592 multibyte. Change callers.
14593 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
14594 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
14595 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
14596 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
14597 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
14598 (regex_compile): Make the compiled pattern usable both for
14599 multibyte and unibyte targets.
14600 (analyse_first): Make the fastmap usable both for multibyte and
14601 unibyte targets.
14602 (TRANSLATE_VIA_MULTIBYTE): Delete.
14603 (re_match_2_internal): Pay attention to the case that the
14604 multibyteness of bufp and target may be different.
14605
14606 2008-02-01 Kenichi Handa <handa@m17n.org>
14607
14608 * xdisp.c (x_produce_glyphs): When a font is not found, make the
14609 empty box occupy at least one column width.
14610
14611 2008-02-01 Miles Bader <miles@gnu.org>
14612
14613 * Makefile.in: Remove redundant HAVE_XFT clause.
14614
14615 2008-02-01 Kenichi Handa <handa@m17n.org>
14616
14617 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
14618
14619 2008-02-01 Kenichi Handa <handa@m17n.org>
14620
14621 * fontset.c (Finternal_char_font): Fix for the case of POSITION
14622 being nil.
14623
14624 2008-02-01 Kenichi Handa <handa@m17n.org>
14625
14626 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
14627
14628 2008-02-01 Kenichi Handa <handa@m17n.org>
14629
14630 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
14631
14632 2008-02-01 Kenichi Handa <handa@m17n.org>
14633
14634 * search.c (simple_search): Fix previous change.
14635
14636 2008-02-01 Kenichi Handa <handa@m17n.org>
14637
14638 * xftfont.c (ftfont_font_format): Extern declaration.
14639
14640 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
14641
14642 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
14643 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
14644
14645 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
14646 (ftfont_font_format): Fix previous change.
14647
14648 * font.h (Ffont_xlfd_name): EXFUN it.
14649
14650 * font.c (font_parse_xlfd): Fix the array size of `f'.
14651 (register_font_driver): Use EQ to compare driver->type.
14652
14653 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
14654 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
14655 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
14656
14657 2008-02-01 Kenichi Handa <handa@m17n.org>
14658
14659 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
14660 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
14661
14662 2008-02-01 Kenichi Handa <handa@m17n.org>
14663
14664 * xfont.c (xfont_open): Set font->format.
14665
14666 * xftfont.c (xftfont_open): Set font->format.
14667
14668 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
14669 (ftfont_list): Include FC_FONTFORMAT in FcObject.
14670 (ftfont_open): Set font->format.
14671 (ftfont_font_format): New function.
14672
14673 * font.h (struct font): New member format.
14674
14675 * font.c (Qopentype): New variable.
14676 (syms_of_font): Defsym it.
14677 (Fquery_font): Change the format of the last element of the return
14678 value.
14679
14680 2008-02-01 Kenichi Handa <handa@m17n.org>
14681
14682 * xfns.c (xic_create_xfontset): Try the default fontset name as a
14683 last resort.
14684
14685 2008-02-01 Kenichi Handa <handa@m17n.org>
14686
14687 * coding.c (detect_coding_charset): Fix detection of multi-byte
14688 charset.
14689
14690 2008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
14691
14692 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
14693
14694 2008-02-01 Kenichi Handa <handa@m17n.org>
14695
14696 * xdisp.c (get_next_display_element): Set it->face_id for the
14697 first component of a composition.
14698 (x_produce_glyphs): Check if the font is changed or not for composition.
14699
14700 2008-02-01 Kenichi Handa <handa@m17n.org>
14701
14702 * fontset.c (Qlatin): New variable.
14703 (syms_of_fontset): Define it as a lisp symbol.
14704 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
14705
14706 2008-02-01 Kenichi Handa <handa@m17n.org>
14707
14708 * font.c (font_unparse_fcname): Pay attention to the case that
14709 some of font property is a null string.
14710
14711 2008-02-01 Kenichi Handa <handa@m17n.org>
14712
14713 * term.c: Include "composite.h".
14714 (encode_terminal_code): Output all components of composition.
14715 Check the size of encode_terminal_src.
14716 (produce_glyphs): For composition, call produce_composite_glyph.
14717 (append_composite_glyph, produce_composite_glyph): New functions.
14718
14719 * xdisp.c (x_produce_glyphs): In handling composition, if a font
14720 is not found, get font_info from the current ascii face.
14721
14722 2008-02-01 Kenichi Handa <handa@m17n.org>
14723
14724 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
14725 buffer-file-name to Qnil before calling insert_from_buffer.
14726
14727 * font.c (font_unparse_fcname): Pay attention to the case that
14728 foundry is a null string.
14729
14730 2008-02-01 Kenichi Handa <handa@m17n.org>
14731
14732 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
14733
14734 * font.c (Qunicode_sip): New variable.
14735 (syms_of_font): Declare it as a Lisp symbol.
14736
14737 * font.h (Qunicode_sip): Extern it.
14738
14739 2008-02-01 Kenichi Handa <handa@m17n.org>
14740
14741 * composite.c (get_composition_id): Pay attention to TAB component.
14742
14743 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
14744 TAB. Adjust for the change of s->char2b which always points to
14745 the first element of allocated memory.
14746
14747 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
14748
14749 * xdisp.c (handle_composition_prop): Set it->c to the first
14750 non-TAB component.
14751 (fill_composite_glyph_string): Change argument.
14752 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
14753 (x_produce_glyphs): Fix handling of left/right padding.
14754
14755 2008-02-01 Kenichi Handa <handa@m17n.org>
14756
14757 * coding.c (detect_coding_system): Fix for handling off
14758 inhibit_iso_escape_detection. Fix for the case that no coding
14759 system is defined for a specific coding category.
14760
14761 2008-02-01 Kenichi Handa <handa@m17n.org>
14762
14763 * font.c (font_matching_entity): Delete unused local var.
14764
14765 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
14766 opening a font.
14767
14768 * fileio.c (Finsert_file_contents): On recovering a file, assume
14769 Unix-like eol.
14770 (choose_write_coding_system): On auto-saving a file, force
14771 Unix-like eol.
14772
14773 * coding.c (setup_coding_system): Fix setting of
14774 coding->common_flags based on eol_type.
14775 (coding_inherit_eol_type): If PARENT is not nil, be sure to
14776 inherit from it.
14777
14778 2008-02-01 Kenichi Handa <handa@m17n.org>
14779
14780 * alloc.c (NSTATICS): Increas to 0x600.
14781
14782 2008-02-01 Kenichi Handa <handa@m17n.org>
14783
14784 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
14785 (ftfont_list): Don't check :name property.
14786 (ftfont_match): New function.
14787 (ftfont_pattern_entity): If the pattern doesn't contain
14788 FC_SPACING, don't assume FC_MONO.
14789
14790 * font.h (struct font_driver): New member `match'.
14791 (font_update_drivers): Adjust prototype.
14792
14793 * font.c (font_parse_fcname, font_parse_name): Don't change :name
14794 property of FONT.
14795 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
14796 them unconditionally.
14797 (font_matching_entity): New function.
14798 (font_open_by_name): Try font_matching_entity if exact match is
14799 not found.
14800 (font_update_drivers): Delete the arg FONT. Return a list of
14801 actually used backends. Don't free faces, font caches here.
14802 Don't store data in frame parameters. Don't call x_set_font.
14803 (Ffont_spec): Store :name property as is.
14804 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
14805 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
14806 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
14807 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
14808 Call font->driver->otf_gsub instead of font_otf_gsub.
14809
14810 * frame.c (x_set_font_backend): Do more works that were done in
14811 font_update_drivers before.
14812
14813 * xfont.c (xfont_match): New function.
14814 (xfont_driver): Set xfont_driver.match to xfont_match.
14815 (xfont_draw): Set font in GC if necessary.
14816
14817 * ftxfont.c (ftxfont_match): New function.
14818 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
14819
14820 * xftfont.c (xftfont_match): New function.
14821 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
14822
14823 2008-02-01 Kenichi Handa <handa@m17n.org>
14824
14825 * font.h (struct font): New member scalable.
14826 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
14827 (font_otf_gsub): Adjust prototype.
14828
14829 * font.c (font_otf_capability): Fix handling of the default langsys.
14830 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
14831 Check the contents of SPEC.
14832 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
14833 (check_gstring): New function.
14834 (REPLACEMENT_CHARACTER): New macro.
14835 (font_otf_gsub): New arg alternate_subst. Be sure to set all
14836 glyph codes of GSTRING.
14837 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
14838 (font_prepare_composition): Set cmp->glyph_len.
14839 (font_open_entity): Set font->scalable.
14840 (Ffont_get): Handle :otf property.
14841 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
14842 functions.
14843 (Fquery_font): Use font->font.full_name.
14844 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
14845 Sfont_otf_alternates.
14846
14847 * ftfont.c (ftfont_open): Set font->font.full_name and
14848 font->font.name properly. Fix calculation of font->font.height
14849 and font->min_width.
14850
14851 * ftxfont.c (ftxfont_create_gcs): New function.
14852 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
14853 (ftxfont_draw_backgrond): Fix filling region.
14854 (ftxfont_default_fid): New function.
14855 (ftxfont_open): Set xfont->fid to the return value of
14856 ftxfont_default_fid.
14857 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
14858 (ftxfont_done_face): Free only GCs that are created by
14859 ftxfont_create_gcs.
14860 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
14861
14862 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
14863 Clip to src->width, etc (not src->clip_XXX).
14864
14865 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
14866 FontBackend frame parameter.
14867
14868 2008-02-01 Kenichi Handa <handa@m17n.org>
14869
14870 * font.h (struct font_driver_list): New member `on'.
14871 (Fclear_font_cache): EXFUN it.
14872 (font_update_drivers): Extern it.
14873
14874 * font.c (font_unparse_fcname): Fix typo (swidth->width).
14875 (font_list_entities): Check driver_list->on.
14876 (register_font_driver): Initalize `on' member to 0.
14877 (font_update_drivers): New function.
14878 (Fclear_font_cache): Check driver_list->on.
14879
14880 * frame.h (Qfont_backend): Extern it.
14881 (x_set_font_backend): Extern it.
14882
14883 * frame.c (Qfont_backend): New variable.
14884 (frame_parms): New element for font-backend.
14885 (x_set_font_backend): New function.
14886
14887 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
14888 FontBackend frame parameter.
14889 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
14890 x_set_font_backend.
14891
14892 * xfont.c (xfont_list): Don't try listing by :name property if the
14893 name is not for XLFD.
14894
14895 2008-02-01 Kenichi Handa <handa@m17n.org>
14896
14897 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
14898 (LGLYPH_SET_TO): New macros.
14899 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
14900 element of G is vector or not.
14901 (font_at): Extern it.
14902
14903 * font.c: Include window.h.
14904 (font_lispy_object): New function.
14905 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
14906 end of valid glyph.
14907 (font_close_object): Fix getting (struct font *).
14908 (font_at): New function.
14909 (Ffont_get): If FONT is a font-object, get entity from it.
14910 (Ffont_make_gstring): Initialize elements of glyphs with nil.
14911 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
14912 range check.
14913 (Ffont_at): New function.
14914 (syms_of_font): Defsubr Sfont_at.
14915
14916 * xdisp.c (it_props): Move the entry for Qauto_composed to just
14917 before the entry for Qcomposition.
14918 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
14919 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
14920 the font in gstring.
14921 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
14922 LGLYPH_FORM (g) to detect the end of valid glyph.
14923 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
14924 we are composing with gstring.
14925
14926 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
14927 Check if adjustment is vector or not.
14928
14929 * Makefile.in (font.o): Make it depends on window.h.
14930
14931 2008-02-01 Kenichi Handa <handa@m17n.org>
14932
14933 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
14934 adjustment is vector or not.
14935
14936 2008-02-01 Miles Bader <miles@gnu.org>
14937
14938 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
14939
14940 2008-02-01 Kenichi Handa <handa@m17n.org>
14941
14942 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
14943 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
14944 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
14945
14946 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
14947 (DEVICE_DELTA): Fix typo.
14948 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
14949 LGLYPH format.
14950
14951 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14952 the change of LGLYPH format.
14953
14954 2008-02-01 Kenichi Handa <handa@m17n.org>
14955
14956 * ftfont.c (ftfont_list): Fix typo.
14957 (ftfont_build_basic_charsets): Don't include letters with diacritics.
14958
14959 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14960
14961 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
14962
14963 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
14964 xftface_info is non-NULL.
14965
14966 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
14967
14968 * ftfont.c (ftfont_list): Move misplaced #endif.
14969
14970 2008-02-01 Kenichi Handa <handa@m17n.org>
14971
14972 * ftfont.c (ftfont_list): Pay attention to the case that
14973 FC_CAPABILITY is not defined.
14974
14975 2008-02-01 Kenichi Handa <handa@m17n.org>
14976
14977 * xftfont.c (xftfont_open): Set charset related members to -1.
14978
14979 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
14980 QCname.
14981 (ftfont_open): Set charset related members to -1.
14982
14983 * fontset.c (Votf_script_alist): New variable.
14984 (syms_of_fontset): Initialize it.
14985 (fontset_font): Delete unused variable.
14986
14987 * fontset.h (Votf_script_alist): Extern it.
14988
14989 * font.c (font_find_for_lface): Optimize code.
14990
14991 * font.h (font_close_object, font_merge_old_spec): Extern them.
14992
14993 2008-02-01 Kenichi Handa <handa@m17n.org>
14994
14995 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
14996 (syms_of_font): Initialize them.
14997 (font_pixel_size): Allow float value in dpi.
14998 (font_prop_validate_type): Delete.
14999 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
15000 Change caller.
15001 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
15002 (font_prop_validate_extra): Delete.
15003 (font_prop_validate_spacing): New function.
15004 (font_property_table): Add elements for all known properties.
15005 (get_font_prop_index): Rename from check_font_prop_name. New
15006 argument FROM. Change caller.
15007 (font_prop_validate): Validate all known properties.
15008 (font_put_extra): Delete argument force. Change caller.
15009 (font_expand_wildcards): Make it static. Fix the way of shrinking
15010 the possible range.
15011 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
15012 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
15013 Change caller.
15014 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
15015 (font_parse_fcname): Delete argument merge. Fix parsing of point
15016 size. Don't validate properties values here. Change caller.
15017 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
15018 (font_open_by_name): Delete unused variable.
15019 (Ffont_spec): Likewise. Validate property values.
15020 (Ffont_match_p): New function.
15021
15022 * font.h (QCscalable): Extern it.
15023 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
15024
15025 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
15026
15027 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
15028 (xfont_list_pattern): New function.
15029 (xfont_list): Use xfont_list_pattern.
15030
15031 2008-02-01 Kenichi Handa <handa@m17n.org>
15032
15033 * font.h (Flist_fonts): EXFUN it.
15034
15035 2008-02-01 Jason Rumney <jasonr@gnu.org>
15036
15037 * w32term.c (w32_initialize): Add back smoothing_type and
15038 smoothing_enabled definitions.
15039
15040 2008-02-01 Kenichi Handa <handa@m17n.org>
15041
15042 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
15043 s->face->font on determining underline position.
15044
15045 2008-02-01 Kenichi Handa <handa@m17n.org>
15046
15047 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
15048 (font_has_char): Accept font-object too.
15049 (font_find_for_lface): Try at first with a size specified in face.
15050
15051 2008-02-01 Kenichi Handa <handa@m17n.org>
15052
15053 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
15054 font_open_by_name.
15055
15056 2008-02-01 Kenichi Handa <handa@m17n.org>
15057
15058 * font.h (QCspacing, QCdpi): Extern them.
15059 (enum font_spacing): New enum.
15060 (FONT_PIXEL_SIZE_QUANTUM): New macro.
15061
15062 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
15063 (QCspacing, QCdpi): New variables.
15064 (syms_of_font): Initialize them.
15065 (font_pixel_size): New function.
15066 (font_put_extra): New function.
15067 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
15068 in FONT_EXTRA.
15069 (font_parse_fcname): Handle enumerated values (e.g. bold).
15070 Fix handling font size. Add QCname property that contains only
15071 unknown properties.
15072 (font_score): Change argument. Change caller. Pay attention to
15073 FONT_PIXEL_SIZE_QUANTUM.
15074 (font_sort_entites, font_list_entities, font_find_for_lface)
15075 (font_open_for_lface, font_open_by_name): Fix handling of font size.
15076 (Ffont_spec): Add QCname property that contains only unknown properties.
15077
15078 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
15079 include weight in listing pattern, instead check weight of each
15080 listed font. Don't include scalable in pattern. Pay attention to
15081 FONT_PIXEL_SIZE_QUANTUM.
15082
15083 2008-02-01 Kenichi Handa <handa@m17n.org>
15084
15085 * font.c (font_parse_fcname): Fix parsing of point-size.
15086 (font_unparse_fcname): Produce symbolic names for style properties.
15087 (font_list_entities): Handle float size correctly.
15088 (font_open_by_name): Prefer `normal' property values if the name
15089 doesn't specify them.
15090
15091 * fontset.c (Finternal_char_font): Use font_get_name, not
15092 Ffont_xlfd_name.
15093
15094 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
15095 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
15096 pattern. Don't force scalable.
15097
15098 * xftfont.c (xftfont_open): For generating a name, start from
15099 96-byte buffer.
15100
15101 2008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15102
15103 * frame.h (x_new_fontset2): Fix prototype.
15104
15105 2008-02-01 Kenichi Handa <handa@m17n.org>
15106
15107 * font.h (struct font_driver): Delete member parse_name.
15108 (font_match_p, font_get_spec, font_parse_fcname)
15109 (font_unparse_fcname): Extern them.
15110 (font_get_name): Adjust prototype.
15111
15112 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
15113 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
15114 (font_expand_wildcards): Fix handling ENCODING field. Avoid
15115 unnecessary checks for weight, slant, and swidth.
15116 (font_parse_fcname): New function.
15117 (font_unparse_fcname): New function.
15118 (font_parse_name): New function.
15119 (font_match_p): New function.
15120 (font_get_name): Change return value to Lisp string.
15121 (font_get_spec): New function.
15122 (Qunspecified, Qignore_defface): Don't extern them.
15123 (font_find_for_lface): Assume that LFACE is fully specified.
15124 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
15125 object, use it for FACE.
15126 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
15127 driver->parse_name.
15128 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
15129
15130 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
15131 prototype.
15132
15133 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
15134 argument F. Don't call Fnew_fontset. Instead, directly call
15135 make_fontset.
15136
15137 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
15138
15139 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
15140 of x_new_fontset2.
15141
15142 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
15143 (Qsans__serif): New variables.
15144 (ftfont_generic_family_list): New variable.
15145 (syms_of_ftfont): Initialize the above variables.
15146 (ftfont_pattern_entity): Delete argument NAME.
15147 (ftfont_list_generic_family): New function.
15148 (ftfont_parse_name): Delete this function.
15149 (ftfont_list): Try generic family only when FcFontList found no font.
15150 (ftfont_list_family): Fix args to FcObjectSetBuild.
15151
15152 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
15153 object in attrs[LFACE_FONT_INDEX].
15154 (set_lface_from_font_name): Cancel all changes for font-backend.
15155 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
15156 function.
15157 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
15158 font object in QCfont attribute.
15159 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
15160 (realize_default_face) [USE_FONT_BACKEND]: Call
15161 set_lface_from_font_and_fontset.
15162
15163 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
15164 "fixed", and signal error here if no suitable font was found.
15165
15166 * xfont.c (xfont_parse_name): Delete this function.
15167
15168 * xftfont.c (xftfont_open): Change coding style of error
15169 handling. Generate fontconfig's fontname pattern.
15170
15171 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
15172 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
15173
15174 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
15175 Both args FONTSET and FONT_OBJECT must be existing ones.
15176
15177 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15178
15179 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
15180
15181 2008-02-01 Kenichi Handa <handa@m17n.org>
15182
15183 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
15184
15185 * font.h (struct font): Fix typo.
15186
15187 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
15188 XLFD_XXX_INDEX.
15189 (enum xlfd_field_mask): New enum.
15190 (intern_font_field): Changed argument. Change caller. If digits
15191 are followed by non-digits, return a symbol.
15192 (font_expand_wildcards): New function.
15193 (font_parse_xlfd): Fix wildcard handling.
15194 (Ffont_spec): If :name is specified, reflect the info in the other
15195 properties.
15196
15197 * ftfont.c (ftfont_pattern_entity): Fix typo.
15198 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
15199 locale.
15200
15201 2008-02-01 Kenichi Handa <handa@m17n.org>
15202
15203 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
15204
15205 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
15206 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
15207 registry doesn't specify encoding part.
15208 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
15209 (font_open_by_name): At first try parsing the name.
15210 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
15211 as Lisp symbols.
15212
15213 * fontset.c (reorder_font_vector): Pay attention to the case that
15214 the 3rd element of font_def is nil.
15215 (fontset_font): For the default fontset, append one more fontset
15216 elements for a script-based font specification. Don't add script
15217 attribute on finding a font.
15218 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
15219 font name.
15220 (fontset_ascii_font): If a font can't be opened, return nil.
15221
15222 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
15223 (ftfont_pattern_entity): New function.
15224 (ftfont_get_cache): Assume that freetype_font_cache is already
15225 initialized.
15226 (ftfont_list): Handle the case that a file is specified in font
15227 name. Use ftfont_pattern_entity to generate entities.
15228 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
15229 (syms_of_ftfont): Initialize freetype_font_cache.
15230
15231 * xftfont.c (xftfont_open): Make the font name fontconfig's
15232 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
15233 (xftfont_close): Free font->font.name if not NULL.
15234
15235 * xfont.c (xfont_list): If script is specified for a font, return
15236 null_vector.
15237 (xfont_list_family): Declare argument type.
15238
15239 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
15240 name, set LFACE_FONT (lface) to nil.
15241
15242 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
15243 return Qnil.
15244
15245 2008-02-01 Kenichi Handa <handa@m17n.org>
15246
15247 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
15248 (standard_args): Add "-enable-font-backend".
15249
15250 2008-02-01 Kenichi Handa <handa@m17n.org>
15251
15252 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
15253 (struct xftdraw_list, xftdraw_list): Delete them.
15254 (register_xftdraw, check_xftdraw): Delete them.
15255 (xftfont_prepare_face): Don't call register_xftdraw.
15256 (xftfont_done_face): Don't call check_xftdraw.
15257 (xftfont_draw): Get background color only when with_background is
15258 nonzero.
15259
15260 * xfont.c (xfont_encode_char): Fix calculation of char2b.
15261
15262 2008-02-01 Kenichi Handa <handa@m17n.org>
15263
15264 These changes are for the new font handling codes.
15265
15266 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
15267 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
15268 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
15269 (FONTSRC, FONTOBJ): New variables.
15270 (obj): Add $(FONTOBJ).
15271 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
15272 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
15273 @LIBOTF_LIBS@.
15274 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
15275 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
15276
15277 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
15278
15279 * character.h (Vscript_representative_chars): Extern it.
15280
15281 * character.c (Vscript_representative_chars): New variable.
15282 (syms_of_character): Declare it as a Lisp variable.
15283
15284 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
15285 enable_font_backend is nonzero, accept the composition method
15286 COMPOSITION_WITH_GLYPH_STRING.
15287
15288 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
15289 enumeration COMPOSITION_WITH_GLYPH_STRING.
15290
15291 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
15292 members clip_x, clip_y, clip_width, and clip_height.
15293 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
15294
15295 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
15296 --enable-font-backend. Call syms_of_font.
15297
15298 * fns.c (assoc_no_quit): New function.
15299
15300 * fontset.h (FONT_INFO_FROM_FACE): New macro.
15301 (face_for_font, new_fontset_from_font)
15302 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
15303
15304 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
15305 (fontset_font, fontset_ascii, face_for_char)
15306 (make_fontset_for_ascii_face, Ffont_info)
15307 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
15308 is nonzero, use font-backend mechanism.
15309 (find_font_encoding): Make it non-static.
15310 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
15311 New functions.
15312
15313 * frame.h (struct frame): New members resx and resy.
15314 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
15315 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
15316
15317 * frame.c [USE_FONT_BACKEND]: Include "font.h".
15318 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
15319
15320 * lisp.h (assoc_no_quit): Extern it.
15321
15322 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
15323 Through out the file, use FONT_INFO_FROM_FACE instead of
15324 FONT_INFO_FROM_ID, use get_per_char_metric instead of
15325 rif->per_char_metric.
15326 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
15327 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
15328 (get_glyph_face_and_encoding, fill_composite_glyph_string)
15329 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15330 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
15331 nonzero, use font-backend mechanism.
15332 (get_per_char_metric): New function.
15333
15334 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
15335 (set_lface_from_font_name)
15336 (set_font_frame_param, free_realized_face)
15337 (prepare_face_for_display, clear_face_gcs)
15338 (Finternal_set_font_selection_order, realize_x_face)
15339 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
15340 font-backend mechanism.
15341 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
15342 (load_face_font) [USE_FONT_BACKEND]: Abort.
15343 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
15344 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
15345
15346 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
15347 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
15348 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
15349 nonzero, register all available font drivers. Call
15350 x_default_font_parameter for deciding a font.
15351 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
15352
15353 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
15354 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
15355 (x_set_glyph_string_clipping_exactly)
15356 (x_compute_glyph_string_overhangs)
15357 (x_draw_glyph_string_foreground)
15358 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
15359 (x_free_frame_resources) [USE_FONT_BACKEND]: If
15360 enable_font_backend is nonzero, use font-backend mechanism.
15361 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
15362
15363 2008-02-01 Kenichi Handa <handa@m17n.org>
15364
15365 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
15366 system_eol_type.
15367 (syms_of_coding): Initialize system_eol_type.
15368
15369 * process.c (Fset_process_coding_system): Inherit system's eol
15370 format if necessary.
15371
15372 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15373
15374 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
15375
15376 2008-02-01 Kenichi Handa <handa@m17n.org>
15377
15378 * coding.c (decode_eol): Pay attention to buffer relocation in
15379 del_range_2.
15380 (decode_coding): Call decode_eol before restoring undo_list.
15381
15382 2008-02-01 Kenichi Handa <handa@m17n.org>
15383
15384 * charset.c (Fdefine_charset_internal): Fix setting of
15385 emacs_mule_bytes.
15386
15387 2008-02-01 Kenichi Handa <handa@m17n.org>
15388
15389 * keyboard.c (read_char): Check if C is a character or not before
15390 looking up Vkeyboard_translate_table.
15391
15392 2008-02-01 Kenichi Handa <handa@m17n.org>
15393
15394 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
15395 condition to terminate the loop.
15396
15397 2008-02-01 Kenichi Handa <handa@m17n.org>
15398
15399 * coding.c (produce_composition): Compare charbuf[i] instead of
15400 args[i] against 0.
15401 (Fterminal_coding_system): Use EQ to compare Lisp objects.
15402
15403 2008-02-01 Kenichi Handa <handa@m17n.org>
15404
15405 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
15406 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
15407 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
15408 detect_coding.
15409 (emacs_mule_char): Handle old style (Emacs 20) component character
15410 of a composition.
15411 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
15412 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
15413 composition rule.
15414 (decode_coding_emacs_mule): Handle invalid bytes correctly.
15415
15416 2008-02-01 Kenichi Handa <handa@m17n.org>
15417
15418 * coding.c (encode_coding_ccl): Allocate destination dynamically
15419 when necessary.
15420
15421 2008-02-01 Kenichi Handa <handa@m17n.org>
15422
15423 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
15424 the loop. When quitted, show a proper error message.
15425
15426 2008-02-01 Kenichi Handa <handa@m17n.org>
15427
15428 * xterm.c (x_set_glyph_string_clipping_exactly): Set
15429 src->clip_head and src->clip_tail temporarily instead of src->hl.
15430
15431 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
15432 character sequence.
15433 (Fccl_execute_on_string): Use ASET, not XSET.
15434
15435 2008-02-01 Kenichi Handa <handa@m17n.org>
15436
15437 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
15438
15439 2008-02-01 Kenichi Handa <handa@m17n.org>
15440
15441 * coding.c (decode_coding): Fix the condition of terminating the
15442 decoding loop.
15443
15444 2008-02-01 Kenichi Handa <handa@m17n.org>
15445
15446 * data.c (Faset): On setting a character bigger than 255 in a
15447 unibyte string, signal an error instead of make the string multibyte.
15448
15449 2008-02-01 Kenichi Handa <handa@m17n.org>
15450
15451 * charset.c (map_charset_chars): Fix for ascii-compatible charset
15452 made by a mapping table.
15453
15454 2008-02-01 Kenichi Handa <handa@m17n.org>
15455
15456 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
15457 not.
15458 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
15459 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
15460
15461 * xterm.c (x_draw_composite_glyph_string_foreground): Check
15462 s->face is NULL or not.
15463
15464 2008-02-01 Kenichi Handa <handa@m17n.org>
15465
15466 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
15467 (x_draw_glyph_string): Fix drawing of right_overhang and
15468 left_overhang around/on cursor.
15469
15470 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
15471
15472 2008-02-01 Kenichi Handa <handa@m17n.org>
15473
15474 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
15475
15476 2008-02-01 Kenichi Handa <handa@m17n.org>
15477
15478 * coding.c (Fdefine_coding_system_internal)
15479 (Fdefine_coding_system_alias): Avoid a duplicated element in
15480 Vcoding_system_alist.
15481
15482 2008-02-01 Kenichi Handa <handa@m17n.org>
15483
15484 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
15485
15486 * coding.c (Qcoding_system_define_form): New variable.
15487 (syms_of_coding): Intern and staticpro it.
15488 (Fcoding_system_p): Check Qcoding_system_define_form.
15489 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
15490
15491 * coding.h (CODING_SYSTEM_P): If ID is not available, call
15492 Fcoding_system_p.
15493 (CHECK_CODING_SYSTEM): If ID is not available, call
15494 Fcheck_coding_system.
15495 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
15496 Try also Fcheck_coding_system.
15497
15498 2008-02-01 Kenichi Handa <handa@m17n.org>
15499
15500 * coding.c (code_conversion_restore): GCPRO arg.
15501
15502 2008-02-01 Kenichi Handa <handa@m17n.org>
15503
15504 * character.c (lisp_string_width): Check multibyteness of STRING.
15505
15506 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15507
15508 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
15509 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
15510 (decode_mac_font_name): Use decode_coding_c_string instead of
15511 decode_coding.
15512 (x_load_font): Initialize fontp->fontset to -1. Set
15513 fontp->encoding_type.
15514
15515 2008-02-01 Kenichi Handa <handa@m17n.org>
15516
15517 * search.c (search_buffer): Give up BM search on case-fold-search
15518 if one of a target character has a case-equivalence of different
15519 byte length even if that target charcter is an ASCII.
15520 (simple_search): Fix calculation of byte length of matched text.
15521 (boyer_moore): Fix handling of case-equivalent multibyte characters.
15522
15523 2008-02-01 Kenichi Handa <handa@m17n.org>
15524
15525 * coding.c (decode_coding): Fix handling of invalid bytes.
15526
15527 2008-02-01 Kenichi Handa <handa@m17n.org>
15528
15529 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
15530 Unicode characters.
15531
15532 2008-02-01 Kenichi Handa <handa@m17n.org>
15533
15534 * coding.c (encode_coding_object): If a pre-write-conversion
15535 function makes a new buffer, kill it.
15536
15537 2008-02-01 Kenichi Handa <handa@m17n.org>
15538
15539 * coding.c (QCascii_compatible_p): New variable.
15540 (syms_of_coding): Initialize it.
15541 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
15542 calling string_char.
15543 (record_conversion_result): Add `default:' case.
15544 (coding_charset_list): Delete unused variable `coding_type'.
15545 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
15546 property in the plist of the coding system.
15547 (Fcoding_system_put): Check QCascii_compatible_p.
15548
15549 2008-02-01 Miles Bader <miles@gnu.org>
15550
15551 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
15552 removed calculation of frame `f', as it's now used.
15553
15554 2008-02-01 Kenichi Handa <handa@m17n.org>
15555
15556 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
15557 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
15558 (UNIDATA): New variable.
15559 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
15560 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
15561 $(RUN_TEMACS) unconditionally.
15562
15563 2008-02-01 Kenichi Handa <handa@m17n.org>
15564
15565 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
15566 (admindir): New variable.
15567 ($(lispsource)international/charprop.el): New target.
15568
15569 2008-02-01 Miles Bader <miles@gnu.org>
15570
15571 * character.c (chars-in-region): Remove obsolete function.
15572 (syms_of_character): Remove its initialization.
15573
15574 2008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
15575
15576 * w32select.c (validate_coding_system)
15577 (setup_windows_coding_system): New functions.
15578 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
15579 setup_windows_coding_system.
15580 (setup_config, Fw32_get_clipboard_data): Use
15581 validate_coding_system.
15582 (Fx_selection_exists): Move call to setup_config to a place
15583 where signals are allowed.
15584
15585 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
15586 (Fcheck_coding_system): Add declarations.
15587
15588 2008-02-01 Kenichi Handa <handa@m17n.org>
15589
15590 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
15591
15592 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15593
15594 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
15595 string as the second argument for x_new_fontset.
15596
15597 2008-02-01 Kenichi Handa <handa@m17n.org>
15598
15599 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
15600 (encode_coding_object): Use safe_call instead of call2.
15601
15602 2008-02-01 Kenichi Handa <handa@m17n.org>
15603
15604 * fontset.c (Fset_fontset_font): Check family element of a given vector.
15605
15606 * Makefile.in (lisp): Include charprop.el.
15607
15608 2008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15609
15610 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
15611 Not sure if it's unnecessary.
15612
15613 2008-02-01 Steven Tamm <steventamm@mac.com>
15614
15615 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
15616 some possibly unnecessary fontset checking code that crashed
15617 when creating a new frame.
15618
15619 2008-02-01 Kenichi Handa <handa@m17n.org>
15620
15621 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
15622 lookup_face.
15623
15624 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
15625
15626 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
15627
15628 2008-02-01 Kenichi Handa <handa@m17n.org>
15629
15630 * coding.c: Cancel the change done in HEAD on 2008-02-01.
15631 (coding_charset_list): New function.
15632
15633 * coding.h (coding_charset_list): Extern it.
15634
15635 2008-02-01 Kenichi Handa <handa@m17n.org>
15636
15637 * fontset.c (Fset_fontset_font): Call find_font_encoding with
15638 concatenation of family and registry.
15639
15640 2008-02-01 Kenichi Handa <handa@m17n.org>
15641
15642 * character.h (BYTE8_STRING): Fix typo.
15643
15644 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
15645 string to multibyte (sync to HEAD).
15646
15647 * casefiddle.c (casify_region): Handle changes in byte-length
15648 using replace_range_2 (sync to HEAD).
15649
15650 2008-02-01 Andreas Schwab <schwab@suse.de>
15651
15652 * chartab.c (map_char_table): GCPRO table and arg.
15653
15654 2008-02-01 Kenichi Handa <handa@m17n.org>
15655
15656 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
15657 already at limit.
15658
15659 2008-02-01 Kenichi Handa <handa@m17n.org>
15660
15661 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
15662 instead of fast_c_string_match_ignore_case.
15663 (find_font_encoding): Change argument to Lisp_Object. Use
15664 fast_string_match_ignore_case instead of
15665 fast_c_string_match_ignore_case. Change caller.
15666
15667 2008-02-01 Kenichi Handa <handa@m17n.org>
15668
15669 * xdisp.c (get_next_display_element): In unibyte case, decide to
15670 display in octal form by checking a character by
15671 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
15672
15673 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
15674
15675 * character.c (unibyte_has_multibyte_table): New variable.
15676
15677 * character.h (unibyte_has_multibyte_table): Extern it.
15678 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
15679
15680 2008-02-01 Kenichi Handa <handa@m17n.org>
15681
15682 * coding.c (encode_coding_iso_2022): Fix handling of charset
15683 annotation.
15684
15685 2008-02-01 Kenichi Handa <handa@m17n.org>
15686
15687 * coding.c (setup_coding_system): If coding_system is nil, use
15688 Qundecided.
15689 (Fterminal_coding_system): Return nil if terminal coding system is
15690 `undecided'.
15691 (syms_of_coding): Define coding-system `undecided' here. Setup
15692 terminal_coding as `undecided'.
15693
15694 2008-02-01 Kenichi Handa <handa@m17n.org>
15695
15696 * xdisp.c (message_dolog, set_message_1): Call
15697 unibyte_char_to_multibyte with arg type int.
15698
15699 * lread.c (read1): Fix reading of a char-table.
15700
15701 * print.c (print_object): Include sub char-table in circularities
15702 detection.
15703
15704 2008-02-01 Kenichi Handa <handa@m17n.org>
15705
15706 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
15707 Append the found sequences in car of ARGS instead of prepending.
15708
15709 2008-02-01 Kenichi Handa <handa@m17n.org>
15710
15711 * fileio.c (report_file_error): Make a unibyte string from
15712 strerror (errorno).
15713 (Fsubstitute_in_file_name): Fix the arg to
15714 unibyte_char_to_multibyte. It is evaluated twice.
15715
15716 2008-02-01 Kenichi Handa <handa@m17n.org>
15717
15718 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
15719
15720 2008-02-01 Kenichi Handa <handa@m17n.org>
15721
15722 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
15723 BOM is not found.
15724 (detect_coding, detect_coding_system): Optimization for ISO-2022
15725 when no 8-bit data is found.
15726
15727 2008-02-01 Jason Rumney <jasonr@gnu.org>
15728
15729 * w32fns.c (x_to_w32_font): Update to use new coding struct.
15730
15731 2008-02-01 Kenichi Handa <handa@m17n.org>
15732
15733 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
15734 CHARS.
15735
15736 2008-02-01 Steven Tamm <steventamm@mac.com>
15737
15738 * macterm.c (mac_encode_char): Add charset argument and update
15739 to use encoding_type.
15740 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
15741 switch to pure fontset.
15742 (decode_mac_font_name): Temporarily remove decoding.
15743 (x_font_name_to_mac_font_name): Temporarily remove encoding.
15744 (x_load_font): Temporarily remove encoding.
15745
15746 2008-02-01 Kenichi Handa <handa@m17n.org>
15747
15748 * xfaces.c (Fface_font): If frame is not on a window system,
15749 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
15750 refer to face->font.
15751 (split_font_name_into_vector, build_font_name_from_vector)
15752 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
15753 when HAVE_WINDOW_SYSTEM is defined.
15754
15755 2008-02-01 Kenichi Handa <handa@m17n.org>
15756
15757 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
15758 (x_produce_glyphs): Fix setting of members of cmp in case
15759 cmp->glyph_len is zero.
15760
15761 * fontset.c (Fset_fontset_font): Fix docstring.
15762 (Ffontset_info): Make it backward compatible. New arg ALL.
15763
15764 2008-02-01 Kim F. Storm <storm@cua.dk>
15765
15766 * process.c (read_process_output): Grow decoding_buf when needed;
15767 this could cause a crash in allocate_string and compact_small_strings.
15768
15769 2008-02-01 Kenichi Handa <handa@m17n.org>
15770
15771 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
15772
15773 2008-02-01 Kenichi Handa <handa@m17n.org>
15774
15775 * coding.c (setup_coding_system): Set coding->common_flags
15776 correctly for raw-text.
15777 (consume_chars): On encoding unibyte text by raw-text, don't check
15778 multibyte form.
15779 (encode_coding): On encoding by raw-text, never use translation tables.
15780
15781 * fileio.c (e_write): Short cut for the case of no encoding.
15782
15783 2008-02-01 Kenichi Handa <handa@m17n.org>
15784
15785 * coding.c (detect_coding, detect_coding_system): Delete unused
15786 variables.
15787
15788 2008-02-01 Kenichi Handa <handa@m17n.org>
15789
15790 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
15791 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
15792
15793 2008-02-01 Kenichi Handa <handa@m17n.org>
15794
15795 * coding.c (Ffind_coding_systems_region_internal): Include
15796 raw-text and no-conversion in the result.
15797
15798 2008-02-01 Kenichi Handa <handa@m17n.org>
15799
15800 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
15801 (load_font_get_repertory): Delete unnecessary check of ENCODING of
15802 FONT_DEF.
15803 (font_def_arg, add_arg, from_arg, to_arg): New args.
15804 (set_fontset_font): Change argument.
15805 (Fset_fontset_font): Fix for the case that TARGET is a script
15806 name and charset name.
15807 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
15808
15809 2008-02-01 Kenichi Handa <handa@m17n.org>
15810
15811 * fontset.c (fontset_font): Rename from fontset_face. Change return
15812 value.
15813 (face_suitable_for_char_p, face_for_char): Adjust for the change
15814 of fontset_font.
15815 (make_fontset_for_ascii_face): Fix setting of the fontset element
15816 for ASCII.
15817 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
15818 to get a font name.
15819 (Ffontset_info): Adjust for the change of fontset_font.
15820
15821 * coding.c (emacs_mule_char): Check invalid code more rigidly.
15822
15823 * character.h (LEADING_CODE_LATIN_1_MIN)
15824 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
15825
15826 2008-02-01 Kenichi Handa <handa@m17n.org>
15827
15828 * editfns.c (check_translation): New function.
15829 (Ftranslate_region_internal): Handle M:N mapping.
15830
15831 2008-02-01 Kenichi Handa <handa@m17n.org>
15832
15833 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
15834
15835 2008-02-01 Kenichi Handa <handa@m17n.org>
15836
15837 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
15838 goto invalid_code.
15839 (decode_coding_iso_2022): Fix handling of invalid designation.
15840
15841 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
15842 after calling code_conversion_save.
15843
15844 2008-02-01 Kenichi Handa <handa@m17n.org>
15845
15846 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
15847
15848 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
15849
15850 * fontset.c: Include "intervals.h".
15851 (fontset_face): Fix comparing of Lisp_Objects.
15852 (free_face_fontset, new_fontset_from_font_name): Fix
15853 Lisp_Object/int mixup.
15854
15855 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
15856
15857 * coding.c: Add many prototypes for static functions.
15858 (get_translation_table): Allow max_lookup to be NULL.
15859 (decode_coding, Ffind_coding_systems_region_internal)
15860 (Funencodable_char_position, Fcheck_coding_systems_region): Call
15861 get_translation_table with max_lookup NULL.
15862
15863 2008-02-01 Kenichi Handa <handa@m17n.org>
15864
15865 * coding.c (get_translation_table): Declare it as Lisp_Object.
15866 (LOOKUP_TRANSLATION_TABLE): New macro.
15867 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
15868 instead of CHAR_TABLE_REF.
15869
15870 2008-02-01 Kenichi Handa <handa@m17n.org>
15871
15872 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
15873 annotation data format.
15874 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
15875 Change arguments FROM and TO to single argument NCHARS. Change caller.
15876 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
15877 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15878 (decode_coding_ccl, decode_coding_charset): Pay attention to
15879 coding->charbuf_used.
15880 (get_translation): New function.
15881 (produce_chars): New arguments translation_table and last_block.
15882 Translate characters here. Return number of carryover chars.
15883 Change caller.
15884 (produce_composition): New argument pos. Change caller.
15885 Adjust for the change of annotation data format.
15886 (produce_charset, produce_annotation): Likewise.
15887 (decode_coding, encode_coding): Don't call translate_chars.
15888 (consume_chars): New arg translation_table. Change caller.
15889 (translate_chars): Delete.
15890 (syms_of_coding): Make translation-table's number of extra slots 2.
15891
15892 2008-02-01 Kenichi Handa <handa@m17n.org>
15893
15894 * search.c (simple_search): Fix setting this_pos_byte in backward
15895 search.
15896
15897 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
15898 byte sequence.
15899 (detect_coding_ccl): Fix setting of the variable valids.
15900
15901 2008-02-01 Kenichi Handa <handa@m17n.org>
15902
15903 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
15904
15905 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
15906
15907 * editfns.c (Ftranslate_region_internal): Rename from
15908 Ftranslate_region. Accept a char-table in TABLE.
15909 (syms_of_editfns): Defsubr Stranslate_region_internal.
15910
15911 * xfaces.c (set_lface_from_font_name): If a font is specified for
15912 a frame, generate a fontset from the font.
15913 (build_scalable_font_name): If the scalable font is requested for
15914 a specific size, don't change that size.
15915 (try_font_list): Try a scalable font also in the case that a
15916 pattern string is specified.
15917
15918 2008-02-01 Kenichi Handa <handa@m17n.org>
15919
15920 * xfaces.c (Fface_font): New optional arg CHARACTER.
15921
15922 2008-02-01 Kenichi Handa <handa@m17n.org>
15923
15924 * charset.h (CHARSET_OFFSET): New macro.
15925
15926 2008-02-01 Kenichi Handa <handa@m17n.org>
15927
15928 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
15929
15930 * fontset.c (fontset_face): Handle the case that repertory is a
15931 char-table.
15932 (find_font_encoding): Return nil for unknown encoding.
15933 (Fset_fontset_font): Ignore a font of unknown encoding.
15934
15935 2008-02-01 Kenichi Handa <handa@m17n.org>
15936
15937 * keymap.c (describe_vector): Handle default value of a char table.
15938
15939 * fontset.c (fontset_face): Handle fallback fonts correctly.
15940 (Ffontset_info): Return infomation about fallback fonts.
15941
15942 2008-02-01 Kenichi Handa <handa@m17n.org>
15943
15944 * fontset.c (FONTSET_DEFAULT): New macro.
15945 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
15946 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
15947 the case that it is nil.
15948 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
15949 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
15950
15951 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
15952 subset or superset.
15953
15954 2008-02-01 Kenichi Handa <handa@m17n.org>
15955
15956 * emacs.c (main): Call init_charset after syms_of_XXX.
15957
15958 * charset.c (Vcharset_map_directory): Delete.
15959 (Vcharset_map_path): New variable.
15960 (load_charset_map_from_file): Use Vcharset_map_path instead.
15961 (init_charset): Initialize Vcharset_map_path.
15962 (syms_of_charset): Delete declaration of "charset-map-directory",
15963 add declaration of "charset-map-path".
15964
15965 2008-02-01 Kenichi Handa <handa@m17n.org>
15966
15967 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
15968 ASCII only string.
15969
15970 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
15971
15972 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
15973 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
15974
15975 2008-02-01 Kenichi Handa <handa@m17n.org>
15976
15977 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
15978
15979 * coding.c (QCmnemonic, QCdefalut_char)
15980 (QCdecode_translation_table, QCencode_translation_table)
15981 (QCpost_read_conversion, QCpre_write_conversion): New variables.
15982 (get_translation_table): Return a list of translation tables if
15983 necessary.
15984 (decode_coding): Call get_translation_table with ENCODEP 0.
15985 (char_encodable_p): If translation_table is non-nil, always call
15986 translate_char.
15987 (Fdefine_coding_system_internal): Accept list of translation
15988 tables as :encode-translation-table and :decode-translation-table.
15989 (Fcoding_system_put): New function.
15990 (syms_of_coding): Declare new symbols. Defsubr
15991 Scoding_system_put.
15992 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
15993 typically JISX0212.
15994
15995 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
15996 when the charset is superset type.
15997
15998 * character.c (translate_char): Accept list of translation tables.
15999
16000 2008-02-01 Kenichi Handa <handa@m17n.org>
16001
16002 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
16003 (CODING_ATTR_TRANS_TBL): New macro.
16004
16005 * coding.c (get_translation_table): New function.
16006 (translate_chars): Fix the bug of skipping annotation data.
16007 (decode_coding, encode_coding): Utilize get_translation_table.
16008 (char_encodable_p, Funencodable_char_position): Translate char if
16009 necessary.
16010 (Ffind_coding_systems_region_internal)
16011 (Fcheck_coding_systems_region): Setup translation table for encode
16012 in a coding system attribute vector in advance.
16013 (Fdefine_coding_system_internal): Allow a symbol as translation
16014 table. For shift-jis type coding system, allow 4th charset.
16015
16016 2008-02-01 Kenichi Handa <handa@m17n.org>
16017
16018 * coding.c (decode_coding_sjis): Check the first byte rigidly.
16019
16020 * xdisp.c (get_next_display_element): Pass -1 as POS to
16021 FACE_FOR_CHAR if displaying a C-string.
16022
16023 2008-02-01 Kenichi Handa <handa@m17n.org>
16024
16025 * composite.c (get_composition_id): Handle xoff and yoff in a
16026 composition rule.
16027
16028 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
16029 (struct composition): New member lbearing and rbearing.
16030
16031 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
16032 (x_get_glyph_overhangs): Handle a composition glyph.
16033 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
16034
16035 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
16036 composition glyph.
16037
16038 2008-02-01 Kenichi Handa <handa@m17n.org>
16039
16040 * print.c: Include charset.h.
16041 (Vprint_charset_text_property): New variable.
16042 (Qdefault): Extern it.
16043 (PRINT_STRING_NON_CHARSET_FOUND)
16044 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
16045 (print_check_string_result): New variable.
16046 (print_check_string_charset_prop): New function.
16047 (print_prune_charset_plist): New variable.
16048 (print_prune_string_charset): New function.
16049 (print_object): Call print_prune_string_charset if
16050 Vprint_charset_text_property is not t.
16051 (print_interval): Print nothing if interval->plist is nil.
16052 (syms_of_print): Declare Vprint_charset_text_property as a lisp
16053 variable. Init and staticpro print_prune_charset_plist.
16054
16055 2008-02-01 Kenichi Handa <handa@m17n.org>
16056
16057 * fontset.c (new_fontset_from_font_name): Use the specified font
16058 for all characters in the new fontset.
16059
16060 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16061 OBJECT args.
16062
16063 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
16064 OBJECT args for composition too.
16065
16066 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16067 OBJECT args.
16068
16069 2008-02-01 Kenichi Handa <handa@m17n.org>
16070
16071 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
16072
16073 * fontset.c (reorder_font_vector): Adjust for the change of
16074 FONT_DEF format.
16075 (fontset_face): New arg id. Change caller.
16076 (face_for_char): New args pos and object.
16077 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
16078 (fs_query_fontset): Check NAME by Fassoc too.
16079 (Fset_fontset_font): Allow non-XLFD font name.
16080 (Ffontset_info): Adjust for the change of FONT_DEF format.
16081
16082 * fontset.h (face_for_char): Adjust prototype.
16083
16084 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
16085 (append_space, extend_face_to_end_of_line)
16086 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
16087 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
16088
16089 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
16090 POS and OBJECT args.
16091
16092 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
16093 POS and OBJECT args.
16094
16095 2008-02-01 Jason Rumney <jasonr@gnu.org>
16096
16097 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
16098 of GlobalAlloc'ed memory.
16099
16100 2008-02-01 Kenichi Handa <handa@m17n.org>
16101
16102 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
16103
16104 * charset.h (charset_table_used): Delete extern.
16105
16106 * charset.c (charset_table_used): Make it static.
16107 (map_charset_chars): Fix args to c_function with.
16108
16109 * chartab.c (map_sub_char_table_for_charset): Fix args to
16110 c_function with.
16111
16112 * coding.h (enum coding_result_code): Delete
16113 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
16114
16115 * coding.c (Qinsufficient_source, Qinconsistent_eol)
16116 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
16117 (Vlast_code_conversion_error): New variables.
16118 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
16119 (ONE_MORE_BYTE): Record error if any instead of signaling an
16120 error. If non-ASCII multibyte char is found, return the negative
16121 value of the code. All callers changed to check it.
16122 (ONE_MORE_BYTE_NO_CHECK): Likewise.
16123 (record_conversion_result): New function. Change all codes setting
16124 coding->result to call this function.
16125 (detect_coding_utf_8, decode_coding_utf_8)
16126 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
16127 Don't use the local variable incomplete.
16128 (emacs_mule_char): Change the second arg to `const'.
16129 (decode_coding): Fix of flushing out unprocessed data.
16130 (make_conversion_work_buffer): Fix making of a work buffer.
16131 (decode_coding_object): Return coding->dst_object.
16132
16133 * fontset.c (set_fontset_font): Fix args.
16134
16135 * lisp.h (CHARACTERBITS): Define as 22.
16136
16137 * process.c (send_process): Be sure to set coding->src_multibyte.
16138
16139 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
16140
16141 2008-02-01 Kenichi Handa <handa@m17n.org>
16142
16143 * xdisp.c (handle_auto_composed_prop): Give limit to
16144 Fnext_single_char_property_change.
16145
16146 2008-02-01 Kenichi Handa <handa@m17n.org>
16147
16148 * composite.c (syms_of_composite): Don't make the composition hash
16149 table weak.
16150
16151 * fontset.c (Fset_fontset_font): Fix docstring.
16152
16153 * lisp.h (detect_coding_system): Adjust prototype.
16154
16155 * fileio.c (kill_workbuf_unwind): Delete this function.
16156 (Finsert_file_contents): Adjust the call of detect_coding_system.
16157 Get conversion_buffer by code_conversion_save. Use the macro
16158 CODING_MAY_REQUIRE_DECODING. After decoding, update
16159 coding_system.
16160
16161 * coding.h (make_conversion_work_buffer): Delete extern.
16162 (code_conversion_save): Extern it.
16163
16164 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
16165 (CODING_GET_INFO): Delete argument eol_type. Change callers.
16166 (decode_coding_utf_8): Don't do eol converion.
16167 (detect_coding_utf_16): Check coding->src_chars, not
16168 coding->src_bytes. Add heuristics for those that have no signature.
16169 (decode_coding_emacs_mule, decode_coding_iso_2022)
16170 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16171 Don't do eol converion.
16172 (adjust_coding_eol_type): Return a new coding system.
16173 (detect_coding): Don't detect eol. Fix for utf-16 detection.
16174 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
16175 each change.
16176 (decode_coding): Pay attention to undo_list. Do eol conversion for
16177 all types of coding-systems (if necessary).
16178 (Vcode_conversion_work_buf_list): Delete it.
16179 (Vcode_conversion_reused_workbuf): Rename from
16180 Vcode_conversion_reused_work_buf.
16181 (Vcode_conversion_workbuf_name): New variable.
16182 (reused_workbuf_in_use): New variable.
16183 (make_conversion_work_buffer): Delete the arg DEPTH.
16184 (code_conversion_restore): Change argument to cons.
16185 (code_conversion_save): Delete the argument BUFFER. Change callers.
16186 (detect_coding_system): New argument src_chars. Change callers.
16187 Fix for utf-16 detection.
16188 (init_coding_once): Don't use ISO_carriage_return.
16189 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
16190 reused_workbuf_in_use.
16191
16192 2008-02-01 Kenichi Handa <handa@m17n.org>
16193
16194 * keymap.c (store_in_keymap): Pay attention to the case that idx
16195 is a cons specifying a character range.
16196
16197 2008-02-01 Kenichi Handa <handa@m17n.org>
16198
16199 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
16200 HANDLED_RECOMPUTE_PROPS.
16201
16202 * coding.c (Fdefine_coding_system_internal): Fix checking of
16203 ascii compatibility.
16204
16205 2008-02-01 Kenichi Handa <handa@m17n.org>
16206
16207 * charset.c (find_charsets_in_text): Delete unused locale variable.
16208 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
16209
16210 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
16211 Resync charset_list to Vemacs_mule_charset_list.
16212
16213 * keymap.c (store_in_keymap): Pay attention to the case that idx
16214 is a cons specifying a character range.
16215
16216 2008-02-01 Kenichi Handa <handa@m17n.org>
16217
16218 * composite.c (update_compositions): Bind inhibit-read-only, etc
16219 to t before calling remove-list-of-text-properties.
16220
16221 * print.c (print_object): Always print ASCII chars as is.
16222
16223 2008-02-01 Kenichi Handa <handa@m17n.org>
16224
16225 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
16226
16227 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
16228 is a char table.
16229
16230 2008-02-01 Kenichi Handa <handa@m17n.org>
16231
16232 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
16233
16234 2008-02-01 Kenichi Handa <handa@m17n.org>
16235
16236 * xfaces.c (set_lface_from_font_name): Fix for the case that
16237 FONTNAME is not fontset name.
16238
16239 2008-02-01 Kenichi Handa <handa@m17n.org>
16240
16241 * fns.c (base64_encode_1): Fix previous change.
16242
16243 2008-02-01 Kenichi Handa <handa@m17n.org>
16244
16245 * fontset.c (set_fontset_font): New function.
16246 (Fset_fontset_font): If a font is specified for a charset, use
16247 map_charset_chars to store the font spec in a fontset.
16248
16249 2008-02-01 Kenichi Handa <handa@m17n.org>
16250
16251 * fontset.c (fontset_face): Create a fallback fontset on demand.
16252 (make_fontset): Don't create a fallback fontset here.
16253 (free_face_fontset): Free a fallback fontset (if any) too.
16254 (n_auto_fontsets): Delete this variable.
16255 (auto_fontset_alist): New variable.
16256 (new_fontset_from_font_name): Check auto_fontset_alist.
16257 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
16258 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
16259 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
16260 Defsubr Sfontset_list_all.
16261
16262 2008-02-01 Kenichi Handa <handa@m17n.org>
16263
16264 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
16265
16266 2008-02-01 Kenichi Handa <handa@m17n.org>
16267
16268 * fontset.c (Fnew_fontset): Check NAME more rigidly.
16269
16270 2008-02-01 Kenichi Handa <handa@m17n.org>
16271
16272 * editfns.c (Fgoto_char): Fix docstring.
16273
16274 2008-02-01 Kenichi Handa <handa@m17n.org>
16275
16276 * insdel.c (insert_from_gap): Adjust intervals correctly.
16277
16278 2008-02-01 Jason Rumney <jasonr@gnu.org>
16279
16280 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
16281 (pfnGetFontUnicodeRanges): New dynamically loaded function.
16282 (w32_initialize): Try to load it.
16283 (x_get_font_repertory): Use it if available.
16284 (w32_encode_char): Add shortcut for unicode output.
16285
16286 * w32fns.c (w32_load_system_font): Default charset to -1.
16287 (x_to_w32_charset): Match all fonts for unicode.
16288 (w32_to_x_charset): New parameter matching. Don't return partial
16289 or wildcard charsets.
16290 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
16291 (w32_codepage_for_font): Return CP_UNICODE for unicode.
16292 (w32_to_x_font): Match charset to real charset.
16293 (enum_font_cb2): Always list unicode versions.
16294
16295 * makefile.w32-in (temacs): Increase EMHEAP.
16296
16297 2008-02-01 Jason Rumney <jasonr@gnu.org>
16298
16299 * w32term.c (w32_encode_char): New charset parameter.
16300 font_info.encoding becomes encoding_type.
16301 (x_get_font_repertory): New function. Warning: stub only!
16302 (x_new_font): Return quickly if font already set.
16303 (x_new_fontset): fontsetname parameter is Lisp_Object.
16304 Use new fs_query_fontset. Try new_fontset_from_font_name.
16305 Use fontset_name for return value.
16306
16307 * w32term.h: Declare x_get_font_repertory.
16308
16309 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
16310 place of find_charset_in_text. Use encode_coding_object in place
16311 of encode_coding.
16312 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
16313 decode_coding.
16314
16315 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
16316 of x_new_fontset.
16317 (w32_load_system_font): Initialize charset as unicode.
16318 font_info.encoding becomes encoding_type.
16319 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
16320 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
16321 (syms_of_w32fns): Set get_font_repertory_func.
16322
16323 * w32console.c: Include character.h. Use terminal_encode_buffer
16324 from term.c.
16325 (write_glyphs): Use new version of encode_terminal_code. Use
16326 encode_coding_object in place of encode_coding.
16327
16328 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
16329 encoding becomes encoding_type.
16330
16331 * term.c (terminal_encode_buffer): Make externally visible.
16332
16333 * makefile.w32-in: Add character.h dependancies.
16334 (character.o, chartab.o): New targets.
16335
16336 2008-02-01 Kenichi Handa <handa@m17n.org>
16337
16338 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
16339 CODING_ID_EOL_TYPE.
16340
16341 2008-02-01 Andreas Schwab <schwab@suse.de>
16342
16343 * coding.c (produce_chars): Revert last change.
16344
16345 2008-02-01 Kenichi Handa <handa@m17n.org>
16346
16347 * charset.h (charset_unicode): Extern it.
16348
16349 * charset.c (string_xstring_p): Check by (C >= 0x100).
16350 (find_charsets_in_text): Change format of the arc CHARSETS. New
16351 arg MULTIBYTE.
16352 (Ffind_charset_region, Ffind_charset_string): Adjust for the
16353 change of find_charsets_in_text.
16354 (Fsplit_char): Fix doc. Never return unknown.
16355
16356 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
16357
16358 * coding.c (Fdefine_coding_system_alias): Update
16359 Vcoding_system_list.
16360
16361 * fontset.c (load_font_get_repertory): Pay attention to the case
16362 that ENCODING of a font is specified by a char-table.
16363
16364 * xterm.c (x_get_font_repertory): Handle the case that the
16365 encoding of font is other than Unicode.
16366
16367 2008-02-01 Kenichi Handa <handa@m17n.org>
16368
16369 * term.c (encode_terminal_code): Don't handle glyph-table. Check
16370 if a character is encodable by the terminal coding system. If
16371 not, produces proper number of `?'s. Update
16372 terminal_encode_buffer and terminal_encode_buf_size if necessary.
16373 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
16374
16375 2008-02-01 Kenichi Handa <handa@m17n.org>
16376
16377 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
16378 variables.
16379 (encode_terminal_code): Change argument. Encode multiple
16380 characters at once. Store the result of encoding in
16381 terminal_encode_buffer.
16382 (write_glyphs, insert_glyphs): Adjust for the change of
16383 encode_terminal_code.
16384 (term_init): Initialize terminal_encode_buffer and
16385 terminal_encode_buf_size.
16386
16387 * coding.c (consume_chars): If coding->src_object is nil, don't
16388 check annotation.
16389
16390 2008-02-01 Kenichi Handa <handa@m17n.org>
16391
16392 * character.c (char_string): Use ASCII_CHAR_P instead of
16393 SINGLE_BYTE_CHAR_P.
16394
16395 2008-02-01 Kenichi Handa <handa@m17n.org>
16396
16397 * xdisp.c (handle_auto_composed_prop): Check if the last
16398 characters of auto-composed region is newly composed with the
16399 following characters.
16400 (handle_composition_prop): Fix checking of point being inside
16401 composition.
16402
16403 2008-02-01 Kenichi Handa <handa@m17n.org>
16404
16405 * fns.c (concat): Don't change multibyteness of the result by
16406 concatenating an 8-bit character.
16407
16408 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
16409 multibyteness of the result when newelt is an 8-bit character.
16410
16411 2008-02-01 Dave Love <fx@gnu.org>
16412
16413 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
16414 EMACS_INT.
16415
16416 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
16417
16418 * xfaces.c (face_numeric_value): Declare dim size_t.
16419 (Finternal_lisp_face_equal_p): Remove unused f.
16420
16421 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
16422 (MATRIX_ROW): Remove unused vars.
16423 (draw_glyphs, x_insert_glyphs, fast_find_position)
16424 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
16425 byte/char counts.
16426
16427 * regex.c (regex_compile): Remove unused var.
16428
16429 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16430
16431 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
16432 (Faccessible_keymaps, where_is_internal): Remove unused vars.
16433
16434 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
16435
16436 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
16437
16438 * fileio.c (Fwrite_region): Remove unused var.
16439
16440 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
16441 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
16442
16443 * composite.c (Fremove_list_of_text_properties): Declare.
16444
16445 * coding.c (inhibit_pre_post_conversion): Remove (unused).
16446 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
16447 (coding_inherit_eol_type): Remove unused attrs.
16448 (detect_coding): Cast arg of detect_eol.
16449
16450 * charset.c (syms_of_charset): Remove unused var p.
16451 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
16452 byte/char counts.
16453
16454 * casetab.c (set_case_table): Remove unused var.
16455
16456 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
16457 unused vars.
16458
16459 2008-02-01 Dave Love <fx@gnu.org>
16460
16461 * xterm.c (x_bitmap_mask): Declare.
16462
16463 2008-02-01 Dave Love <fx@gnu.org>
16464
16465 * xterm.c (x_term_init): Fix type error.
16466
16467 * lisp.h: Add Funibyte_char_to_multibyte.
16468
16469 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
16470 (Fset_coding_system_priority): Doc fix.
16471
16472 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
16473
16474 * indent.c (check_composition): Make start and end EMACS_INT.
16475
16476 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
16477
16478 * xdisp.c (handle_composition_prop, check_point_in_composition):
16479 Make buffer positions EMACS_INT.
16480
16481 * composite.c (find_composition, run_composition_function)
16482 (update_compositions, Ffind_composition_internal): Make buffer
16483 positions EMACS_INT.
16484
16485 * composite.h (find_composition, update_compositions): Make
16486 position args EMACS_INT.
16487
16488 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
16489
16490 * intervals.c (get_property_and_range):
16491 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
16492
16493 * unexalpha.c: Don't include varargs.h.
16494
16495 2008-02-01 Dave Love <fx@gnu.org>
16496
16497 * coding.h (ENCODE_UTF_8): New.
16498
16499 * Makefile.in (gtkutil.o): Depend on coding.h.
16500
16501 * coding.c (Fset_coding_system_priority): Doc fix.
16502
16503 2008-02-01 Kenichi Handa <handa@m17n.org>
16504
16505 * fileio.c (Finsert_file_contents): Call setup_coding_system in
16506 the case of auto saving.
16507
16508 2008-02-01 Andreas Schwab <schwab@suse.de>
16509
16510 * chartab.c (map_char_table, map_char_table_for_charset): Protect
16511 `range' from GC.
16512
16513 2008-02-01 Kenichi Handa <handa@m17n.org>
16514
16515 * coding.c (decode_coding_sjis): Check bytes more rigidly.
16516
16517 2008-02-01 Kenichi Handa <handa@m17n.org>
16518
16519 * fileio.c (choose_write_coding_system): Return a decided coding system.
16520 (Fwrite_region): Set Vlast_coding_system_used to the return value
16521 of choose_write_coding_system.
16522
16523 2008-02-01 Kenichi Handa <handa@m17n.org>
16524
16525 * charset.c (Fset_charset_priority): Pay attention to duplicated
16526 arguments.
16527
16528 * coding.c (QCcategory): New variable.
16529 (syms_of_coding): Defsym it. Set all elements of
16530 Vcoding_category_table and their symbol values.
16531 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
16532 coding-category-XXX, and coding-category-list.
16533 (Fdefine_coding_system_internal): Add category in the plist.
16534
16535 2008-02-01 Kenichi Handa <handa@m17n.org>
16536
16537 * callproc.c (Fcall_process): Handle carryover correctly.
16538
16539 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
16540 (raw_text_coding_system): Check NILP (coding_system).
16541 (coding_inherit_eol_type): Check NILP (coding_system) and
16542 NILP (parent).
16543 (consume_chars): Fix for the case of raw-text.
16544
16545 * process.c (read_process_output): Handle carryover correctly.
16546
16547 2008-02-01 Dave Love <fx@gnu.org>
16548
16549 * regex.c (re_search_2): Fix last change.
16550
16551 2008-02-01 Kenichi Handa <handa@m17n.org>
16552
16553 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
16554 target_multibyte. Even in a unibyte case, return a converted
16555 multibyte char.
16556 (GET_CHAR_AFTER): New macro.
16557 (PATFETCH): Translate via multibyte char.
16558 (HANDLE_UNIBYTE_RANGE): Delete this macro.
16559 (SETUP_MULTIBYTE_RANGE): New macro.
16560 (regex_compile): Setup compiled code so that its multibyteness
16561 matches that of a target. Fix the handling of "[X-YZ]" using
16562 SETUP_MULTIBYTE_RANGE.
16563 (analyse_first) <charset>: For filling fastmap for all multibyte
16564 characters, don't check by BASE_LEADING_CODE_P.
16565 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
16566 the same as RE_MULTIBYTE_P (bufp) now.
16567 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
16568 (TARGET_CHAR_AND_LENGTH): Delete this macro.
16569 (TRANSLATE_VIA_MULTIBYTE): New macro.
16570 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
16571 It is the same as RE_MULTIBYTE_P (bufp) now.
16572 <exactn>: Translate via multibyte.
16573 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
16574 translate it.
16575 <charset, charset_not>: Fetch a character by
16576 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
16577 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
16578 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
16579 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
16580 by GET_CHAR_AFTER.
16581 (bcmp_translate): Likewise.
16582
16583 * search.c (compile_pattern): Check the member target_multibyte,
16584 not the member multibyte of buf.
16585
16586 * lread.c (read1): While reading a string, set force_singlebyte
16587 and force_multibyte correctly.
16588
16589 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
16590 up of unibyte_to_multibyte_table.
16591
16592 2008-02-01 Kenichi Handa <handa@m17n.org>
16593
16594 * coding.c (setup_coding_system): If coding has
16595 post-read-conversion or pre-write-conversion, set
16596 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
16597 respectively.
16598 (decode_coding_gap): Run post-read-conversion if any.
16599
16600 * fileio.c (Finsert_file_contents): Even if we read into a
16601 unibyte buffer, check if we must decode the result or not.
16602
16603 2008-02-01 Kenichi Handa <handa@m17n.org>
16604
16605 * coding.c (make_conversion_work_buffer): Change the work buffer
16606 name to the same one as that of Emacs 21.
16607
16608 2008-02-01 Kenichi Handa <handa@m17n.org>
16609
16610 * coding.h (make_conversion_work_buffer): Adjust prototype.
16611 (code_conversion_restore): Don't extern it.
16612
16613 * coding.c (detected_mask): Delete unused variable.
16614 (decode_coding_iso_2022): Pay attention to the byte sequence of
16615 CTEXT extended segment, and retain those bytes as is.
16616 (decode_coding_ccl): Delete unused variable `valids'.
16617 (setup_coding_system): Delete unused variable `category'.
16618 (consume_chars): Delete unused variable `category'. Make it work
16619 for non-multibyte case.
16620 (make_conversion_work_buffer): Change argument.
16621 (saved_coding): Delete unused variable.
16622 (code_conversion_restore): Don't check saved_coding->destination.
16623 (code_conversion_save): New function.
16624 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
16625 instead of record_unwind_protect.
16626 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
16627 (detect_coding_system): Delete unused variable `mask'.
16628 (Fdefine_coding_system_internal): Delete unused variable id.
16629
16630 * fileio.c (kill_workbuf_unwind): New function.
16631 (Finsert_file_contents): On replacing, call
16632 make_conversion_work_buffer with correct args, and call
16633 record_unwind_protect with the first arg kill_workbuf_unwind.
16634
16635 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
16636
16637 2008-02-01 Kenichi Handa <handa@m17n.org>
16638
16639 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
16640 (fontset_add): Fix for the case that TO is less than TO1.
16641 (Ffontset_info): Don't use fallback fontset on checking the
16642 default fontset.
16643 (dump_fontset): New function for debugging.
16644
16645 * coding.c (Fdefine_coding_system_internal): Fix for the case that
16646 coding_type is Qcharset.
16647
16648 2008-02-01 Kenichi Handa <handa@m17n.org>
16649
16650 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
16651 (map_char_table): Don't inherit the value from the parent on
16652 initializing VAL. Adjust for the above change.
16653
16654 2008-02-01 Kenichi Handa <handa@m17n.org>
16655
16656 * coding.c (Qsignature, Qendian): Delete these variables.
16657 (syms_of_coding): Don't initialize them.
16658 (CATEGORY_MASK_UTF_16_AUTO): New macro.
16659 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
16660 detect_info->found.
16661 (decode_coding_utf_16): Don't detect BOM here.
16662 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
16663 is NOT utf_16_without_bom.
16664 (setup_coding_system): For a coding system of type utf-16, check
16665 if the attribute :endian is Qbig or not (not nil or not), and set
16666 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
16667 (detect_coding): If coding type is utf-16 and BOM detection is
16668 required, detect it.
16669 (Fdefine_coding_system_internal): For a coding system of type
16670 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
16671
16672 2008-02-01 Kenichi Handa <handa@m17n.org>
16673
16674 * coding.c (coding_set_source): Fix for the case that the current
16675 buffer is different from coding->src_object.
16676 (decode_coding_object): Don't use the conversion work buffer if
16677 DST_OBJECT is a buffer.
16678
16679 2008-02-01 Dave Love <fx@gnu.org>
16680
16681 * lread.c (read_emacs_mule_char) [len==2]: Index
16682 emacs_mule_charset correctly.
16683
16684 2008-02-01 Dave Love <fx@gnu.org>
16685
16686 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
16687 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
16688 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
16689 treated specially.)
16690 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
16691 (detected_mask): Remove Big5 bits.
16692
16693 2008-02-01 Kenichi Handa <handa@m17n.org>
16694
16695 The following changes are to make the font rescaling facility
16696 compatible with Emacs 21.
16697
16698 * xfaces.c (Vface_font_rescale_alist): Rename from
16699 Vface_resizing_fonts.
16700 (struct font_name): Rename member resizing_ratio to rescale_ratio.
16701 (font_rescale_ratio): Rename from font_resizing_ratio.
16702 (split_font_name): Set font->rescale_ratio.
16703 (better_font_p): Pay attention to font->rescale_ratio.
16704 (build_scalable_font_name): Likewise. Change RESX, and RESY
16705 fields.
16706 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
16707
16708 2008-02-01 Kenichi Handa <handa@m17n.org>
16709
16710 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
16711 (Qutf_16_le): Remove these variables.
16712 (syms_of_coding): Don't DEFSYM them.
16713 (decode_coding_utf_16): Fix handling of BOM.
16714 (encode_coding_utf_16): Fix handling of BOM.
16715
16716 2008-02-01 Kenichi Handa <handa@m17n.org>
16717
16718 * fileio.c (Finsert_file_contents): On replacing, before decoding
16719 the file into the work buffer, set point of the work buffer to the end.
16720
16721 2008-02-01 Dave Love <fx@gnu.org>
16722
16723 * coding.c (Fcheck_coding_systems_region): Fix type errors.
16724
16725 2008-02-01 Dave Love <fx@gnu.org>
16726
16727 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16728 and fix C types.
16729
16730 2008-02-01 Kenichi Handa <handa@m17n.org>
16731
16732 * xdisp.c (SKIP_GLYPHS): New macro.
16733 (set_cursor_from_row): Pay attention to string display properties.
16734
16735 * category.c (copy_category_entry): Fix for the case that RANGE
16736 is an integer.
16737
16738 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
16739
16740 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
16741
16742 2008-02-01 Kenichi Handa <handa@m17n.org>
16743
16744 * charset.c (Fcharset_id_internal): New function.
16745 (syms_of_charset): Defsubr it.
16746
16747 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
16748 with the last arg charset_list acquired from coding.
16749 (Fdefine_coding_system_internal): For ccl-based coding system, fix
16750 the attribute coding_attr_ccl_valids.
16751
16752 * coding.h (enum define_coding_ccl_arg_index): Set the first
16753 member coding_arg_ccl_decoder to coding_arg_max.
16754
16755 * ccl.h (ccl_driver): Adjust prototype.
16756
16757 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
16758 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
16759 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
16760 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
16761 last arg Qnil.
16762
16763 2008-02-01 Kenichi Handa <handa@m17n.org>
16764
16765 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
16766 call encode_char.
16767
16768 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
16769
16770 2008-02-01 Dave Love <fx@gnu.org>
16771
16772 * composite.c (syms_of_composite): Make composition_hash_table weak.
16773
16774 2008-02-01 Kenichi Handa <handa@m17n.org>
16775
16776 * dispextern.h (check_face_attributes, generate_ascii_font_name)
16777 (font_name_registry): Don't extern them.
16778 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
16779
16780 * fontset.h (Qfontset): Don't extern it.
16781 (new_fontset_from_font_name): Extern it.
16782
16783 * fontset.c: Give 8 extra slots to fontset objects.
16784 (Qfontset_info): New variable.
16785 (syms_of_fontset): Defsym it.
16786 (FONTSET_FALLBACK): New macro.
16787 (fontset_face): Try also the default fontset.
16788 (make_fontset): Realize a fallback fontset from the default fontset.
16789 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
16790 using split_font_name_into_vector and build_font_name_from_vector.
16791 (Fset_fontset_font): Access the elements of font_spec by enum
16792 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
16793 name by using split_font_name_into_vector.
16794 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
16795 generate a proper font name from the fontset name. Update
16796 Vfontset_alias_alist.
16797 (n_auto_fontsets): New variable.
16798 (new_fontset_from_font_name): New function.
16799 (Ffont_info): Store the information about fonts generated from the
16800 default fontset in the first extra slot of the returned char-table.
16801
16802 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
16803 (font_name_registry): Delete function.
16804 (split_font_name_into_vector): New function.
16805 (build_font_name_from_vector): New function.
16806 (font_list): The argument REGISTRY is now a list of registry names.
16807 (choose_face_font): If we are choosing an ASCII font, and ATTRS
16808 specifies an explicit font name, return the name as is. Make a
16809 list of registy names.
16810
16811 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
16812 of x_new_fontset.
16813 (Fx_create_frame): Don't call x_new_fontset here. Just use
16814 x_list_fonts to check the existence of fonts.
16815
16816 * xterm.h (x_new_fontset): Adjust prototype.
16817
16818 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
16819 string. Use new_fontset_from_font_name to create a fontset from a
16820 font name.
16821
16822 2008-02-01 Kenichi Handa <handa@m17n.org>
16823
16824 * syntax.c (Vfind_word_boundary_function_table): New name for
16825 Vnext_word_boundary_function_table.
16826 (find-word-boundary-function-table): New name for
16827 next-word-boundary-function-table.
16828
16829 2008-02-01 Dave Love <fx@gnu.org>
16830
16831 * Makefile.in: Fix some dependencies.
16832
16833 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
16834 set it to nil before returning.
16835
16836 * composite.c (update_compositions): Fix type error.
16837
16838 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
16839
16840 2008-02-01 Kenichi Handa <handa@m17n.org>
16841
16842 * xterm.c (x_new_font): Optimize for the case that the font is
16843 already set for the frame.
16844
16845 2008-02-01 Kenichi Handa <handa@m17n.org>
16846
16847 * chartab.c (char_table_ascii): Check if the char table contents
16848 is sub-char-table or not.
16849 (char_table_set, char_table_set_range): Fix argument to
16850 char_table_ascii.
16851
16852 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
16853 (detect_coding_utf_8, detect_coding_utf_16)
16854 (detect_coding_emacs_mule, detect_coding_iso_2022)
16855 (detect_coding_sjis, detect_coding_big5)
16856 (detect_coding_ccl, detect_coding_charset): Change argument MASK
16857 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
16858 sequence is valid in this coding system. Change callers.
16859 (MAX_ANNOTATION_LENGTH): New macro.
16860 (ADD_ANNOTATION_DATA): New macro.
16861 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
16862 ADD_ANNOTATION_DATA. Change the format of annotation data.
16863 (ADD_CHARSET_DATA): New macro.
16864 (emacs_mule_char): New argument ID. Change callers.
16865 (decode_coding_emacs_mule, decode_coding_iso_2022)
16866 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16867 Produce charset annotation data in coding->charbuf.
16868 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
16869 to charset annotation data in coding->charbuf.
16870 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
16871 coding->common_flags if the coding system is iso-2022 based and
16872 uses designation.
16873 (produce_composition): Adjust for the new annotation data format.
16874 (produce_charset): New function.
16875 (produce_annotation): Handle charset annotation.
16876 (handle_composition_annotation, handle_charset_annotation): New
16877 functions.
16878 (consume_chars): Handle charset annotation. Utilize the above two
16879 functions.
16880 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
16881 buffer, get the deleted text as a string and set
16882 coding->src_object to that string.
16883 (detect_coding, detect_coding_system): Use the new struct
16884 coding_detection_info.
16885
16886 * coding.h (struct coding_detection_info): New structure.
16887 (struct coding_system): Adjust prototype of the member `detector'.
16888 (CODING_ANNOTATE_CHARSET_MASK): New macro.
16889
16890 2008-02-01 Kenichi Handa <handa@m17n.org>
16891
16892 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
16893
16894 2008-02-01 Dave Love <fx@gnu.org>
16895
16896 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
16897 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
16898 to new local and nullify apropos_accumulate before returning.
16899 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
16900
16901 2008-02-01 Kenichi Handa <handa@m17n.org>
16902
16903 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
16904 correctly.
16905
16906 2008-02-01 Dave Love <fx@gnu.org>
16907
16908 * fns.c (Flanginfo): Call synchronize_system_time_locale.
16909
16910 2008-02-01 Kenichi Handa <handa@m17n.org>
16911
16912 The following changes are to make character composition happen
16913 automatically on displaying.
16914
16915 * Makefile.in (lisp, shortlisp): Add composite.elc.
16916
16917 * composite.h (Qauto_composed, Vauto_composition_function)
16918 (Qauto_composition_function): Extern them.
16919
16920 * composite.c (Vcomposition_function_table)
16921 (Qcomposition_function_table): Delete variables.
16922 (Qauto_composed, Vauto_composition_function)
16923 (Qauto_composition_function): New variables.
16924 (run_composition_function): Don't call
16925 compose-chars-after-function.
16926 (update_compositions): Clear `auto-composed' text property.
16927 (compose_chars_in_text): Delete this function.
16928 (syms_of_composite): Staticpro Qauto_composed and
16929 Qauto_composition_function. Declare Vauto_composition_function as
16930 a Lisp variable.
16931
16932 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
16933
16934 * xdisp.c (it_props): Add an entry for Qauto_composed.
16935 (handle_auto_composed_prop): New function.
16936
16937 * xselect.c (selection_data_to_lisp_data): Don't call
16938 compose_chars_in_text.
16939
16940 2008-02-01 Dave Love <fx@gnu.org>
16941
16942 * keyboard.c (read_char): Modify checking around use of
16943 Vkeyboard_translate_table.
16944
16945 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16946 and fix C types.
16947
16948 2008-02-01 Kenichi Handa <handa@m17n.org>
16949
16950 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
16951 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16952 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
16953 the case that the last byte is '\r' correctly.
16954 (decode_coding): Flush out the unprocessed data correctly.
16955 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
16956
16957 2008-02-01 Dave Love <fx@gnu.org>
16958
16959 * xterm.c (XTread_socket): Fix changes for defined keysyms.
16960 Add XK_ISO... case.
16961 (xaw_scroll_callback): Revert last change.
16962
16963 2008-02-01 Kenichi Handa <handa@m17n.org>
16964
16965 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
16966
16967 2008-02-01 Kenichi Handa <handa@m17n.org>
16968
16969 * xfaces.c (Vface_resizing_fonts): New variable.
16970 (struct font_name): New member `resizing_ratio'.
16971 (font_resizing_ratio): New function.
16972 (split_font_name): Set font->resizing_ratio.
16973 (better_font_p): Pay attention to font->resizing_ratio.
16974 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
16975 RESX, and RESY fields.
16976 (try_alternative_families): Try scalable fonts if
16977 Vscalable_fonts_allowed is not Qt.
16978 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
16979
16980 2008-02-01 Dave Love <fx@gnu.org>
16981
16982 * xterm.c (xaw_scroll_callback): Cast correctly.
16983
16984 2008-02-01 Dave Love <fx@gnu.org>
16985
16986 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
16987 (lispy_kana_keys): Comment out.
16988 (make_lispy_event) [XK_kana_A]: Comment out.
16989
16990 * xterm.c (xaw_scroll_callback): Cast call_data.
16991 (XTread_socket): Deal with ASCII keysyms.
16992 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
16993
16994 2008-02-01 Dave Love <fx@gnu.org>
16995
16996 * xterm.c (Vx_keysym_table): New.
16997 (syms_of_xterm): Initialize it.
16998 (XTread_socket): Use it.
16999 From head: Eliminate incorrect optimization that tried to avoid
17000 decoding the output of X*LookupString.
17001 (x_get_font_repertory): Delete charset declaration.
17002
17003 2008-02-01 Kenichi Handa <handa@m17n.org>
17004
17005 * coding.c (detect_coding_charset): If only ASCII bytes are found,
17006 return 0.
17007 (Fdefine_coding_system_internal): Setup
17008 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
17009
17010 2008-02-01 Dave Love <fx@gnu.org>
17011
17012 * coding.c (Fcheck_coding_system): Doc fix.
17013
17014 * editfns.c (Finsert_byte): Return a proper value.
17015
17016 2008-02-01 Kenichi Handa <handa@m17n.org>
17017
17018 * coding.c (decode_coding): Fix args to translate_chars. Pay
17019 attention to Vstandard_translation_table_for_decode.
17020 (encode_coding): Fix args to translate_chars. Pay attention to
17021 Vstandard_translation_table_for_encode.
17022
17023 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
17024 SINGLE_BYTE_CHAR_P.
17025
17026 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
17027 not by SINGLE_BYTE_CHAR_P.
17028
17029 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
17030 SINGLE_BYTE_CHAR_P.
17031
17032 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
17033 SINGLE_BYTE_CHAR_P.
17034
17035 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
17036 by SINGLE_BYTE_CHAR_P.
17037
17038 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
17039 SINGLE_BYTE_CHAR_P.
17040
17041 2008-02-01 Dave Love <fx@gnu.org>
17042
17043 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
17044
17045 2008-02-01 Dave Love <fx@gnu.org>
17046
17047 * fns.c (Flanginfo): Fix typo.
17048
17049 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
17050
17051 2008-02-01 Kenichi Handa <handa@m17n.org>
17052
17053 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
17054 (detect_coding_emacs_mule, detect_coding_iso_2022)
17055 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
17056 incomplete byte sequence. Don't update *mask when correctly detected.
17057 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
17058 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
17059 (detect_coding, detect_coding_system): Adjust for the changes above.
17060
17061 2008-02-01 Kenichi Handa <handa@m17n.org>
17062
17063 * character.c (char_string): Rename from
17064 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
17065 (string_char): Rename from string_char.
17066
17067 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
17068 if C is greater than MAX_3_BYTE_CHAR.
17069 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
17070 string_char instead of string_char_with_unification.
17071
17072 2008-02-01 Dave Love <fx@gnu.org>
17073
17074 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
17075
17076 2008-02-01 Kenichi Handa <handa@m17n.org>
17077
17078 * keymap.c (push_key_description): Pay attention to force_multibyte.
17079
17080 * regex.c (re_search_2): Fix for the case of unibyte buffer.
17081
17082 2008-02-01 Dave Love <fx@gnu.org>
17083
17084 * charset.c (define_charset_internal): Rename `supprementary'.
17085
17086 * Makefile.in (lisp, shortlisp): Remove latin-N.
17087
17088 2008-02-01 Dave Love <fx@gnu.org>
17089
17090 * xfns.c (x_window, x_window): Use use_xim.
17091
17092 * xterm.c (use_xim): Initialize.
17093 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
17094 (x_term_init): Maybe set use_xim.
17095
17096 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
17097
17098 2008-02-01 Kenichi Handa <handa@m17n.org>
17099
17100 * search.c (search_buffer): Fix case-fold-search of multibyte
17101 characters.
17102 (boyer_moore): Rename the last argument to char_high_bits.
17103
17104 2008-02-01 Kenichi Handa <handa@m17n.org>
17105
17106 * xdisp.c (display_string): Fix for the case of zero width glyph.
17107
17108 * xfns.c (x_set_font): Change the error message of the case that
17109 x_new_fontset returns Qt.
17110
17111 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
17112 (Finternal_set_lisp_face_attribute): Use signal_error for the
17113 error of invalid fontset.
17114
17115 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
17116 fontset, return Qt.
17117
17118 2008-02-01 Dave Love <fx@gnu.org>
17119
17120 * unexelf.c (unexec): Make .got handling not SGI-specific.
17121
17122 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
17123
17124 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
17125
17126 * keyboard.c (read_key_sequence): Fix type error.
17127
17128 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
17129 type error.
17130
17131 * fontset.c (fontset_add): Return Lisp_Object.
17132
17133 2008-02-01 Dave Love <fx@gnu.org>
17134
17135 * charset.h (charset_ordered_list_tick): Declare extern.
17136
17137 2008-02-01 Kenichi Handa <handa@m17n.org>
17138
17139 The following changes (and some of 2008-02-01 changes of mine) are
17140 for handling syntax, category, and case conversion for unibyte
17141 characters by converting them to multibyte on the fly. With these
17142 changes, we don't have to setup syntax and case tables for unibyte
17143 characters in each language environment.
17144
17145 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
17146 multibyte if necessary.
17147
17148 * bytecode.c (Fbyte_code): Likewise.
17149
17150 * character.h (LEADING_CODE_LATIN_1_MIN)
17151 (LEADING_CODE_LATIN_1_MAX): New macros.
17152 (unibyte_to_multibyte_table): Extern it.
17153 (unibyte_char_to_multibyte): New macro.
17154 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
17155 (CHAR_LEADING_CODE): New macro.
17156 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
17157
17158 * character.c (unibyte_to_multibyte_table): New variable.
17159 (unibyte_char_to_multibyte): Move to character.h and define as macro.
17160 (multibyte_char_to_unibyte): If C is an eight-bit character,
17161 convert it to the corresponding byte value.
17162
17163 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
17164 not 1, signals an error. Update the elements of
17165 unibyte_to_multibyte_table.
17166 (init_charset_once): Initialize unibyte_to_multibyte_table.
17167 (syms_of_charset): Define the charset `iso-8859-1'.
17168
17169 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
17170 as is without converting it to unibyte. In a unibyte buffer,
17171 convert C to multibyte before checking the syntax.
17172
17173 * lisp.h (unibyte_char_to_multibyte): Delete extern.
17174
17175 * minibuf.c (Fminibuffer_complete_word): Use the macro
17176 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
17177
17178 * regex.h (struct re_pattern_buffer): New member target_multibyte.
17179
17180 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
17181 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
17182 that is zero, convert an eight-bit char to multibyte.
17183 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
17184 non-emacs case.
17185 (PATFETCH): Convert an eight-bit char to multibyte.
17186 (HANDLE_UNIBYTE_RANGE): New macro.
17187 (regex_compile): Setup the compiled pattern for multibyte chars
17188 even if the given regex string is unibyte. Use PATFETCH_RAW
17189 instead of PATFETCH in many places. To handle `charset'
17190 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
17191 only for ASCII chars.
17192 (analyse_first) <exactn>: Simplify because the compiled pattern
17193 is multibyte.
17194 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
17195 <charset>: Use CHAR_LEADING_CODE to get leading codes.
17196 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
17197 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
17198 multibyte always 1.
17199 (re_search_2): In emacs, set the locale variable multibyte to 1,
17200 otherwise to 0. New local variable target_multibyte. Check it
17201 to decide the multibyteness of STR1 and STR2. If
17202 target_multibyte is zero, convert unibyte chars to multibyte
17203 before translating and checking fastmap.
17204 (TARGET_CHAR_AND_LENGTH): New macro.
17205 (re_match_2_internal): In emacs, set the locale variable multibyte
17206 to 1, otherwise to 0. New local variable target_multibyte. Check
17207 it to decide the multibyteness of STR1 and STR2. Use
17208 TARGET_CHAR_AND_LENGTH to fetch a character from D.
17209 <charset, charset_not>: If multibyte is nonzero, check fastmap
17210 only for ASCII chars. Call bcmp_translate with
17211 target_multibyte, not with multibyte.
17212 <begline>: Declare the local variable C as `unsigned'.
17213 (bcmp_translate): Change the last arg name to target_multibyte.
17214
17215 * search.c (compile_pattern_1): Don't adjust the multibyteness of
17216 the regexp pattern and the matching target. Set cp->buf.multibyte
17217 to the multibyteness of the regexp pattern. Set
17218 cp->but.target_multibyte to the multibyteness of the matching target.
17219 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
17220 FETCH_STRING_CHAR_ADVANCE.
17221 (Freplace_match): Convert unibyte chars to multibyte.
17222
17223 * syntax.c (char_quoted, back_comment, scan_words)
17224 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
17225 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
17226 unibyte chars to multibyte.
17227 (skip_chars): Delete the arg syntaxp, and move the code for
17228 handling syntaxes to skip_syntaxes. Change callers.
17229 Fix the case that the multibyteness of STRING and the current
17230 buffer doesn't match.
17231 (skip_syntaxes): New function.
17232 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
17233 SINGLE_BYTE_CHAR_P.
17234
17235 2008-02-01 Kenichi Handa <handa@m17n.org>
17236
17237 * xfaces.c (QCfontset): New variable.
17238 (LFACE_FONTSET): New macro.
17239 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
17240 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
17241 (Finternal_set_lisp_face_attribute)
17242 (Finternal_get_lisp_face_attribute): Handle QCfontset.
17243 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
17244 check also LFACE_FONTSET_INDEX.
17245 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
17246 attrs[LFACE_FONT_INDEX].
17247 (syms_of_xfaces): Intern and staticpro QCfontset.
17248
17249 * dispextern.h (enum lface_attribute_index): New member
17250 LFACE_FONTSET_INDEX.
17251
17252 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
17253
17254 2008-02-01 Kenichi Handa <handa@m17n.org>
17255
17256 * coding.c (coding_set_destination): Fix coding->destination for
17257 the case converting a region.
17258 (encode_coding_utf_8): Encode eight-bit chars as single byte.
17259 (encode_coding_object): Fix coding->dst_pos and
17260 coding->dst_pos_byte for the case converting a region.
17261
17262 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
17263
17264 * character.h (BYTE8_STRING): New macro.
17265
17266 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
17267
17268 2008-02-01 Kenichi Handa <handa@m17n.org>
17269
17270 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
17271 characters by octal form.
17272
17273 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
17274
17275 * buffer.h (_fetch_multibyte_char_len): Delete extern.
17276 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
17277 _fetch_multibyte_char_len.
17278 (FETCH_CHAR_AS_MULTIBYTE): New macro.
17279
17280 * casetab.c (set_canon, set_identity, shuffle): Simplify.
17281
17282 * casefiddle.c (casify_object): Simplify. Handle the case that
17283 the case conversion change the byte length.
17284 (casify_region): Likewise.
17285
17286 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
17287
17288 * character.c (_fetch_multibyte_char_len): Delete this variable.
17289 (syms_of_character): Setup Vprintable_chars.
17290
17291 * editfns.c (Fchar_equal): Fix for the unibyte case.
17292 (Finsert_byte): New function.
17293 (syms_of_editfns): Defsubr it.
17294
17295 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
17296 of direct code 0x3ffff.
17297
17298 * search.c (Freplace_match): Fix for the unibyte case.
17299
17300 2008-02-01 Kenichi Handa <handa@m17n.org>
17301
17302 * lread.c (safe_to_load_p): Fix the logic.
17303
17304 * syntax.c (scan_words): Don't treat characters belonging to
17305 different scripts as constituting a word.
17306
17307 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17308
17309 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
17310
17311 * emacs.c (main): In the case of --unibyte, instead of aborting on
17312 finding non-empty buffer, make it unibyte.
17313
17314 2008-02-01 Kenichi Handa <handa@m17n.org>
17315
17316 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
17317 to create a fontset.
17318
17319 2008-02-01 Dave Love <fx@gnu.org>
17320
17321 * character.c (Funibyte_char_to_multibyte): Doc fix.
17322
17323 * xfns.c [HAVE_STDLIB_H]: Fix last change.
17324
17325 2008-02-01 Kenichi Handa <handa@m17n.org>
17326
17327 * fontset.c (fontset_add): Make the type `int'.
17328 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
17329
17330 * character.c (unibyte_char_to_multibyte)
17331 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
17332 charset_unibyte, not charset_primary.
17333
17334 * charset.h (charset_unibyte): Extern it instead of charset_primary.
17335
17336 * charset.c (charset_unibyte): Rename from charset_primary.
17337 (Funibyte_charset): Rename from Fprimary_charset.
17338 (Fset_unibyte_charset): Rename from Fset_primary_charset.
17339 (syms_of_charset): Adjust for the above changes.
17340
17341 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17342 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17343 it->multibyte_p is zero.
17344
17345 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
17346 Delete extern.
17347
17348 2008-02-01 Kenichi Handa <handa@m17n.org>
17349
17350 * coding.c (Fdefine_coding_system_internal): Fix category setting
17351 for a coding system of type iso-2022.
17352
17353 2008-02-01 Kenichi Handa <handa@m17n.org>
17354
17355 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
17356
17357 2008-02-01 Kenichi Handa <handa@m17n.org>
17358
17359 * syntax.c (Vnext_word_boundary_function_table): New variable.
17360 (next-word-boundary-function-table): Declare it as a Lisp variable
17361 in syms_of_syntax.
17362 (scan_words): Call functions in Vnext_word_boundary_function_table
17363 if any.
17364
17365 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
17366
17367 * fontset.c (fs_load_font): If fontp->charset is not negative,
17368 return fontp without setting its members.
17369
17370 2008-02-01 Dave Love <fx@gnu.org>
17371
17372 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
17373
17374 * m/sparc.h (HAVE_ALLOCA): Delete.
17375
17376 * s/irix6-5.h: Don't include strings.h.
17377 (bcopy, bzero, bcmp): Don't undef.
17378
17379 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
17380
17381 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
17382 (TIOCSIGSEND): Don't test IRIX6.
17383 (bcopy, bzero, bcmp): Define conditionally.
17384
17385 2008-02-01 Kenichi Handa <handa@m17n.org>
17386
17387 * buffer.c (Qas, Qmake, Qto): New variables.
17388 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
17389 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
17390
17391 * callproc.c (Fcall_process): Don't call insert_1_both directly if
17392 we are inserting a process output into a multibyte buffer.
17393
17394 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
17395 multibyte_char_to_unibyte.
17396
17397 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
17398 by the primary charset, make it eight-bit char.
17399 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
17400
17401 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
17402 (charset_8_bit__control, charset_8_bit_graphic)
17403 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
17404 (define_charset_internal): New function.
17405 (syms_of_charset): Call define_charset_internal for pre-defined
17406 charsets.
17407
17408 * charset.h (charset_8_bit): Extern it.
17409
17410 * coding.c (make_conversion_work_buffer): Adjust for the change
17411 of Fset_buffer_multibyte.
17412 (encode_coding_raw_text): Increment p0 in the loop.
17413
17414 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
17415
17416 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
17417 for the change of Fset_buffer_multibyte.
17418
17419 * fns.c (Fstring_to_multibyte): New function.
17420 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
17421
17422 2008-02-01 Dave Love <fx@gnu.org>
17423
17424 * xfns.c (x_put_x_image): Declare args.
17425
17426 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
17427 (try_font_list): Declare an arg.
17428
17429 * xdisp.c (message2_nolog, set_message): Declare an arg.
17430
17431 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
17432
17433 * syntax.c (scan_sexps_forward): Declare an arg.
17434
17435 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
17436 Declare an arg.
17437
17438 * lisp.h (Fnew_fontset): Declare.
17439
17440 * keymap.c (push_key_description): Call CHARACTERP correctly.
17441
17442 * fontset.c (fontset_add): Declare args. Call make_number correctly.
17443 (face_for_char): Delete unused vars.
17444 (Fset_fontset_font): Doc fix. Delete unused vars.
17445
17446 * doc.c (Fsubstitute_command_keys): Delete unused vars.
17447
17448 * composite.c (update_compositions): Declare arg.
17449
17450 * cm.c (calccost, cmgoto): Declare args.
17451
17452 * charset.c: Remove `emacs' conditional. Doc fixes.
17453 (map_char_table_for_charset): Declare.
17454
17455 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
17456
17457 * ccl.c: Remove `emacs' conditional.
17458
17459 2008-02-01 Kenichi Handa <handa@m17n.org>
17460
17461 The following changes are to allow specifying multiple font
17462 patterns for a character range (specified by script or charset).
17463
17464 * Makefile.in (abbrev.o): Depend on syntax.h.
17465 (xfaces.o): Depend on charset.h.
17466
17467 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
17468 SINGLE_BYTE_CHAR_P.
17469
17470 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
17471
17472 * character.h (Vchar_script_table): Extern it.
17473
17474 * character.c (Vscript_alist): Delete.
17475 (Vchar_script_table, Qchar_script_table): New variable.
17476 (syms_of_character): Declare Vchar_script_table as a lisp variable
17477 and initialize it.
17478
17479 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
17480 have property char-table-extra-slots, make no extra slot.
17481
17482 * dispextern.h (struct face): Delete member `charset'.
17483 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
17484 SINGLE_BYTE_CHAR_P.
17485 (choose_face_font, lookup_non_ascii_face, font_name_registry):
17486 Add prototypes.
17487 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
17488 (generate_ascii_font_name): Rename from generate_ascii_font.
17489
17490 * fontset.h (get_font_repertory_func): New prototype.
17491 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
17492 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
17493
17494 * fontset.c (Qprepend, Qappend): New variables.
17495 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
17496 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
17497 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
17498 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
17499 (fontset_ref_and_range, fontset_add, reorder_font_vector)
17500 (load_font_get_repertory): New functions.
17501 (fontset_set): Delete.
17502 (fontset_face): New arg FACE. Return face ID, not face.
17503 Complete re-write to handle new fontset structure. Change caller.
17504 (free_face_fontset): Use ASET istead of AREF (X) = Y.
17505 (face_for_char): Don't call lookup_face.
17506 (make_fontset_for_ascii_face): New arg FACE.
17507 (fs_load_font): New arg CHARSET_ID. Don't check
17508 Vfont_encoding_alist here.
17509 (find_font_encoding): New function.
17510 (list_fontsets): Use STRINGP, not ! NILP.
17511 (accumulate_script_ranges): New function.
17512 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
17513 re-written to handle new fontset structure.
17514 (Ffontset_font): Return a copy of element.
17515 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
17516 docstring of font-encoding-alist.
17517
17518 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
17519 (Fset_fotset_font): Fix arguments to 5.
17520
17521 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
17522
17523 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
17524 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17525 (highlight_trailing_whitespace): Adjust for the change of
17526 lookup_named_face.
17527
17528 * xfaces.c: Include charset.h.
17529 (load_face_font): Delete argument C. Change caller.
17530 (generate_ascii_font_name): Rename from generate_ascii_font.
17531 (font_name_registry): New function.
17532 (cache_face): Store ascii faces before non-ascii faces in buckets.
17533 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
17534 Lookup only ascii faces.
17535 (lookup_non_ascii_face): New function.
17536 (lookup_named_face): Delete argument C. Change caller.
17537 (lookup_derived_face): Delete argument C. Change caller.
17538 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
17539 a string, just call font_list with it.
17540 (choose_face_font): Delete arguments FACE and C. New arg
17541 FONT_SPEC. Change caller.
17542 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
17543 Change caller.
17544 (realize_non_ascii_face): New function.
17545 (realize_x_face): Call load_face_font here.
17546 (realize_tty_face): Delete argument C. Change caller.
17547 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
17548 get a face ID.
17549 (dump_realized_face): Don't print charset of FACE.
17550
17551 * xfns.c (x_set_font): Always call x_new_fontset and
17552 store_frame_parameter.
17553 (Fx_create_frame): Call x_new_fontset, not x_new_font.
17554 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
17555
17556 * xterm.h (x_get_font_repertory): Extern it.
17557
17558 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17559 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17560 it->multibyte_p is zero.
17561 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17562 (x_new_fontset): If FONTSETNAME doesn't match any existing
17563 fontsets, create a new one.
17564 (x_get_font_repertory): New function.
17565
17566 2008-02-01 Kenichi Handa <handa@m17n.org>
17567
17568 * coding.c (Ffind_coding_systems_region_internal): Detect an
17569 ASCII only string correctly.
17570
17571 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
17572 version is 0.
17573
17574 2008-02-01 Kenichi Handa <handa@m17n.org>
17575
17576 * lread.c: Include "coding.h".
17577 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
17578 (load_each_byte, unread_char): New variables.
17579 (readchar_backlog): Delete.
17580 (readchar): Return a character unless load_each_byte is nonzero.
17581 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
17582 cons. If unread_char is not -1, simply return it.
17583 (unreadchar): Handle the case that readcharfun is
17584 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
17585 (read_multibyte): Delete.
17586 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
17587 (read_emacs_mule_char): New functions.
17588 (Fload): Even if the file doesn't have the extension ".elc", if
17589 safe_to_load_p returns a positive version number, assume that the
17590 file contains bytecompiled code. If the version is less than 22,
17591 load the file while decoding multibyte sequences by emacs-mule.
17592 (readevalloop): Don't use readchar_backlog.
17593 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
17594 (Fread_from_string): Pay attention to the case that STREAM is a cons.
17595 (read_escape): Delete the arg BYTEREP.
17596 (read1): Set load_each_byte to 1 temporarily while handling
17597 #@NUMBER. Don't call read_multibyte.
17598 (read_vector): Call Fread with a cons. If readcharfun is
17599 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
17600 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
17601 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
17602 and Qload_force_doc_strings.
17603
17604 2008-02-01 Kenichi Handa <handa@m17n.org>
17605
17606 * xdisp.c (face_before_or_after_it_pos): Call
17607 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
17608
17609 2008-02-01 Kenichi Handa <handa@m17n.org>
17610
17611 * character.h (TRAILING_CODE_P): New macro.
17612 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
17613 (string_char_with_unification): Fix prototype.
17614 (Vscript_alist): Extern it.
17615
17616 * character.c (Vscript_alist): New variable.
17617 (string_char_with_unification, str_as_unibyte)
17618 (string_escape_byte8): Add `const' to local variables.
17619 (syms_of_character): Declare script-alist as a Lisp variable.
17620
17621 * charset.h (Vcharset_ordered_list): Extern it.
17622 (charset_ordered_list_tick): Extern it.
17623 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
17624 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
17625 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
17626 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
17627 (Funify_charset): Adjust for the change of Funify_charset.
17628
17629 * charset.c (charset_ordered_list_tick): New variable.
17630 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
17631 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
17632 deunify intead of unify a charset.
17633 (string_xstring_p): Add `const' to local variables.
17634 (find_charsets_in_text): Add `const' to arguments and local variables.
17635 (encode_char): Adjust for the change of Funify_charset. Fix
17636 detecting of invalid code.
17637 (Fset_charset_priority): Increment charset_ordered_list_tick.
17638 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
17639 and TO_CODE.
17640
17641 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
17642 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
17643 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
17644 (decode_coding_ccl, consume_chars)
17645 (Ffind_coding_systems_region_internal)
17646 (Fcheck_coding_systems_region): Add `const' to local variables.
17647
17648 * print.c (print_object): Use octal form for printing the
17649 contents of a bool vector.
17650
17651 2008-02-01 Dave Love <fx@gnu.org>
17652
17653 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
17654 <version == 20>: Refuse to load.
17655
17656 2008-02-01 Dave Love <fx@gnu.org>
17657
17658 * fns.c: Move coding.h.
17659 (Qcodeset, Qdays, Qmonths): New.
17660 (concat): Use CHARACTERP instead of INTEGERP.
17661 (Flocale_codeset): Delete.
17662 (Flanginfo): New function.
17663 (syms_of_fns): Change accordingly.
17664
17665 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
17666
17667 2008-02-01 Dave Love <fx@gnu.org>
17668
17669 * casetab.c (init_casetab_once, init_casetab_once): Fix
17670 CHAR_TABLE_SET call.
17671
17672 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
17673
17674 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
17675
17676 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
17677 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
17678 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
17679
17680 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
17681
17682 * coding.c (ENCODE_DESIGNATION, decode_eol)
17683 (make_conversion_work_buffer, code_conversion_restore)
17684 (Fdefine_coding_system_internal): Convert Lisp types.
17685 (code_conversion_restore): Use EQ, not ==.
17686 (Fencode_coding_string): Fix code_convert_string call.
17687
17688 * coding.h (code_convert_region): Fix prototype.
17689
17690 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
17691
17692 * fontset.c (fontset_ref, fontset_set, fs_load_font)
17693 (Ffontset_info): Convert Lisp types.
17694
17695 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
17696
17697 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
17698
17699 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
17700
17701 * chartab.c: Include "...h", not <...h> in some cases.
17702
17703 * callproc.c (Fcall_process): Remove unused variables.
17704
17705 2008-02-01 Dave Love <fx@gnu.org>
17706
17707 * coding.c (Fset_coding_system_priority): Allow null arg list.
17708
17709 2008-02-01 Dave Love <fx@gnu.org>
17710
17711 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
17712 (Fself_insert_and_exit): Use CHARACTERP.
17713
17714 * callproc.c (Fcall_process): Remove unused vars.
17715
17716 * xterm.c (XTread_socket): Add extra dead keysyms.
17717
17718 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
17719
17720 * dispextern.h: Remove prototypes for redraw_frame,
17721 redraw_garbaged_frames.
17722
17723 * cmds.c (Fself_insert_command): Use CHARACTERP.
17724
17725 * chartab.c (make_sub_char_table): Remove unused var.
17726 (Fset_char_table_default, Fmap_char_table): Doc fix.
17727
17728 * keymap.c (access_keymap): Remove generic char code.
17729 (push_key_description): Use CHARACTERP.
17730
17731 2008-02-01 Dave Love <fx@gnu.org>
17732
17733 * charset.c: Doc fixes.
17734 (Funify_charset): Extra checking.
17735
17736 2008-02-01 Dave Love <fx@gnu.org>
17737
17738 * lread.c: Remove some unused variables.
17739 (safe_to_load_p): If safe, return the magic number version byte.
17740 (Fload): Maybe use load-with-code-conversion.
17741
17742 2008-02-01 Kenichi Handa <handa@m17n.org>
17743
17744 * category.c (Fmodify_category_entry): Don't modify the contents
17745 of category_set for characters out of the range. Avoid
17746 unnecessary modification.
17747
17748 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
17749 Vchar_unify_table. The default value of the table is now nil.
17750
17751 * character.c (syms_of_character): Setup Vchar_width_table for
17752 eight-bit-control and raw-byte chars.
17753
17754 * charset.h (enum define_charset_arg_index): Delete
17755 charset_arg_parents and add charset_arg_subset and
17756 charset_arg_superset.
17757 (enum charset_attr_index): Delete charset_parents and add
17758 charset_subset and charset_superset.
17759 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
17760 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
17761 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
17762 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
17763 (CHARSET_SUPERSET): New macros.
17764 (charset_work): Extern it.
17765 (ENCODE_CHAR): Use charset_work.
17766 (CHAR_CHARSET_P): Adjust for the change of encoder format.
17767 (map_charset_chars): Extern it.
17768
17769 * charset.c (load_charset_map): Set the default value of encoder
17770 and deunifier char-tables to nil.
17771 (map_charset_chars): Change argument. Change callers. Use
17772 map_char_table_for_charset instead of map_char_table.
17773 (Fmap_charset_chars): New optional args from_code and to_code.
17774 (Fdefine_charset_internal): Adjust for the change of
17775 `define-charset' (:parents -> :subset or :superset).
17776 (charset_work): New variable.
17777 (encode_char, syms_of_charset): Adjust for the change of
17778 Fdefine_charset_internal.
17779 (Ffind_charset_string): Setup the vector `charsets' correctly.
17780
17781 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
17782 the previous change.
17783 (char_table_ref_and_range): Adjust for the above change.
17784 (map_sub_char_table_for_charset): New function.
17785 (map_char_table_for_charset): New function.
17786
17787 * keymap.c (describe_vector): Handle a char-table directly here.
17788 (describe_char_table): Delete.
17789
17790 * lisp.h (map_charset_chars): Delete.
17791
17792 2008-02-01 Dave Love <fx@gnu.org>
17793
17794 * fns.c (count_combining): Comment out (unused).
17795 (Flocale_codeset): New.
17796 (syms_of_fns): Defsubr it.
17797
17798 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
17799 (size_t): Remove.
17800
17801 2008-02-01 Dave Love <fx@gnu.org>
17802
17803 * Makefile.in (chartab.o): Depend on charset.h.
17804
17805 2008-02-01 Kenichi Handa <handa@m17n.org>
17806
17807 * character.c (syms_of_character): Set the default value of
17808 Vprintable_chars to Qnil.
17809
17810 2008-02-01 Dave Love <fx@gnu.org>
17811
17812 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
17813
17814 2008-02-01 Kenichi Handa <handa@m17n.org>
17815
17816 * charset.c (load_charset_map): Handle the case that from < to
17817 correctly.
17818
17819 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
17820 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
17821 Pay attention to raw-8-bit chars.
17822
17823 2008-02-01 Kenichi Handa <handa@m17n.org>
17824
17825 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
17826 It is not bytecompiled now.
17827
17828 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
17829 (charset_jisx0208): New variables.
17830 (Fdefine_charset_internal): Setup them if appropriate.
17831 (init_charset_once): Initialize them to -1.
17832
17833 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
17834 (charset_jisx0208): Extern them.
17835
17836 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
17837 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
17838 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
17839 (setup_iso_safe_charsets): Fix arguments to Fassq.
17840 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
17841 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
17842 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
17843 (encode_coding_iso_2022): Change the 1st arg to
17844 ENCODE_ISO_CHARACTER to a variable.
17845
17846 2008-02-01 Kenichi Handa <handa@m17n.org>
17847
17848 * charset.h (enum define_charset_arg_index): New enums
17849 charset_arg_min_code and charset_arg_max_code.
17850 (struct charset): New member char_index_offset.
17851
17852 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
17853 Take charset->char_index_offset into account.
17854 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
17855 args[charset_arg_max_code]. Setup charset.char_index_offset.
17856 (syms_of_charset): Fix args to Fdefine_charset_internal.
17857
17858 2008-02-01 Dave Love <fx@gnu.org>
17859
17860 * coding.c (decode_coding_utf_8): Reject overlong sequences.
17861
17862 2008-02-01 Dave Love <fx@gnu.org>
17863
17864 * coding.c: Doc fixes.
17865 (Fcoding_system_aliases): Fix return value.
17866 (Qmac): Remove (duplicated) definition.
17867
17868 2008-02-01 Dave Love <fx@gnu.org>
17869
17870 * charset.c (Fcharset_priority_list, Fset_charset_priority):
17871 New functions.
17872
17873 * character.c (Fstring): Doc fix.
17874
17875 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
17876
17877 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
17878 (font-encoding-alist): Doc fix.
17879
17880 2008-02-01 Dave Love <fx@gnu.org>
17881
17882 * term.c (costs_set): Declare static, non-initialized for pcc.
17883 (encode_terminal_code): Remove unused var.
17884
17885 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
17886 for K&R.
17887
17888 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
17889
17890 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
17891 (suffixes): Move out of make_subsidiaries for K&R.
17892
17893 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
17894
17895 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
17896
17897 2008-02-01 Dave Love <fx@gnu.org>
17898
17899 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
17900
17901 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
17902
17903 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
17904
17905 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
17906
17907 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
17908
17909 2008-02-01 Kenichi Handa <handa@m17n.org>
17910
17911 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
17912 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
17913
17914 2008-02-01 Kenichi Handa <handa@m17n.org>
17915
17916 * coding.c (decode_coding_charset): Adjust for the change of
17917 Fdefine_coding_system_internal.
17918 (Fdefine_coding_system_internal): For a coding system of
17919 `charset' type, store a list of charset IDs in
17920 `charset_attr_charset_valids' element of coding attributes.
17921
17922 2008-02-01 Kenichi Handa <handa@m17n.org>
17923
17924 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
17925 (emacs_mule_char): New arg src. Delete arg `composition'. Change
17926 caller. Handle 2-byte and 3-byte charsets correctly.
17927 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
17928 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
17929 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
17930 (DECODE_EMACS_MULE_21_COMPOSITION): Call
17931 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
17932 sequence.
17933 (decode_coding_emacs_mule): Handle composition correctly. Rewind
17934 `src' and `consumed_chars' correctly before calling emacs_mule_char.
17935 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
17936 and alt&rule composition.
17937 (decode_coding_iso_2022): Handle composition correctly.
17938 (init_coding_once): Setup emacs_mule_bytes for private charsets.
17939
17940 * charset.c (Fdefine_charset_internal): Fix bug for the case of
17941 re-defining a charset. If the charset has :emacs-mule-id, setup
17942 emacs_mule_bytes.
17943 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
17944
17945 2008-02-01 Kenichi Handa <handa@m17n.org>
17946
17947 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
17948 (encode_coding_big5, encode_coding_charset): If coding requires safe
17949 encoding, produce a character specified by
17950 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
17951
17952 2008-02-01 Dave Love <fx@gnu.org>
17953
17954 * xterm.c (XSetIMValues): Declare.
17955
17956 * process.c: Conditionally include sys/wait.h, pty.h.
17957
17958 * print.c (print_object): Fix print format for 64-bit systems.
17959
17960 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
17961
17962 * buffer.c (emacs_strerror): Declare.
17963
17964 * fontset.c (Fclear_face_cache): Declare.
17965 (accumulate_font_info): Comment-out (unused).
17966 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
17967 variables.
17968
17969 * character.h (string_escape_byte8): Declare.
17970
17971 * charset.c (load_charset_map, load_charset_map_from_file): Remove
17972 unused vars.
17973 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
17974 (Fmap_charset_chars): Doc fix.
17975
17976 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
17977 (Fset_coding_system_priority, Fset_coding_system_priority)
17978 (Fdefine_coding_system_internal): Doc fix.
17979
17980 2008-02-01 Dave Love <fx@gnu.org>
17981
17982 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
17983
17984 2008-02-01 Kenichi Handa <handa@m17n.org>
17985
17986 * character.c (string_escape_byte8): Make multibyte string with
17987 correct size.
17988
17989 * charset.c (Fmake_char): Delete unnecessary code.
17990
17991 2008-02-01 Kenichi Handa <handa@m17n.org>
17992
17993 * xfns.c (x_encode_text): Allocate coding.destination here, and
17994 call encode_coding_object with dst_object Qnil.
17995
17996 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
17997 multibyte form correctly.
17998
17999 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
18000 against Vfont_encoding_alist.
18001
18002 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
18003 handling of charset list.
18004 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
18005 (decode_coding_object): Move point to coding->dst_pos before
18006 calling post-read-conversion function.
18007 (encode_coding_object): Give correct arguments to
18008 pre-write-conversion. Ignore the return value of
18009 pre-write-conversion function. Pay attention to the case that
18010 pre-write-conversion changes the current buffer. If dst_object is
18011 Qt, even if coding->src_bytes is zero, allocate at least one byte
18012 to coding->destination.
18013
18014 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
18015
18016 * charset.c (Fmake_char): Make it more backward compatible.
18017 (Fmap_charset_chars): Fix docstring.
18018
18019 2008-02-01 Dave Love <fx@gnu.org>
18020
18021 * coding.c: Doc fixes.
18022 (Fdefine_coding_system_alias): Use names, not symbols, in
18023 coding-system-alist.
18024
18025 2008-02-01 Kenichi Handa <handa@m17n.org>
18026
18027 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
18028 of calling free_realized_face.
18029
18030 2008-02-01 Yong Lu <lyongu@asia-infonet.com>
18031
18032 * charset.c (read_hex): Don't treat SPC as a comment starter.
18033 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
18034 (Fdecode_char): Fix typo.
18035
18036 2008-02-01 Kenichi Handa <handa@m17n.org>
18037
18038 * charset.h (struct charset): New member `code_space_mask'.
18039
18040 * coding.c (coding_set_source): Delete the local variable beg_byte.
18041 (encode_coding_charset, Fdefine_coding_system_internal):
18042 Delete the local variable charset.
18043 (Fdefine_coding_system_internal): Setup
18044 attrs[coding_attr_charset_valids] correctly.
18045
18046 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
18047 member to check if CODE is valid or not.
18048 (Fdefine_charset_internal): Initialize `code_space_mask' member.
18049 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
18050 is within the range of charset->min_code and carset->max_code.
18051
18052 2008-02-01 Dave Love <fx@gnu.org>
18053
18054 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
18055
18056 * dispextern.h (generate_ascii_font): Fix return type.
18057
18058 * xfaces.c (generate_ascii_font): Fix arg declaration.
18059
18060 * coding.c (coding_inherit_eol_type)
18061 (Fset_terminal_coding_system_internal)
18062 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
18063
18064 2008-02-01 Kenichi Handa <handa@m17n.org>
18065
18066 * coding.c (decode_coding_charset, encode_coding_charset): Handle
18067 multiple charsets correctly.
18068
18069 2008-02-01 Kenichi Handa <handa@m17n.org>
18070
18071 * search.c (boyer_moore): Fix handling of multibyte character
18072 translation.
18073
18074 * xdisp.c (display_mode_element): When the variable `elt' is
18075 changed, update `this' and `lisp_string'.
18076
18077 2008-02-01 Kenichi Handa <handa@m17n.org>
18078
18079 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
18080
18081 * callproc.c (Fcall_process): Be sure to give the current buffer
18082 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
18083
18084 * charset.c (struct charset_map_entries): New struct.
18085 (load_charset_map): Rename from parse_charset_map. New args
18086 entries and n_entries. Change caller.
18087 (load_charset_map_from_file): Rename from load_charset_map.
18088 Change caller. New arg control_flag. Call load_charset_map at
18089 the tail.
18090 (load_charset_map_from_vector): New function.
18091 (Fdefine_charset_internal): Setup charset.compact_codes_p.
18092 (encode_char): If the charset is compact, change a character index
18093 to a code point.
18094
18095 * coding.c (coding_alloc_by_making_gap): Check the case that the
18096 source and destination are the same correctly.
18097 (decode_coding_raw_text): Set coding->consumed_char and
18098 coding->consumed to 0.
18099 (produce_chars): If coding->chars_at_source is nonzero, update
18100 coding->consumed_char and coding->consumed before calling
18101 alloc_destination.
18102 (Fdefine_coding_system_alias): Register ALIAS in
18103 Vcoding_system_alist.
18104 (syms_of_coding): Define `no-conversion' coding system at the tail.
18105
18106 * fileio.c (Finsert_file_contents): Set coding_system instead of
18107 val. If the current buffer is multibyte, always call
18108 decode_coding_gap.
18109
18110 * xfaces.c (try_font_list): Give higher priority to fontset's
18111 family than face's family.
18112
18113 2008-02-01 Kenichi Handa <handa@m17n.org>
18114
18115 * callproc.c (Fcall_process): Be sure to give the current buffer
18116 to decode_coding_c_string.
18117
18118 * xfaces.c (try_font_list): Give a family specified in a fontset
18119 higher priority than a family specified in a face.
18120
18121 2008-02-01 Kenichi Handa <handa@m17n.org>
18122
18123 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
18124 Fix arguments to insert_from_buffer.
18125
18126 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
18127
18128 2008-02-01 Kenichi Handa <handa@m17n.org>
18129
18130 * coding.c (produce_chars): Set the variable `multibytep' correctly.
18131 (decode_coding_gap): Set coding->dst_multibyte correctly.
18132
18133 2008-02-01 Kenichi Handa <handa@m17n.org>
18134
18135 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
18136 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
18137 (encode_coding_utf_16): Substitute coding->default_char for
18138 non-Unicode characters.
18139 (decode_coding): Don't call record_insert here.
18140 (setup_coding_system): Initialize `surrogate' of
18141 coding->spec.utf_16 to 0.
18142 (EMIT_ONE_BYTE): Fix for multibyte case.
18143
18144 * insdel.c (insert_from_gap): Call record_insert.
18145
18146 2008-02-01 Kenichi Handa <handa@m17n.org>
18147
18148 * casefiddle.c (casify_region): Fix multibyte case.
18149
18150 * character.c (c_string_width): Add return type `int'.
18151 (char_string_with_unification): Delete arg ADVANCED.
18152
18153 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
18154 (CHAR_STRING): Adjust for the change of char_string_with_unification.
18155 (CHAR_STRING_ADVANCE): Make it do-while statement.
18156
18157 * chartab.c (sub_char_table_set_range): Optimize for the case
18158 DEPTH == 3. Add workaround code for a GCC optimization bug.
18159
18160 * charset.c (parse_charset_map): Remove an unused variable.
18161
18162 * coding.c: Delete unused variables.
18163
18164 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
18165 earlier. If inserted is zero and the coding system doesn't
18166 require flushing, don't call decode_coding_gap.
18167
18168 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
18169
18170 2008-02-01 Kenichi Handa <handa@m17n.org>
18171
18172 The following changes are for using Unicode as an internal
18173 character model, and use UTF-8 format for buffer/string
18174 representation.
18175
18176 * .gdbinit (xchartable): Adjust for the change of char table structure.
18177 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
18178
18179 * Makefile.in (obj): Add character.o and chartab.o.
18180 (lisp, shortlisp): Remove utf-8.elc.
18181 (*.o): For many files, change dependency on charset.h to
18182 character.h, and add dependency on character.h.
18183 (character.o, chartab.o): New targets.
18184
18185 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
18186 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
18187 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
18188 of "charset.h".
18189
18190 * dired.c, filelock.c: Include "character.h".
18191
18192 * alloc.c: Include "character.h" instead of "charset.h".
18193 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
18194 (syms_of_alloc): Remove defsubr for Smake_char_table.
18195
18196 * buffer.c: Include "character.h" instead of "charset.h", don't
18197 include "coding.h".
18198 (Fset_buffer_multibyte): Adjust for UTF-8.
18199
18200 * buffer.h: EXFUN Fbuffer_live_p.
18201
18202 * callproc.c: Include "character.h" instead of "charset.h".
18203 (Fcall_process): Big change for the new code-conversion APIs.
18204
18205 * casetab.c: Include "character.h" instead of "charset.h".
18206 (set_canon, set_identity, shuffle): Adjust for the new
18207 map_char_table spec.
18208 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
18209 accessing the char table structure.
18210
18211 * chartab.c: New file that implements char table.
18212
18213 * category.c: Include "character.h".
18214 (copy_category_entry): New function.
18215 (copy_category_table): Call map_char_table and copy_category_entry.
18216 (Fmake_category_table): Initialize all top-level slots.
18217 (char_category_set): New function.
18218 (modify_lower_category_set): Delete.
18219 (Fmodify_category_entry): Call char_table_ref_and_range.
18220
18221 * category.h (CATEGORY_SET): Just call char_category_set.
18222
18223 * ccl.c: Include "character.h".
18224 (Qccl, Qcclp): New variables.
18225 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
18226 it's less than 256.
18227 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
18228 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
18229 and DST type.
18230 (ccl_driver): Change types of argument, adjust code accordingly.
18231 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
18232 ccl_driver.
18233 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
18234
18235 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
18236 New members src_multibyte, dst_multibyte, consumed, and produced.
18237 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
18238 (CODING_SPEC_CCL_PROGRAM): New macro.
18239 (ccl_driver): Update prototype.
18240 (Qccl, Qcclp, Fccl_program_p): Extern them.
18241 (CHECK_CCL_PROGRAM): New macro.
18242
18243 * character.c, character.h, chartab.c: New files.
18244
18245 * charset.c: Mostly re-written. Move character and multibyte sequence
18246 handling codes to character.c.
18247
18248 * charset.h: Mostly re-written. Move character and multibyte sequence
18249 handling codes to character.h.
18250
18251 * coding.c, coding.h: Mostly re-written.
18252
18253 * composite.c: Include "character.h" instead of "charset.h".
18254 (CHAR_WIDTH): Move to character.h.
18255 (HASH_KEY, HASH_VALUE): Delete.
18256
18257 * composite.h (enum composition_method): Change order of enumeration
18258 symbols.
18259
18260 * data.c: Include "character.h" instead of "charset.h".
18261 (Faref): Call CHAR_TABLE_REF for a char table.
18262 (Faset): Call CHAR_TABLE_SET for a char table.
18263
18264 * dispextern.h (free_realized_face, check_face_attribytes)
18265 (generate_ascii_font): Extern them.
18266 (free_realized_multibyte_face): Delete extern.
18267
18268 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
18269 table structure.
18270
18271 * editfns.c: Include "character.h" instead of "charset.h".
18272 (Fchar_to_string): Always call CHAR_STRING.
18273
18274 * emacs.c (main): Call init_charset_once, init_charset,
18275 syms_of_chartab, and syms_of_character.
18276
18277 * fileio.c: Include "character.h" instead of "charset.h".
18278 (Finsert_file_contents): Big change for the new code-conversion API.
18279 (choose_write_coding_system, Fwrite_region): Likewise.
18280 (build_annotations_2): Delete.
18281 (e_write): Big change for the new code-conversion API.
18282
18283 * fns.c: Include "character.h" instead of "charset.h".
18284 (copy_sub_char_table): Move to chartab.c.
18285 (Fcopy_sequence): Call copy_char_table for a char table.
18286 (concat): Delete codes calling count_multibyte.
18287 (string_char_to_byte, string_byte_to_char): Adjust for the new
18288 multibyte form.
18289 (internal_equal): Adjust for the change of char table structure.
18290 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
18291 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
18292 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
18293 (char_table_translate, optimize_sub_char_table)
18294 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
18295 chartab.c.
18296 (char_table_ref_and_index): Delete.
18297 (HASH_KEY, HASH_VALUE): Move to lisp.h.
18298 (Fmd5): Call preferred_coding_system instead of accessing
18299 Vcoding_category_list. Adjust for the new code-conversion API.
18300 (syms_of_fns): Move defsubr for char table related functions to
18301 chartab.c.
18302
18303 * fontset.c: Mostly re-written.
18304
18305 * fontset.h (struct font_info): Change type of the member encoding_type.
18306 (enum FONT_SPEC_INDEX): New enum.
18307 (fontset_font_pattern, fs_load_font): Update prototype.
18308 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
18309
18310 * indent.c: Include "character.h" instead of "charset.h".
18311 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
18312
18313 * insdel.c: Include "character.h" instead of "charset.h".
18314 (copy_text): Don't refer to Vnonascii_translation_table.
18315 (insert_from_gap): New function.
18316
18317 * keyboard.c: Include "character.h" instead of "charset.h".
18318 (command_loop_1): Never call direct_output_forward_char before
18319 a non-ASCII character.
18320 (read_char): If Vkeyboard_translate_table is a char table, always
18321 translate a character.
18322
18323 * keymap.c: Include "character.h".
18324 (store_in_keymap): Handle the case that IDX is a cons.
18325 (Fdefine_key): Handle the case that KEY is a cons and the car part
18326 is also a cons (range).
18327 (push_key_description): Adjust for the new character code.
18328 (describe_vector): Call describe_char_table for a char table.
18329 (describe_char_table): New function.
18330
18331 * keymap.h (describe_char_table): Extern it.
18332
18333 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
18334 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
18335 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
18336 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
18337 Delete.
18338 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
18339 structure.
18340 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
18341 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
18342 (CHARTAB_SIZE_BITS_3): New macros.
18343 (chartab_size): Extern it.
18344 (struct Lisp_Char_Table): Re-design.
18345 (struct Lisp_Sub_Char_Table): New structure.
18346 (HASH_KEY, HASH_VALUE): Move from fns.c.
18347 (CHARACTERBITS): Define as 22.
18348 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
18349 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
18350 (GC_SUB_CHAR_TABLE_P): New macro.
18351 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
18352 (code_convert_string_norecord): Deleted extern.
18353 (init_character_once, syms_of_character, init_charset)
18354 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
18355
18356 * lread.c: Include "character.h".
18357 (read_multibyte): New arg NBYTES.
18358 (read_escape): Change the meaning of returned *BYTEREP.
18359 (to_multibyte): Delete.
18360 (read1): Adjust the handling of char table and string.
18361
18362 * print.c: Include "character.h" instead of "charset.h".
18363 (print_string): Convert 8-bit raw bytes to octal form by
18364 string_escape_byte8.
18365 (print_object): Adjust for the new multibyte form. Print 8-bit
18366 raw bytes always in octal form. Handle sub char table correctly.
18367
18368 * process.c: Include "character.h" instead of "charset.h".
18369 (read_process_output, send_process): Adjust for the new
18370 code-conversion API.
18371
18372 * puresize.h (BASE_PURESIZE): Increase.
18373
18374 * regex.c: Include "character.h" instead of "charset.h".
18375 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
18376 (regex_compile): Accept a range whose starting and ending
18377 character have different leading bytes.
18378 (analyse_first): Adjust for the above change.
18379
18380 * search.c: Include "character.h" instead of "charset.h".
18381 (search_buffer, boyer_moore): Adjust for the new multibyte form.
18382 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
18383
18384 * syntax.c: Include "character.h" instead of "charset.h".
18385 (syntax_parent_lookup): Delete.
18386 (Fmodify_syntax_entry): Accept a cons as CHAR.
18387 (skip_chars): Adjust for the new multibyte form.
18388 (init_syntax_once): Call char_table_set_range instead of directly
18389 accessing the structure of a char table.
18390
18391 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
18392 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
18393 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
18394 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
18395
18396 * term.c: Include "buffer.h" and "character.h".
18397 (encode_terminal_code, write_glyphs): Adjust for the new
18398 code-conversion API.
18399 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
18400
18401 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
18402
18403 * xdisp.c: Include "character.h".
18404 (get_next_display_element): Adjust for the new multibyte form.
18405 (disp_char_vector): Adjust for the new char table structure.
18406 (decode_mode_spec_coding): Adjust for the new structure of
18407 coding system.
18408 (decode_mode_spec): Adjust for the new code-conversion API.
18409
18410 * xfaces.c: Include "character.h" instead of "charset.h".
18411 (load_face_font): Adjust for the change of choose_face_font and
18412 FS_LOAD_FONT.
18413 (generate_ascii_font): New function.
18414 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
18415 (set_font_frame_param): Adjust for the change of choose_face_font.
18416 (free_realized_face): Make it public.
18417 (free_realized_faces_for_fontset): Rename from
18418 free_realized_multibyte_face. Free also faces realized for ASCII.
18419 (choose_face_font): Change arguments. Adjust for the change of
18420 fontset_font_pattern and FS_LOAD_FONT.
18421
18422 * xfns.c: Include "character.h".
18423 (x_encode_text): Adjust for the new code-conversion API.
18424
18425 * xselect.c: Don't include "charset.h".
18426 (selection_data_to_lisp_data): Adjust for the new code conversion API.
18427
18428 * xterm.c: Include "character.h".
18429 (x_encode_char): New argument CHARSET. Change caller.
18430 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
18431 Call ENCODE_CHAR instead of SPLIT_CHAR.
18432 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
18433 CHAR_WIDTH instead of CHARSET_WIDTH.
18434 (XTread_socket): Adjust for the new code-conversion API.
18435 (x_new_font): Adjust for the change of FS_LOAD_FONT.
18436 (x_load_font): Adjust for the change of struct font.
18437
18438 2008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18439
18440 * xfaces.c (face_at_buffer_position): Remove unused vars.
18441
18442 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18443
18444 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
18445 Fix overflow checking.
18446
18447 2008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18448
18449 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
18450 Cancel previous change.
18451
18452 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18453
18454 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
18455 ccl->eight_bit_control. Fix check for buffer overflow.
18456 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
18457 (ccl_driver): Initialize extra_bytes to 0.
18458
18459 2008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18460
18461 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
18462 return it ORed with ctrl_modifier.
18463
18464 2008-01-29 Miles Bader <miles@gnu.org>
18465
18466 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
18467
18468 2008-01-28 Jason Rumney <jasonr@gnu.org>
18469
18470 * w32.c (stat): Don't double check for networked drive.
18471
18472 2008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
18473
18474 * window.c (run_window_configuration_change_hook): New function.
18475 Code extracted from set_window_buffer. Set the selected frame.
18476 (set_window_buffer): Use it.
18477 * window.h (run_window_configuration_change_hook): Declare.
18478 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
18479
18480 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
18481
18482 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
18483
18484 * Makefile.in: Remove references to unused macros.
18485
18486 2008-01-26 Eli Zaretskii <eliz@gnu.org>
18487
18488 * w32.c (g_b_init_get_sid_sub_authority)
18489 (g_b_init_get_sid_sub_authority_count): New static variables.
18490 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
18491 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
18492 (init_user_info): Use them to retrieve uid and gid.
18493 Use 500/513, the Windows defaults, as Administrator's uid/gid.
18494 (fstat): Use pw_uid and pw_gid from the_passwd structure for
18495 st_uid and st_gid of the file.
18496
18497 2008-01-26 Jason Rumney <jasonr@gnu.org>
18498
18499 * w32.c (logon_network_drive): New function.
18500 (stat): Use it.
18501
18502 2008-01-26 Chong Yidong <cyd@stupidchicken.com>
18503
18504 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
18505 invisible text covered with an ellipsis.
18506
18507 2008-01-25 Richard Stallman <rms@gnu.org>
18508
18509 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
18510 jump back to beginning. Move some other initializations after that.
18511 (Qwindow_text_change_functions, Vwindow_text_change_functions):
18512 New variables.
18513 (syms_of_xdisp): Init them.
18514
18515 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
18516
18517 * buffer.c (reset_buffer_local_variables):
18518 Implement `permanent-local-hook'.
18519 (Qpermanent_local_hook): New variable.
18520 (syms_of_buffer): Init and staticpro it.
18521
18522 2008-01-25 Michael Albinus <michael.albinus@gmx.de>
18523
18524 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
18525
18526 2008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
18527
18528 * fns.c (Fclrhash): Return TABLE.
18529
18530 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18531
18532 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
18533 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
18534 is set even without positional changes.
18535 (x_scroll_bar_clear): Set bar->redraw_needed_p.
18536
18537 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
18538
18539 2008-01-23 Jason Rumney <jasonr@gnu.org>
18540
18541 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
18542
18543 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
18544 the unicode range available in MULE by locale-coding-system.
18545 Improve dbcs lead byte detection. Set event timestamp and modifiers
18546 earlier.
18547
18548 2008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18549
18550 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
18551 [MAC_OSX] (init_mac_osx_environment): Initialize it.
18552 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
18553 when used on child processes.
18554
18555 2008-01-21 Michael Albinus <michael.albinus@gmx.de>
18556
18557 * dbusbind.c (Fdbus_method_return_internal): Rename from
18558 Fdbus_method_return.
18559 (Fdbus_unregister_object): Move to dbus.el.
18560 (Fdbus_call_method, Fdbus_method_return_internal)
18561 (Fdbus_send_signal): Improve debug messages.
18562
18563 2008-01-20 Martin Rudalics <rudalics@gmx.at>
18564
18565 * undo.c (undo_inhibit_record_point): New variable.
18566 (syms_of_undo): Initialize it.
18567 (record_point): Don't record point when undo_inhibit_record_point
18568 is set.
18569
18570 2008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
18571
18572 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
18573
18574 * xdisp.c (Qauto_hscroll_mode): New var.
18575 (syms_of_xdisp): Initialize it.
18576 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
18577 window's buffer.
18578 (hscroll_windows): Don't check automatic_hscrolling_p here.
18579
18580 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
18581 vscroll if we're setting window-buffer to the value it already has.
18582
18583 2008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
18584
18585 * m/intel386.h: Remove references to XENIX.
18586
18587 2008-01-17 Andreas Schwab <schwab@suse.de>
18588
18589 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
18590 instead of HAVE_X86_64_LIB64_DIR.
18591 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
18592
18593 2008-01-17 Glenn Morris <rgm@gnu.org>
18594
18595 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
18596 to HAVE_X86_64_LIB64_DIR.
18597
18598 2008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
18599
18600 * s/irix3-3.h:
18601 * s/irix4-0.h:
18602 * s/386-ix.h:
18603 * s/domain.h:
18604 * s/hpux9-x11r4.h:
18605 * s/hpux9shxr4.h: Remove files for systems no longer supported.
18606
18607 * sysdep.c: Remove code containing references to symbols defined
18608 by unsupported systems.
18609
18610 2008-01-16 Glenn Morris <rgm@gnu.org>
18611
18612 * coding.c (select-safe-coding-system-function): Doc fix.
18613
18614 2008-01-15 Glenn Morris <rgm@gnu.org>
18615
18616 * config.in: Revert 2008-01-13 change: this is a generated file.
18617
18618 2008-01-13 Tom Tromey <tromey@redhat.com>
18619
18620 * lisp.h: Fix typo.
18621
18622 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18623
18624 * m/sequent-ptx.h:
18625 * m/sequent.h:
18626 * s/ptx.h:
18627 * s/ptx4-2.h:
18628 * s/ptx4.h: Remove files for systems no longer supported.
18629
18630 * callproc.c (Fcall_process): Fix previous change.
18631
18632 2008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18633
18634 * unexsunos4.c: Remove file, system not supported anymore.
18635
18636 * m/mips.h:
18637 * m/intel386.h:
18638 * callproc.c:
18639 * config.in:
18640 * ecrt0.c:
18641 * emacs.c:
18642 * fileio.c:
18643 * frame.c:
18644 * getpagesize.h:
18645 * keyboard.c:
18646 * lread.c:
18647 * process.c:
18648 * puresize.h:
18649 * sysdep.c:
18650 * systty.h:
18651 * syswait.h:
18652 * unexec.c:
18653 * xdisp.c:
18654 * alloc.c: Remove code containing references to symbols defined by
18655 unsupported systems.
18656
18657 2008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
18658
18659 * coding.c (detect_coding_mask): Fix previous change.
18660
18661 2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
18662
18663 * coding.c (detect_coding_iso2022): New arg
18664 latin_extra_code_state. Allow Latin extra codes only
18665 when *latin_extra_code_state is nonzero.
18666 (detect_coding_mask): If there is a NULL byte, detect the encoding
18667 as UTF-16 or binary. If Latin extra codes exist, detect the
18668 encoding as ISO-2022 only when there's no other proper encoding is
18669 found.
18670
18671 2008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18672
18673 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
18674 #ifdef MAC_OS.
18675
18676 2008-01-08 Richard Stallman <rms@gnu.org>
18677
18678 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
18679
18680 2008-01-06 Nick Roberts <nickrob@snap.net.nz>
18681
18682 * keyboard.c (parse_menu_item): Don't enclose key bindings on
18683 menu bar in parentheses.
18684
18685 2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
18686
18687 * m/7300.h:
18688 * m/acorn.h:
18689 * m/alliant-2800.h:
18690 * m/alliant.h:
18691 * m/alliant1.h:
18692 * m/alliant4.h:
18693 * m/altos.h:
18694 * m/amdahl.h:
18695 * m/apollo.h:
18696 * m/att3b.h:
18697 * m/aviion-intel.h:
18698 * m/aviion.h:
18699 * m/celerity.h:
18700 * m/clipper.h:
18701 * m/cnvrgnt.h:
18702 * m/convex.h:
18703 * m/cydra5.h:
18704 * m/delta88k.h:
18705 * m/dpx2.h:
18706 * m/dual.h:
18707 * m/elxsi.h:
18708 * m/f301.h:
18709 * m/gould-np1.h:
18710 * m/gould.h:
18711 * m/i860.h:
18712 * m/ibmps2-aix.h:
18713 * m/ibmrt-aix.h:
18714 * m/ibmrt.h:
18715 * m/irist.h:
18716 * m/is386.h:
18717 * m/isi-ov.h:
18718 * m/mega68.h:
18719 * m/mg1.h:
18720 * m/news-r6.h:
18721 * m/news-risc.h:
18722 * m/news.h:
18723 * m/nh3000.h:
18724 * m/nh4000.h:
18725 * m/ns16000.h:
18726 * m/ns32000.h:
18727 * m/nu.h:
18728 * m/orion.h:
18729 * m/orion105.h:
18730 * m/paragon.h:
18731 * m/pfa50.h:
18732 * m/plexus.h:
18733 * m/pyramid.h:
18734 * m/pyrmips.h:
18735 * m/sh3el.h:
18736 * m/sps7.h:
18737 * m/sr2k.h:
18738 * m/stride.h:
18739 * m/sun1.h:
18740 * m/sun2.h:
18741 * m/sun3-68881.h:
18742 * m/sun3-fpa.h:
18743 * m/sun3-soft.h:
18744 * m/sun3.h:
18745 * m/sun386.h:
18746 * m/symmetry.h:
18747 * m/tad68k.h:
18748 * m/tahoe.h:
18749 * m/targon31.h:
18750 * m/tek4300.h:
18751 * m/tekxd88.h:
18752 * m/tower32.h:
18753 * m/tower32v3.h:
18754 * m/ustation.h:
18755 * m/wicat.h:
18756 * m/xps100.h:
18757 * s/cxux.h:
18758 * s/cxux7.h:
18759 * s/dgux.h:
18760 * s/dgux4.h:
18761 * s/dgux5-4-3.h:
18762 * s/dgux5-4r2.h:
18763 * s/esix.h:
18764 * s/esix5r4.h:
18765 * s/hiuxmpp.h:
18766 * s/hiuxwe2.h:
18767 * s/iris3-5.h:
18768 * s/iris3-6.h:
18769 * s/isc2-2.h:
18770 * s/isc3-0.h:
18771 * s/isc4-0.h:
18772 * s/isc4-1.h:
18773 * s/newsos5.h:
18774 * s/newsos6.h:
18775 * s/osf1.h:
18776 * s/osf5-0.h:
18777 * s/riscix1-1.h:
18778 * s/riscix12.h:
18779 * s/sco4.h:
18780 * s/sco5.h:
18781 * s/sunos4-0.h:
18782 * s/sunos4-1.h:
18783 * s/sunos413.h:
18784 * s/sunos4shr.h:
18785 * s/umax.h:
18786 * s/unipl5-2.h:
18787 * s/xenix.h:
18788 * cxux-crt0.s:
18789 * unexapollo.c:
18790 * unexconvex.c:
18791 * unexenix.c:
18792 * unexsni.c: Remove files for systems no longer supported.
18793
18794 * m/intel386.h: Remove references to unsupported systems.
18795
18796 * w32.c (get_emacs_configuration): Remove reference to i860.
18797
18798 * sysdep.c: Remove dead code.
18799
18800 2008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
18801
18802 * s/rtu.h:
18803 * m/masscomp.h: Remove files. Platform is obsolete.
18804
18805 2008-01-04 Michael Albinus <michael.albinus@gmx.de>
18806
18807 * dbusbind.c (Fdbus_method_return): New function.
18808 (xd_read_message): Add the serial number to the event.
18809 (Fdbus_register_method): Activate the function.
18810
18811 2008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
18812
18813 * keyboard.c (read_key_sequence): Fix typo.
18814
18815 2008-01-03 Michael Albinus <michael.albinus@gmx.de>
18816
18817 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
18818 (xd_signature, xd_append_arg): Handle element type detection for
18819 empty arrays.
18820 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
18821 SDATA () calls; this must be solved more general.
18822 (Fdbus_register_signal): Use SBYTES instead of strlen.
18823
18824 2008-01-03 Magnus Henoch <magnus@zemdatav>
18825
18826 * dbusbind.c (xd_append_arg): Use unsigned char instead of
18827 unsigned int for byte values (necessary for big-endian platform).
18828 (Fdbus_call_method): Handle the case of no returned arguments.
18829
18830 2007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
18831
18832 * dbusbind.c (xd_read_message): Use non-static input_event struct.
18833
18834 2007-12-31 Magnus Henoch <mange@freemail.hu>
18835
18836 * dbusbind.c (xd_signature): Signature of variant is just "v".
18837
18838 2007-12-30 Michael Albinus <michael.albinus@gmx.de>
18839
18840 * dbusbind.c: Fix several errors and compiler warnings.
18841 Reported by Tom Tromey <tromey@redhat.com>.
18842 (XD_ERROR, XD_DEBUG_MESSAGE)
18843 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
18844 (xd_append_arg): Part for basic D-Bus types rewritten.
18845 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
18846 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
18847 appropriate.
18848 (xd_read_message): Return Qnil. Don't signal an error; it is not
18849 useful during event reading.
18850 (Fdbus_register_signal): Signal an error if the check for
18851 FUNCTIONP fails.
18852 (Fdbus_register_method): New function. The implementation is not
18853 complete, the call of the function signals an error therefore.
18854 (Fdbus_unregister_object): New function, renamed from
18855 Fdbus_unregister_signal. The initial check signals an error, if
18856 the object is not well formed.
18857
18858 2007-12-30 Richard Stallman <rms@gnu.org>
18859
18860 * textprop.c (get_char_property_and_overlay):
18861 Signal error if POSITION is out of range in a buffer.
18862
18863 2007-12-29 Martin Rudalics <rudalics@gmx.at>
18864
18865 * w32fns.c (Fx_create_frame): Make copy of frame parameters
18866 because the original parameters are in pure storage now.
18867
18868 2007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18869
18870 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
18871
18872 2007-12-22 Eli Zaretskii <eliz@gnu.org>
18873
18874 * callint.c (syms_of_callint) <command-history>: Add reference to
18875 history-length in the doc string.
18876
18877 2007-12-17 Jason Rumney <jasonr@gnu.org>
18878
18879 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
18880 before passing as wParam.
18881
18882 2007-12-22 Michael Albinus <michael.albinus@gmx.de>
18883
18884 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
18885 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
18886 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
18887 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
18888 as number.
18889 (Fdbus_call_method): Fix docstring.
18890
18891 2007-12-21 Michael Albinus <michael.albinus@gmx.de>
18892
18893 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
18894 New macros.
18895 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
18896 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
18897 Simplify.
18898 (xd_signature): New function.
18899 (xd_append_arg): Compute also signatures. Major rewrite.
18900 (xd_retrieve_arg): Make debug messages friendly.
18901 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
18902 Check for signatures of arguments.
18903
18904 2007-12-19 Michael Albinus <michael.albinus@gmx.de>
18905
18906 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
18907 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
18908 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
18909 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
18910 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
18911 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
18912 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
18913 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
18914 (xd_retrieve_value): Remove. Functionality included in ...
18915 (xd_append_arg): New function.
18916 (Fdbus_call_method, Fdbus_send_signal): Apply it.
18917
18918 2007-12-16 Michael Albinus <michael.albinus@gmx.de>
18919
18920 * dbusbind.c (top): Include <stdio.h>.
18921 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
18922 dbus_message_new_method_call and dbus_message_new_signal.
18923 (Fdbus_register_signal): Rename unique_name to uname.
18924 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
18925 non-existing unique name. Fix typos in matching rule. Return an
18926 object which is useful in Fdbus_unregister_signal.
18927 (Fdbus_unregister_signal): Reimplementation, in order to remove
18928 only the corresponding entry.
18929 (Vdbus_registered_functions_table): Change the order of entries.
18930 Apply these changes in xd_read_message and Fdbus_register_signal.
18931
18932 2007-12-16 Andreas Schwab <schwab@suse.de>
18933
18934 * fileio.c (Finsert_file_contents): Fix overflow check to not
18935 depend on undefined integer overflow.
18936
18937 2007-12-14 Jason Rumney <jasonr@gnu.org>
18938
18939 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
18940 for characters above 127.
18941
18942 2007-12-13 Jason Rumney <jasonr@gnu.org>
18943
18944 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
18945 before dereferencing array.
18946 (lookup_vk_code): Remove zero comparison.
18947
18948 2007-12-14 Michael Albinus <michael.albinus@gmx.de>
18949
18950 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
18951 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
18952 Use `unsigned int' instead of `uint'.
18953 (xd_read_message, Fdbus_register_signal): Split expressions into
18954 multiple lines before operators "&&" and "||", according to the
18955 GNU Coding Standards.
18956
18957 2007-12-14 Eli Zaretskii <eliz@gnu.org>
18958
18959 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
18960
18961 2007-12-12 Juri Linkov <juri@jurta.org>
18962
18963 * buffer.c (Frename_buffer): In interactive spec replace
18964 `read-buffer' with `read-string' that uses `buffer-name-history'
18965 as history, and the current buffer's name as default.
18966
18967 2007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
18968
18969 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
18970 manipulating the backtrace manually.
18971 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
18972 (struct backtrace, backtrace_list): Remove.
18973 (command_loop_1): Remove dead var `no_direct'.
18974
18975 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
18976 preserve non-built-in buffer-local variables.
18977 (Fkill_all_local_variables): Don't re-create&re-set permanent
18978 buffer-local variables.
18979
18980 2007-12-09 Juri Linkov <juri@jurta.org>
18981
18982 * buffer.c (Frename_buffer): Change interactive spec from "s" to
18983 Lisp code that uses `read-buffer' with current buffer as default.
18984
18985 2007-12-08 Michael Albinus <michael.albinus@gmx.de>
18986
18987 * dbusbind.c (xd_read_message): Generate an event for every
18988 registered handler. There might be several handlers registered
18989 for the same signal.
18990 (Fdbus_register_signal): Don't overwrite a registration for the
18991 same signal. Add a new registration if handlers are different.
18992 (Vdbus_registered_functions_table): Rework doc string.
18993
18994 2007-12-07 Michael Albinus <michael.albinus@gmx.de>
18995
18996 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
18997 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
18998 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
18999 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
19000 Unify argument lists.
19001 (xd_read_message, Fdbus_register_signal): Reorder and extend event
19002 arguments and hash table keys. Use unique name for service.
19003 (Fdbus_unregister_signal): Remove checks.
19004 (Vdbus_registered_functions_table): Fix doc string.
19005
19006 2007-12-05 Magnus Henoch <mange@freemail.hu>
19007
19008 * process.c (make_process): Initialize pty_flag to 0.
19009
19010 2007-12-05 Jason Rumney <jasonr@gnu.org>
19011
19012 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
19013 specified XBMs.
19014
19015 2007-12-05 Richard Stallman <rms@gnu.org>
19016
19017 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
19018
19019 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19020
19021 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
19022 New variable.
19023 (mac_try_close_socket) [MAC_OSX]: New function.
19024 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
19025 Update cfsockets_for_select. Replace invalid CFRunLoop source.
19026
19027 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
19028 Use mac_try_close_socket.
19029
19030 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19031
19032 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
19033 reloc_base.
19034 (copy_dysymtab): Compute relocation base here.
19035 (rebase_reloc_address) [__ppc64__]: New function.
19036 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
19037 changed.
19038
19039 2007-12-05 Jason Rumney <jasonr@gnu.org>
19040
19041 * w32proc.c (sys_spawnve): Quote args with wildcards.
19042
19043 2007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19044
19045 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
19046 __objc_* sections.
19047 (unrelocate) [_LP64]: Set relocation base to address of data segment.
19048
19049 2007-12-05 Michael Albinus <michael.albinus@gmx.de>
19050
19051 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
19052 Move check for Vdbus_registered_functions_table to
19053 xd_read_queued_messages.
19054 (xd_read_queued_messages): Protect xd_read_message calls by
19055 internal_condition_case_1.
19056
19057 2007-12-04 Michael Albinus <michael.albinus@gmx.de>
19058
19059 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
19060 Qdbus_system_bus and Qdbus_session_bus, respectively.
19061 (Vdbus_intern_symbols): Remove.
19062 (Vdbus_registered_functions_table): New hash table.
19063 (XD_SYMBOL_INTERN_SYMBOL): Remove.
19064 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
19065 Rewrite in order to manage registered functions by hash table
19066 Vdbus_registered_functions_table.
19067
19068 2007-12-03 Jan Djärv <jan.h.d@swipnet.se>
19069
19070 * xterm.c: Update URL to Window Manager Specification in comment.
19071
19072 2007-12-02 Michael Albinus <michael.albinus@gmx.de>
19073
19074 * config.in (HAVE_DBUS): Add.
19075
19076 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
19077 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
19078 (obj): Add $(DBUS_OBJ).
19079 (LIBES): Add $(DBUS_LIBS).
19080 (dbusbind.o): New target.
19081
19082 * dbusbind.c: New file.
19083
19084 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
19085
19086 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
19087 (Qdbus_event): New Lisp symbol.
19088 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
19089 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
19090 (keys_of_keyboard): Define dbus-event.
19091
19092 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
19093
19094 2007-12-01 Richard Stallman <rms@gnu.org>
19095
19096 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
19097
19098 2007-11-30 Jason Rumney <jasonr@gnu.org>
19099
19100 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
19101 (w32con_reset_terminal_modes): Clear screen buffer.
19102 (w32_face_attributes): Don't use color indexes that are out of range.
19103 Only reverse the default colors.
19104
19105 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
19106 WINDOWSNT.
19107
19108 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
19109
19110 2007-11-29 Jason Rumney <jasonr@gnu.org>
19111
19112 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
19113 (w32_face_attributes): Use Vtty_defined_color_alist to determine
19114 if the terminal colors are initialized.
19115 (unspecified_fg, unspecified_bg): Remove unused declarations.
19116
19117 2007-11-29 Andreas Schwab <schwab@suse.de>
19118
19119 * keyboard.c (apply_modifiers): Fix typo.
19120
19121 2007-11-29 Richard Stallman <rms@gnu.org>
19122
19123 * keymap.c (Fcurrent_local_map): Doc fix.
19124
19125 2007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
19126
19127 * s/gnu-kfreebsd.h: New file.
19128
19129 2007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
19130
19131 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
19132 Don't cast redundantly.
19133
19134 * keyboard.c (KEY_TO_CHAR): New macro.
19135 (parse_modifiers, apply_modifiers): Accept integer arguments.
19136 (read_key_sequence): Use them to unify the "shift->unshift" mapping
19137 for chars and symbol keys.
19138 After doing such remapping, apply function-key-map again.
19139
19140 2007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
19141
19142 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
19143 compiled anymore.
19144
19145 2007-11-26 Andreas Schwab <schwab@suse.de>
19146
19147 * process.c (list_processes_1): Fix indentation level of the
19148 command column.
19149
19150 2007-11-23 Andreas Schwab <schwab@suse.de>
19151
19152 * editfns.c (Fformat): Handle %c specially since it requires the
19153 argument to be of type int.
19154
19155 2007-11-23 Markus Triska <markus.triska@gmx.at>
19156
19157 * emacs.c (main): Call init_editfns before init_process, since
19158 init_process sets Vprocess_connection_type depending on OS release.
19159
19160 2007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
19161
19162 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
19163 (find_symbol_value): Use do_symval_forwarding.
19164
19165 * data.c (set_internal): Set the value in the `cons-cell' (for
19166 Buffer_Local_values) not only for frame-local variables.
19167
19168 2007-11-22 Andreas Schwab <schwab@suse.de>
19169
19170 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
19171 values to sprintf.
19172 * keymap.c (Fsingle_key_description): Likewise.
19173 * print.c (print_object): Likewise.
19174
19175 2007-11-22 Jan Djärv <jan.h.d@swipnet.se>
19176
19177 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
19178 file for image is nil.
19179
19180 2007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
19181
19182 * term.c: Include stdarg.h.
19183 (fatal): Implement using varargs.
19184 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
19185
19186 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19187
19188 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
19189 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
19190 Update call to buffer_slot_type_mismatch.
19191 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
19192 (buffer_slot_type_mismatch): Update.
19193 * buffer.c (buffer_local_types): Remove.
19194 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
19195 (defvar_per_buffer): Set the type in the buffer_objfwd.
19196
19197 2007-11-21 Jason Rumney <jasonr@gnu.org>
19198
19199 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
19200 CreateFileMapping returns NULL on failure.
19201
19202 2007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19203
19204 * search.c (Fset_match_data): Remove the `evaporate' feature.
19205 (unwind_set_match_data): Don't use the `evaporate' feature.
19206
19207 2007-11-21 Jason Rumney <jasonr@gnu.org>
19208
19209 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
19210
19211 * w32console.c (w32con_write_glyphs): Remove unused variables.
19212
19213 2007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
19214
19215 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
19216
19217 * s/darwin.h (MULTI_KBOARD): Remove.
19218
19219 * macfns.c (x_create_tip_frame, Fx_create_frame)
19220 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
19221
19222 2007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
19223
19224 * buffer.c (Fbuffer_local_value): Remove redundant test.
19225 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
19226 than in `current-buffer' to match the comment.
19227 Do the swap using swap_in_global_binding.
19228
19229 * data.c (store_symval_forwarding, set_internal):
19230 * eval.c (specbind): Remove dead code.
19231
19232 * coding.c (detect_coding, Fupdate_coding_systems_internal):
19233 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
19234 Since we do not want to see internal Lisp_*fwd objects here.
19235
19236 2007-11-18 Jan Djärv <jan.h.d@swipnet.se>
19237
19238 * sysdep.c (init_system_name): Use getaddrinfo if available.
19239
19240 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
19241 (x_scroll_bar_note_movement): start, end, with, height in struct
19242 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
19243
19244 2007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
19245
19246 * puresize.h (BASE_PURESIZE): Increase to 1190000.
19247
19248 2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
19249
19250 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
19251 This undoes Richard's change of 14-Oct-2002.
19252
19253 * alloc.c (allocate_other_vector):
19254 * lisp.h (allocate_other_vector): Remove.
19255
19256 * window.c (struct save_window_data): Move non-lisp data to the end
19257 and make it `int' rather than Lisp_Object.
19258 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
19259 Done wrap/unwrap integer values.
19260 (Fset_window_configuration, compare_window_configurations):
19261 Update use of fields to their new types.
19262
19263 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
19264 Turn integer fields into `int'. Merge x_window_low and x_window_high.
19265 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
19266 (SET_SCROLL_BAR_X_WINDOW): Remove.
19267 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
19268 Access the new x_window field directly.
19269 * xterm.c (x_scroll_bar_create): Use a pseudovector.
19270 Don't wrap/unwrap integers into Lisp_Objects.
19271 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
19272 (x_scroll_bar_report_motion):
19273 Don't wrap/unwrap integers into Lisp_Objects.
19274 (x_term_init): Use SDATA.
19275 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
19276 (x_scroll_bar_set_handle, x_scroll_bar_remove)
19277 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
19278 (x_scroll_bar_report_motion, x_scroll_bar_clear):
19279 * xfns.c (x_set_background_color):
19280 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
19281 Access the new x_window field directly.
19282
19283 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
19284 (allocate_pseudovector): Make non-static.
19285
19286 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
19287 (allocate_pseudovector): Declare.
19288 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
19289
19290 2007-11-15 Andreas Schwab <schwab@suse.de>
19291
19292 * editfns.c (Fformat): Correctly format EMACS_INT values.
19293 Also take precision into account when formatting an integer.
19294
19295 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
19296
19297 2007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
19298
19299 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
19300 (syms_of_keyboard): Defsubr it.
19301
19302 * data.c (swap_in_global_binding): Fix longstanding bug where
19303 store_symval_forwarding was not called with the right second argument,
19304 thus causing objfwd-ing from being dropped.
19305
19306 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
19307
19308 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
19309 (Fx_display_pixel_height, Fx_display_planes)
19310 (Fx_display_color_cells, Fx_server_max_request_size)
19311 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19312 (Fx_display_visual_class, Fx_display_save_under):
19313 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
19314 (Fx_display_pixel_height, Fx_display_planes)
19315 (Fx_display_color_cells, Fx_server_max_request_size)
19316 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
19317 (Fx_display_mm_height, Fx_display_mm_width)
19318 (Fx_display_backing_store, Fx_display_visual_class)
19319 (Fw32_select_font, Fx_display_save_under):
19320 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
19321 (Fx_display_pixel_height, Fx_display_planes)
19322 (Fx_display_color_cells, Fx_server_max_request_size)
19323 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19324 (Fx_display_save_under): Fix typos in docstrings.
19325
19326 2007-11-14 Juanma Barranquero <lekktu@gmail.com>
19327
19328 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
19329 corresponding to deleted entries; they are an implementation detail.
19330 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
19331 Remove variables.
19332 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
19333 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
19334 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
19335 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
19336 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
19337 (Fw32_define_rgb_color, Fw32_load_color_file)
19338 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
19339 Fix typos in docstrings.
19340 (Fx_server_version): Reflow docstring.
19341 (Fw32_shell_execute): Doc fixes.
19342
19343 2007-11-13 Juanma Barranquero <lekktu@gmail.com>
19344
19345 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
19346 if w32_parse_hot_key returned nil.
19347
19348 2007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
19349
19350 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
19351
19352 2007-11-09 Jason Rumney <jasonr@gnu.org>
19353
19354 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
19355
19356 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
19357
19358 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
19359 Remove W32_SCROLL_BAR_CLICK_EVENT.
19360
19361 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
19362 Add MULTIMEDIA_KEY_EVENT.
19363
19364 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
19365 (lispy_multimedia_keys) [WINDOWSNT]: New array.
19366 (make_lispy_event) [WINDOWSNT]: Use it to translate
19367 MULTIMEDIA_KEY_EVENT.
19368
19369 * w32term.h (WM_APPCOMMAND): Define if not already.
19370 (GET_APPCOMMAND_LPARAM): Likewise.
19371
19372 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
19373 WM_APPCOMMAND.
19374
19375 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
19376 (syms_of_w32fns): Export and initialize it.
19377 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
19378
19379 2007-11-09 Chong Yidong <cyd@stupidchicken.com>
19380
19381 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
19382 twice.
19383
19384 * xdisp.c (handle_face_prop): Fix last change.
19385
19386 2007-11-09 Richard Stallman <rms@gnu.org>
19387
19388 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
19389 not just for after-strings and before-strings.
19390 Call face_for_overlay_string and pass the overlay to it.
19391 (handle_display_prop): Determine whether property came from an overlay.
19392 Pass OVERLAY arg to handle_single_display_spec.
19393 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
19394 (load_overlay_strings): Fill in it->string_overlays.
19395 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
19396
19397 * xfaces.c (face_for_overlay_string): Function renamed from
19398 face_at_buffer_position_no_overlays, and add arg OVERLAY.
19399
19400 * dispextern.h (struct it): New elt string_overlays.
19401 New elt from_overlay, also in stack.
19402 Rearrange a few elements.
19403 (face_for_overlay_string): Decl renamed from
19404 face_at_buffer_position_no_overlays, and add argument.
19405
19406 2007-11-09 Richard Stallman <rms@gnu.org>
19407
19408 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
19409 to get the base face for an overlay string.
19410
19411 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
19412
19413 * xfaces.c (face_at_buffer_position_no_overlays): New function.
19414
19415 * xdisp.c (handle_stop): Move some code out of loop.
19416
19417 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19418
19419 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
19420 Fix conversion from Lisp object to ATSUFontID.
19421
19422 2007-11-09 Jason Rumney <jasonr@gnu.org>
19423
19424 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
19425
19426 2007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19427
19428 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
19429 Don't assume regions are aligned to page boundary.
19430 (print_load_command_name): Add LC_UUID if defined.
19431
19432 2007-11-09 Richard Stallman <rms@gnu.org>
19433
19434 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
19435
19436 2007-11-07 Jason Rumney <jasonr@gnu.org>
19437
19438 * s/windows95.h: Remove.
19439
19440 2007-11-06 Jan Djärv <jan.h.d@swipnet.se>
19441
19442 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
19443 abort with a message on unhandled store_type values.
19444
19445 2007-11-01 Jan Djärv <jan.h.d@swipnet.se>
19446
19447 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
19448 Remove HAVE_X11R5 and HAVE_X11R4.
19449
19450 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19451
19452 * Makefile.in: Remove references to sunfns.c and sunfns.o.
19453
19454 2007-11-01 Johan Bockgård <bojohan@gnu.org>
19455
19456 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
19457 Don't set s->stippled_p here, since it has already been set by
19458 x_set_glyph_string_gc from x_draw_glyph_string.
19459
19460 2007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19461
19462 * sunfns.c: Remove file.
19463
19464 * m/sun386.h:
19465 * m/sun2.h:
19466 * m/sparc.h: Remove Sun windows code.
19467
19468 2007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
19469
19470 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
19471 (init_keyboard): Set current_kboard's window-system to nil.
19472 (tty_read_avail_input): Typo.
19473 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
19474
19475 2007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
19476
19477 * s/usg5-4.h:
19478 * s/usg5-3.h:
19479 * s/ptx.h:
19480 * m/is386.h:
19481 * m/ibmps2-aix.h:
19482 * Makefile.in: Remove all mentions of X10.
19483
19484 * dispnew.c (syms_of_display): Don't mention version 10.
19485
19486 2007-10-28 Juanma Barranquero <lekktu@gmail.com>
19487
19488 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
19489 ($(BLD)/abbrev.$(O)): Remove.
19490
19491 2007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
19492
19493 Rewrite abbrev.c in Elisp.
19494 * image.c (Qcount): Don't declare as extern.
19495 (syms_of_image): Initialize and staticpro `Qcount'.
19496 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
19497 * emacs.c (main): Don't call syms_of_abbrev.
19498 * Makefile.in (obj): Remove abbrev.o.
19499 (abbrev.o): Remove.
19500 * abbrev.c: Remove.
19501
19502 2007-10-26 Martin Rudalics <rudalics@gmx.at>
19503
19504 * window.c (window_min_size_2): Don't count header-line.
19505
19506 2007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
19507
19508 * frame.h (struct frame): Move all bit fields after the first bit
19509 field to take advantage of the available space. Group all the
19510 chars together to reduce wasted space due to padding.
19511
19512 2007-10-26 Juanma Barranquero <lekktu@gmail.com>
19513
19514 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
19515
19516 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
19517 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
19518 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
19519 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
19520 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
19521 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
19522 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
19523 (last_marked, mark_object_loop_halt): Make static.
19524
19525 * frame.c (syms_of_frame) <delete-frame-functions>:
19526 Fix typo in docstring.
19527
19528 2007-10-25 Juanma Barranquero <lekktu@gmail.com>
19529
19530 * w32.c (init_environment): Fix tiny memory leak.
19531 (w32_get_resource): Remove unused variable `ok'.
19532
19533 2007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
19534
19535 Make `window-system' into a keyboard-local variable (rather than
19536 frame-local as done originally by multi-tty).
19537
19538 * keyboard.h (struct kboard): Add Vwindow_system.
19539 * keyboard.c (init_kboard): Set a default for Vwindow_system.
19540 (mark_kboards): Mark Vwindow_system.
19541
19542 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
19543 (init_display): Don't set the obsolete `window-system' frame-param.
19544
19545 * xterm.c (x_term_init):
19546 * w32term.c (w32_create_terminal):
19547 * term.c (init_tty): Set Vwindow_system.
19548 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
19549 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
19550
19551 * xfns.c (Fx_create_frame, x_create_tip_frame):
19552 * w32fns.c (Fx_create_frame, x_create_tip_frame):
19553 * macfns.c (Fx_create_frame):
19554 Don't set the obsolete `window-system' frame-param.
19555
19556 * frame.h (Qwindow_system): Remove.
19557 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
19558 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
19559
19560 2007-10-24 Richard Stallman <rms@gnu.org>
19561
19562 * frame.c (x_figure_window_size): For fullscreen case,
19563 set USPosition | PPosition without clobbering rest of window_prompting.
19564
19565 * keyboard.c (Fcurrent_idle_time): Doc fix.
19566
19567 * print.c (Fwith_output_to_temp_buffer): Doc fix.
19568
19569 2007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
19570
19571 * process.c (unwind_request_sigio): Only define if __ultrix__.
19572
19573 * callproc.c (child_setup): Remove spurious *.
19574
19575 * lisp.h (Fget_text_property): Declare.
19576 (have_menus_p): Declare it here rather than in sys-dep header files.
19577 * macterm.h (have_menus_p):
19578 * msdos.h (have_menus_p):
19579 * xterm.h (have_menus_p): Remove.
19580
19581 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
19582 (Fmake_variable_frame_local): Just check the variable's const-ness
19583 rather than checking nil or t.
19584
19585 2007-10-22 Jason Rumney <jasonr@gnu.org>
19586
19587 * w32fns.c: Include math.h.
19588 (w32_abort): Declaration moved to nt/config.nt.
19589
19590 * s/ms-w32.h (HAVE_STDLIB_H): Define.
19591 (abort): Redefinition moved to nt/config.nt.
19592
19593 * m/windowsnt.h: Remove.
19594
19595 2007-10-22 Juanma Barranquero <lekktu@gmail.com>
19596
19597 * emacs.c (Fdump_emacs): Fix typo in message.
19598 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
19599 <installation-directory>: Reflow docstring.
19600
19601 2007-10-22 Juri Linkov <juri@jurta.org>
19602
19603 * minibuf.c: Allow minibuffer default to be a list of default values.
19604 With empty input use the first element of this list as returned default.
19605 (string_to_object)
19606 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
19607 (read_minibuf): If defalt is cons, set histstring to its car.
19608 (Fread_string): If default_value is cons, set val to its car.
19609 (Fread_buffer): If def is cons, use its car.
19610 (Fcompleting_read): If defalt is cons, set val to its car.
19611
19612 2007-10-21 Michael Albinus <michael.albinus@gmx.de>
19613
19614 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
19615
19616 2007-10-20 Juanma Barranquero <lekktu@gmail.com>
19617
19618 * doc.c (Fdocumentation): Check for advice in all cases.
19619
19620 2007-10-19 Chong Yidong <cyd@stupidchicken.com>
19621
19622 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
19623
19624 2007-10-19 Richard Stallman <rms@gnu.org>
19625
19626 * doc.c (Fdocumentation): Check for and handle an advised function.
19627
19628 2007-10-19 Juanma Barranquero <lekktu@gmail.com>
19629
19630 * process.c (Fset_process_filter): Doc fix.
19631
19632 2007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
19633
19634 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
19635 which caused key-translation-map to applied repeatedly (thus breaking
19636 double-mode).
19637
19638 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19639
19640 * xselect.c (x_own_selection, x_handle_selection_clear)
19641 (x_clear_frame_selections):
19642 * w32menu.c (list_of_panes, list_of_items):
19643 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
19644 * textprop.c (validate_plist, interval_has_all_properties)
19645 (interval_has_some_properties, interval_has_some_properties_list)
19646 (add_properties, text_property_list):
19647 * process.c (Fget_buffer_process, list_processes_1, status_notify):
19648 * minibuf.c (Fassoc_string):
19649 * macselect.c (x_own_selection, x_clear_frame_selections)
19650 (Fx_disown_selection_internal):
19651 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
19652 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
19653
19654 2007-10-17 Chong Yidong <cyd@stupidchicken.com>
19655
19656 * process.c: Link to libs for calling res_init() if available.
19657 (Fmake_network_process): Call res_init() before getaddrinfo or
19658 gethostbyname, if possible.
19659
19660 2007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19661
19662 * lread.c (read1): Set pvectype for char_tables.
19663
19664 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
19665 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
19666 Add type checks.
19667 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
19668
19669 * alloc.c (free_misc): Use XMISCTYPE.
19670 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
19671
19672 2007-10-17 Glenn Morris <rgm@gnu.org>
19673
19674 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
19675 (syms_of_minibuf): Add Qcompletion_ignore_case.
19676 * dired.c (Qcompletion_ignore_case): Change to external.
19677 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
19678 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
19679 (Fread_file_name): Use it rather than intern'ing.
19680
19681 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
19682 (Fread_coding_system): Ignore case of user input.
19683
19684 2007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19685
19686 * xdisp.c (handle_display_prop): Ignore display specs after
19687 replacing one when string text is being replaced.
19688 (handle_single_display_spec): Pretend as if characters with display
19689 property haven't been consumed only when buffer text is being replaced.
19690
19691 2007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
19692
19693 * xfns.c (Fx_create_frame, Fx_display_list):
19694 * window.c (window_fixed_size_p, enlarge_window)
19695 (shrink_window_lowest_first):
19696 * macterm.c (init_font_name_table):
19697 * macfns.c (Fx_create_frame, Fx_display_list):
19698 * lread.c (close_load_descs):
19699 * keyboard.c (read_char_x_menu_prompt):
19700 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
19701 * coding.c (code_convert_region_unwind): Test the type of an object
19702 rather than just !NILP before extracting data from it.
19703
19704 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
19705
19706 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
19707 (XMISCANY): New macro.
19708 (XMISCTYPE): Use it.
19709 (struct Lisp_Misc_Any): New type.
19710 (union Lisp_Misc): Use it.
19711 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
19712 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
19713 (find_symbol_value, set_internal, default_value, Fset_default)
19714 (Fmake_variable_buffer_local, Fmake_local_variable)
19715 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
19716 (Flocal_variable_if_set_p, Fvariable_binding_locus):
19717 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
19718 * alloc.c (allocate_buffer): Set the size and tag.
19719 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
19720 Use XMISCANY.
19721 (die): Follow the GNU convention for error messages.
19722 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
19723 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
19724 tag any more.
19725 (set_buffer_internal_1):
19726 * frame.c (store_frame_param):
19727 * eval.c (specbind):
19728 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
19729
19730 * doc.c (Fsnarf_documentation): Simplify.
19731
19732 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
19733
19734 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
19735 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
19736
19737 2007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
19738
19739 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
19740
19741 2007-10-14 Juanma Barranquero <lekktu@gmail.com>
19742
19743 * eval.c (do_autoload): Don't save autoloads.
19744
19745 * data.c (Ffset): Save autoload of the function being set.
19746
19747 2007-10-07 John Paul Wallington <jpw@pobox.com>
19748
19749 * xfns.c (x_create_tip_frame): Set the `display-type' frame
19750 parameter before setting up faces.
19751
19752 2007-10-13 Eli Zaretskii <eliz@gnu.org>
19753
19754 * ccl.c (Fregister_code_conversion_map):
19755 * keyboard.c (append_tool_bar_item): Reformat last change.
19756
19757 * lisp.h (eabs): Rename from `abs'. All callers changed.
19758
19759 2007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
19760
19761 * buffer.c (add_overlay_mod_hooklist):
19762 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
19763 * fontset.c (make_fontset):
19764 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
19765 (append_tool_bar_item):
19766 * macmenu.c (grow_menu_items):
19767 * w32menu.c (grow_menu_items):
19768 * xmenu.c (grow_menu_items): Use larger_vector.
19769
19770 2007-10-13 Eli Zaretskii <eliz@gnu.org>
19771
19772 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
19773 selected frame'' on MSDOS).
19774
19775 2007-10-12 Martin Rudalics <rudalics@gmx.at>
19776
19777 * frame.c (Qexplicit_name): New variable.
19778 (x_report_frame_params): Report it in parameter alist.
19779 (syms_of_frame): Intern and staticpro it.
19780
19781 2007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
19782
19783 * macfns.c (x_create_tip_frame): Set terminal for frame.
19784
19785 2007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
19786
19787 * frame.c (Qenvironment): Remove.
19788 (syms_of_frame) <Qenvironment>: Don't initialize.
19789 (Fdelete_frame): Don't treat the `environment' param specially.
19790 * frame.h (Qenvironment): Don't declare.
19791 * callproc.c (set_initial_environment): Don't set unused frame param.
19792
19793 * frame.c (Fframe_with_environment): Remove.
19794 (syms_of_frame) <Sframe_with_environment>: Don't declare.
19795
19796 * lisp.h (Fframe_with_environment): Don't declare.
19797
19798 2007-10-10 Juanma Barranquero <lekktu@gmail.com>
19799
19800 * indent.c (indent_tabs_mode, last_known_column)
19801 (last_known_column_modified): Make static.
19802 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
19803
19804 2007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
19805
19806 * puresize.h (BASE_PURESIZE): Increase to 1170000.
19807
19808 2007-10-09 Jason Rumney <jasonr@gnu.org>
19809
19810 * w32term.c (x_set_window_size): Disable code that attempts to tell
19811 Lisp code about a size change before it actually happens.
19812
19813 2007-10-09 Richard Stallman <rms@gnu.org>
19814
19815 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
19816 return HANDLED_RETURN.
19817
19818 2007-10-08 Martin Rudalics <rudalics@gmx.at>
19819
19820 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
19821 when there's an unread command event.
19822
19823 * frame.c (focus_follows_mouse): Move here from frame.el to allow
19824 window autoselection act appropriately when leaving selected frame.
19825 (syms_of_frame): Initialize focus_follows_mouse.
19826 * frame.h (focus_follows_mouse): Extern it.
19827 * macterm.c (XTread_socket): When focus_follows_mouse is nil
19828 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
19829 * msdos.c (dos_rawgetc): Likewise.
19830 * w32term.c (w32_read_socket): Likewise.
19831 * xterm.c (handle_one_xevent): Likewise.
19832 * xdisp.c (syms_of_xdisp): In doc-string of
19833 mouse-autoselect-window mention focus-follows-mouse.
19834
19835 2007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19836
19837 * macterm.c (mac_load_query_font): Fix missing return value.
19838 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
19839 Add BLOCK_INPUT.
19840
19841 2007-10-08 Richard Stallman <rms@gnu.org>
19842
19843 * xdisp.c (get_window_cursor_type): Implement documented behavior
19844 for cursor-in-non-selected-windows = t.
19845
19846 2007-10-08 Jason Rumney <jasonr@gnu.org>
19847
19848 * w32.c (w32_get_resource): Always close registry keys.
19849
19850 2007-10-08 Jason Rumney <jasonr@gnu.org>
19851
19852 * makefile.w32-in (LIBS): Add COMCTL32.
19853
19854 * w32fns.c (globals_of_w32fns): Init common controls.
19855
19856 2007-10-08 Richard Stallman <rms@gnu.org>
19857
19858 * image.c (our_memory_buffer): Rename from omfib_buffer.
19859
19860 2007-10-08 Richard Stallman <rms@gnu.org>
19861
19862 * buffer.c (Foverlays_at): Doc fix.
19863
19864 2007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
19865
19866 * fns.c (Fplist_put): Preserve uneven tail data.
19867
19868 2007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
19869
19870 * termhooks.h (enum event_kind): Remove trailing comma.
19871
19872 * frame.h (enum): Remove trailing comma.
19873
19874 2007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
19875
19876 * w32proc.c (delete_child): Don't terminate threads of zombies.
19877
19878 2007-10-08 Martin Rudalics <rudalics@gmx.at>
19879
19880 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
19881
19882 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
19883 last-repeatable-command.
19884 (init_kboard): Initialize Vlast_repeatable_command.
19885 (command_loop_1): Set it to real_this_command unless that was
19886 bound to an input event.
19887 (mark_kboards): Mark it.
19888
19889 2007-10-08 Richard Stallman <rms@gnu.org>
19890
19891 * eval.c (condition-case): Doc fix.
19892
19893 2007-10-08 Masatake YAMATO <jet@gyve.org>
19894
19895 * xfaces.c (tty_supports_face_attributes_p): Fix code
19896 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
19897 was copied and not edited.
19898
19899 2007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
19900
19901 Add new `input-decode-map' keymap and use it for terminal
19902 escape sequences.
19903 * keyboard.h (struct kboard): Add Vinput_decode_map.
19904 Remove Vlocal_key_translation_map.
19905 * keyboard.c (read_key_sequence): Add support for input-decode-map.
19906 (init_kboard): Init input-decode-map.
19907 Replace local-key-translation-map back with key-translation-map.
19908 (syms_of_keyboard): Declare input-decode-map.
19909 Remove local-key-translation-map. Update docstrings.
19910 (mark_kboards): Mark Vinput_decode_map.
19911 Don't mark Vlocal_key_translation_map.
19912 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
19913 Replace local-key-translation-map back with key-translation-map.
19914 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
19915 Bind in input-decode-map rather than function-key-map.
19916
19917 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
19918 This was made redundant by the previous introduction of XSETPVECTYPE.
19919
19920 2007-10-09 Richard Stallman <rms@gnu.org>
19921
19922 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
19923
19924 2007-09-29 Richard Stallman <rms@gnu.org>
19925
19926 * eval.c (internal_condition_case_2, internal_condition_case_1)
19927 (internal_condition_case): Reenable abort if x_catching_errors ()
19928 to see if that really happens and why.
19929
19930 2007-10-06 Andreas Schwab <schwab@suse.de>
19931
19932 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
19933
19934 2007-10-04 Juanma Barranquero <lekktu@gmail.com>
19935
19936 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
19937
19938 2007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
19939
19940 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
19941
19942 2007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
19943
19944 * window.h (struct window):
19945 * window.c (struct save_window_data, struct saved_window):
19946 * termhooks.h (struct terminal):
19947 * process.h (struct Lisp_Process):
19948 * frame.h (struct frame):
19949 * buffer.h (struct buffer):
19950 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
19951 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
19952 The size field of (pseudo)vectors is now unsigned.
19953 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
19954
19955 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
19956 Turn `count' into an integer.
19957
19958 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
19959 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
19960 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
19961 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
19962 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
19963
19964 * alloc.c (allocate_pseudovector): New fun.
19965 (ALLOCATE_PSEUDOVECTOR): New macro.
19966 (allocate_window, allocate_terminal, allocate_frame)
19967 (allocate_process): Use it.
19968 (mark_vectorlike): New function.
19969 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
19970 (mark_terminals): Use it.
19971 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
19972 (Fmake_byte_code): Use XSETPVECTYPE.
19973
19974 * frame.c (Fframe_parameters): Minor simplification.
19975
19976 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
19977
19978 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
19979
19980 * buffer.c (Fget_buffer_create, init_buffer_once):
19981 * lread.c (defsubr):
19982 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
19983
19984 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
19985 defined differently in the m/*.h files.
19986 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
19987 (XSETPVECTYPE): New macro.
19988 (XSETPSEUDOVECTOR): Use it.
19989
19990 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
19991 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
19992
19993 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
19994 * lread.c (defvar_per_buffer):
19995 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
19996
19997 * window.c (candidate_window_p): Only consider as visible frames that
19998 are on the same terminal.
19999
20000 * m/ibms390x.h (MARKBIT): Remove unused macro.
20001
20002 2007-10-01 Juanma Barranquero <lekktu@gmail.com>
20003
20004 * lread.c (Fload): Fix typo in docstring.
20005
20006 2007-10-01 Michaël Cadilhac <michael@cadilhac.name>
20007
20008 * floatfns.c (Fexpt): Manually check for overflows, so that a power
20009 of a non-zero value can't yield zero.
20010
20011 2007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
20012
20013 * term.c (term_clear_mouse_face, term_mouse_highlight)
20014 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
20015
20016 * print.c (safe_debug_print): Use XHASH.
20017
20018 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
20019 Lisp elements such as tags.
20020 (XHASH): New macro.
20021 (EQ): Use it.
20022 (SREF, SSET, STRING_COPYIN): Use SDATA.
20023 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
20024
20025 * alloc.c (mark_terminal): Remove left-over declaration.
20026 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
20027 (allocate_vectorlike): Remove type argument. Adjust callers.
20028 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
20029 Only handle the one remaining MEM_TYPE_VECTORLIKE.
20030
20031 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
20032 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
20033 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
20034 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
20035 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
20036 Use them.
20037
20038 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
20039 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
20040 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
20041
20042 2007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
20043
20044 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
20045 loaded by default.
20046
20047 2007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
20048
20049 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
20050 on this tty.
20051 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
20052
20053 * term.c (mouse_face_window): Rename from Qmouse_face_window.
20054 Update all users.
20055 (handle_one_term_event): Use Gpm_DrawPointer.
20056 (Fgpm_mouse_start): Rename from Fterm_open_connection.
20057 Signal errors instead of returning nil. Always return nil.
20058 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
20059 Make it a noop if gpm-mouse was not activated.
20060 (syms_of_term): Update names.
20061
20062 2007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
20063
20064 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
20065 (init_sys_modes): Check that gpm_tty is the current tty.
20066
20067 * alloc.c (allocate_terminal): Set the vector size to only count the
20068 lisp fields. Initialize those to nil.
20069 (mark_object): Don't treat terminals specially.
20070 (mark_terminal): Remove.
20071 (mark_terminals): Use mark_object instead.
20072
20073 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
20074 the GC to the beginning.
20075
20076 * indent.h:
20077 * indent.c: Use EMACS_INT for ints coming from Elisp data.
20078
20079 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
20080
20081 2007-09-25 Jason Rumney <jasonr@gnu.org>
20082
20083 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
20084
20085 * w32console.c (create_w32cons_output): Remove.
20086
20087 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
20088
20089 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
20090 (reset_sys_modes): Use reset_terminal_modes_hook.
20091
20092 2007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
20093
20094 * eval.c (do_autoload): Don't output any message.
20095
20096 2007-09-24 Juri Linkov <juri@jurta.org>
20097
20098 * emacs.c (standard_args): Change priority of "--no-splash"
20099 from 40 to 3. Add "--no-desktop" with the same priority.
20100
20101 2007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
20102
20103 * alloc.c (gc_sweep): Check cons cell mark bits word by word
20104 and optimize the case where they are all 1.
20105
20106 2007-09-23 Johannes Weiner <hannes@saeurebad.de>
20107
20108 * lisp.h (abs): Define if not defined.
20109 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
20110 Don't define `abs', since it's defined in lisp.h.
20111
20112 2007-09-22 Eli Zaretskii <eliz@gnu.org>
20113
20114 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
20115 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
20116 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
20117 (init_tty): Use DEV_TTY instead of "/dev/tty".
20118 [WINDOWSNT]: No need to protect from NAME arg being null.
20119
20120 2007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
20121
20122 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
20123 up the tty state.
20124
20125 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20126
20127 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
20128 (gpm_tty): Change its type.
20129 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
20130 (gpm_tty): Change its type and initialize it.
20131 (Fterm_open_connection): Check the frame is indeed a tty.
20132 Use the new gpm_tty.
20133 (Fterm_close_connection): Use the new gpm_tty.
20134 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
20135 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
20136
20137 2007-09-21 Juanma Barranquero <lekktu@gmail.com>
20138
20139 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
20140 underline_color, to draw strike-through.
20141
20142 2007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20143
20144 * lisp.h (allocate_terminal): Declare.
20145
20146 * window.c (candidate_window_p): Consider frames that are being placed
20147 by the user as somewhere between visible and iconified.
20148 (window_loop): Prefer windows on the current frame.
20149 (Fselect_window): Move the use of select-frame to the beginning so we
20150 can just delegate all the work (it'll call us back anyway).
20151
20152 * frame.c (Qdisplay_environment_variable):
20153 * frame.h (Qdisplay_environment_variable): Delete.
20154
20155 * .gdbinit (xbacktrace): Print the arg's address rather than the value
20156 of the first arg, since that value may be a union.
20157
20158 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
20159 parameter rather than Qdisplay_environment_variable. If all else
20160 fails, look for DISPLAY in initial-environment.
20161
20162 2007-09-21 Glenn Morris <rgm@gnu.org>
20163
20164 * Makefile.in (emacstool): Remove target.
20165 (lisp, shortlisp): Remove termdev.elc.
20166
20167 2007-09-21 Markus Triska <markus.triska@gmx.at>
20168
20169 * xterm.c (x_delete_display): Compile session management conditionally.
20170
20171 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
20172
20173 * callproc.c (getenv_internal_1): New function.
20174 (getenv_internal): Use it.
20175 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
20176
20177 * terminal.c (get_terminal): Don't accept ints to represent terminals.
20178 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
20179 (Fset_terminal_parameter): Work with dead terminals as well.
20180 (Fmodify_terminal_parameters): Remove.
20181
20182 * terminal.c (get_terminal): Handle terminals.
20183 Make sure the terminal returned is live.
20184 (create_terminal): Use allocate_terminal.
20185 (mark_terminals): Move to alloc.c.
20186 (delete_terminal): Use terminal->name as liveness status.
20187 NULL out fields after freeing their contents.
20188 Don't deallocate the object.
20189 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
20190 rather than an int.
20191 (Fterminal_live_p): Accept non-integer arguments.
20192 (Fterminal_list): Return terminal objects rather than an ints.
20193
20194 * alloc.c (enum mem_type): New member for `terminal' objects.
20195 (allocate_terminal): New function.
20196 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
20197 Handle terminals.
20198 (mark_terminal): New fun.
20199 (mark_terminals): Move from terminal.c.
20200
20201 * term.c (get_tty_terminal): Don't treat output_initial specially.
20202 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
20203 (delete_tty): Use terminal->name as liveness status.
20204
20205 * termhooks.h (struct terminal): Make it into a pseudovector.
20206 Remove `deleted' replaced by checking `name's nullness.
20207
20208 * print.c (print_object): Handle terminals.
20209
20210 * lisp.h (enum pvec_type): New `terminal' pseudovector.
20211 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
20212
20213 * frame.c (make_terminal_frame):
20214 * keyboard.c (tty_read_avail_input):
20215 * w32term.c (x_delete_terminal):
20216 * xfns.c (Fx_create_frame, x_create_tip_frame):
20217 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
20218
20219 2007-09-20 Glenn Morris <rgm@gnu.org>
20220
20221 * process.c (Fmake_network_process): Doc fix.
20222
20223 2007-09-19 Jason Rumney <jasonr@gnu.org>
20224
20225 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
20226
20227 2007-09-19 Michaël Cadilhac <michael@cadilhac.name>
20228
20229 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
20230 Fix a C warning regarding variable constness.
20231
20232 * xterm.c (handle_one_xevent): Fix a C warning.
20233
20234 2007-09-18 Jason Rumney <jasonr@gnu.org>
20235
20236 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
20237
20238 2007-09-17 Jan Djärv <jan.h.d@swipnet.se>
20239
20240 * gtkutil.c (gdpy_def): New variable.
20241 (xg_initialize): Initialize gdpy_def.
20242 (xg_display_close): If no other display exists, set gdpy_def to a
20243 new connection.
20244
20245 2007-09-16 Jan Djärv <jan.h.d@swipnet.se>
20246
20247 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
20248 when we have no file name for the icon.
20249 (xg_tool_bar_expose_callback): Remove.
20250 (xg_create_tool_bar): Don't connect expose signal to
20251 xg_tool_bar_expose_callback.
20252 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
20253
20254 2007-09-16 Andreas Schwab <schwab@suse.de>
20255
20256 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
20257 values instead of zapping them.
20258
20259 2007-09-14 Glenn Morris <rgm@gnu.org>
20260
20261 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
20262 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
20263 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
20264 scope and rename to omfib_buffer for clarity.
20265 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
20266
20267 2007-09-14 Kenichi Handa <handa@m17n.org>
20268
20269 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
20270
20271 2007-09-13 Jason Rumney <jasonr@gnu.org>
20272
20273 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
20274
20275 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
20276
20277 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
20278 (mac_term_init): Call here instead, passing rif.
20279
20280 2007-09-13 Glenn Morris <rgm@gnu.org>
20281
20282 * s/hpux.h: No longer define `static' as nothing.
20283
20284 2007-09-13 Johan Bockgård <bojohan@gnu.org>
20285
20286 * callint.c (Fcall_interactively): Remove unused var `fun'.
20287
20288 2007-09-12 Romain Francoise <romain@orebokech.com>
20289
20290 * window.c (prefer_window_split_horizontally, display_buffer):
20291 Revert 2007-09-08 change.
20292
20293 2007-09-12 Glenn Morris <rgm@gnu.org>
20294
20295 * alloca.c: Remove file.
20296 * Makefile.in (alloca): Do not undef.
20297 (allocaobj, alloca.o): Remove.
20298 (otherobj): Remove allocaobj.
20299 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
20300 * regex.c (C_ALLOCA): Remove all references and code that was only
20301 used when this was defined.
20302 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
20303 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
20304 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
20305
20306 * Makefile.in (SOURCES, unlock, relock): Delete.
20307
20308 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
20309 (menu_grab_callback): All uses changed.
20310
20311 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
20312 (x_reply_selection_request): All uses changed.
20313
20314 2007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
20315
20316 * lread.c (load_warn_old_style_backquotes): Change message to look
20317 better when it appears in the middle of byte-compiler messages.
20318
20319 2007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
20320
20321 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
20322
20323 * xterm.c (x_create_terminal): Add comment.
20324
20325 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
20326
20327 2007-09-10 Richard Stallman <rms@gnu.org>
20328
20329 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
20330
20331 2007-09-10 Michaël Cadilhac <michael@cadilhac.name>
20332
20333 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
20334 (DEFUN): Document `intspec', use it instead of `prompt'.
20335
20336 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
20337
20338 * data.c (Finteractive_form): If the interactive specification starts
20339 with a `(', use it as a Lisp form.
20340
20341 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
20342 name and file modes.
20343
20344 * callint.c (Fcall_interactively): Comment fixes.
20345
20346 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
20347
20348 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
20349 and compiled functions.
20350
20351 2007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
20352
20353 * window.c (prefer_window_split_horizontally): New variable.
20354 (display_buffer): Consider splitting window horizontally depending
20355 on prefer_window_split_horizontally.
20356
20357 2007-09-08 Eli Zaretskii <eliz@gnu.org>
20358
20359 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
20360
20361 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20362
20363 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
20364
20365 * frame.c (x_set_frame_parameters): Check number is positive before
20366 using XFASTINT.
20367
20368 * window.c (freeze_window_start): Don't presume selected_window holds
20369 a window object.
20370 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
20371
20372 2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
20373
20374 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
20375
20376 2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20377
20378 * window.c (Vsplit_window_preferred_function): New var.
20379 (Fdisplay_buffer): Use it.
20380 (syms_of_window): Export, and initialize it.
20381
20382 2007-09-06 Pixel <pixel@mandriva.com> (tiny change)
20383
20384 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
20385
20386 2007-09-06 Glenn Morris <rgm@gnu.org>
20387
20388 * gtkutil.c (menu_grab_callback) <cnt>:
20389 * xselect.c (x_reply_selection_request) <cnt>: Move static
20390 variable to file scope.
20391
20392 2007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
20393
20394 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
20395 consistent values of selected_frame and selected_window.
20396
20397 2007-09-04 Jason Rumney <jasonr@gnu.org>
20398
20399 * w32console.c (initialize_w32_display): Zero unused hooks.
20400
20401 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20402
20403 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
20404 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
20405
20406 2007-09-04 Jason Rumney <jasonr@gnu.org>
20407
20408 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
20409 in w32console.c. Set up input. Remove XXX comments that have been
20410 confirmed as correct.
20411
20412 * s/ms-w32.h (MULTI_KBOARD): Define.
20413
20414 * w32console.c (one_and_only_w32cons): Remove.
20415 (initialize_w32_display): Take terminal argument.
20416
20417 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
20418 initialize_w32_display.
20419 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
20420
20421 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
20422
20423 * keyboard.c (discard_mouse_events): Discard it.
20424 (make_lispy_event): Translate it to a lisp event.
20425 (lispy_wheel_names): Add wheel-left and right events.
20426 (syms_of_keyboard): Enlarge wheel_syms.
20427
20428 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
20429 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
20430
20431 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
20432
20433 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
20434 from WM_MOUSEHWHEEL.
20435 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
20436
20437 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
20438 terminal.
20439
20440 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
20441 keyboard for the terminal.
20442
20443 2007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20444
20445 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
20446 (Vresume_tty_hook): Rename from Vresume_tty_functions.
20447 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
20448 and resume-tty-function to resume-tty-hook.
20449 (Fsuspend_tty, Fresume_tty): Use new names.
20450
20451 2007-09-02 Jan Djärv <jan.h.d@swipnet.se>
20452
20453 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
20454 if it starts with "n:".
20455
20456 2007-08-31 Jan Djärv <jan.h.d@swipnet.se>
20457
20458 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
20459
20460 2007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
20461
20462 * frame.h:
20463 * frame.c (Qterm_environment_variable): Remove.
20464 (syms_of_frame): Don't init and staticpro it.
20465
20466 * callproc.c (getenv_internal): Remove special case for $TERM.
20467
20468 * callproc.c (Vinitial_environment): New variable.
20469 (set_initial_environment): Initialize it.
20470 (syms_of_callproc): Declare it.
20471 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
20472 TERM under which a process runs is never related to the TERM in which
20473 Emacs is running.
20474
20475 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20476
20477 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
20478 * s/darwin.h: ... do it here.
20479
20480 2007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
20481
20482 * lisp.h (set_initial_environment): Rename from set_global_environment.
20483
20484 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
20485 removed by mistake on the multi-tty branch.
20486
20487 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
20488 (Fmodify_frame_parameters): Return a value.
20489
20490 * image.c (png_load): Comment-out var only used in commented-out code.
20491
20492 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
20493 before passing it to mark_object.
20494
20495 * xfaces.c (internal_resolve_face_name): Return a value.
20496 (internal_resolve_face_name, resolve_face_name_error): Comment out.
20497
20498 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
20499 (x_icon): Comment-out var only used in commented-out code.
20500
20501 2007-08-29 Romain Francoise <romain@orebokech.com>
20502
20503 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
20504 QUIT hasn't been provided.
20505
20506 2007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20507
20508 * callproc.c (child_setup, getenv_internal): Use the
20509 display-environment-variable and term-environment-variable frame params.
20510 (set_initial_environment): Initialise Vprocess_environment.
20511
20512 * config.in: Disable multi-keyboard support on a mac.
20513
20514 * frame.c (Qterm_environment_variable)
20515 (Qdisplay_environment_variable): New variables.
20516 (syms_of_frame): Intern and staticpro them.
20517 (Fmake_terminal_frame): Disable output method test.
20518
20519 * frame.h: Declare them here.
20520
20521 * macfns.c (x_set_mouse_color): Get rif from the frame.
20522 (x_set_tool_bar_lines): Don't use updating_frame.
20523 (mac_window): Add 2 new parameters for consistency with other systems.
20524 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
20525 frame parameters following what is done in X11 and w32. Don't use
20526 FRAME_MAC_DISPLAY_INFO.
20527 (Fx_open_connection, start_hourglass): Remove window-system check.
20528 (x_create_tip_frame): Get the keyboard from the terminal.
20529
20530 * macmenu.c: Reorder includes.
20531 (Fx_popup_menu): Use terminal specific mouse_position_hook.
20532
20533 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
20534 terminal parameter.
20535 (x_clear_frame): Add a frame parameter.
20536 (note_mouse_movement): Get rif from the frame.
20537 (mac_term_init): Initialize the terminal.
20538 (mac_initialize): Make static and move terminal initialization ...
20539 (mac_create_terminal): ... to this new function.
20540
20541 * macterm.h (struct mac_display_info): Add terminal.
20542 (mac_initialize): Delete declaration.
20543
20544 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
20545
20546 * sysdep.c: Comment out text after #endif.
20547
20548 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
20549 is defined. Better initialize ttys in windows. Use terminal
20550 specific mouse_position_hook.
20551
20552 * termhooks.h (union display_info): Add mac_display_info.
20553
20554 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
20555 Set the default minibuffer frame, window_system and the rest of the
20556 frame parameters following what is done in X11.
20557
20558 * w32term.c (w32_initialize): Make static.
20559
20560 * xselect.c (x_handle_selection_clear): Only access
20561 terminal->kboard when MULTI_KBOARD is defined.
20562
20563 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
20564 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
20565
20566 2007-08-29 Jason Rumney <jasonr@gnu.org>
20567
20568 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
20569 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
20570
20571 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
20572 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
20573
20574 * keyboard.c (restore_kboard_configuration): Only define when
20575 MULTI_KBOARD defined.
20576
20577 * makefile.w32-in: Update dependancies from Makefile.in.
20578 (OBJ1): Add terminal.$(O)
20579
20580 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
20581 Don't define function body.
20582 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
20583
20584 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
20585
20586 * w32.c (request_sigio, unrequest_sigio): Remove.
20587
20588 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
20589 (w32con_clear_frame, w32con_clear_end_of_line)
20590 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
20591 (w32con_delete_glyphs, w32con_set_terminal_window)
20592 (scroll_line, w32_sys_ring_bell): Add frame arg.
20593 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
20594 Add terminal arg.
20595 (PICK_FRAME): Remove.
20596 (w32con_write_glyphs): Use frame specific terminal coding.
20597 (one_and_only_w32cons): New global variable.
20598 (initialize_w32_display): Use it for storing hooks.
20599 (create_w32cons_output): New function.
20600
20601 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
20602 arg a frame.
20603
20604 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
20605 Set window_system.
20606 (x_set_tool_bar_lines): Don't use updating_frame.
20607 (Fx_create_frame): Set terminal and ref count.
20608 (Fx_open_connection): Remove window-system check.
20609
20610 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
20611
20612 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
20613 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
20614 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
20615 Add frame arg.
20616 (x_delete_terminal, w32_create_terminal): New functions.
20617 (w32_term_init): Create a terminal.
20618 (w32_initialize): Move terminal specific initialization to
20619 w32_create_terminal.
20620
20621 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
20622 (w32_clear_rect, w32_clear_area): Use background from frame.
20623 (w32_display_info): Add terminal.
20624 (w32_sys_ring_bell, x_delete_display): Declare here.
20625
20626 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
20627
20628 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
20629
20630 2007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
20631
20632 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
20633 Fix get_named_tty calls for the controlling tty.
20634
20635 2007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
20636
20637 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
20638
20639 2007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
20640
20641 * term.c (tty_insert_glyphs): Add missing first parameter.
20642
20643 2007-08-29 Károly Lőrentey <karoly@lorentey.hu>
20644
20645 * buffer.c (Fbuffer_list, Fbury_buffer):
20646 Take frame->buried_buffer_list into account.
20647
20648 * cm.c (current_tty): New variable, for cmputc().
20649 (cmputc): Use it.
20650 (cmcheckmagic): Add tty parameter, look up terminal streams there.
20651 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
20652 (cmgoto): Add tty parameter. Pass it on to calccost().
20653 Use emacs_tputs() instead of tputs().
20654
20655 * cm.h (emacs_tputs): New macro to set current_tty, and then call
20656 tputs().
20657 (current_tty): New variable, for cmputc().
20658 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
20659
20660 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
20661 (internal_condition_case, internal_condition_case_1)
20662 (internal_condition_case_2): Don't abort when x_catching_errors.
20663
20664 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
20665 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
20666 prevent crashes caused by bogus longjmps in read_char.
20667
20668 * keymap.h (Fset_keymap_parent): Add EXFUN.
20669
20670 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
20671 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20672 Remove redundant definition.
20673
20674 * macfns.c (x_set_mouse_color, x_make_gc):
20675 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20676
20677 * w32term.c (x_free_frame_resources):
20678 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20679 (w32_initialize): Use the accessor macros for terminal characteristics.
20680
20681 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
20682 Use the accessor macros for terminal characteristics.
20683 * msdos.c (internal_terminal_init): Use the accessor macros for
20684 terminal characteristics.
20685 (ScreenVisualBell, internal_terminal_init):
20686 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20687
20688 * termopts.h (no_redraw_on_reenter): Declare.
20689
20690 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
20691 (mark_terminals, mark_ttys): Declare.
20692 (Fgarbage_collect): Call them.
20693 (mark_object): Mark buried_buffer_list.
20694
20695 * prefix-args.c: Include stdlib.h for exit.
20696
20697 * syssignal.h: Add comment.
20698
20699 * indent.c: Include stdio.h.
20700
20701 * window.h (Vinitial_window_system): Declare.
20702 (Vwindow_system): Delete declaration.
20703
20704 * fontset.c (Finternal_char_font): Use FRAME_RIF.
20705
20706 * image.c (lookup_image): Don't initialize `c' until the xasserts
20707 have been run.
20708
20709 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
20710 FRAME_FOREGROUND_PIXEL.
20711
20712 * print.c (print_preprocess): Don't lose print_depth levels while
20713 iterating.
20714
20715 * widget.c (update_from_various_frame_slots):
20716 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20717
20718 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
20719 frames.
20720 (window_internal_height): Remove bogus make_number call.
20721 (init_window_once): Call make_terminal_frame with two zero parameters.
20722
20723 * fileio.c (Fread_file_name): Update comment.
20724
20725 * callint.c (Fcall_interactively):
20726 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
20727 Make sure it is correctly unwound.
20728
20729 * xsmfns.c (x_session_close): New function.
20730
20731 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
20732 Delete declarations.
20733
20734 * xterm.h: Remove declaration for x_fully_uncatch_errors.
20735 (x_output): Remove background_pixel and foreground_pixel fields.
20736 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
20737 (x_delete_device, x_session_close): Declare.
20738
20739 * lread.c: Include setjmp.h. Update declaration of `read_char'.
20740 (read_filtered_event): Call `read_char' with a local
20741 `wrong_kboard_jmpbuf'.
20742
20743 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
20744 Don't call single_kboard_state. Use FRAME_RIF.
20745
20746 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
20747 systems.
20748
20749 * lisp.h (set_process_environment): Rename to `set_global_environment'.
20750 (Fframe_with_environment, Fset_input_meta_mode)
20751 (Fset_quit_char): EXFUN.
20752 (x_create_device, tty_output, terminal, tty_display_info): Declare.
20753 (init_sys_modes, reset_sys_modes): Update prototypes.
20754 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
20755
20756 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
20757 Vlocal_key_translation_map, and Vkeyboard_translate_table.
20758 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
20759 Delete declarations.
20760 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
20761 (temporarily_switch_to_single_kboard, tty_read_avail_input):
20762 New declarations.
20763
20764 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
20765 already does that during init_display(). Call syms_of_keymap
20766 before syms_of_keyboard. Call `syms_of_terminal'.
20767 Call set_initial_environment, not set_process_environment.
20768 (shut_down_emacs): Call reset_all_sys_modes() instead of
20769 reset_sys_modes().
20770
20771 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
20772 (internal_resolve_face_name, resolve_face_name_error): New functions.
20773 (resolve_face_name): Protect against loops and errors thrown by Fget.
20774 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
20775 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
20776
20777 * scroll.c: Replace CURTTY() with local variables throughout the
20778 file (where applicable).
20779 (calculate_scrolling, calculate_direct_scrolling)
20780 (scrolling_1, scroll_cost): Use the accessor macros for terminal
20781 characteristics.
20782
20783 * keymap.c (Vfunction_key_map): Remove.
20784 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
20785 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
20786 (Vkey_translation_map): Remove.
20787 (syms_of_keymap): Remove DEFVAR for key-translation-map.
20788 (Fdescribe_buffer_bindings)
20789 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
20790 Update for terminal-local key-translation-map.
20791
20792 * Makefile.in (callproc.o): Update dependencies.
20793 (lisp, shortlisp): Add termdev.elc.
20794 (obj): Add terminal.o.
20795 (terminal.o): Add dependencies.
20796 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
20797 (data.o, fns.o): Add termhooks.h dependency.
20798 (SOME_MACHINE_LISP): Add dnd.elc.
20799 (minibuf.o): Fix typo.
20800 Update dependencies.
20801
20802 * data.c (do_symval_forwarding, store_symval_forwarding)
20803 (find_symbol_value): Use the selected frame's keyboard, not
20804 current_kboard.
20805
20806 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
20807 Vwindow_system.
20808
20809 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
20810 Fmenu_bar_open.
20811 (syms_of_xmenu): Update defsubr.
20812 (mouse_position_for_popup, Fx_popup_menu)
20813 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
20814 (set_frame_menubar, free_frame_menubar)
20815 (create_and_show_popup_menu, xmenu_show)
20816 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
20817 an X frame.
20818
20819 * xselect.c (x_own_selection): Abort if not an X frame.
20820 (some_frame_on_display): Check if it is an X frame.
20821 (x_handle_selection_clear): Deal with MULTI_KBOARD.
20822
20823 * coding.c: Include frame.h and termhooks.h.
20824 (terminal_coding, keyboard_coding): Delete.
20825 (Fset_terminal_coding_system_internal)
20826 (Fset_keyboard_coding_system_internal)
20827 (Fkeyboard_coding_system)
20828 (Fterminal_coding_system): Add a terminal parameter.
20829 Get terminal_coding from the terminal.
20830 (init_coding_once): Don't call setup_coding_system here.
20831
20832 * dispextern.h (set_scroll_region, turn_off_insert)
20833 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
20834 (tty_clear_end_of_line, tty_setup_colors)
20835 (delete_tty, updating_frame)
20836 (produce_special_glyphs, produce_glyphs, write_glyphs)
20837 (insert_glyphs): Remove.
20838 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
20839 (tty_turn_off_highlight, get_tty_size): Add declaration.
20840 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
20841
20842 * frame.h (enum output_method): Add output_initial.
20843 (struct x_output): Delete.
20844 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20845 Access foreground_pixel and background_pixel directly from the frame.
20846 (tty_display): Delete.
20847 (struct frame): Add buried_buffer_list, foreground_pixel,
20848 background_pixel and terminal. Delete kboard.
20849 (union output_data): Add tty.
20850 (FRAME_KBOARD): Get the kboard from the terminal.
20851 (FRAME_INITIAL_P): New macro.
20852 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
20853 (Qterm_environment_variable, Qdisplay_environment_variable)
20854 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
20855 New declarations.
20856
20857 * termchar.h (tty_output, tty_display_info): New structures.
20858 (tty_list): Declare.
20859 (FRAME_TTY, CURTTY): New macros.
20860 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
20861 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
20862 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
20863 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
20864
20865 * callproc.c: Include frame.h and termhooks.h, for terminal
20866 parameters.
20867 (add_env): New function.
20868 (child_setup): Use it.
20869 (child_setup, getenv_internal): Handle the new Vprocess_environment.
20870 (getenv_internal): Fix get_terminal_param call.
20871 (Fgetenv_internal, egetenv): Update doc.
20872 (syms_of_callproc): Initialize Vprocess_environment to nil.
20873 Register and initialize them. Remove obsolete defvars. Update doc
20874 strings.
20875 (child_setup): Handle Vlocal_environment_variables.
20876 (getenv_internal): Add terminal parameter.
20877 Handle Vlocal_environment_variables.
20878 (Fgetenv_internal): Add terminal parameter.
20879 (child_setup, getenv_internal, Fgetenv_internal): Store the local
20880 environment in a frame (not terminal) parameter. Update doc strings.
20881 (set_initial_environment): Rename from set_global_environment.
20882 Store Emacs environment in initial frame parameter.
20883
20884 * xdisp.c (redisplay_internal): Update references to
20885 `previous_terminal_frame'.
20886 (display_mode_line, Fformat_mode_line): Replace calls to
20887 `push_frame_kboard' with `push_kboard'.
20888 (get_glyph_string_clip_rects): Add extra parentheses and
20889 braces to prevent compiler warnings.
20890 (calc_pixel_width_or_height): Add xassert to check that the
20891 frame is alive. Don't call `lookup_image' on a termcap frame.
20892 (message2_nolog, message3_nolog, redisplay_internal)
20893 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
20894 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
20895 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
20896 (Fx_display_pixel_width, Fx_display_pixel_height)
20897 (Fx_display_planes, Fx_display_color_cells)
20898 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
20899 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
20900 (Fx_display_backing_store, Fx_display_visual_class)
20901 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
20902 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
20903
20904 * xfns.c (x_set_foreground_color x_set_background_color)
20905 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
20906 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20907 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
20908 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
20909 terminal that is being deleted.
20910 (Fx_create_frame): Use `store_frame_param' to set `window-system'
20911 frame parameter, and make sure it overrides any user-supplied setting.
20912 (Fx_close_connection, Fx_synchronize): Unify argument names with
20913 the rest of the DEFUNs.
20914
20915 * dispnew.c (Fsend_string_to_terminal): Update call to
20916 `get_tty_terminal'.
20917 (Fredraw_frame, Fsend_string_to_terminal)
20918 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
20919 FRAME_TERMCAP_P and FRAME_TTY.
20920 (window_change_signal): Don't believe width/height values that are
20921 impossibly small.
20922 (Vinitial_window_system): Rename from Vwindow_system.
20923 (termscript, Wcm, rif): Delete.
20924
20925 * termhooks.h (struct terminal): New struct containing the
20926 previously global text display hooks and new members NAME,
20927 DELETED and PARAM_ALIST.
20928 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
20929 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
20930 (FRAME_RIF): New macros.
20931 (get_terminal_param, get_device): New declarations.
20932 (termscript): Delete declaration.
20933
20934 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
20935 (XTflash, x_free_frame_resources, x_scroll_bar_create)
20936 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
20937 FRAME_FOREGROUND_PIXEL.
20938 (x_fully_uncatch_errors): Disable definition.
20939 (x_scroll_bar_expose): Fix reference to foreground pixel.
20940 (XTread_socket): Disable loop on all X displays.
20941 (x_delete_terminal): Don't set terminal->deleted and let
20942 delete_terminal delete the frames on the terminal.
20943 (x_delete_display): Doc update to reflect changes in
20944 delete_terminal.
20945 (x_display_info) <terminal>: Move member earlier in the struct.
20946 (deleting_tty): Remove old variable.
20947 (Fsuspend_tty): Call clear_tty_hooks.
20948 (Fresume_tty, init_tty): Call set_tty_hooks.
20949 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
20950 errors on X frames.
20951 (x_catch_errors_unwind): Abort if x_error_message is NULL.
20952 (handle_one_xevent): Initialize `f' to NULL.
20953 (x_delete_terminal, x_create_terminal): New functions.
20954 (XTset_terminal_modes, XTreset_terminal_modes)
20955 (XTread_socket, x_connection_closed, x_term_init)
20956 (x_term_init, x_delete_display): Add terminal parameter.
20957 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
20958 X connections.
20959
20960 * frame.c: Include termchar.h.
20961 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
20962 (Qwindow_system, Qenvironment, Qterm_environment_variable)
20963 (Qdisplay_environment_variable): New vars.
20964 (Fframep): Deal with output_initial.
20965 (Fframe-live-p): Doc fix.
20966 (Fwindow-system): New function.
20967 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
20968 (make_terminal_frame): Don't create frames on a terminal that is
20969 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20970 (store_frame_param): Check for found_for_frame before calling XFRAME.
20971 (Fmake_terminal_frame): Handle NULL tty names correctly.
20972 (syms_of_frame): Enhance doc string of `default-frame-alist'.
20973 (Fdelete_frame): Remove unused variable `count'. Don't allow other
20974 frames to refer to a deleted frame in their 'environment parameter.
20975 (Fframe_with_environment): New function.
20976 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
20977 (get_future_frame_param): New function.
20978 (Fmake_terminal_frame): Use it.
20979 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
20980
20981 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
20982 * sysdep.c (reset_sys_modes): Update for renames.
20983
20984 * keyboard.c (tty_read_avail_input): New function.
20985 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
20986 (syms_of_keyboard): Defsubr them.
20987 (Fset_input_meta_mode, Fset_quit_char): New functions.
20988 (Fset_input_mode): Split to above functions.
20989 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
20990 parameter. Use it in call to `read_char'.
20991 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
20992 Set wrong_kboard_jmpbuf correctly in recursive calls.
20993 Use current_kboard to access Vkeyboard_translate_table.
20994 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
20995 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
20996 Update longjmp invocations. Remember the original current_kboard,
20997 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
20998 changes it. Comment out unnecessary calls to
20999 `record_single_kboard_state' and `any_kboard_state'.
21000 Update recursive calls.
21001 (wrong_kboard_jmpbuf): Remove global variable.
21002 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
21003 Handle deleted interrupted_kboards correctly; that is a legal
21004 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
21005 and read_char calls. Abort if interrupted_kboard died in read_char.
21006 (any_kboard_state, single_kboard_state)
21007 (push_frame_kboard): Remove function.
21008 (pop_kboard): Switch out of single_kboard mode if the kboard has
21009 been deleted. Remove unused variable. Help debugging by not
21010 changing current_kboard unnecessarily. Set current_kboard to the
21011 kboard of the selected frame when the stored kboard object has
21012 been deleted before pop_kboard.
21013 (temporarily_switch_to_single_kboard): Change first parameter to a
21014 frame pointer. Throw an error when caller wants to change kboards
21015 while in single_kboard mode. Don't push_kboard if we weren't in
21016 single kboard state. Don't pop_kboard if we popped into any
21017 kboard state.
21018 (restore_kboard_configuration): Abort if pop_kboard changed the
21019 kboard in single_kboard mode. Call pop_kboard only after setting
21020 up single_kboard mode.
21021 (Frecursive_edit): Switch to single_kboard mode only in nested
21022 command loops.
21023 (cmd_error, command_loop, command_loop_1, timer_check):
21024 Comment out unnecessary call to `any_kboard_state' and
21025 `record_single_kboard_state'.
21026 (delete_kboard): Exit single_kboard mode if we have just deleted
21027 that kboard. Use FRAME_KBOARD.
21028 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
21029 `fatal_error_signal'.
21030 (record_single_kboard_state): Don't push_kboard if we weren't in
21031 single kboard state. Don't pop_kboard if we popped into any
21032 kboard state.
21033 (push_frame_kboard): Rename to push_kboard.
21034 (kbd_buffer_get_event): Use FRAME_TERMINAL.
21035 (read_avail_input): Read input from all terminals.
21036 (mark_kboards): Also mark Vkeyboard_translate_table.
21037 (kbd_buffer_store_event_hold): Simplify condition.
21038 (read_key_sequence): Reinitialize fkey and keytran at each replay.
21039 (Vkeyboard_translate_table): Move to struct kboard.
21040 (init_kboard): Initialize Vkeyboard_translate_table.
21041 (syms_of_keyboard): Use DEFVAR_KBOARD to define
21042 Vkeyboard_translate_table. Update doc strings. Update docs of
21043 local-function-key-map and function-key-map.
21044
21045 * terminal.c: New file.
21046
21047 * term.c: Include errno.h.
21048 (Vring_bell_function, device_list, initial_device)
21049 (next_device_id, ring_bell, update_begin, update_end)
21050 (set_terminal_window, cursor_to, raw_cursor_to)
21051 (clear_to_end, clear_frame, clear_end_of_line)
21052 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
21053 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
21054 (syms_of_term): Move their initialization to terminal.c.
21055 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
21056 (Ftty_display_color_cells)
21057 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
21058 (clear_tty_hooks, set_tty_hooks)
21059 (init_tty, maybe_fatal): New functions.
21060 (Ftty_type): Return nil if terminal is not on a tty instead of
21061 throwing an error. Doc update.
21062 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
21063 Doc update. Initialize new subrs and variables.
21064 (delete_tty): Use terminal->deleted.
21065 (tty_set_terminal_modes): Rename from set_terminal_modes.
21066 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
21067 (set_scroll_region): Rename to `tty_set_scroll_region'.
21068 (turn_on_insert): Rename to `tty_turn_on_insert'.
21069 (turn_off_insert): Rename to `tty_turn_off_insert'.
21070 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
21071 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
21072 (toggle_highligh): Rename to `tty_toggle_highlight'.
21073 (background_highlight): Rename to `tty_background_highlight'.
21074 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
21075 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
21076 (tty_set_scroll_region, tty_background_highlight)
21077 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
21078 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
21079 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
21080 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
21081 Add static modifier.
21082 (tty_reset_terminal_modes, tty_set_terminal_window)
21083 (tty_set_scroll_region, tty_background_highlight)
21084 (tty_highlight_if_desired, tty_cursor_to)
21085 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
21086 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
21087 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
21088 renames.
21089
21090 2007-08-28 Jan Djärv <jan.h.d@swipnet.se>
21091
21092 * keyboard.c: Qrtl is new.
21093 (parse_tool_bar_item): Handle :rtl keyword.
21094 (syms_of_keyboard): Intern :rtl keyword.
21095
21096 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
21097
21098 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
21099 so no Lisp code is executed.
21100 (file_for_image, find_rtl_image): New functions.
21101 (xg_get_image_for_pixmap): Use file_for_image.
21102 (update_frame_tool_bar): If direction is RTL, use RTL image if
21103 defined. Use Gtk stock images if defined.
21104
21105 2007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21106
21107 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
21108 for nonexistent or zero-width glyph in composition glyph.
21109
21110 2007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
21111
21112 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
21113
21114 * xdisp.c (Finvisible_p): New function.
21115 (syms_of_xdisp): defsubr it.
21116
21117 2007-08-24 Juanma Barranquero <lekktu@gmail.com>
21118
21119 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
21120 Doc fixes.
21121
21122 2007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21123
21124 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
21125
21126 2007-08-24 Martin Rudalics <rudalics@gmx.at>
21127
21128 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
21129 whether decoding has modified buffer contents.
21130
21131 2007-08-24 Jason Rumney <jasonr@gnu.org>
21132
21133 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
21134 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
21135 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
21136 (init_svg_functions) [HAVE_NTGUI]: New function.
21137 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
21138 (svg_load_image): Use them.
21139 (svg_load_image) [HAVE_NTGUI]: Implement background.
21140
21141 2007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21142
21143 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
21144 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
21145 (LIBX): Remove @RSVG_LIBS@.
21146 (LIBES): Add $(RSVG_LIBS).
21147
21148 * image.c (svg_load_image): Blend with specified background if exists.
21149 Use IMAGE_BACKGROUND. Add Mac OS Support.
21150
21151 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
21152 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
21153 Remove macros.
21154 [MAC_OSX] (socket_callback): Do nothing.
21155 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
21156 ReceiveNextEvent.
21157 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
21158 socket_callback.
21159 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
21160
21161 2007-08-22 Glenn Morris <rgm@gnu.org>
21162
21163 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
21164
21165 2007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
21166
21167 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
21168
21169 * image.c: Add support for SVG images. Some additional comments
21170 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
21171 (svg_image_p): New function to test for SVG image.
21172 (svg_load): New function to load SVG image.
21173 (svg_load_image): New function, helper for svg_load.
21174 (Qsvg): New Lisp_object.
21175 (svg_keyword_index): New enum.
21176 (svg_format): New static `image_keyword' struct.
21177 (svg_type): New static `image_type' struct.
21178 (librsvg/rsvg.h): Include it.
21179
21180 2007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
21181
21182 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
21183
21184 2007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
21185
21186 * lread.c (Qold_style_backquotes): New var.
21187 (syms_of_lread): Init and staticpro it.
21188 (load_warn_old_style_backquotes): New fun.
21189 (Fload): Use them to warn about old style backquotes.
21190 (end_of_file_error, Fload): Remove unused vars.
21191
21192 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
21193
21194 * lread.c (Vold_style_backquotes): New var.
21195 (syms_of_lread): Init and export it to Elisp.
21196 (read1): Set it when we find an old-style (back)quote.
21197
21198 2007-08-22 Jason Rumney <jasonr@gnu.org>
21199
21200 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
21201
21202 2007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
21203
21204 * puresize.h (BASE_PURESIZE): Increase to 1140000.
21205
21206 2007-08-19 Richard Stallman <rms@gnu.org>
21207
21208 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
21209
21210 2007-08-19 Andreas Schwab <schwab@suse.de>
21211
21212 * alloc.c (pure): Round PURESIZE up.
21213
21214 2007-08-17 Jan Djärv <jan.h.d@swipnet.se>
21215
21216 * xterm.c (handle_one_xevent): Remove check that mouse click is in
21217 active frame.
21218
21219 2007-08-16 Richard Stallman <rms@gnu.org>
21220
21221 * eval.c (Fcommandp): Add parens to clarify.
21222
21223 * minibuf.c (Fall_completions): Use enum for type of table.
21224
21225 * emacs.c (USAGE2): Improve text.
21226
21227 2007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
21228
21229 * term.c (tty_default_color_capabilities): Declare static
21230 variables in file scope, to avoid HPUX compiler problem.
21231
21232 2007-08-13 Jan Djärv <jan.h.d@swipnet.se>
21233
21234 * gtkutil.c (update_frame_tool_bar): Use -1 as index
21235 to gtk_toolbar_insert.
21236
21237 2007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
21238
21239 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
21240
21241 * insdel.c (reset_var_on_error): New fun.
21242 (signal_before_change, signal_after_change):
21243 Use it to reset (after|before)-change-functions to nil in case of error.
21244 Bind inhibit-modification-hooks to t.
21245 Don't bind (after|before)-change-functions to nil while they run.
21246
21247 2007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21248
21249 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
21250 filling pixmap with stippled background.
21251
21252 2007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21253
21254 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
21255 Don't use invisible frame as parent window for repositioning.
21256
21257 2007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
21258
21259 * print.c (new_backquote_output): Rename from old_backquote_output.
21260 (print): Inverse its logic (according to its name) so as to match the
21261 behavior of new_backquote_flag in lread.c.
21262
21263 2007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21264
21265 * gmalloc.c (posix_memalign): New function.
21266
21267 * macterm.c (frame_highlight, frame_unhighlight): Don't call
21268 ActivateControl/DeactivateControl here.
21269 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
21270 frame-notice-user-settings is non-nil.
21271 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
21272 for kEventParamFMFontStyle.
21273 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
21274 mac_pass_command_to_system and mac_pass_control_to_system here.
21275 (XTread_socket): Call ActivateControl/DeactivateControl here.
21276 (XTread_socket) [TARGET_API_MAC_CARBON]:
21277 Check mac_pass_command_to_system and mac_pass_control_to_system here.
21278 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
21279 for window repositioning.
21280
21281 2007-08-08 Glenn Morris <rgm@gnu.org>
21282
21283 * Replace `iff' in doc-strings and comments.
21284
21285 2007-08-07 Chong Yidong <cyd@stupidchicken.com>
21286
21287 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
21288
21289 2007-08-07 Martin Rudalics <rudalics@gmx.at>
21290
21291 * fileio.c (Finsert_file_contents): Run format-decode and
21292 after_insert_file_functions on entire buffer when REPLACE is
21293 non-nil and inhibit modification_hooks and point_motion_hooks.
21294 For consistency, run after_insert_file_functions iff something
21295 got inserted. Move signal_after_change and update_compositions
21296 after code running after_insert_file_functions. Make sure that
21297 undo_list doesn't record intermediate steps of the decoding process.
21298
21299 2007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21300
21301 * emacs.c (main)
21302 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
21303 Call malloc_enable_thread on interactive startup.
21304
21305 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
21306 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
21307 [USE_PTHREAD]: Conditionalize with it.
21308 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
21309 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
21310 New functions.
21311
21312 2007-08-06 Chong Yidong <cyd@stupidchicken.com>
21313
21314 * xdisp.c (redisplay_window): When restoring original buffer
21315 position, make sure it is still valid.
21316
21317 * image.c (png_load): Ignore png-supplied background color.
21318
21319 2007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21320
21321 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
21322 Use kCFAbsoluteTimeIntervalSince1970.
21323
21324 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
21325 New variable.
21326 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
21327 event loop should be quit.
21328 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
21329 Quit dialog event loop if quit_dialog_event_loop is set.
21330
21331 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
21332 (Selection): New typedef. Use instead of ScrapRef.
21333 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
21334 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
21335 (mac_clear_selection): Rename from clear_scrap.
21336 (get_flavor_type_from_symbol): New argument SEL and subsume function of
21337 scrap_has_target_type. All uses changed.
21338 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
21339 (mac_selection_has_target_p): New functions.
21340 (mac_put_selection_value): Rename from put_scrap_string.
21341 (mac_get_selection_value): Rename from get_scrap_string.
21342 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
21343 (put_scrap_private_timestamp, scrap_has_target_type)
21344 (get_scrap_private_timestamp): Remove functions.
21345 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
21346 (x_own_selection, x_get_local_selection):
21347 Use mac_valid_selection_value_p.
21348 (x_own_selection): Don't use put_scrap_private_timestamp.
21349 Record OWNERSHIP-INFO into Vselection_alist instead.
21350 (x_get_local_selection): Don't check type if request is local.
21351 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
21352 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
21353
21354 2007-08-04 Jan Djärv <jan.h.d@swipnet.se>
21355
21356 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
21357 add comment explaining why.
21358
21359 2007-08-03 Richard Stallman <rms@gnu.org>
21360
21361 * fileio.c (Fvisited_file_modtime): Use make_time.
21362
21363 2007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
21364
21365 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
21366 build.
21367
21368 2007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
21369
21370 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
21371
21372 2007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
21373
21374 * puresize.h (BASE_PURESIZE): Increase to 1130000.
21375
21376 2007-07-30 Richard Stallman <rms@gnu.org>
21377
21378 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
21379
21380 2007-07-29 Jan Djärv <jan.h.d@swipnet.se>
21381
21382 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
21383
21384 2007-07-28 Nick Roberts <nickrob@snap.net.nz>
21385
21386 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
21387 remote default-directory.
21388
21389 * buffer.c (mode-line-format): Update doc string.
21390
21391 2007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21392
21393 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
21394 scroll bar gap.
21395 (x_scroll_bar_create): Set bar->fringe_extended_p.
21396 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
21397 on frame edge. Check fringe background extension. Don't clear
21398 extended fringe background area.
21399
21400 * w32term.h (struct scroll_bar): New member fringe_extended_p.
21401 (w32_fill_area): Enclose multiple statements with do ... while (0).
21402
21403 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
21404 Extend fringe background to scroll bar gap.
21405 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
21406 Set bar->fringe_extended_p.
21407 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21408 Put leftmost/rightmost scroll bars on frame edge. Check fringe
21409 background extension. Don't clear extended fringe background area.
21410
21411 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21412 New member fringe_extended_p.
21413
21414 2007-07-25 Glenn Morris <rgm@gnu.org>
21415
21416 * Relicense all FSF files to GPLv3 or later.
21417
21418 * COPYING: Switch to GPLv3.
21419
21420 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
21421
21422 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
21423
21424 * data.c (Finteractive_form): Check for the presence of an
21425 `interactive-form' symbol property more thoroughly.
21426
21427 * data.c (Finteractive_form): Use an `interactive-form' property if
21428 present, analogous to the function-documentation property.
21429
21430 2007-07-24 Jason Rumney <jasonr@gnu.org>
21431
21432 * w32fns.c (x_real_positions): Get real position from OS instead of
21433 calculating it.
21434
21435 2007-07-23 Jason Rumney <jasonr@gnu.org>
21436
21437 * filelock.c (current_lock_owner): Allow for @ sign in username.
21438
21439 2007-07-22 Nick Roberts <nickrob@snap.net.nz>
21440
21441 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
21442 remote default-directory.
21443
21444 * buffer.c (mode-line-format): Describe above case in doc string.
21445
21446 2007-07-20 Eli Zaretskii <eliz@gnu.org>
21447
21448 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
21449 Define if not defined.
21450
21451 2007-07-18 Jason Rumney <jasonr@gnu.org>
21452
21453 * w32proc.c (w32_executable_type): Handle 64 bit executables.
21454
21455 2007-07-18 Richard Stallman <rms@gnu.org>
21456
21457 * data.c (Fsetq_default): Doc fix.
21458
21459 * eval.c (Fsetq): Doc fix.
21460
21461 2007-07-18 Juanma Barranquero <lekktu@gmail.com>
21462
21463 * coding.c (Ffind_operation_coding_system):
21464 * eval.c (For, Fand): Doc fixes.
21465 Reported by Johan Bockgård.
21466
21467 2007-07-18 Jan Djärv <jan.h.d@swipnet.se>
21468
21469 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
21470
21471 * xterm.h: Declare x_ewmh_activate_frame.
21472
21473 * xterm.c (x_ewmh_activate_frame): New function.
21474 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
21475
21476 2007-07-17 Martin Rudalics <rudalics@gmx.at>
21477
21478 * window.c (Fdisplay_buffer): If largest or LRU window is the
21479 only window, split it even if it is not eligible for splitting.
21480 This restores the original behavior broken by the 2007-07-15
21481 change.
21482
21483 2007-07-17 Glenn Morris <rgm@gnu.org>
21484
21485 * abbrev.c (abbrev_check_chars): New function.
21486 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
21487 Call abbrev_check_chars to check abbrev characters are word
21488 constituents. Doc fix.
21489
21490 2007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
21491
21492 * process.c (Fstart_process, Fmake_network_process)
21493 (read_process_output): Fix up last changes.
21494
21495 2007-07-16 Eli Zaretskii <eliz@gnu.org>
21496
21497 * makefile.w32-in (clean): Don't delete *~.
21498
21499 2007-07-16 Andreas Schwab <schwab@suse.de>
21500
21501 * window.c (Fdisplay_buffer): Use NILP.
21502 (Fset_window_scroll_bars): Likewise.
21503
21504 2007-07-15 Martin Rudalics <rudalics@gmx.at>
21505
21506 * window.c (window_min_size_2): New function.
21507 (window_min_size_1, size_window, Fdisplay_buffer)
21508 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
21509 windows without mode- or header-lines when window-min-height is
21510 too small.
21511 (size_window): Reset nodelete_p after testing it, following an
21512 earlier note by Kim F. Storm.
21513 (display_buffer): Do not set split_height_threshold to twice the
21514 value of window_min_height to avoid changing the value of a
21515 customizable variable. Rather explicitly check whether the
21516 height of the window that shall be splitted is at least as large
21517 as split_height_threshold.
21518 (Fwindow_full_width_p): New defun.
21519 (syms_of_window): Defsubr it.
21520
21521 * window.h: Add EXFUN for Fwindow_full_width_p.
21522
21523 2007-07-14 Jason Rumney <jasonr@gnu.org>
21524
21525 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
21526
21527 2007-07-14 Richard Stallman <rms@gnu.org>
21528
21529 * eval.c (maybe_call_debugger): New function.
21530 (find_handler_clause): Use maybe_call_debugger.
21531 Call it when the handler says `debug'.
21532 Eliminate DEBUGGER_VALUE_PTR.
21533 (Fsignal): Eliminate debugger_value.
21534 (Qdebug): New variable.
21535 (syms_of_eval): Initialize it.
21536
21537 2007-07-14 Juanma Barranquero <lekktu@gmail.com>
21538
21539 * eval.c (Fprogn):
21540 * keyboard.c (Ftrack_mouse):
21541 * print.c (Fwith_output_to_temp_buffer):
21542 * window.c (Fsave_window_excursion): Doc fix.
21543
21544 2007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
21545
21546 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
21547
21548 2007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
21549
21550 * process.h (struct Lisp_Process): Turn slots infd, outfd,
21551 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
21552 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
21553 read_output_delay, and read_output_skip from Lisp_Objects to ints.
21554 Remove unused encoding_carryover.
21555 * process.c: Adjust all functions accordingly.
21556
21557 2007-07-12 Richard Stallman <rms@gnu.org>
21558
21559 * term.c: Include unistd.h only if HAVE_UNISTD_H.
21560
21561 2007-07-11 Jason Rumney <jasonr@gnu.org>
21562
21563 * makefile.w32-in (LIBS): Include OLE32.
21564
21565 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
21566 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
21567
21568 2007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
21569
21570 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
21571 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
21572 from a Lisp_Object into a bare pointer.
21573 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
21574 Adjust the code correspondingly.
21575
21576 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
21577
21578 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
21579 (term_show_mouse_face): Remove unused var `j'.
21580 (handle_one_term_event): Remove unused vars `i' and `j'.
21581 Don't cast return value of ttyname since it's not necessary.
21582
21583 2007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
21584
21585 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
21586 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
21587
21588 * fns.c (map_char_table): Use an array of int for `indices' rather than
21589 an array of Lisp_Objects (which are only ever integers anyway).
21590 (Fmap_char_table): Update caller.
21591 * lisp.h: Update prototype.
21592 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
21593 * fontset.c (Ffontset_info):
21594 * casetab.c (set_case_table): Update callers.
21595
21596 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
21597
21598 * keymap.c (struct accessible_keymaps_data)
21599 (struct where_is_internal_data): New structures.
21600 (accessible_keymaps_1, where_is_internal_1): Use them to change
21601 interface to adhere to the one used by map_keymap.
21602 (Faccessible_keymaps, where_is_internal): Use map_keymap.
21603 (accessible_keymaps_char_table, where_is_internal_2): Remove.
21604
21605 * keymap.h (map_keymap_function_t): More informative prototype.
21606
21607 2007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
21608
21609 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
21610 (looking_at_1): Don't change search_regs and last_thing_searched
21611 if `inhibit-changing-match-data' is non-nil.
21612 (string_match_1, search_buffer, set_search_regs): Likewise.
21613 (syms_of_search): Add Lisp level definition for
21614 `inhibit-changing-match-data' and set it to nil.
21615 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
21616 start and end of the match, instead of using values in search_regs.
21617
21618 2007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
21619
21620 * minibuf.c (Fcompleting_read): New value `confirm-only'
21621 for `require-match'.
21622
21623 2007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
21624
21625 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
21626 part of the 2007-06-27 change to syms_of_fileio.
21627
21628 2007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21629
21630 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
21631 Check WINDOWP before using XWINDOW. Consolidate return statements.
21632
21633 2007-06-27 Richard Stallman <rms@gnu.org>
21634
21635 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
21636
21637 2007-06-27 Juanma Barranquero <lekktu@gmail.com>
21638
21639 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
21640
21641 2007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21642
21643 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
21644 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
21645 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
21646 (_free_internal, memalign): Use them.
21647 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
21648 Initialize to PTHREAD_MUTEX_INITIALIZER.
21649 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
21650 (morecore_nolock): Rename from morecore. All uses changed.
21651 Use only nolock versions of internal allocation functions.
21652 (_malloc_internal_nolock, _realloc_internal_nolock)
21653 (_free_internal_nolock): New functions created from
21654 _malloc_internal, _realloc_internal, and _free_internal.
21655 (_malloc_internal, _realloc_internal, _free_internal): Use them.
21656 Copy hook value to automatic variable before its use.
21657 (memalign): Copy hook value to automatic variable before its use.
21658
21659 2007-06-26 Kenichi Handa <handa@m17n.org>
21660
21661 * coding.c (Ffind_operation_coding_system): Docstring improved.
21662 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
21663
21664 2007-06-25 David Kastrup <dak@gnu.org>
21665
21666 * keymap.c (Fcurrent_active_maps): Add `position' argument.
21667 (Fwhere_is_internal): Adjust call to `current-active-maps' to
21668 cater for additional parameter.
21669
21670 * keymap.h: Adjust number of parameters to `current-active-maps'.
21671
21672 * doc.c (Fsubstitute_command_keys): Adjust call of
21673 `current-active-maps'.
21674
21675 2007-06-25 David Kastrup <dak@gnu.org>
21676
21677 * callint.c (Fcall_interactively): Make the parsing of interactive
21678 specs somewhat more readable.
21679
21680 2007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21681
21682 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
21683 to scroll bar gap also when bitmap fills fringe. Draw only foreground
21684 if extended background has already been filled.
21685
21686 2007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21687
21688 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
21689 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
21690
21691 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
21692 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
21693 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
21694 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
21695 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
21696 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
21697 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
21698 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
21699 Run timers during dialog popup.
21700 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
21701
21702 2007-06-21 Jason Rumney <jasonr@gnu.org>
21703
21704 * image.c (convert_mono_to_color_image): Swap fore and background.
21705
21706 2007-06-20 Jason Rumney <jasonr@gnu.org>
21707
21708 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
21709 (w32_free_bdf_font): Unmap memory not handle.
21710
21711 2007-06-20 Sam Steingold <sds@gnu.org>
21712
21713 * gmalloc.c (__morecore): Fix the declaration to comply with the
21714 definition.
21715
21716 2007-06-20 Juanma Barranquero <lekktu@gmail.com>
21717
21718 * w32term.c (w32_delete_display): Remove leftover declaration.
21719 (w32_define_cursor, w32_initialize): Make static.
21720
21721 * w32.c (_wsa_errlist): Fix typo in error message.
21722 (init_environment): Ignore any environment variable from the
21723 registry having a null value.
21724
21725 2007-06-20 Glenn Morris <rgm@gnu.org>
21726
21727 * Makefile.in (LIBGIF): Default to -lgif.
21728
21729 2007-06-17 Jason Rumney <jasonr@gnu.org>
21730
21731 * w32menu.c (add_menu_item): Don't use multibyte string functions on
21732 unicode strings.
21733
21734 2007-06-16 Juanma Barranquero <lekktu@gmail.com>
21735
21736 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
21737 Fix typo in docstring.
21738
21739 2007-06-16 Eli Zaretskii <eliz@gnu.org>
21740
21741 * w32menu.c (add_menu_item): Escape `&' characters in menu items
21742 and their keybindings.
21743
21744 2007-06-15 Chong Yidong <cyd@stupidchicken.com>
21745
21746 * composite.c (update_compositions): Fix last fix.
21747
21748 2007-06-14 Jason Rumney <jasonr@gnu.org>
21749
21750 * w32.c (get_process_times_fn): New function pointer.
21751 (globals_of_w32): Intialize it if present in kernel32.dll.
21752 (w32_get_internal_run_time): New function.
21753
21754 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
21755
21756 2007-06-14 Kenichi Handa <handa@etlken.m17n.org>
21757
21758 * composite.c (update_compositions): Check the validness of
21759 compositions.
21760
21761 2007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21762
21763 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
21764 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
21765
21766 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
21767 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
21768
21769 * macgui.h (USE_MAC_TOOLBAR): New define.
21770
21771 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21772 Return immediately unless popup is activated.
21773
21774 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
21775 background to scroll bar gap.
21776 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
21777 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
21778 scroll bars on frame edge. Check fringe background extension.
21779 Don't clear extended fringe background area.
21780 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
21781 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
21782 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
21783 [USE_MAC_TOOLBAR]: New macros.
21784 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
21785 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
21786 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
21787 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
21788 [USE_MAC_TOOLBAR]: New functions.
21789 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
21790 manually if previous repositioning has failed.
21791 (mac_handle_keyboard_event): Use precomputed event kind.
21792 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
21793 as tool bar item click. Handle mouse movement over tool bar items.
21794
21795 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
21796 toolbar_win_gravity.
21797 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
21798 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
21799 Add externs.
21800
21801 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
21802 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
21803
21804 2007-06-14 Chong Yidong <cyd@stupidchicken.com>
21805
21806 * image.c (search_image_cache): Remove unused variable.
21807
21808 2007-06-13 Chong Yidong <cyd@stupidchicken.com>
21809
21810 * xfns.c, xmenu.c: Link to xaw3d if available.
21811
21812 2007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21813
21814 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
21815 frame_foreground and frame_background.
21816
21817 * image.c (lookup_image): Save frame foreground and background colors.
21818 (search_image_cache): Check if saved and current frame colors match.
21819
21820 2007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
21821
21822 * regex.c (regex_compile): Remove the `regnum' counter.
21823 Use bufp->re_nsub instead. Add support for \(?N:RE\).
21824
21825 2007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
21826
21827 * term.c: Include intervals.h to declare Fget_text_property.
21828
21829 2007-06-10 Jason Rumney <jasonr@gnu.org>
21830
21831 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
21832
21833 2007-06-08 Juanma Barranquero <lekktu@gmail.com>
21834
21835 * callint.c (Fcall_interactively):
21836 * editfns.c (Fdelete_and_extract_region):
21837 * fileio.c (Fread_file_name):
21838 * fns.c (Fmapconcat):
21839 * keyboard.c (cmd_error_internal):
21840 * keymap.c (Fkey_description):
21841 * lread.c (openp):
21842 * minibuf.c (read_minibuf):
21843 * search.c (wordify):
21844 * sunfns.c (sel_read):
21845 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
21846 * xfns.c (x_default_scroll_bar_color_parameter):
21847 * xmenu.c (menu_help_callback):
21848 * xselect.c (Fx_get_atom_name):
21849 * xterm.c (x_term_init): Use empty_unibyte_string.
21850
21851 2007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
21852
21853 * alloc.c (init_strings): Initialize canonical empty strings.
21854 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
21855 canonical empty string when the requested size is 0.
21856
21857 * emacs.c (empty_unibyte_string): Rename from empty_string.
21858 (empty_multibyte_string): New canonical empty string.
21859 (syms_of_emacs): Don't initialize empty_string.
21860
21861 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
21862 string, if appropriate.
21863 (empty_unibyte_string, empty_multibyte_string): New externs.
21864 (empty_string): Remove extern.
21865
21866 * lread.c (syms_of_lread): Use empty_unibyte_string.
21867
21868 2007-06-07 Jason Rumney <jasonr@gnu.org>
21869
21870 * s/ms-w32.h: Don't define HAVE_TZNAME.
21871
21872 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
21873
21874 2007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21875
21876 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
21877
21878 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
21879 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
21880
21881 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
21882 Don't call next handler.
21883 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
21884 Remove argument. Install handler to application.
21885 (set_frame_menubar): Don't change deep_p.
21886 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
21887 FRAME_OUTER_TO_INNER_DIFF_Y.
21888 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
21889 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
21890 [HAVE_DIALOGS]: New macros.
21891 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
21892 Use them.
21893 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
21894
21895 * macselect.c [MAC_OSX] (install_service_handler): Rename from
21896 init_service_handler. All callers changed. Return OSStatus value.
21897
21898 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
21899 All callers changed so as not to call SetPortWindowPort.
21900 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
21901 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
21902 mac_draw_string_common.
21903 (mac_draw_image_string_qd): Likewise.
21904 (mac_draw_string_common): Use them. Add INLINE.
21905 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
21906 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
21907 GetGlobalMouse.
21908 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
21909 and FRAME_OUTER_TO_INNER_DIFF_Y.
21910 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
21911 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
21912 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
21913 repositioning window to mac_handle_window_event.
21914 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
21915 saving window location to mac_handle_window_event
21916 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
21917 (install_menu_target_item_handler): Remove argument in extern.
21918 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
21919 Also accept command events.
21920 (do_keystroke): New function created from XTread_socket.
21921 (init_command_handler): Remove functions.
21922 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
21923 and save window location by kEventWindowShowing and kEventWindowHiding
21924 handlers here. Don't call next handler for window state change and
21925 focus events.
21926 (mac_handle_application_event, mac_handle_keyboard_event)
21927 [TARGET_API_MAC_CARBON]: New functions.
21928 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
21929 kEventWindowShowing and kEventWindowHiding events. Move installation
21930 of mouse, font, text input and menu target item handlers to
21931 install_application_handler.
21932 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
21933 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21934 New function.
21935 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21936 Register it.
21937 (XTread_socket) [TARGET_API_MAC_CARBON]:
21938 Consolidate SendEventToEventTarget calls.
21939 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
21940 Move application activation handler to mac_handle_application_event.
21941 Move keyboard handler to mac_handle_keyboard_event.
21942 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
21943 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
21944 init_command_handler. Call install_application_handler.
21945
21946 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
21947 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
21948
21949 2007-06-07 Glenn Morris <rgm@gnu.org>
21950
21951 * emacs.c (main): Use `emacs-copyright' in --version output.
21952
21953 2007-06-06 Chong Yidong <cyd@stupidchicken.com>
21954
21955 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
21956
21957 2007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21958
21959 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
21960
21961 * macgui.h: Replace WindowPtr with WindowRef.
21962
21963 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21964 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21965 Replace ControlHandle with ControlRef.
21966 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
21967
21968 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
21969 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
21970 Replace ControlHandle with ControlRef.
21971 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
21972 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
21973
21974 * macterm.h (struct scroll_bar): Rename member control_handle_low
21975 and control_handle_high to control_ref_low and control_ref_high.
21976 All uses changed.
21977 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
21978 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
21979 respectively. All uses changed.
21980 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
21981 (install_window_handler, remove_window_handler): Replace WindowPtr
21982 with WindowRef in externs.
21983
21984 2007-06-05 Juanma Barranquero <lekktu@gmail.com>
21985
21986 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
21987
21988 2007-06-03 Nick Roberts <nickrob@snap.net.nz>
21989
21990 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
21991
21992 * frame.c (Fmouse_position, Fmouse_pixel_position):
21993 Condition on HAVE_GPM too.
21994
21995 * term.c (term_mouse_highlight): Remove unused variables.
21996 (Fterm_open_connection): Set gpm_zerobased to 1.
21997 (term_mouse_movement, term_mouse_click, handle_one_term_event):
21998 Use zero based co-ordinates.
21999 (handle_one_term_event): Report a drag as mouse movement too.
22000
22001 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
22002
22003 2007-06-03 Chong Yidong <cyd@stupidchicken.com>
22004
22005 * image.c (search_image_cache): New function. Require background
22006 color match if background color is unspecified in the image spec.
22007 (uncache_image, lookup_image): Use it.
22008
22009 2007-06-01 Juanma Barranquero <lekktu@gmail.com>
22010
22011 * window.c (Fshrink_window): Reflow docstring.
22012
22013 2007-06-02 Chong Yidong <cyd@stupidchicken.com>
22014
22015 * Version 22.1 released.
22016
22017 2007-06-01 Richard Stallman <rms@gnu.org>
22018
22019 * xfns.c (x_encode_text): Add GCPRO.
22020
22021 2007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22022
22023 * xfns.c (x_set_name_internal): Save encoded name before
22024 x_encode_text in case string data is relocated.
22025
22026 2007-05-31 Richard Stallman <rms@gnu.org>
22027
22028 * buffer.c (syms_of_buffer): Doc fix.
22029
22030 2007-05-30 Nick Roberts <nickrob@snap.net.nz>
22031
22032 * sysdep.c (init_sys_modes): Add rather than replace with
22033 O_NONBLOCK.
22034
22035 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
22036 term_mouse_moveto.
22037
22038 * termhooks.h (term_mouse_moveto): New extern.
22039
22040 * term.c (mouse_face_window): Rename...
22041 (Qmouse_face_window): ...to this.
22042 (term_show_mouse_face, term_clear_mouse_face)
22043 (term_mouse_highlight): Use Qmouse_face_window.
22044 (term_mouse_moveto): New function.
22045 (term_mouse_position): Make it work.
22046 (syms_of_term): Uncomment assignment to mouse_position_hook.
22047 Staticpro Qmouse_face_window.
22048
22049 2007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22050
22051 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
22052 around current_column call.
22053
22054 2007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
22055
22056 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
22057 * xdisp.c (next_element_from_buffer):
22058 * window.c (delete_window):
22059 * term.c (term_mouse_highlight):
22060 * msdos.c (getdefdir):
22061 * macterm.c (mac_create_bitmap_from_bitmap_data)
22062 (init_font_name_table):
22063 * fns.c (Fsxhash):
22064 * data.c (Fmake_local_variable):
22065 * ccl.c (ccl_driver): Likewise.
22066
22067 2007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22068
22069 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
22070 Call mac_wakeup_from_rne on window size change.
22071
22072 2007-05-25 Chong Yidong <cyd@stupidchicken.com>
22073
22074 * image.c (uncache_image): Fix typo.
22075
22076 2007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
22077
22078 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
22079
22080 2007-05-22 Richard Stallman <rms@gnu.org>
22081
22082 * xterm.c (x_connection_closed): Remove NO_RETURN.
22083
22084 2007-05-22 Martin Rudalics <rudalics@gmx.at>
22085
22086 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
22087
22088 2007-05-21 Chong Yidong <cyd@stupidchicken.com>
22089
22090 * image.c (uncache_image): New function.
22091 (Fimage_refresh): New function.
22092
22093 2007-05-20 Jan Djärv <jan.h.d@swipnet.se>
22094
22095 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
22096
22097 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
22098
22099 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
22100 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
22101
22102 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
22103
22104 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
22105 conditional on [HAVE_GPM_H].
22106
22107 2007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
22108
22109 * syntax.c (skip_chars): Update syntax-table only after we checked that
22110 the new location is valid.
22111
22112 2007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22113
22114 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
22115 mac_get_window_bounds.
22116
22117 2007-05-20 Nick Roberts <nickrob@snap.net.nz>
22118
22119 * Makefile.in (LIBGPM): Allow it to be set from configure.
22120 If set then link Emacs with it.
22121
22122 * config.in: Regenerate.
22123
22124 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
22125 New externs.
22126
22127 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
22128 Include gpm.h.
22129 (handle_one_term_event, term_gpm): New externs.
22130
22131 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
22132 and allow it to be interrupted by SIGIO.
22133
22134 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
22135 (wait_reading_process_output): Wait on gpm_fd too.
22136 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
22137 (add_gpm_wait_descriptor_called_flag): New variable.
22138 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
22139
22140 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
22141 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
22142 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
22143 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
22144 (make_lispy_event): Add case GPM_CLICK_EVENT.
22145 (read_avail_input): Handle mouse input.
22146
22147 * term.c (write_glyphs_with_face): New function.
22148 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
22149 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
22150 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
22151 (mouse_face_face_id, term_gpm, pos_x, pos_y)
22152 (last_mouse_x, last_mouse_y): New variables.
22153 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
22154 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
22155 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
22156 (Fterm_close_connection): New functions.
22157 (term_init): Initialise mouse_face_window.
22158
22159 2007-05-19 Chong Yidong <cyd@stupidchicken.com>
22160
22161 * xdisp.c (redisplay_window): If first window line is a
22162 continuation line, recompute the new window start instead of
22163 recentering.
22164
22165 2007-05-18 Glenn Morris <rgm@gnu.org>
22166
22167 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
22168 Suggested by Alfred M. Szmidt <ams@gnu.org>.
22169
22170 2007-05-17 Glenn Morris <rgm@gnu.org>
22171
22172 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
22173
22174 2007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22175
22176 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
22177 dead key repeat and up events.
22178
22179 2007-05-14 Chong Yidong <cyd@stupidchicken.com>
22180
22181 * image.c (pbm_load): Check image size for monochrome pbm.
22182
22183 2007-05-13 Chong Yidong <cyd@stupidchicken.com>
22184
22185 * xterm.c (XTread_socket): Revert last change.
22186
22187 2007-05-12 Chong Yidong <cyd@stupidchicken.com>
22188
22189 * image.c (pbm_load): Correctly check image size for greyscale pbm.
22190
22191 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
22192
22193 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22194
22195 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
22196 mixup (YAILOM).
22197
22198 2007-05-07 Andreas Schwab <schwab@suse.de>
22199
22200 * keymap.c (Flookup_key): Fix typo in last change.
22201
22202 2007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22203
22204 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
22205 mapping for unibyte strings.
22206
22207 2007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22208
22209 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
22210 (Fx_popup_dialog) [MAC_OSX]: Likewise.
22211
22212 2007-04-29 Richard Stallman <rms@gnu.org>
22213
22214 * insdel.c (replace_range): For undo, record insertion first.
22215
22216 2007-04-29 Andreas Schwab <schwab@suse.de>
22217
22218 * lisp.h (VECSIZE): Use OFFSETOF.
22219
22220 2007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22221
22222 * xdisp.c (try_window_reusing_current_matrix): Fix number of
22223 disabled lines.
22224
22225 2007-04-28 Richard Stallman <rms@gnu.org>
22226
22227 * lread.c (read_escape): In a string, \s is always space.
22228
22229 2007-04-27 Jan Djärv <jan.h.d@swipnet.se>
22230
22231 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
22232
22233 * gtkutil.c (xg_update_menubar, create_menus): Create empty
22234 submenu for menu bar items.
22235
22236 See ChangeLog.10 for earlier changes.
22237
22238 ;; Local Variables:
22239 ;; coding: utf-8
22240 ;; add-log-time-zone-rule: t
22241 ;; End:
22242
22243 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
22244
22245 This file is part of GNU Emacs.
22246
22247 GNU Emacs is free software: you can redistribute it and/or modify
22248 it under the terms of the GNU General Public License as published by
22249 the Free Software Foundation, either version 3 of the License, or
22250 (at your option) any later version.
22251
22252 GNU Emacs is distributed in the hope that it will be useful,
22253 but WITHOUT ANY WARRANTY; without even the implied warranty of
22254 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22255 GNU General Public License for more details.
22256
22257 You should have received a copy of the GNU General Public License
22258 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
22259
22260 ;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40